@adyen/adyen-web 5.0.0 → 5.2.2
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/dist/adyen.css +4 -0
- 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 +4 -0
- package/dist/cjs/adyen.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/adyen.css +4 -0
- package/dist/es/adyen.css.map +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es/it-IT.js +1 -1
- package/dist/types/components/ApplePay/ApplePay.d.ts +0 -2
- package/dist/types/components/ApplePay/defaultProps.d.ts +0 -2
- package/dist/types/components/ApplePay/types.d.ts +0 -3
- package/dist/types/components/Card/Bancontact.d.ts +6 -2
- package/dist/types/components/Card/components/CardInput/components/CardFields.d.ts +1 -1
- package/dist/types/components/Card/components/CardInput/components/types.d.ts +6 -5
- package/dist/types/components/Card/components/CardInput/types.d.ts +4 -3
- package/dist/types/components/Card/types.d.ts +2 -1
- package/dist/types/components/Econtext/Econtext.d.ts +11 -1
- package/dist/types/components/Econtext/components/EcontextInput/EcontextInput.d.ts +14 -2
- package/dist/types/components/GooglePay/GooglePay.d.ts +0 -1
- package/dist/types/components/GooglePay/defaultProps.d.ts +0 -1
- package/dist/types/components/PayPal/types.d.ts +4 -0
- package/dist/types/components/helpers/IssuerListContainer.d.ts +6 -7
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/components/internal/IssuerList/ContentSeparator/ContentSeparator.d.ts +4 -0
- package/dist/types/components/internal/IssuerList/ContentSeparator/index.d.ts +1 -0
- package/dist/types/components/internal/IssuerList/IssuerButtonGroup/IssuerButton.d.ts +11 -0
- package/dist/types/components/internal/IssuerList/IssuerButtonGroup/IssuerButtonGroup.d.ts +10 -0
- package/dist/types/components/internal/IssuerList/IssuerButtonGroup/index.d.ts +1 -0
- package/dist/types/components/internal/IssuerList/IssuerList.d.ts +2 -7
- package/dist/types/components/internal/IssuerList/types.d.ts +16 -0
- package/dist/types/components/internal/OpenInvoice/utils.d.ts +1 -1
- package/dist/types/components/internal/PayButton/PayButton.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/SecuredFieldsProvider.d.ts +3 -3
- package/dist/types/components/internal/SecuredFields/defaultProps.d.ts +2 -1
- package/dist/types/components/internal/SecuredFields/lib/configuration/constants.d.ts +11 -6
- package/dist/types/components/internal/SecuredFields/lib/core/AbstractCSF.d.ts +2 -1
- package/dist/types/components/internal/SecuredFields/lib/core/AbstractSecuredField.d.ts +4 -3
- package/dist/types/components/internal/SecuredFields/lib/core/SecuredField.d.ts +2 -2
- package/dist/types/components/internal/SecuredFields/lib/core/utils/handleBrandFromBinLookup.d.ts +2 -1
- package/dist/types/components/internal/SecuredFields/lib/core/utils/processBrand.d.ts +6 -0
- package/dist/types/components/internal/SecuredFields/lib/types.d.ts +9 -4
- package/dist/types/components/internal/SecuredFields/lib/utilities/commonUtils.d.ts +4 -1
- package/dist/types/utils/Script.d.ts +3 -1
- package/dist/types/utils/hasOwnProperty.d.ts +1 -0
- package/package.json +2 -2
|
@@ -4,11 +4,13 @@ import { BrandObject } from '../../../Card/types';
|
|
|
4
4
|
declare global {
|
|
5
5
|
interface Window {
|
|
6
6
|
_b$dl: boolean;
|
|
7
|
+
mockBinCount: number;
|
|
7
8
|
}
|
|
8
9
|
}
|
|
9
10
|
export interface BrandStorageObject {
|
|
10
11
|
brand: string;
|
|
11
|
-
cvcPolicy:
|
|
12
|
+
cvcPolicy: CVCPolicyType;
|
|
13
|
+
expiryDatePolicy: DatePolicyType;
|
|
12
14
|
showSocialSecurityNumber?: boolean;
|
|
13
15
|
}
|
|
14
16
|
/**
|
|
@@ -136,14 +138,14 @@ export interface CardObject {
|
|
|
136
138
|
pattern: RegExp;
|
|
137
139
|
securityCode?: string;
|
|
138
140
|
displayName?: string;
|
|
139
|
-
cvcPolicy?:
|
|
141
|
+
cvcPolicy?: CVCPolicyType;
|
|
140
142
|
}
|
|
141
143
|
export interface CbObjOnBrand {
|
|
142
144
|
type: string;
|
|
143
145
|
rootNode: HTMLElement;
|
|
144
146
|
brand: string;
|
|
145
147
|
cvcPolicy: CVCPolicyType;
|
|
146
|
-
|
|
148
|
+
expiryDatePolicy?: DatePolicyType;
|
|
147
149
|
cvcText: string;
|
|
148
150
|
showSocialSecurityNumber?: boolean;
|
|
149
151
|
brandImageUrl?: string;
|
|
@@ -224,7 +226,7 @@ export interface SFFeedbackObj {
|
|
|
224
226
|
code?: string;
|
|
225
227
|
cvcText?: string;
|
|
226
228
|
cvcPolicy?: CVCPolicyType;
|
|
227
|
-
|
|
229
|
+
expiryDatePolicy?: DatePolicyType;
|
|
228
230
|
showSocialSecurityNumber?: boolean;
|
|
229
231
|
maxLength?: number;
|
|
230
232
|
error?: string;
|
|
@@ -254,4 +256,7 @@ export interface SendBrandObject {
|
|
|
254
256
|
brand: string;
|
|
255
257
|
enableLuhnCheck: boolean;
|
|
256
258
|
}
|
|
259
|
+
export interface SendExpiryDateObject {
|
|
260
|
+
expiryDatePolicy: DatePolicyType;
|
|
261
|
+
}
|
|
257
262
|
export {};
|
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
* @returns Number
|
|
5
5
|
*/
|
|
6
6
|
declare function generateRandomNumber(): number;
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Recursively compare 2 objects
|
|
9
|
+
*/
|
|
10
|
+
declare function objectsDeepEqual(x: any, y: any): any;
|
|
8
11
|
/**
|
|
9
12
|
* Returns true if x is:
|
|
10
13
|
* null, undefined, false, 0, NaN, empty object or array, empty string
|
|
@@ -15,7 +15,9 @@ declare class Script {
|
|
|
15
15
|
private readonly script;
|
|
16
16
|
private readonly src;
|
|
17
17
|
private readonly node;
|
|
18
|
-
|
|
18
|
+
private readonly attributes;
|
|
19
|
+
private readonly dataAttributes;
|
|
20
|
+
constructor(src: any, node?: string, attributes?: Partial<HTMLScriptElement>, dataAttributes?: Record<string, string | undefined>);
|
|
19
21
|
load: () => Promise<any>;
|
|
20
22
|
remove: () => void;
|
|
21
23
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function hasOwnProperty(obj: any, prop: any): any;
|
package/package.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"./dist/adyen.css": "./dist/adyen.css",
|
|
23
23
|
"./package.json": "./package.json"
|
|
24
24
|
},
|
|
25
|
-
"version": "5.
|
|
25
|
+
"version": "5.2.2",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"homepage": "https://docs.adyen.com/checkout",
|
|
28
28
|
"repository": "github:Adyen/adyen-web",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"stylelint-config-recommended": "^5.0.0",
|
|
84
84
|
"ts-jest": "^26.5.6",
|
|
85
85
|
"tslib": "^2.3.1",
|
|
86
|
-
"typescript": "^4.
|
|
86
|
+
"typescript": "^4.4.4",
|
|
87
87
|
"whatwg-fetch": "^3.6.2"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|