@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.
- 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/Sepa/Sepa.d.ts +1 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/internal/FormFields/InputBase.d.ts +4 -5
- package/dist/types/core/types.d.ts +3 -1
- package/package.json +1 -1
|
@@ -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?:
|
|
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({
|
|
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