@adyen/adyen-web 5.49.2 → 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/Card/Card.d.ts +5 -1
- package/dist/types/components/Card/components/CardInput/utils.d.ts +2 -1
- package/dist/types/components/Doku/Doku.d.ts +1 -1
- package/dist/types/components/Dragonpay/types.d.ts +2 -2
- package/dist/types/components/Econtext/Econtext.d.ts +1 -1
- package/dist/types/components/GooglePay/types.d.ts +10 -2
- package/dist/types/components/Redirect/Redirect.d.ts +1 -1
- package/dist/types/components/SecuredFields/SecuredFields.d.ts +1 -1
- 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/dist/types/components/internal/SecuredFields/utils.d.ts +1 -1
- package/dist/types/components/types.d.ts +1 -1
- package/dist/types/core/Context/Resources.d.ts +15 -2
- package/dist/types/core/Context/useImage.d.ts +3 -2
- package/dist/types/utils/get-image.d.ts +0 -13
- package/dist/types/utils/get-issuer-image.d.ts +2 -1
- package/package.json +9 -9
- package/dist/types/components/internal/FormFields/index.d.ts +0 -5
|
@@ -91,6 +91,10 @@ export declare class CardElement extends UIElement<CardElementProps> {
|
|
|
91
91
|
onAdditionalDetails?: (state: any, element: UIElement<any>) => void;
|
|
92
92
|
onPaymentCompleted?: (result: any, element: UIElement<any>) => void;
|
|
93
93
|
beforeRedirect?: (resolve: any, reject: any, redirectData: any, element: UIElement<any>) => void;
|
|
94
|
+
/**
|
|
95
|
+
* Click to Pay configuration
|
|
96
|
+
* - If email is set explicitly in the configuration, then it can override the one used in the session creation
|
|
97
|
+
*/
|
|
94
98
|
isInstantPayment?: boolean;
|
|
95
99
|
name?: string;
|
|
96
100
|
amount?: import("../../types").PaymentAmount;
|
|
@@ -126,7 +130,7 @@ export declare class CardElement extends UIElement<CardElementProps> {
|
|
|
126
130
|
onBinLookup(obj: CbObjOnBinLookup): void;
|
|
127
131
|
onBinValue: (callbackObj: import("../internal/SecuredFields/lib/types").CbObjOnBinValue) => void;
|
|
128
132
|
get isValid(): boolean;
|
|
129
|
-
get icon():
|
|
133
|
+
get icon(): string;
|
|
130
134
|
get brands(): {
|
|
131
135
|
icon: any;
|
|
132
136
|
name: string;
|
|
@@ -3,7 +3,8 @@ import { AddressModeOptions, CardInputProps, LayoutObj } from './types';
|
|
|
3
3
|
import { AddressSpecifications, StringObject } from '../../../internal/Address/types';
|
|
4
4
|
import { InstallmentsObj } from './components/Installments/Installments';
|
|
5
5
|
import { SFPProps } from '../../../internal/SecuredFields/SFP/types';
|
|
6
|
-
|
|
6
|
+
import { UseImageHookType } from '../../../../core/Context/useImage';
|
|
7
|
+
export declare const getCardImageUrl: (brand: string, getImage: UseImageHookType) => string;
|
|
7
8
|
/**
|
|
8
9
|
* Verifies that installment object is valid to send to the Backend.
|
|
9
10
|
* Valid means that it has 'revolving' plan set, or the number of installments is bigger than one
|
|
@@ -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 {
|
|
@@ -88,11 +88,15 @@ export interface GooglePayProps extends UIElementProps {
|
|
|
88
88
|
*/
|
|
89
89
|
shippingAddressRequired?: boolean;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* If shippingAddressRequired is set to true, specify shipping address restrictions. This object is used to set shipping restrictions.
|
|
92
|
+
*
|
|
93
|
+
* @see https://developers.google.com/pay/api/web/reference/request-objects#ShippingAddressParameters
|
|
92
94
|
*/
|
|
93
95
|
shippingAddressParameters?: google.payments.api.ShippingAddressParameters;
|
|
94
96
|
/**
|
|
95
|
-
* Set to true when the SHIPPING_OPTION callback intent is used.
|
|
97
|
+
* Set to true when the SHIPPING_OPTION callback intent is used. This field is required if you implement support
|
|
98
|
+
* for Authorize Payments or Dynamic Price Updates.
|
|
99
|
+
*
|
|
96
100
|
* @see https://developers.google.com/pay/api/web/reference/request-objects#ShippingOptionParameters
|
|
97
101
|
*/
|
|
98
102
|
shippingOptionRequired?: boolean;
|
|
@@ -100,6 +104,10 @@ export interface GooglePayProps extends UIElementProps {
|
|
|
100
104
|
* @see https://developers.google.com/pay/api/web/reference/request-objects#ShippingOptionParameters
|
|
101
105
|
*/
|
|
102
106
|
shippingOptionParameters?: google.payments.api.ShippingOptionParameters;
|
|
107
|
+
/**
|
|
108
|
+
* Specifies the following callback intents for PaymentDataCallbacks
|
|
109
|
+
* @see https://developers.google.com/pay/api/web/reference/request-objects#PaymentDataCallbacks
|
|
110
|
+
*/
|
|
103
111
|
callbackIntents?: google.payments.api.CallbackIntent[];
|
|
104
112
|
/**
|
|
105
113
|
* @see https://developers.google.com/pay/api/web/reference/request-objects#PaymentDataCallbacks
|
|
@@ -24,7 +24,7 @@ export declare class SecuredFieldsElement extends UIElement {
|
|
|
24
24
|
onBinLookup(obj: CbObjOnBinLookup): void;
|
|
25
25
|
onBinValue: (callbackObj: import("../internal/SecuredFields/lib/types").CbObjOnBinValue) => void;
|
|
26
26
|
get isValid(): boolean;
|
|
27
|
-
get icon():
|
|
27
|
+
get icon(): string;
|
|
28
28
|
get browserInfo(): import("../../types").BrowserInfo;
|
|
29
29
|
render(): h.JSX.Element;
|
|
30
30
|
}
|
|
@@ -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[];
|
|
@@ -9,7 +9,7 @@ export declare const resolvePlaceholders: (i18n?: Language) => SFPlaceholdersObj
|
|
|
9
9
|
/**
|
|
10
10
|
* Used by SecuredFieldsProviderHandlers
|
|
11
11
|
*/
|
|
12
|
-
export declare const getCardImageUrl: (brand: any, resources: Resources) =>
|
|
12
|
+
export declare const getCardImageUrl: (brand: any, resources: Resources) => string;
|
|
13
13
|
/**
|
|
14
14
|
* Checks if `prop` is classified as an `Array` primitive or object.
|
|
15
15
|
* @internal
|
|
@@ -40,7 +40,7 @@ export interface PaymentData extends PaymentMethodData {
|
|
|
40
40
|
sessionData?: string;
|
|
41
41
|
storePaymentMethod?: boolean;
|
|
42
42
|
}
|
|
43
|
-
export type ResultCode = 'Authorised' | 'Cancelled' | 'ChallengeShopper' | 'Error' | 'IdentifyShopper' | 'Pending';
|
|
43
|
+
export type ResultCode = 'AuthenticationFinished' | 'AuthenticationNotRequired' | 'Authorised' | 'Cancelled' | 'ChallengeShopper' | 'Error' | 'IdentifyShopper' | 'PartiallyAuthorised' | 'Pending' | 'PresentToShopper' | 'Received' | 'RedirectShopper' | 'Refused';
|
|
44
44
|
export interface OnPaymentCompletedData {
|
|
45
45
|
sessionData: string;
|
|
46
46
|
sessionResult: string;
|
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
export interface ImageOptions {
|
|
2
|
+
extension?: string;
|
|
3
|
+
imageFolder?: string;
|
|
4
|
+
resourceContext?: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
parentFolder?: string;
|
|
7
|
+
size?: string;
|
|
8
|
+
subFolder?: string;
|
|
9
|
+
svgOptions?: string;
|
|
10
|
+
type?: string;
|
|
11
|
+
}
|
|
12
|
+
export type GetImageFnType = (name: any) => string;
|
|
2
13
|
export declare class Resources {
|
|
3
14
|
private readonly resourceContext;
|
|
4
15
|
constructor(cdnContext?: string);
|
|
5
|
-
|
|
16
|
+
private returnImage;
|
|
17
|
+
private getImageUrl;
|
|
18
|
+
getImage(props?: ImageOptions): GetImageFnType;
|
|
6
19
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { ImageOptions } from '
|
|
2
|
-
|
|
1
|
+
import { GetImageFnType, ImageOptions } from './Resources';
|
|
2
|
+
export type UseImageHookType = (props: ImageOptions) => GetImageFnType;
|
|
3
|
+
declare function useImage(): (props?: ImageOptions) => GetImageFnType;
|
|
3
4
|
export default useImage;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface ImageOptions {
|
|
2
|
-
extension?: string;
|
|
3
|
-
imageFolder?: string;
|
|
4
|
-
loadingContext?: string;
|
|
5
|
-
name?: string;
|
|
6
|
-
parentFolder?: string;
|
|
7
|
-
size?: string;
|
|
8
|
-
subFolder?: string;
|
|
9
|
-
svgOptions?: string;
|
|
10
|
-
type?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const getImageUrl: ({ loadingContext, extension, ...options }: ImageOptions) => Function;
|
|
13
|
-
export default getImageUrl;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { UseImageHookType } from '../core/Context/useImage';
|
|
2
|
+
declare const getIssuerImageUrl: (options: object, type: string, getImage: UseImageHookType) => (issuer: string) => string;
|
|
2
3
|
export default getIssuerImageUrl;
|
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.49.
|
|
27
|
+
"version": "5.49.4",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"homepage": "https://docs.adyen.com/checkout",
|
|
30
30
|
"repository": "github:Adyen/adyen-web",
|
|
@@ -69,11 +69,11 @@
|
|
|
69
69
|
"@rollup/plugin-json": "^6.0.0",
|
|
70
70
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
71
71
|
"@rollup/plugin-replace": "^5.0.1",
|
|
72
|
-
"@storybook/addon-a11y": "^7.0
|
|
73
|
-
"@storybook/addon-essentials": "^7.0
|
|
74
|
-
"@storybook/manager-api": "^7.0
|
|
75
|
-
"@storybook/preact": "^7.0
|
|
76
|
-
"@storybook/preact-vite": "^7.0
|
|
72
|
+
"@storybook/addon-a11y": "^7.2.0",
|
|
73
|
+
"@storybook/addon-essentials": "^7.2.0",
|
|
74
|
+
"@storybook/manager-api": "^7.2.0",
|
|
75
|
+
"@storybook/preact": "^7.2.0",
|
|
76
|
+
"@storybook/preact-vite": "^7.2.0",
|
|
77
77
|
"@testing-library/jest-dom": "5.16.5",
|
|
78
78
|
"@testing-library/preact": "3.2.3",
|
|
79
79
|
"@testing-library/preact-hooks": "1.1.0",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"eslint-plugin-import": "^2.26.0",
|
|
93
93
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
|
94
94
|
"eslint-plugin-react": "^7.31.8",
|
|
95
|
-
"eslint-plugin-storybook": "^0.6.
|
|
95
|
+
"eslint-plugin-storybook": "^0.6.13",
|
|
96
96
|
"eslint-plugin-testing-library": "^5.9.1",
|
|
97
97
|
"eslint-plugin-tsdoc": "^0.2.17",
|
|
98
98
|
"filesize": "^10.0.0",
|
|
@@ -111,12 +111,12 @@
|
|
|
111
111
|
"rollup-plugin-terser": "^7.0.2",
|
|
112
112
|
"rollup-plugin-visualizer": "^5.8.3",
|
|
113
113
|
"sass": "1.62.1",
|
|
114
|
-
"storybook": "^7.0
|
|
114
|
+
"storybook": "^7.2.0",
|
|
115
115
|
"stylelint": "15.10.1",
|
|
116
116
|
"stylelint-config-standard-scss": "7.0.1",
|
|
117
117
|
"tslib": "^2.4.1",
|
|
118
118
|
"typescript": "4.9.5",
|
|
119
|
-
"vite": "4.
|
|
119
|
+
"vite": "4.4.8",
|
|
120
120
|
"vite-plugin-stylelint": "^4.3.0",
|
|
121
121
|
"whatwg-fetch": "^3.6.2"
|
|
122
122
|
},
|