@adyen/adyen-web 5.8.0 → 5.11.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.
Files changed (40) hide show
  1. package/dist/adyen.css +8 -7
  2. package/dist/adyen.css.map +1 -1
  3. package/dist/adyen.js +1 -1
  4. package/dist/adyen.js.map +1 -1
  5. package/dist/cjs/adyen.css +8 -7
  6. package/dist/cjs/adyen.css.map +1 -1
  7. package/dist/cjs/index.js +1 -1
  8. package/dist/es/adyen.css +8 -7
  9. package/dist/es/adyen.css.map +1 -1
  10. package/dist/es/index.js +1 -1
  11. package/dist/es.modern/adyen.css +8 -7
  12. package/dist/es.modern/adyen.css.map +1 -1
  13. package/dist/es.modern/index.js +1 -1
  14. package/dist/types/components/AmazonPay/types.d.ts +22 -0
  15. package/dist/types/components/ApplePay/types.d.ts +1 -1
  16. package/dist/types/components/Card/Bancontact.d.ts +11 -0
  17. package/dist/types/components/Card/Card.d.ts +11 -0
  18. package/dist/types/components/Card/components/CardInput/components/AvailableBrands/AvailableBrands.d.ts +10 -0
  19. package/dist/types/components/Card/components/CardInput/components/AvailableBrands/index.d.ts +1 -0
  20. package/dist/types/components/Card/components/CardInput/components/CardFields.d.ts +1 -1
  21. package/dist/types/components/Card/components/CardInput/components/CardFieldsWrapper.d.ts +3 -1
  22. package/dist/types/components/Card/components/CardInput/components/CardHolderName.d.ts +1 -1
  23. package/dist/types/components/Card/components/CardInput/components/types.d.ts +5 -3
  24. package/dist/types/components/Card/components/CardInput/types.d.ts +3 -1
  25. package/dist/types/components/Card/components/CardInput/utils.d.ts +1 -0
  26. package/dist/types/components/Card/types.d.ts +25 -3
  27. package/dist/types/components/Dropin/components/PaymentMethod/PaymentMethodBrands/CompactView.d.ts +8 -0
  28. package/dist/types/components/Dropin/components/PaymentMethod/PaymentMethodBrands/PaymentMethodBrands.d.ts +10 -0
  29. package/dist/types/components/Dropin/components/PaymentMethod/PaymentMethodBrands/index.d.ts +1 -0
  30. package/dist/types/components/Dropin/components/PaymentMethod/PaymentMethodItem.d.ts +2 -1
  31. package/dist/types/components/OnlineBankingIN/index.d.ts +6 -0
  32. package/dist/types/components/index.d.ts +2 -0
  33. package/dist/types/components/internal/Address/components/FieldContainer.d.ts +6 -0
  34. package/dist/types/components/internal/Address/types.d.ts +2 -1
  35. package/dist/types/components/internal/SecuredFields/SFP/SecuredFieldsProvider.d.ts +2 -2
  36. package/dist/types/components/internal/SecuredFields/SFP/SecuredFieldsProviderHandlers.d.ts +1 -1
  37. package/dist/types/components/internal/SecuredFields/lib/types.d.ts +3 -1
  38. package/dist/types/components/internal/SocialSecurityNumberBrazil/SocialSecurityNumberBrazil.d.ts +2 -2
  39. package/dist/types/core/core.d.ts +2 -1
  40. package/package.json +5 -5
