@adyen/adyen-web 5.49.3 → 5.49.4
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 +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/index.js +1 -1
- package/dist/es.modern/adyen.css +3 -3
- package/dist/es.modern/adyen.css.map +1 -1
- package/dist/es.modern/index.js +1 -1
- package/dist/types/components/Dragonpay/types.d.ts +2 -2
- package/dist/types/components/internal/Address/types.d.ts +19 -4
- package/dist/types/components/internal/FormFields/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/components/internal/FormFields/InputBase.d.ts +21 -3
- package/dist/types/components/internal/FormFields/InputDate/InputDate.d.ts +3 -2
- package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts +2 -3
- package/dist/types/components/internal/FormFields/Select/Select.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +8 -7
- package/dist/types/components/internal/SecuredFields/lib/CSF/AbstractCSF.d.ts +3 -2
- package/dist/types/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.d.ts +3 -2
- package/dist/types/components/internal/SecuredFields/lib/CSF/extensions/handleIOSTouchEvents.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/CSF/partials/processAutoComplete.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/CSF/types.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/configuration/constants.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/types.d.ts +1 -0
- package/package.json +1 -1
- package/dist/types/components/internal/FormFields/index.d.ts +0 -5
|
@@ -2,8 +2,8 @@ import { PaymentAmount } from '../../types';
|
|
|
2
2
|
import Language from '../../language/Language';
|
|
3
3
|
import { UIElementProps } from '../types';
|
|
4
4
|
export interface DragonpayInputIssuerItem {
|
|
5
|
-
id
|
|
6
|
-
name
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
7
|
icon?: string;
|
|
8
8
|
}
|
|
9
9
|
export interface DragonpayElementProps extends UIElementProps {
|
|
@@ -46,10 +46,15 @@ export interface FieldContainerProps {
|
|
|
46
46
|
valid?: object;
|
|
47
47
|
onInput?: (e: Event) => void;
|
|
48
48
|
onBlur?: (e: Event) => void;
|
|
49
|
-
onDropdownChange: (e:
|
|
49
|
+
onDropdownChange: (e: {
|
|
50
|
+
target: {
|
|
51
|
+
value: string | number;
|
|
52
|
+
name: string;
|
|
53
|
+
};
|
|
54
|
+
}) => void;
|
|
50
55
|
readOnly?: boolean;
|
|
51
56
|
specifications: Specifications;
|
|
52
|
-
|
|
57
|
+
maxLength?: number;
|
|
53
58
|
trimOnBlur?: boolean;
|
|
54
59
|
disabled?: boolean;
|
|
55
60
|
}
|
|
@@ -62,7 +67,12 @@ export interface CountryFieldProps {
|
|
|
62
67
|
classNameModifiers: string[];
|
|
63
68
|
label: string;
|
|
64
69
|
errorMessage: boolean | string;
|
|
65
|
-
onDropdownChange: (e:
|
|
70
|
+
onDropdownChange: (e: {
|
|
71
|
+
target: {
|
|
72
|
+
value: string | number;
|
|
73
|
+
name: string;
|
|
74
|
+
};
|
|
75
|
+
}) => void;
|
|
66
76
|
readOnly?: boolean;
|
|
67
77
|
value: string;
|
|
68
78
|
}
|
|
@@ -74,7 +84,12 @@ export interface StateFieldProps {
|
|
|
74
84
|
classNameModifiers: string[];
|
|
75
85
|
label: string;
|
|
76
86
|
errorMessage: boolean | string;
|
|
77
|
-
onDropdownChange: (e:
|
|
87
|
+
onDropdownChange: (e: {
|
|
88
|
+
target: {
|
|
89
|
+
value: string | number;
|
|
90
|
+
name: string;
|
|
91
|
+
};
|
|
92
|
+
}) => void;
|
|
78
93
|
readOnly?: boolean;
|
|
79
94
|
selectedCountry: string;
|
|
80
95
|
specifications: Specifications;
|
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
import { h } from 'preact';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { MutableRef } from 'preact/hooks';
|
|
3
|
+
import Language from '../../../language';
|
|
4
|
+
import './FormFields.scss';
|
|
5
|
+
export interface InputBaseProps extends h.JSX.HTMLAttributes {
|
|
6
|
+
classNameModifiers?: string[];
|
|
7
|
+
isInvalid?: boolean;
|
|
8
|
+
isValid?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
uniqueId?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
name?: string;
|
|
16
|
+
checked?: boolean;
|
|
17
|
+
setRef?: (ref: MutableRef<EventTarget>) => void;
|
|
18
|
+
trimOnBlur?: boolean;
|
|
19
|
+
i18n?: Language;
|
|
20
|
+
label?: string;
|
|
4
21
|
onCreateRef?(reference: HTMLInputElement): void;
|
|
5
|
-
|
|
22
|
+
onBlurHandler?: h.JSX.GenericEventHandler<HTMLInputElement>;
|
|
23
|
+
onFocusHandler?: h.JSX.GenericEventHandler<HTMLInputElement>;
|
|
6
24
|
}
|
|
7
25
|
declare function InputBase({ onCreateRef, ...props }: InputBaseProps): h.JSX.Element;
|
|
8
26
|
declare namespace InputBase {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h } from 'preact';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { InputBaseProps } from '../InputBase';
|
|
3
|
+
interface InputDateProps extends InputBaseProps {
|
|
4
|
+
onInput?: (e: any) => void;
|
|
4
5
|
}
|
|
5
6
|
export default function InputDate(props: InputDateProps): h.JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { InputBaseProps } from '../InputBase';
|
|
2
2
|
interface RadioGroupItem {
|
|
3
3
|
name: string;
|
|
4
4
|
id: string;
|
|
5
5
|
}
|
|
6
|
-
export interface RadioGroupProps {
|
|
6
|
+
export interface RadioGroupProps extends InputBaseProps {
|
|
7
7
|
className?: string;
|
|
8
8
|
isInvalid?: boolean;
|
|
9
9
|
items: RadioGroupItem[];
|
|
10
|
-
i18n: Language;
|
|
11
10
|
name?: string;
|
|
12
11
|
onChange: (e: any) => void;
|
|
13
12
|
value?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from 'preact';
|
|
2
2
|
import { SelectProps } from './types';
|
|
3
3
|
import './Select.scss';
|
|
4
|
-
declare function Select({ items, className, classNameModifiers, filterable, readonly, onChange, onInput,
|
|
4
|
+
declare function Select({ items, className, classNameModifiers, filterable, readonly, onChange, onInput, selectedValue, name, isInvalid, isValid, placeholder, uniqueId, disabled, disableTextFilter, clearOnSelect }: SelectProps): h.JSX.Element;
|
|
5
5
|
declare namespace Select {
|
|
6
6
|
var defaultProps: {
|
|
7
7
|
className: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { h } from 'preact';
|
|
1
2
|
export interface SelectItem {
|
|
2
3
|
disabled?: boolean;
|
|
3
4
|
icon?: string;
|
|
@@ -10,7 +11,7 @@ export interface SelectProps {
|
|
|
10
11
|
className: string;
|
|
11
12
|
classNameModifiers: string[];
|
|
12
13
|
filterable: boolean;
|
|
13
|
-
isInvalid
|
|
14
|
+
isInvalid?: boolean;
|
|
14
15
|
isValid?: boolean;
|
|
15
16
|
items: SelectItem[];
|
|
16
17
|
name?: string;
|
|
@@ -19,15 +20,15 @@ export interface SelectProps {
|
|
|
19
20
|
value: string | number;
|
|
20
21
|
name: string;
|
|
21
22
|
};
|
|
22
|
-
}) => void;
|
|
23
|
+
} | Partial<h.JSX.TargetedKeyboardEvent<HTMLInputElement>>) => void;
|
|
23
24
|
onInput?: (value: string) => void;
|
|
24
|
-
placeholder
|
|
25
|
+
placeholder?: string;
|
|
25
26
|
readonly: boolean;
|
|
26
|
-
|
|
27
|
+
selectedValue?: string | number;
|
|
27
28
|
uniqueId?: string;
|
|
28
|
-
disabled
|
|
29
|
-
disableTextFilter
|
|
30
|
-
clearOnSelect
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
disableTextFilter?: boolean;
|
|
31
|
+
clearOnSelect?: boolean;
|
|
31
32
|
}
|
|
32
33
|
export interface SelectButtonProps {
|
|
33
34
|
inputText: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSFSetupObject, CSFConfigObject, CSFCallbacksConfig, CSFStateObject } from './types';
|
|
2
|
-
import { SFFeedbackObj, SendBrandObject, SendExpiryDateObject } from '../types';
|
|
2
|
+
import { SFFeedbackObj, SendBrandObject, SendExpiryDateObject, CVCPolicyType, DatePolicyType } from '../types';
|
|
3
3
|
import { createSecuredFields } from './extensions/createSecuredFields';
|
|
4
4
|
import processBrand from './partials/processBrand';
|
|
5
5
|
import handleBrandFromBinLookup from './extensions/handleBrandFromBinLookup';
|
|
@@ -12,7 +12,7 @@ declare abstract class AbstractCSF {
|
|
|
12
12
|
protected handleBrandFromBinLookup: typeof handleBrandFromBinLookup;
|
|
13
13
|
protected callbacksHandler: (callbacksObj: object) => void;
|
|
14
14
|
protected configHandler: (props: CSFSetupObject) => void;
|
|
15
|
-
protected createCardSecuredFields: (securedFields: HTMLElement[]) => Promise<any>;
|
|
15
|
+
protected createCardSecuredFields: (securedFields: HTMLElement[], cvcPolicy: CVCPolicyType, expiryDatePolicy: DatePolicyType) => Promise<any>;
|
|
16
16
|
protected createNonCardSecuredFields: (securedFields: HTMLElement[]) => Promise<any>;
|
|
17
17
|
protected createSecuredFields: typeof createSecuredFields;
|
|
18
18
|
protected destroySecuredFields: () => void;
|
|
@@ -36,6 +36,7 @@ declare abstract class AbstractCSF {
|
|
|
36
36
|
protected setupSecuredField: (pItem: HTMLElement) => void;
|
|
37
37
|
protected touchendListener: (e: Event) => void;
|
|
38
38
|
protected touchstartListener: () => void;
|
|
39
|
+
protected hasGenuineTouchEvents: boolean;
|
|
39
40
|
protected encryptedAttrName: string;
|
|
40
41
|
protected hasRedundantCVCField: boolean;
|
|
41
42
|
protected isSingleBrandedCard: boolean;
|
package/dist/types/components/internal/SecuredFields/lib/CSF/extensions/createSecuredFields.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CVCPolicyType, DatePolicyType } from '../../types';
|
|
1
2
|
/**
|
|
2
3
|
* Bound to the instance of CSF
|
|
3
4
|
* Handles specific functionality related to configuring & creating SecuredFields
|
|
@@ -9,5 +10,5 @@ export declare function createSecuredFields(): number;
|
|
|
9
10
|
* Create a new SecuredField for each detected holding element
|
|
10
11
|
*/
|
|
11
12
|
export declare function createNonCardSecuredFields(securedFields: HTMLElement[]): Promise<any>;
|
|
12
|
-
export declare function createCardSecuredFields(securedFields: HTMLElement[]): Promise<any>;
|
|
13
|
-
export declare function setupSecuredField(pItem: HTMLElement): Promise<any>;
|
|
13
|
+
export declare function createCardSecuredFields(securedFields: HTMLElement[], cvcPolicy: CVCPolicyType, expiryDatePolicy: DatePolicyType): Promise<any>;
|
|
14
|
+
export declare function setupSecuredField(pItem: HTMLElement, cvcPolicy?: CVCPolicyType, expiryDatePolicy?: DatePolicyType): Promise<any>;
|
package/dist/types/components/internal/SecuredFields/lib/CSF/extensions/handleIOSTouchEvents.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ declare function touchendListener(e: Event): void;
|
|
|
12
12
|
/**
|
|
13
13
|
* re. Disabling arrow keys in iOS - need to enable all fields in the form and tell SFs to disable
|
|
14
14
|
*
|
|
15
|
-
* NOTE: Only called when iOS detected & this.config.
|
|
15
|
+
* NOTE: Only called when iOS detected & this.config.shouldDisableIOSArrowKeys = true
|
|
16
16
|
*/
|
|
17
17
|
declare function touchstartListener(e: Event): void;
|
|
18
18
|
/**
|
|
@@ -35,7 +35,7 @@ interface CSFCommonProps {
|
|
|
35
35
|
minimumExpiryDate?: string;
|
|
36
36
|
implementationType?: 'components' | 'custom';
|
|
37
37
|
maskSecurityCode: boolean;
|
|
38
|
-
|
|
38
|
+
shouldDisableIOSArrowKeys: boolean;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* The object sent when SecuredFieldsProvider initialises CSF
|
|
@@ -11,7 +11,7 @@ export declare const ENCRYPTED_BANK_LOCATION_FIELD = "encryptedBankLocationId";
|
|
|
11
11
|
export declare const ENCRYPTED_SECURITY_CODE_3_DIGITS = "encryptedSecurityCode3digits";
|
|
12
12
|
export declare const ENCRYPTED_SECURITY_CODE_4_DIGITS = "encryptedSecurityCode4digits";
|
|
13
13
|
export declare const GIFT_CARD = "giftcard";
|
|
14
|
-
export declare const SF_VERSION = "4.5.
|
|
14
|
+
export declare const SF_VERSION = "4.5.1";
|
|
15
15
|
export declare const DEFAULT_CARD_GROUP_TYPES: string[];
|
|
16
16
|
export declare const NON_CREDIT_CARD_TYPE_SECURED_FIELDS: string[];
|
|
17
17
|
export declare const CREDIT_CARD_SF_FIELDS: string[];
|
package/package.json
CHANGED