@adyen/adyen-web 5.66.1 → 5.67.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/dist/adyen.js +1 -1
- package/dist/adyen.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es.modern/index.js +1 -1
- package/dist/types/components/Card/Bancontact.d.ts +3 -7
- package/dist/types/components/Card/Card.d.ts +3 -10
- package/dist/types/components/Card/components/CardInput/defaultProps.d.ts +26 -16
- package/dist/types/components/Card/types.d.ts +6 -1
- package/dist/types/components/GooglePay/components/GooglePayButton.d.ts +1 -0
- package/dist/types/components/GooglePay/types.d.ts +1 -0
- package/dist/types/components/SecuredFields/SecuredFields.d.ts +2 -0
- package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts +1 -0
- package/dist/types/components/internal/FormFields/Select/Select.d.ts +1 -1
- package/dist/types/components/internal/FormFields/Select/types.d.ts +2 -0
- package/dist/types/core/Analytics/types.d.ts +50 -0
- package/dist/types/core/Analytics/utils.d.ts +3 -1
- package/dist/types/core/RiskModule/RiskModule.d.ts +1 -0
- package/package.json +2 -2
|
@@ -3,13 +3,7 @@ import { CardElementData, CardElementProps } from './types';
|
|
|
3
3
|
declare class BancontactElement extends CardElement {
|
|
4
4
|
static type: string;
|
|
5
5
|
constructor(props: CardElementProps);
|
|
6
|
-
protected static defaultProps:
|
|
7
|
-
brands: string[];
|
|
8
|
-
onBinLookup: () => void;
|
|
9
|
-
showBrandsUnderCardNumber: boolean;
|
|
10
|
-
showFormInstruction: boolean;
|
|
11
|
-
_disableClickToPay: boolean;
|
|
12
|
-
};
|
|
6
|
+
protected static defaultProps: any;
|
|
13
7
|
formatData(): CardElementData;
|
|
14
8
|
/**
|
|
15
9
|
* Now that the Bancontact (BCMC) Card component can accept a number dual branded with Visa (which requires a CVC) it has to be handled differently
|
|
@@ -23,6 +17,7 @@ declare class BancontactElement extends CardElement {
|
|
|
23
17
|
holderNameRequired: boolean;
|
|
24
18
|
hasCVC: boolean;
|
|
25
19
|
billingAddressRequired: any;
|
|
20
|
+
billingAddressMode: any;
|
|
26
21
|
countryCode: any;
|
|
27
22
|
configuration: {
|
|
28
23
|
socialSecurityNumberMode: import("./types").SocialSecurityMode;
|
|
@@ -67,6 +62,7 @@ declare class BancontactElement extends CardElement {
|
|
|
67
62
|
hasHolderName?: boolean;
|
|
68
63
|
onLoad?: (event: import("../internal/SecuredFields/lib/types").CbObjOnLoad) => void;
|
|
69
64
|
onConfigSuccess?: (event: import("../internal/SecuredFields/lib/types").CbObjOnConfigSuccess) => void;
|
|
65
|
+
onAllValid?: (event: import("../internal/SecuredFields/lib/types").CbObjOnAllValid) => void;
|
|
70
66
|
onFieldValid?: (event: import("../internal/SecuredFields/lib/types").CbObjOnFieldValid) => void;
|
|
71
67
|
onBrand?: (event: import("../internal/SecuredFields/lib/types").CbObjOnBrand) => void;
|
|
72
68
|
onError?: (event: import("../internal/SecuredFields/lib/types").CbObjOnError) => void;
|
|
@@ -12,18 +12,14 @@ export declare class CardElement extends UIElement<CardElementProps> {
|
|
|
12
12
|
*/
|
|
13
13
|
private clickToPayRef;
|
|
14
14
|
constructor(props: any);
|
|
15
|
-
protected static defaultProps:
|
|
16
|
-
onBinLookup: () => void;
|
|
17
|
-
showBrandsUnderCardNumber: boolean;
|
|
18
|
-
showFormInstruction: boolean;
|
|
19
|
-
_disableClickToPay: boolean;
|
|
20
|
-
};
|
|
15
|
+
protected static defaultProps: any;
|
|
21
16
|
setStatus(status: UIElementStatus, props?: any): this;
|
|
22
17
|
private setClickToPayRef;
|
|
23
18
|
formatProps(props: CardElementProps): {
|
|
24
19
|
holderNameRequired: boolean;
|
|
25
20
|
hasCVC: boolean;
|
|
26
21
|
billingAddressRequired: any;
|
|
22
|
+
billingAddressMode: any;
|
|
27
23
|
type: string;
|
|
28
24
|
countryCode: any;
|
|
29
25
|
configuration: {
|
|
@@ -73,6 +69,7 @@ export declare class CardElement extends UIElement<CardElementProps> {
|
|
|
73
69
|
hasHolderName?: boolean;
|
|
74
70
|
onLoad?: (event: import("../internal/SecuredFields/lib/types").CbObjOnLoad) => void;
|
|
75
71
|
onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
|
|
72
|
+
onAllValid?: (event: import("../internal/SecuredFields/lib/types").CbObjOnAllValid) => void;
|
|
76
73
|
onFieldValid?: (event: import("../internal/SecuredFields/lib/types").CbObjOnFieldValid) => void;
|
|
77
74
|
onBrand?: (event: import("../internal/SecuredFields/lib/types").CbObjOnBrand) => void;
|
|
78
75
|
onError?: (event: import("../internal/SecuredFields/lib/types").CbObjOnError) => void;
|
|
@@ -98,10 +95,6 @@ export declare class CardElement extends UIElement<CardElementProps> {
|
|
|
98
95
|
secondaryAmount?: import("../../types").PaymentAmountExtended;
|
|
99
96
|
showPayButton?: boolean;
|
|
100
97
|
setStatusAutomatically?: boolean;
|
|
101
|
-
/**
|
|
102
|
-
* Click to Pay configuration
|
|
103
|
-
* - If email is set explicitly in the configuration, then it can override the one used in the session creation
|
|
104
|
-
*/
|
|
105
98
|
payButton?: (options: PayButtonFunctionProps) => h.JSX.Element;
|
|
106
99
|
loadingContext?: string;
|
|
107
100
|
createFromAction?: (action: import("../../types").PaymentAction, props: object) => UIElement<any>;
|
|
@@ -3,25 +3,39 @@ import { AddressModeOptions } from './types';
|
|
|
3
3
|
declare const _default: {
|
|
4
4
|
type: string;
|
|
5
5
|
setComponentRef: () => void;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
enableStoreDetails: boolean;
|
|
9
|
-
hasCVC: boolean;
|
|
10
|
-
showBrandIcon: boolean;
|
|
11
|
-
showBrandsUnderCardNumber: boolean;
|
|
12
|
-
positionHolderNameOnTop: boolean;
|
|
13
|
-
billingAddressRequired: boolean;
|
|
6
|
+
autoFocus: boolean;
|
|
7
|
+
billingAddressAllowedCountries: any[];
|
|
14
8
|
billingAddressMode: AddressModeOptions;
|
|
9
|
+
billingAddressRequired: boolean;
|
|
15
10
|
billingAddressRequiredFields: string[];
|
|
16
|
-
installmentOptions: {};
|
|
17
11
|
configuration: {
|
|
18
12
|
koreanAuthenticationRequired: boolean;
|
|
19
13
|
socialSecurityNumberMode: SocialSecurityMode;
|
|
20
14
|
};
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
data: {
|
|
16
|
+
billingAddress: {};
|
|
17
|
+
};
|
|
23
18
|
disableIOSArrowKeys: boolean;
|
|
19
|
+
enableStoreDetails: boolean;
|
|
24
20
|
exposeExpiryDate: boolean;
|
|
21
|
+
forceCompat: boolean;
|
|
22
|
+
hasHolderName: boolean;
|
|
23
|
+
holderNameRequired: boolean;
|
|
24
|
+
hasCVC: boolean;
|
|
25
|
+
hideCVC: boolean;
|
|
26
|
+
installmentOptions: {};
|
|
27
|
+
keypadFix: boolean;
|
|
28
|
+
legacyInputMode: boolean;
|
|
29
|
+
maskSecurityCode: boolean;
|
|
30
|
+
minimumExpiryDate: any;
|
|
31
|
+
name: any;
|
|
32
|
+
placeholders: {};
|
|
33
|
+
positionHolderNameOnTop: boolean;
|
|
34
|
+
showBrandIcon: boolean;
|
|
35
|
+
showBrandsUnderCardNumber: boolean;
|
|
36
|
+
showInstallmentAmounts: any;
|
|
37
|
+
styles: {};
|
|
38
|
+
isPayButtonPrimaryVariant: boolean;
|
|
25
39
|
onLoad: () => any;
|
|
26
40
|
onConfigSuccess: () => any;
|
|
27
41
|
onAllValid: () => any;
|
|
@@ -32,10 +46,6 @@ declare const _default: {
|
|
|
32
46
|
onBlur: () => any;
|
|
33
47
|
onFocus: () => any;
|
|
34
48
|
onChange: () => any;
|
|
35
|
-
|
|
36
|
-
billingAddress: {};
|
|
37
|
-
};
|
|
38
|
-
styles: {};
|
|
39
|
-
placeholders: {};
|
|
49
|
+
onBinLookup: () => void;
|
|
40
50
|
};
|
|
41
51
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentFocusObject, UIElementProps } from '../types';
|
|
2
2
|
import { AddressData, BrowserInfo } from '../../types';
|
|
3
|
-
import { CbObjOnBinValue, CbObjOnBrand, CbObjOnConfigSuccess, CbObjOnError, CbObjOnFieldValid, CbObjOnFocus, CbObjOnLoad, CbObjOnBinLookup, CVCPolicyType, DatePolicyType } from '../internal/SecuredFields/lib/types';
|
|
3
|
+
import { CbObjOnBinValue, CbObjOnBrand, CbObjOnConfigSuccess, CbObjOnError, CbObjOnFieldValid, CbObjOnFocus, CbObjOnLoad, CbObjOnBinLookup, CVCPolicyType, DatePolicyType, CbObjOnAllValid } from '../internal/SecuredFields/lib/types';
|
|
4
4
|
import { ClickToPayConfiguration } from '../internal/ClickToPay/types';
|
|
5
5
|
export interface CardElementProps extends UIElementProps {
|
|
6
6
|
/**
|
|
@@ -78,6 +78,11 @@ export interface CardElementProps extends UIElementProps {
|
|
|
78
78
|
* Called once the card input fields are ready to use.
|
|
79
79
|
*/
|
|
80
80
|
onConfigSuccess?: (event: CbObjOnConfigSuccess) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Called when *all* the securedFields becomes valid
|
|
83
|
+
* Also called again if one of the fields moves out of validity.
|
|
84
|
+
*/
|
|
85
|
+
onAllValid?: (event: CbObjOnAllValid) => void;
|
|
81
86
|
/**
|
|
82
87
|
* Called when a field becomes valid and also if a valid field changes and becomes invalid.
|
|
83
88
|
* For the card number field, it returns the last 4 digits of the card number.
|
|
@@ -6,6 +6,7 @@ interface GooglePayButtonProps {
|
|
|
6
6
|
buttonType: google.payments.api.ButtonType;
|
|
7
7
|
buttonSizeMode: google.payments.api.ButtonSizeMode;
|
|
8
8
|
buttonLocale: string;
|
|
9
|
+
buttonRadius?: number;
|
|
9
10
|
buttonRootNode?: HTMLDocument | ShadowRoot;
|
|
10
11
|
paymentsClient: Promise<google.payments.api.PaymentsClient>;
|
|
11
12
|
onClick: (e: Event) => void;
|
|
@@ -131,6 +131,7 @@ export interface GooglePayProps extends UIElementProps {
|
|
|
131
131
|
buttonSizeMode?: google.payments.api.ButtonSizeMode;
|
|
132
132
|
buttonRootNode?: HTMLDocument | ShadowRoot;
|
|
133
133
|
buttonLocale?: string;
|
|
134
|
+
buttonRadius?: number;
|
|
134
135
|
onClick?: (resolve: any, reject: any) => void;
|
|
135
136
|
onAuthorized?: (paymentData: google.payments.api.PaymentData) => void;
|
|
136
137
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h } from 'preact';
|
|
2
2
|
import UIElement from '../UIElement';
|
|
3
3
|
import { CbObjOnBinLookup } from '../internal/SecuredFields/lib/types';
|
|
4
|
+
import { SendAnalyticsObject } from '../../core/Analytics/types';
|
|
4
5
|
export declare class SecuredFieldsElement extends UIElement {
|
|
5
6
|
static type: string;
|
|
6
7
|
static analyticsType: string;
|
|
@@ -16,6 +17,7 @@ export declare class SecuredFieldsElement extends UIElement {
|
|
|
16
17
|
paymentMethod: any;
|
|
17
18
|
browserInfo: import("../../types").BrowserInfo;
|
|
18
19
|
};
|
|
20
|
+
protected submitAnalytics(analyticsObj: SendAnalyticsObject): void;
|
|
19
21
|
updateStyles(stylesObj: any): this;
|
|
20
22
|
setFocusOn(frame: any): this;
|
|
21
23
|
processBinLookupResponse(binLookupResponse: any): this;
|
|
@@ -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, selectedValue, name, isInvalid, isValid, placeholder, uniqueId, disabled, disableTextFilter, clearOnSelect, blurOnClose, onListToggle }: SelectProps): h.JSX.Element;
|
|
4
|
+
declare function Select({ items, className, classNameModifiers, filterable, readonly, onChange, onInput, selectedValue, name, isInvalid, isValid, placeholder, uniqueId, disabled, disableTextFilter, clearOnSelect, blurOnClose, onListToggle, allowIdOnButton }: SelectProps): h.JSX.Element;
|
|
5
5
|
declare namespace Select {
|
|
6
6
|
var defaultProps: {
|
|
7
7
|
className: string;
|
|
@@ -32,6 +32,7 @@ export interface SelectProps {
|
|
|
32
32
|
clearOnSelect?: boolean;
|
|
33
33
|
blurOnClose?: boolean;
|
|
34
34
|
onListToggle?: (isOpen: boolean) => void;
|
|
35
|
+
allowIdOnButton?: boolean;
|
|
35
36
|
}
|
|
36
37
|
export interface SelectButtonProps {
|
|
37
38
|
inputText: string;
|
|
@@ -53,6 +54,7 @@ export interface SelectButtonProps {
|
|
|
53
54
|
id?: string;
|
|
54
55
|
ariaDescribedBy: string;
|
|
55
56
|
disabled: boolean;
|
|
57
|
+
allowIdOnButton?: boolean;
|
|
56
58
|
}
|
|
57
59
|
export interface SelectListProps {
|
|
58
60
|
active: SelectItem;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PaymentAmount } from '../../types';
|
|
2
2
|
import { CoreOptions } from '../types';
|
|
3
|
+
import { SocialSecurityMode } from '../../components/Card/types';
|
|
3
4
|
export interface Experiment {
|
|
4
5
|
controlGroup: boolean;
|
|
5
6
|
experimentId: string;
|
|
@@ -75,6 +76,7 @@ export interface AnalyticsObject {
|
|
|
75
76
|
isExpress?: boolean;
|
|
76
77
|
expressPage?: string;
|
|
77
78
|
result?: string;
|
|
79
|
+
configData?: any;
|
|
78
80
|
}
|
|
79
81
|
export type ANALYTICS_EVENT = 'log' | 'error' | 'info';
|
|
80
82
|
export type CreateAnalyticsObject = Omit<AnalyticsObject, 'timestamp' | 'id'> & {
|
|
@@ -107,3 +109,51 @@ export type FieldErrorAnalyticsObject = {
|
|
|
107
109
|
fieldType: string;
|
|
108
110
|
errorCode: string;
|
|
109
111
|
};
|
|
112
|
+
export type ConfigData = CardConfigData;
|
|
113
|
+
export type CardConfigData = {
|
|
114
|
+
autoFocus: boolean;
|
|
115
|
+
billingAddressAllowedCountries: string;
|
|
116
|
+
billingAddressMode: 'full' | 'partial' | 'lookup' | 'none';
|
|
117
|
+
billingAddressRequired: boolean;
|
|
118
|
+
billingAddressRequiredFields: string;
|
|
119
|
+
brands: string;
|
|
120
|
+
challengeWindowSize: string;
|
|
121
|
+
disableIOSArrowKeys: boolean;
|
|
122
|
+
doBinLookup: boolean;
|
|
123
|
+
enableStoreDetails: boolean;
|
|
124
|
+
exposeExpiryDate: boolean;
|
|
125
|
+
forceCompat: boolean;
|
|
126
|
+
hasBrandsConfiguration: boolean;
|
|
127
|
+
hasData: boolean;
|
|
128
|
+
hasDisclaimerMessage: boolean;
|
|
129
|
+
hasHolderName: boolean;
|
|
130
|
+
hasPlaceholders: boolean;
|
|
131
|
+
hasInstallmentOptions: boolean;
|
|
132
|
+
hideCVC: boolean;
|
|
133
|
+
holderNameRequired: boolean;
|
|
134
|
+
hasStylesConfigured: boolean;
|
|
135
|
+
keypadFix: boolean;
|
|
136
|
+
legacyInputMode: boolean;
|
|
137
|
+
maskSecurityCode: boolean;
|
|
138
|
+
minimumExpiryDate: boolean;
|
|
139
|
+
name: string;
|
|
140
|
+
positionHolderNameOnTop: boolean;
|
|
141
|
+
riskEnabled: boolean;
|
|
142
|
+
showBrandIcon: boolean;
|
|
143
|
+
showBrandsUnderCardNumber: boolean;
|
|
144
|
+
showInstallmentAmounts: boolean;
|
|
145
|
+
showKCPType: 'none' | 'auto' | 'atStart';
|
|
146
|
+
showPayButton: boolean;
|
|
147
|
+
socialSecurityNumberMode: SocialSecurityMode;
|
|
148
|
+
srPanelEnabled: boolean;
|
|
149
|
+
srPanelMoveFocus: boolean;
|
|
150
|
+
hasOnAllValid: boolean;
|
|
151
|
+
hasOnBinLookup: boolean;
|
|
152
|
+
hasOnBinValue: boolean;
|
|
153
|
+
hasOnBlur: boolean;
|
|
154
|
+
hasOnBrand: boolean;
|
|
155
|
+
hasOnConfigSuccess: boolean;
|
|
156
|
+
hasOnFieldValid: boolean;
|
|
157
|
+
hasOnFocus: boolean;
|
|
158
|
+
hasOnLoad: boolean;
|
|
159
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AnalyticsData, AnalyticsObject, CreateAnalyticsObject } from './types';
|
|
1
|
+
import { AnalyticsData, AnalyticsObject, CardConfigData, CreateAnalyticsObject } from './types';
|
|
2
|
+
import { CardElementProps } from '../../components/Card/types';
|
|
2
3
|
export declare const getUTCTimestamp: () => number;
|
|
3
4
|
/**
|
|
4
5
|
* All objects for the /checkoutanalytics endpoint have base props:
|
|
@@ -20,3 +21,4 @@ export declare const getUTCTimestamp: () => number;
|
|
|
20
21
|
*/
|
|
21
22
|
export declare const createAnalyticsObject: (aObj: CreateAnalyticsObject) => AnalyticsObject;
|
|
22
23
|
export declare const processAnalyticsData: (analyticsData: AnalyticsData) => AnalyticsData;
|
|
24
|
+
export declare const getCardConfigData: (cardProps: CardElementProps) => CardConfigData;
|
|
@@ -29,6 +29,7 @@ export default class RiskElement extends BaseElement<RiskModuleProps> {
|
|
|
29
29
|
onError: (error: any) => void;
|
|
30
30
|
get isValid(): any;
|
|
31
31
|
get data(): RiskData;
|
|
32
|
+
get enabled(): boolean;
|
|
32
33
|
cleanUp: () => void;
|
|
33
34
|
componentWillUnmount(): void;
|
|
34
35
|
render(): h.JSX.Element;
|
package/package.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"./dist/es/adyen.css": "./dist/es/adyen.css",
|
|
26
26
|
"./package.json": "./package.json"
|
|
27
27
|
},
|
|
28
|
-
"version": "5.
|
|
28
|
+
"version": "5.67.0",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"homepage": "https://docs.adyen.com/checkout",
|
|
31
31
|
"repository": "github:Adyen/adyen-web",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"@babel/runtime": "^7.15.4",
|
|
126
126
|
"@babel/runtime-corejs3": "^7.20.1",
|
|
127
127
|
"@types/applepayjs": "14.0.6",
|
|
128
|
-
"@types/googlepay": "
|
|
128
|
+
"@types/googlepay": "0.7.6",
|
|
129
129
|
"classnames": "^2.3.1",
|
|
130
130
|
"core-js-pure": "^3.25.3",
|
|
131
131
|
"preact": "10.13.2"
|