@adyen/adyen-web 5.52.0 → 5.53.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.
@@ -9,6 +9,7 @@ declare class SepaElement extends UIElement {
9
9
  protected static defaultProps: {
10
10
  showFormInstruction: boolean;
11
11
  };
12
+ constructor(props: any);
12
13
  /**
13
14
  * Formats props on construction time
14
15
  */
@@ -183,6 +183,7 @@ declare const componentsMap: {
183
183
  /** Redirect */
184
184
  /** Klarna */
185
185
  klarna: typeof Klarna;
186
+ klarna_b2b: typeof Klarna;
186
187
  klarna_account: typeof Klarna;
187
188
  klarna_paynow: typeof Klarna;
188
189
  /** Klarna */
@@ -1,5 +1,4 @@
1
- import { h } from 'preact';
2
- import { MutableRef } from 'preact/hooks';
1
+ import { h, RefCallback } from 'preact';
3
2
  import Language from '../../../language';
4
3
  import './FormFields.scss';
5
4
  export interface InputBaseProps extends h.JSX.HTMLAttributes {
@@ -14,16 +13,16 @@ export interface InputBaseProps extends h.JSX.HTMLAttributes {
14
13
  value?: string;
15
14
  name?: string;
16
15
  checked?: boolean;
17
- setRef?: (ref: MutableRef<EventTarget>) => void;
16
+ setRef?: RefCallback<HTMLInputElement>;
18
17
  trimOnBlur?: boolean;
19
18
  i18n?: Language;
20
19
  label?: string;
21
- onCreateRef?(reference: HTMLInputElement): void;
22
20
  onBlurHandler?: h.JSX.GenericEventHandler<HTMLInputElement>;
23
21
  onFocusHandler?: h.JSX.GenericEventHandler<HTMLInputElement>;
24
22
  maxlength?: number | null;
23
+ addContextualElement?: boolean;
25
24
  }
26
- declare function InputBase({ onCreateRef, ...props }: InputBaseProps): h.JSX.Element;
25
+ declare function InputBase({ setRef, ...props }: InputBaseProps): h.JSX.Element;
27
26
  declare namespace InputBase {
28
27
  var defaultProps: {
29
28
  type: string;
@@ -3,7 +3,7 @@ import { PaymentMethods, PaymentMethodOptions, PaymentActionsType, PaymentAmount
3
3
  import { AnalyticsOptions } from './Analytics/types';
4
4
  import { PaymentMethodsResponse } from './ProcessResponse/PaymentMethodsResponse/types';
5
5
  import { RiskModuleOptions } from './RiskModule/RiskModule';
6
- import { ActionHandledReturnObject, OnPaymentCompletedData, PaymentData } from '../components/types';
6
+ import { ActionHandledReturnObject, OnPaymentCompletedData, PaymentData, UIElementProps } from '../components/types';
7
7
  import UIElement from '../components/UIElement';
8
8
  import AdyenCheckoutError from './Errors/AdyenCheckoutError';
9
9
  import { GiftCardElementData } from '../components/Giftcard/types';
@@ -126,5 +126,7 @@ export type PaymentMethodsConfiguration = {
126
126
  [key in keyof PaymentMethods]?: Partial<PaymentMethodOptions<key>>;
127
127
  } | {
128
128
  [key in PaymentActionsType]?: any;
129
+ } | {
130
+ [key: string]: UIElementProps;
129
131
  };
130
132
  export {};
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "./dist/es/adyen.css": "./dist/es/adyen.css",
25
25
  "./package.json": "./package.json"
26
26
  },
27
- "version": "5.52.0",
27
+ "version": "5.53.0",
28
28
  "license": "MIT",
29
29
  "homepage": "https://docs.adyen.com/checkout",
30
30
  "repository": "github:Adyen/adyen-web",