@adyen/adyen-web 5.15.0 → 5.16.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/README.md +3 -0
- package/dist/adyen.css +2 -1
- 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 +2 -1
- package/dist/cjs/adyen.css.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/es/adyen.css +2 -1
- package/dist/es/adyen.css.map +1 -1
- package/dist/es/index.js +1 -1
- package/dist/es.modern/adyen.css +2 -1
- package/dist/es.modern/adyen.css.map +1 -1
- package/dist/es.modern/index.js +1 -1
- package/dist/types/components/MBWay/components/MBWayInput/MBWayInput.d.ts +2 -0
- package/dist/types/components/MBWay/components/MBWayInput/types.d.ts +5 -0
- package/dist/types/components/OnlineBankingIN/index.d.ts +11 -0
- package/dist/types/components/WalletIN/index.d.ts +17 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/internal/PhoneInputNew/PhoneInput.d.ts +10 -0
- package/dist/types/components/internal/PhoneInputNew/index.d.ts +1 -0
- package/dist/types/components/internal/PhoneInputNew/types.d.ts +25 -0
- package/dist/types/components/internal/PhoneInputNew/usePhonePrefixes.d.ts +7 -0
- package/dist/types/components/internal/PhoneInputNew/validate.d.ts +3 -0
- package/dist/types/components/internal/SecuredFields/lib/configuration/constants.d.ts +1 -1
- package/dist/types/components/internal/SecuredFields/lib/utilities/commonUtils.d.ts +0 -1
- package/dist/types/core/Analytics/Analytics.d.ts +1 -1
- package/dist/types/core/Analytics/types.d.ts +0 -4
- package/dist/types/core/Services/data-set.d.ts +6 -0
- package/dist/types/core/Services/get-dataset.d.ts +1 -1
- package/dist/types/utils/validator-utils.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { UIElementProps } from '../../../types';
|
|
2
2
|
export interface MBWayInputData {
|
|
3
3
|
telephoneNumber?: string;
|
|
4
|
+
phoneNumber?: string;
|
|
5
|
+
phonePrefix?: string;
|
|
4
6
|
}
|
|
5
7
|
export interface MBWayInputProps extends UIElementProps {
|
|
6
8
|
data?: MBWayInputData;
|
|
7
9
|
placeholders?: MBWayInputData;
|
|
8
10
|
onChange: (state: any) => void;
|
|
11
|
+
allowedCountries?: string[];
|
|
12
|
+
requiredFields?: string[];
|
|
13
|
+
phoneNumberKey?: string;
|
|
9
14
|
}
|
|
10
15
|
export interface MBWayDataState {
|
|
11
16
|
telephoneNumber?: string;
|
|
@@ -2,5 +2,16 @@ import IssuerListContainer from '../helpers/IssuerListContainer';
|
|
|
2
2
|
declare class OnlineBankingINElement extends IssuerListContainer {
|
|
3
3
|
static type: string;
|
|
4
4
|
formatProps(props: any): any;
|
|
5
|
+
/**
|
|
6
|
+
* Formats the component data output
|
|
7
|
+
*/
|
|
8
|
+
formatData(): {
|
|
9
|
+
browserInfo: import("../../types").BrowserInfo;
|
|
10
|
+
paymentMethod: {
|
|
11
|
+
type: string;
|
|
12
|
+
issuer: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
get browserInfo(): import("../../types").BrowserInfo;
|
|
5
16
|
}
|
|
6
17
|
export default OnlineBankingINElement;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import IssuerListContainer from '../helpers/IssuerListContainer';
|
|
2
|
+
declare class WalletINElement extends IssuerListContainer {
|
|
3
|
+
static type: string;
|
|
4
|
+
formatProps(props: any): any;
|
|
5
|
+
/**
|
|
6
|
+
* Formats the component data output
|
|
7
|
+
*/
|
|
8
|
+
formatData(): {
|
|
9
|
+
browserInfo: import("../../types").BrowserInfo;
|
|
10
|
+
paymentMethod: {
|
|
11
|
+
type: string;
|
|
12
|
+
issuer: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
get browserInfo(): import("../../types").BrowserInfo;
|
|
16
|
+
}
|
|
17
|
+
export default WalletINElement;
|
|
@@ -49,6 +49,7 @@ import Twint from './Twint';
|
|
|
49
49
|
import MealVoucherFR from './MealVoucherFR';
|
|
50
50
|
import OnlineBankingINElement from './OnlineBankingIN';
|
|
51
51
|
import RatePayDirectDebit from "./RatePay/RatePayDirectDebit";
|
|
52
|
+
import WalletINElement from './WalletIN';
|
|
52
53
|
/**
|
|
53
54
|
* Maps each component with a Component element.
|
|
54
55
|
*/
|
|
@@ -144,6 +145,7 @@ declare const componentsMap: {
|
|
|
144
145
|
threeDS2Challenge: typeof ThreeDS2Challenge;
|
|
145
146
|
threeDS2DeviceFingerprint: typeof ThreeDS2DeviceFingerprint;
|
|
146
147
|
visa: typeof Card;
|
|
148
|
+
wallet_IN: typeof WalletINElement;
|
|
147
149
|
wechatpay: typeof WeChat;
|
|
148
150
|
wechatpayQR: typeof WeChat;
|
|
149
151
|
oxxo: typeof Oxxo;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { h } from 'preact';
|
|
2
|
+
import './PhoneInput.scss';
|
|
3
|
+
import { PhoneInputProps } from './types';
|
|
4
|
+
declare function PhoneInput(props: PhoneInputProps): h.JSX.Element;
|
|
5
|
+
declare namespace PhoneInput {
|
|
6
|
+
var defaultProps: {
|
|
7
|
+
phoneLabel: string;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export default PhoneInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './PhoneInput';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DataSet, DataSetItem } from '../../../core/Services/data-set';
|
|
2
|
+
export interface PhoneInputSchema {
|
|
3
|
+
phoneNumber?: string;
|
|
4
|
+
phonePrefix?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface PhoneInputProps {
|
|
7
|
+
items: DataSet;
|
|
8
|
+
requiredFields?: string[];
|
|
9
|
+
data: {
|
|
10
|
+
phonePrefix?: string;
|
|
11
|
+
phoneNumber?: string;
|
|
12
|
+
};
|
|
13
|
+
onChange: (obj: any) => void;
|
|
14
|
+
phoneNumberKey?: string;
|
|
15
|
+
phonePrefixErrorKey?: string;
|
|
16
|
+
phoneNumberErrorKey?: string;
|
|
17
|
+
placeholders?: {
|
|
18
|
+
phoneNumber?: string;
|
|
19
|
+
};
|
|
20
|
+
ref?: any;
|
|
21
|
+
}
|
|
22
|
+
export interface PhonePrefixes {
|
|
23
|
+
phonePrefixes: DataSetItem[];
|
|
24
|
+
loadingStatus: string;
|
|
25
|
+
}
|
|
@@ -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 = "3.10.
|
|
14
|
+
export declare const SF_VERSION = "3.10.2";
|
|
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[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function getDataset(name: string, loadingContext: any, locale
|
|
1
|
+
export default function getDataset(name: string, loadingContext: any, locale?: any): Promise<any>;
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { CountryFormatRules } from './Validator/types';
|
|
2
2
|
export declare const getMaxLengthByFieldAndCountry: (formattingRules: CountryFormatRules, field: string, country: string, ignoreIfFormatterExists: boolean) => number | null;
|
|
3
|
+
export declare const isEmpty: (input: any) => boolean;
|
|
4
|
+
export declare const isString: (input: any) => boolean;
|
|
5
|
+
export declare const hasText: (input: any) => boolean;
|
|
3
6
|
export declare const SPECIAL_CHARS = "?\\-\\+_=!@#$%^&*(){}~<>\\[\\]\\/\\\\";
|
|
4
7
|
export declare const getFormattingRegEx: (specChars: string, flags?: string) => RegExp;
|
|
8
|
+
export declare const getValidatingRegEx: (specChars: string, exclude: boolean) => RegExp;
|
|
9
|
+
export declare const CHARACTER_PATTERNS: {
|
|
10
|
+
[key: string]: RegExp;
|
|
11
|
+
};
|
|
12
|
+
export declare const exactLength: (input: string, length: number) => boolean;
|
|
13
|
+
export declare const validateForSpecialChars: (name: any) => boolean;
|
|
5
14
|
export declare const trimValWithOneSpace: (val: string) => string;
|
package/package.json
CHANGED