@@ -10,9 +10,21 @@ declare global {
10
10
  declare type ButtonColor = 'Gold' | 'LightGray' | 'DarkGray';
11
11
  declare type Placement = 'Home' | 'Product' | 'Cart' | 'Checkout' | 'Other';
12
12
  declare type ProductType = 'PayOnly' | 'PayAndShip';
13
+ declare type ChargePermissionType = 'OneTime' | 'Recurring';
14
+ declare type FrequencyUnit = 'Year' | 'Month' | 'Week' | 'Day' | 'Variable';
13
15
  export declare type Currency = 'EUR' | 'GBP' | 'USD';
14
16
  export declare type Region = 'EU' | 'UK' | 'US';
15
17
  export declare type SupportedLocale = typeof SUPPORTED_LOCALES_EU[number] | typeof SUPPORTED_LOCALES_US[number];
18
+ export interface RecurringMetadata {
19
+ frequency: {
20
+ unit: string;
21
+ value: FrequencyUnit;
22
+ };
23
+ amount: {
24
+ amount: string;
25
+ currencyCode: Currency;
26
+ };
27
+ }
16
28
  export interface AmazonPayConfiguration {
17
29
  merchantId?: string;
18
30
  publicKeyId?: string;
@@ -26,6 +38,7 @@ export interface AmazonPayElementProps {
26
38
  amount?: PaymentAmount;
27
39
  buttonColor?: ButtonColor;
28
40
  cancelUrl?: string;
41
+ chargePermissionType?: ChargePermissionType;
29
42
  clientKey?: string;
30
43
  configuration?: AmazonPayConfiguration;
31
44
  currency?: Currency;
@@ -40,6 +53,7 @@ export interface AmazonPayElementProps {
40
53
  payButton?: any;
41
54
  placement?: Placement;
42
55
  productType?: ProductType;
56
+ recurringMetadata?: RecurringMetadata;
43
57
  region?: Region;
44
58
  returnUrl?: string;
45
59
  showChangePaymentDetailsButton: boolean;
@@ -59,6 +73,7 @@ export interface AmazonPayButtonProps {
59
73
  amazonRef: any;
60
74
  buttonColor?: ButtonColor;
61
75
  cancelUrl?: string;
76
+ chargePermissionType?: ChargePermissionType;
62
77
  clientKey?: string;
63
78
  configuration?: AmazonPayConfiguration;
64
79
  currency?: Currency;
@@ -69,6 +84,7 @@ export interface AmazonPayButtonProps {
69
84
  onError: (error: any, component: any) => void;
70
85
  placement?: Placement;
71
86
  productType?: ProductType;
87
+ recurringMetadata?: RecurringMetadata;
72
88
  ref: any;
73
89
  region?: Region;
74
90
  returnUrl?: string;
@@ -90,7 +106,9 @@ export interface OrderButtonProps {
90
106
  amazonCheckoutSessionId: string;
91
107
  amount: PaymentAmount;
92
108
  clientKey: string;
109
+ chargePermissionType?: ChargePermissionType;
93
110
  onError: (error: any, component: any) => void;
111
+ recurringMetadata: RecurringMetadata;
94
112
  ref: any;
95
113
  region: Region;
96
114
  returnUrl: string;
@@ -158,6 +176,7 @@ export declare type LedgerCurrencies = {
158
176
  };
159
177
  export interface PayloadJSON {
160
178
  addressDetails?: AddressDetails;
179
+ chargePermissionType?: ChargePermissionType;
161
180
  deliverySpecifications?: DeliverySpecifications;
162
181
  merchantMetadata?: MerchantMetadata;
163
182
  paymentDetails?: {
@@ -166,6 +185,7 @@ export interface PayloadJSON {
166
185
  presentmentCurrency: Currency;
167
186
  totalOrderAmount: ChargeAmount;
168
187
  };
188
+ recurringMetadata?: RecurringMetadata;
169
189
  storeId: string;
170
190
  webCheckoutDetails: {
171
191
  checkoutCancelUrl?: string;
@@ -183,10 +203,12 @@ export interface CheckoutDetailsRequest {
183
203
  }
184
204
  export interface UpdateAmazonCheckoutSessionRequest {
185
205
  amount: PaymentAmount;
206
+ chargePermissionType?: ChargePermissionType;
186
207
  checkoutCancelUrl?: string;
187
208
  checkoutResultReturnUrl: string;
188
209
  checkoutSessionId: string;
189
210
  publicKeyId: string;
211
+ recurringMetadata?: RecurringMetadata;
190
212
  region: Region;
191
213
  }
192
214
  export interface CheckoutSessionConfig {
@@ -83,7 +83,7 @@ export interface ApplePayElementProps extends UIElementProps {
83
83
  applicationData?: string;
84
84
  onClick?: (resolve: any, reject: any) => void;
85
85
  onAuthorized?: (resolve: any, reject: any, event: ApplePayJS.ApplePayPaymentAuthorizedEvent) => void;
86
- onValidateMerchant?: (resolve: any, reject: any, event: ApplePayJS.ApplePayValidateMerchantEvent) => void;
86
+ onValidateMerchant?: (resolve: any, reject: any, validationURL: string) => void;
87
87
  /**
88
88
  * {@link https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession/1778013-onpaymentmethodselected}
89
89
  * @param resolve(ApplePayPaymentMethodUpdate update) Completes the selection of a payment method with an update.
@@ -5,6 +5,7 @@ declare class BancontactElement extends CardElement {
5
5
  protected static defaultProps: {
6
6
  brands: string[];
7
7
  onBinLookup: () => void;
8
+ showBrandsUnderCardNumber: boolean;
8
9
  SRConfig: {};
9
10
  };
10
11
  /**
@@ -22,6 +23,14 @@ declare class BancontactElement extends CardElement {
22
23
  countryCode: any;
23
24
  configuration: {
24
25
  socialSecurityNumberMode: import("./types").SocialSecurityMode;
26
+ merchantIdentifier?: string;
27
+ merchantOrigin?: string;
28
+ gatewayMerchantId?: string;
29
+ publicKeyId?: string;
30
+ region?: string;
31
+ merchantName?: string;
32
+ merchantId?: string;
33
+ intent?: string;
25
34
  koreanAuthenticationRequired?: boolean;
26
35
  icon?: string;
27
36
  brandsConfiguration?: import("./types").CardBrandsConfiguration;
@@ -35,6 +44,8 @@ declare class BancontactElement extends CardElement {
35
44
  };
36
45
  brand?: string;
37
46
  brands?: string[];
47
+ showBrandsUnderCardNumber?: boolean;
48
+ showBrandIcon?: boolean;
38
49
  enableStoreDetails?: boolean;
39
50
  hideCVC?: boolean;
40
51
  hasHolderName?: boolean;
@@ -6,6 +6,7 @@ export declare class CardElement extends UIElement<CardElementProps> {
6
6
  static type: string;
7
7
  protected static defaultProps: {
8
8
  onBinLookup: () => void;
9
+ showBrandsUnderCardNumber: boolean;
9
10
  SRConfig: {};
10
11
  };
11
12
  setComponentRef: (ref: any) => void;
@@ -17,6 +18,14 @@ export declare class CardElement extends UIElement<CardElementProps> {
17
18
  countryCode: any;
18
19
  configuration: {
19
20
  socialSecurityNumberMode: import("./types").SocialSecurityMode;
21
+ merchantIdentifier?: string;
22
+ merchantOrigin?: string;
23
+ gatewayMerchantId?: string;
24
+ publicKeyId?: string;
25
+ region?: string;
26
+ merchantName?: string;
27
+ merchantId?: string;
28
+ intent?: string;
20
29
  koreanAuthenticationRequired?: boolean;
21
30
  icon?: string;
22
31
  brandsConfiguration?: import("./types").CardBrandsConfiguration;
@@ -30,6 +39,8 @@ export declare class CardElement extends UIElement<CardElementProps> {
30
39
  };
31
40
  brand?: string;
32
41
  brands?: string[];
42
+ showBrandsUnderCardNumber?: boolean;
43
+ showBrandIcon?: boolean;
33
44
  enableStoreDetails?: boolean;
34
45
  hideCVC?: boolean;
35
46
  hasHolderName?: boolean;
@@ -0,0 +1,10 @@
1
+ import { h } from 'preact';
2
+ import './AvailableBrands.scss';
3
+ import { BrandConfiguration } from '../../../../types';
4
+ declare type AvailableBrands = Array<BrandConfiguration>;
5
+ interface PaymentMethodBrandsProps {
6
+ brands: AvailableBrands;
7
+ activeBrand: string;
8
+ }
9
+ declare const AvailableBrands: ({ brands, activeBrand }: PaymentMethodBrandsProps) => h.JSX.Element;
10
+ export default AvailableBrands;
@@ -0,0 +1 @@
1
+ export { default } from './AvailableBrands';
@@ -1,3 +1,3 @@
1
1
  import { h } from 'preact';
2
2
  import { CardFieldsProps } from './types';
3
- export default function CardFields({ brand, brandsConfiguration, dualBrandingElements, dualBrandingChangeHandler, dualBrandingSelected, errors, focusedElement, hasCVC, cvcPolicy, expiryDatePolicy, onFocusField, showBrandIcon, valid }: CardFieldsProps): h.JSX.Element;
3
+ export default function CardFields({ brand, brandsIcons, brandsConfiguration, dualBrandingElements, dualBrandingChangeHandler, dualBrandingSelected, errors, focusedElement, hasCVC, cvcPolicy, expiryDatePolicy, onFocusField, showBrandIcon, showBrandsUnderCardNumber, valid }: CardFieldsProps): h.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { h } from 'preact';
2
- export declare const CardFieldsWrapper: ({ data, valid, errors, handleChangeFor, sfpState, setFocusOn, collateErrors, errorFieldId, cvcPolicy, focusedElement, hasInstallments, handleInstallments, showAmountsInInstallments, mergedSRErrors, moveFocus, showPanel, handleErrorPanelFocus, formData, formErrors, formValid, expiryDatePolicy, dualBrandSelectElements, extensions, selectedBrandValue, showKCP, showBrazilianSSN, socialSecurityNumber, handleOnStoreDetails, billingAddress, handleAddress, billingAddressRef, amount, billingAddressRequired, billingAddressRequiredFields, billingAddressAllowedCountries, brandsConfiguration, enableStoreDetails, hasCVC, hasHolderName, holderNameRequired, installmentOptions, placeholders, positionHolderNameOnTop, showBrandIcon }: {
2
+ export declare const CardFieldsWrapper: ({ data, valid, errors, handleChangeFor, sfpState, setFocusOn, collateErrors, errorFieldId, cvcPolicy, focusedElement, hasInstallments, handleInstallments, showAmountsInInstallments, brandsIcons, mergedSRErrors, moveFocus, showPanel, handleErrorPanelFocus, formData, formErrors, formValid, expiryDatePolicy, dualBrandSelectElements, extensions, selectedBrandValue, showKCP, showBrazilianSSN, socialSecurityNumber, handleOnStoreDetails, billingAddress, handleAddress, billingAddressRef, amount, billingAddressRequired, billingAddressRequiredFields, billingAddressAllowedCountries, brandsConfiguration, enableStoreDetails, hasCVC, hasHolderName, holderNameRequired, installmentOptions, placeholders, positionHolderNameOnTop, showBrandIcon, showBrandsUnderCardNumber }: {
3
3
  data: any;
4
4
  valid: any;
5
5
  errors: any;
@@ -13,6 +13,7 @@ export declare const CardFieldsWrapper: ({ data, valid, errors, handleChangeFor,
13
13
  hasInstallments: any;
14
14
  handleInstallments: any;
15
15
  showAmountsInInstallments: any;
16
+ brandsIcons: any;
16
17
  mergedSRErrors: any;
17
18
  moveFocus: any;
18
19
  showPanel: any;
@@ -44,4 +45,5 @@ export declare const CardFieldsWrapper: ({ data, valid, errors, handleChangeFor,
44
45
  placeholders: any;
45
46
  positionHolderNameOnTop: any;
46
47
  showBrandIcon: any;
48
+ showBrandsUnderCardNumber: any;
47
49
  }) => h.JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { h } from 'preact';
2
2
  import { CardHolderNameProps } from './types';
3
- export default function CardHolderName({ onChange, onInput, placeholder, value, required, error, isValid }: CardHolderNameProps): h.JSX.Element;
3
+ export default function CardHolderName({ onBlur, onInput, placeholder, value, required, error, isValid }: CardHolderNameProps): h.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { PaymentAmount } from '../../../../../types';
2
- import { CardBrandsConfiguration } from '../../../types';
2
+ import { BrandConfiguration, CardBrandsConfiguration } from '../../../types';
3
3
  import { ComponentChildren } from 'preact';
4
4
  import { CVCPolicyType, DatePolicyType } from '../../../../internal/SecuredFields/lib/types';
5
5
  export interface BrandIconProps {
@@ -8,6 +8,7 @@ export interface BrandIconProps {
8
8
  }
9
9
  export interface CardFieldsProps {
10
10
  brand?: string;
11
+ brandsIcons?: Array<BrandConfiguration>;
11
12
  brandsConfiguration?: CardBrandsConfiguration;
12
13
  dualBrandingChangeHandler?: any;
13
14
  dualBrandingElements?: any;
@@ -19,12 +20,13 @@ export interface CardFieldsProps {
19
20
  expiryDatePolicy?: DatePolicyType;
20
21
  onFocusField?: any;
21
22
  showBrandIcon?: boolean;
23
+ showBrandsUnderCardNumber: boolean;
22
24
  valid?: any;
23
25
  }
24
26
  export interface CardHolderNameProps {
25
27
  error: boolean;
26
28
  isValid: boolean;
27
- onChange: (event: Event) => void;
29
+ onBlur: (event: Event) => void;
28
30
  onInput: (event: Event) => void;
29
31
  placeholder?: string;
30
32
  required?: boolean;
@@ -107,7 +109,7 @@ export interface KCPProps {
107
109
  filled?: boolean;
108
110
  focusedElement: any;
109
111
  onFocusField: (str: string) => {};
110
- onChange: (event: Event) => void;
112
+ onBlur: (event: Event) => void;
111
113
  onInput: (event: Event) => void;
112
114
  taxNumber?: string;
113
115
  error: boolean;
@@ -1,5 +1,5 @@
1
1
  import Language from '../../../../language/Language';
2
- import { BinLookupResponse, CardBrandsConfiguration, CardConfiguration, DualBrandSelectElement } from '../../types';
2
+ import { BinLookupResponse, BrandConfiguration, CardBrandsConfiguration, CardConfiguration, DualBrandSelectElement } from '../../types';
3
3
  import { PaymentAmount } from '../../../../types';
4
4
  import { InstallmentOptions } from './components/types';
5
5
  import { ValidationResult } from '../../../internal/PersonalDetails/types';
@@ -52,6 +52,7 @@ export interface CardInputProps {
52
52
  brand?: string;
53
53
  brands?: string[];
54
54
  brandsConfiguration?: CardBrandsConfiguration;
55
+ brandsIcons: Array<BrandConfiguration>;
55
56
  clientKey: string;
56
57
  configuration?: CardConfiguration;
57
58
  countryCode?: string;
@@ -90,6 +91,7 @@ export interface CardInputProps {
90
91
  placeholders?: Placeholders;
91
92
  positionHolderNameOnTop?: boolean;
92
93
  setComponentRef?: (ref: any) => void;
94
+ showBrandsUnderCardNumber: boolean;
93
95
  showBrandIcon?: boolean;
94
96
  showInstallmentAmounts?: boolean;
95
97
  showPayButton?: boolean;
@@ -26,6 +26,7 @@ export declare const extractPropsForCardFields: (props: CardInputProps) => {
26
26
  };
27
27
  positionHolderNameOnTop: boolean;
28
28
  showBrandIcon: boolean;
29
+ showBrandsUnderCardNumber: boolean;
29
30
  lastFour: string;
30
31
  expiryMonth: string;
31
32
  expiryYear: string;
@@ -19,6 +19,16 @@ export interface CardElementProps extends UIElementProps {
19
19
  type?: string;
20
20
  /** List of brands accepted by the component */
21
21
  brands?: string[];
22
+ /**
23
+ * Show/hide available card brands under the Card number field
24
+ * @defaultValue `false`
25
+ */
26
+ showBrandsUnderCardNumber?: boolean;
27
+ /**
28
+ * Show/hide the brand logo when the card brand has been recognized
29
+ * @defaultValue `true`
30
+ */
31
+ showBrandIcon?: boolean;
22
32
  /** Show/hide the "store details" checkbox */
23
33
  enableStoreDetails?: boolean;
24
34
  /** Show/hide the CVC field - merchant set config option */
@@ -33,6 +43,7 @@ export interface CardElementProps extends UIElementProps {
33
43
  hasHolderName?: boolean;
34
44
  /** Whether the card holder name field will be required */
35
45
  holderNameRequired?: boolean;
46
+ /** An object sent in the /paymentMethods response */
36
47
  configuration?: CardConfiguration;
37
48
  /**
38
49
  * Called once all the card input fields have been created but are not yet ready to use.
@@ -70,16 +81,27 @@ export interface CardElementProps extends UIElementProps {
70
81
  [key: string]: any;
71
82
  }
72
83
  export declare type SocialSecurityMode = 'show' | 'hide' | 'auto';
84
+ /** If the merchant wishes to set any of these properties in their local config they should do so via a "configuration" object */
73
85
  export interface CardConfiguration {
86
+ merchantIdentifier?: string;
87
+ merchantOrigin?: string;
88
+ gatewayMerchantId?: string;
89
+ publicKeyId?: string;
90
+ region?: string;
91
+ merchantName?: string;
92
+ merchantId?: string;
93
+ intent?: string;
74
94
  koreanAuthenticationRequired?: boolean;
75
95
  socialSecurityNumberMode?: SocialSecurityMode;
76
96
  icon?: string;
77
97
  brandsConfiguration?: CardBrandsConfiguration;
78
98
  }
99
+ export interface BrandConfiguration {
100
+ name: string;
101
+ icon?: string;
102
+ }
79
103
  export interface CardBrandsConfiguration {
80
- [key: string]: {
81
- icon?: string;
82
- };
104
+ [key: string]: BrandConfiguration;
83
105
  }
84
106
  interface CardPaymentMethodData {
85
107
  type: string;
@@ -0,0 +1,8 @@
1
+ import { h } from 'preact';
2
+ import { BrandConfiguration } from '../../../../Card/types';
3
+ interface CompactViewProps {
4
+ brands: Array<BrandConfiguration>;
5
+ isPaymentMethodSelected: boolean;
6
+ }
7
+ declare const CompactView: ({ brands, isPaymentMethodSelected }: CompactViewProps) => h.JSX.Element;
8
+ export default CompactView;
@@ -0,0 +1,10 @@
1
+ import { h } from 'preact';
2
+ import { BrandConfiguration } from '../../../../Card/types';
3
+ interface PaymentMethodBrandsProps {
4
+ brands: Array<BrandConfiguration>;
5
+ isPaymentMethodSelected: boolean;
6
+ activeBrand?: string;
7
+ isCompactView?: boolean;
8
+ }
9
+ declare const PaymentMethodBrands: ({ activeBrand, brands, isPaymentMethodSelected, isCompactView }: PaymentMethodBrandsProps) => h.JSX.Element;
10
+ export default PaymentMethodBrands;
@@ -0,0 +1 @@
1
+ export { default } from './PaymentMethodBrands';
@@ -24,6 +24,7 @@ declare class PaymentMethodItem extends Component<PaymentMethodItemProps> {
24
24
  };
25
25
  state: {
26
26
  showDisableStoredPaymentMethodConfirmation: boolean;
27
+ activeBrand: any;
27
28
  };
28
29
  isMouseDown: boolean;
29
30
  onFocus: () => void;
@@ -43,7 +44,7 @@ declare class PaymentMethodItem extends Component<PaymentMethodItemProps> {
43
44
  onSelect: any;
44
45
  standalone: any;
45
46
  }, { activeBrand }: {
46
- activeBrand?: any;
47
+ activeBrand: any;
47
48
  }): h.JSX.Element;
48
49
  }
49
50
  export default PaymentMethodItem;
@@ -0,0 +1,6 @@
1
+ import IssuerListContainer from '../helpers/IssuerListContainer';
2
+ declare class OnlineBankingINElement extends IssuerListContainer {
3
+ static type: string;
4
+ formatProps(props: any): any;
5
+ }
6
+ export default OnlineBankingINElement;
@@ -46,6 +46,7 @@ import PersonalDetails from './PersonalDetails';
46
46
  import Klarna from './Klarna';
47
47
  import Twint from './Twint';
48
48
  import MealVoucherFR from './MealVoucherFR';
49
+ import OnlineBankingINElement from './OnlineBankingIN';
49
50
  /**
50
51
  * Maps each component with a Component element.
51
52
  */
@@ -121,6 +122,7 @@ declare const componentsMap: {
121
122
  molpay_ebanking_fpx_MY: typeof MolPayEBankingMY;
122
123
  molpay_ebanking_TH: typeof MolPayEBankingTH;
123
124
  molpay_ebanking_VN: typeof MolPayEBankingVN;
125
+ onlinebanking_IN: typeof OnlineBankingINElement;
124
126
  openbanking_UK: typeof OpenBankingUK;
125
127
  paypal: typeof PayPal;
126
128
  payu_IN_cashcard: typeof PayuCashcard;
@@ -1,4 +1,10 @@
1
1
  import { h } from 'preact';
2
2
  import { FieldContainerProps } from '../types';
3
+ /**
4
+ * USAGE: Specifically defined as a util to provide a wrapper for fields created within the Address component
5
+ *
6
+ * NOT TO BE USED: if you just want to add a Country or State dropdown outside of an Address component
7
+ * - then you should implement <CountryField> or <StateField> directly
8
+ */
3
9
  declare function FieldContainer(props: FieldContainerProps): h.JSX.Element;
4
10
  export default FieldContainer;
@@ -34,11 +34,12 @@ export interface FieldContainerProps {
34
34
  key: string;
35
35
  valid?: object;
36
36
  onInput?: (e: Event) => void;
37
- onChange?: (e: Event) => void;
37
+ onBlur?: (e: Event) => void;
38
38
  onDropdownChange: (e: Event) => void;
39
39
  readOnly?: boolean;
40
40
  specifications: Specifications;
41
41
  maxlength?: number;
42
+ trimOnBlur?: boolean;
42
43
  }
43
44
  export interface ReadOnlyAddressProps {
44
45
  data: AddressData;
@@ -7,8 +7,8 @@ import { BinLookupResponse } from '../../../Card/types';
7
7
  * Initialises & handles the client-side part of SecuredFields
8
8
  */
9
9
  declare class SecuredFieldsProvider extends Component<SFPProps, SFPState> {
10
- private originKeyErrorTimeout;
11
- private originKeyTimeoutMS;
10
+ private invalidOriginErrorTimeout;
11
+ private invalidOriginTimeoutMS;
12
12
  private numCharsInField;
13
13
  private rootNode;
14
14
  private numDateFields;
@@ -1,6 +1,6 @@
1
1
  import { CbObjOnError, CbObjOnFocus, CbObjOnBrand, CbObjOnAllValid, CbObjOnFieldValid, CbObjOnAutoComplete, CbObjOnConfigSuccess, CbObjOnLoad } from '../lib/types';
2
2
  /**
3
- * Emits the onConfigSuccess (ready) event
3
+ * Emits the onLoad event
4
4
  * Here we can assume CSF is loaded and ready to be used
5
5
  */
6
6
  declare function handleOnLoad(cbObj: CbObjOnLoad): void;
@@ -83,6 +83,7 @@ export interface CbObjOnFieldValid {
83
83
  rootNode: HTMLElement;
84
84
  blob?: string;
85
85
  endDigits?: string;
86
+ issuerBin?: number;
86
87
  }
87
88
  export interface CbObjOnAutoComplete {
88
89
  fieldType: string;
@@ -102,8 +103,8 @@ export interface CbObjOnBinLookup {
102
103
  supportedBrands?: string[];
103
104
  brands?: string[];
104
105
  supportedBrandsRaw?: BrandObject[];
105
- isReset?: boolean;
106
106
  rootNode?: HTMLElement;
107
+ isReset?: boolean;
107
108
  }
108
109
  export interface CbObjOnError {
109
110
  fieldType: string;
@@ -150,6 +151,7 @@ export interface SFFeedbackObj {
150
151
  maxLength?: number;
151
152
  error?: string;
152
153
  endDigits?: string;
154
+ issuerBin?: string;
153
155
  type?: string;
154
156
  binValue?: string;
155
157
  focus?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { h } from 'preact';
2
- export default function ({ onChange, onInput, valid, error, data, required }: {
3
- onChange: any;
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
- private paymentMethodsResponse;
9
+ paymentMethodsResponse: PaymentMethodsResponse;
9
10
  modules: any;
10
11
  options: CoreOptions;
11
12
  components: any[];
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.8.0",
26
+ "version": "5.11.0",
27
27
  "license": "MIT",
28
28
  "homepage": "https://docs.adyen.com/checkout",
29
29
  "repository": "github:Adyen/adyen-web",
@@ -51,7 +51,7 @@
51
51
  "devDependencies": {
52
52
  "@babel/cli": "^7.16.0",
53
53
  "@babel/core": "^7.16.0",
54
- "@babel/plugin-transform-runtime": "^7.15.8",
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",
@@ -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.3.6",
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,12 +84,12 @@
84
84
  "gzip-size": "^6.0.0",
85
85
  "jest": "^26.6.3",
86
86
  "node-sass": "^6.0.1",
87
- "postcss": "^8.4.5",
87
+ "postcss": "^8.4.7",
88
88
  "postcss-reporter": "^7.0.2",
89
89
  "prettier": "^1.19.1",
90
90
  "rollup": "^2.61.1",
91
91
  "rollup-plugin-esbuild": "^4.5.0",
92
- "rollup-plugin-postcss": "^4.0.0",
92
+ "rollup-plugin-postcss": "^4.0.2",
93
93
  "rollup-plugin-terser": "^7.0.2",
94
94
  "rollup-plugin-visualizer": "^5.5.1",
95
95
  "stylelint": "^13.13.1",