@adyen/adyen-web 5.15.0 → 5.16.2

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 (35) hide show
  1. package/README.md +3 -0
  2. package/dist/adyen.css +2 -1
  3. package/dist/adyen.css.map +1 -1
  4. package/dist/adyen.js +1 -1
  5. package/dist/adyen.js.map +1 -1
  6. package/dist/cjs/adyen.css +2 -1
  7. package/dist/cjs/adyen.css.map +1 -1
  8. package/dist/cjs/index.js +1 -1
  9. package/dist/es/adyen.css +2 -1
  10. package/dist/es/adyen.css.map +1 -1
  11. package/dist/es/index.js +1 -1
  12. package/dist/es.modern/adyen.css +2 -1
  13. package/dist/es.modern/adyen.css.map +1 -1
  14. package/dist/es.modern/index.js +1 -1
  15. package/dist/types/components/Card/components/CardInput/components/StoredCardFieldsWrapper.d.ts +7 -1
  16. package/dist/types/components/MBWay/components/MBWayInput/MBWayInput.d.ts +2 -0
  17. package/dist/types/components/MBWay/components/MBWayInput/types.d.ts +5 -0
  18. package/dist/types/components/OnlineBankingIN/index.d.ts +11 -0
  19. package/dist/types/components/WalletIN/index.d.ts +17 -0
  20. package/dist/types/components/index.d.ts +2 -0
  21. package/dist/types/components/internal/Icon/Icon.d.ts +2 -1
  22. package/dist/types/components/internal/PhoneInputNew/PhoneInput.d.ts +10 -0
  23. package/dist/types/components/internal/PhoneInputNew/index.d.ts +1 -0
  24. package/dist/types/components/internal/PhoneInputNew/types.d.ts +25 -0
  25. package/dist/types/components/internal/PhoneInputNew/usePhonePrefixes.d.ts +7 -0
  26. package/dist/types/components/internal/PhoneInputNew/validate.d.ts +3 -0
  27. package/dist/types/components/internal/SecuredFields/SFP/SecuredFieldsProvider.d.ts +1 -1
  28. package/dist/types/components/internal/SecuredFields/lib/configuration/constants.d.ts +1 -1
  29. package/dist/types/components/internal/SecuredFields/lib/utilities/commonUtils.d.ts +0 -1
  30. package/dist/types/core/Analytics/Analytics.d.ts +1 -1
  31. package/dist/types/core/Analytics/types.d.ts +0 -4
  32. package/dist/types/core/Services/data-set.d.ts +6 -0
  33. package/dist/types/core/Services/get-dataset.d.ts +1 -1
  34. package/dist/types/utils/validator-utils.d.ts +9 -0
  35. package/package.json +1 -1
@@ -1,5 +1,7 @@
1
1
  import { h } from 'preact';
2
- export declare const StoredCardFieldsWrapper: ({ sfpState, setFocusOn, cvcPolicy, focusedElement, hasInstallments, handleInstallments, showAmountsInInstallments, amount, hasCVC, installmentOptions, lastFour, expiryMonth, expiryYear }: {
2
+ export declare const StoredCardFieldsWrapper: ({ collateErrors, errorFieldId, sfpState, setFocusOn, cvcPolicy, focusedElement, hasInstallments, handleInstallments, showAmountsInInstallments, amount, hasCVC, installmentOptions, lastFour, expiryMonth, expiryYear, mergedSRErrors, handleErrorPanelFocus, moveFocus, showPanel }: {
3
+ collateErrors: any;
4
+ errorFieldId: any;
3
5
  sfpState: any;
4
6
  setFocusOn: any;
5
7
  cvcPolicy: any;
@@ -13,4 +15,8 @@ export declare const StoredCardFieldsWrapper: ({ sfpState, setFocusOn, cvcPolicy
13
15
  lastFour: any;
14
16
  expiryMonth: any;
15
17
  expiryYear: any;
18
+ mergedSRErrors: any;
19
+ handleErrorPanelFocus: any;
20
+ moveFocus: any;
21
+ showPanel: any;
16
22
  }) => h.JSX.Element;
@@ -5,6 +5,8 @@ declare function MBWayInput(props: MBWayInputProps): h.JSX.Element;
5
5
  declare namespace MBWayInput {
6
6
  var defaultProps: {
7
7
  onChange: () => void;
8
+ phoneNumberKey: string;
9
+ phoneNumberErrorKey: string;
8
10
  };
9
11
  }
10
12
  export default MBWayInput;
@@ -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;
@@ -2,6 +2,7 @@ import { h } from 'preact';
2
2
  interface IconProps {
3
3
  type: string;
4
4
  className?: string;
5
+ alt?: string;
5
6
  }
6
- declare const Icon: ({ type, className }: IconProps) => h.JSX.Element;
7
+ declare const Icon: ({ type, className, alt }: IconProps) => h.JSX.Element;
7
8
  export default Icon;
@@ -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
+ }
@@ -0,0 +1,7 @@
1
+ import { PhonePrefixes } from './types';
2
+ declare function usePhonePrefixes({ allowedCountries, loadingContext, handleError }: {
3
+ allowedCountries: any;
4
+ loadingContext: any;
5
+ handleError: any;
6
+ }): PhonePrefixes;
7
+ export default usePhonePrefixes;
@@ -0,0 +1,3 @@
1
+ import { FormatRules, ValidatorRules } from '../../../utils/Validator/types';
2
+ export declare const phoneValidationRules: ValidatorRules;
3
+ export declare const phoneFormatters: FormatRules;
@@ -63,7 +63,7 @@ declare class SecuredFieldsProvider extends Component<SFPProps, SFPState> {
63
63
  destroy(): void;
64
64
  showValidation(): void;
65
65
  /**
66
- * Map SF errors to ValidationRuleResult like objects, for CardInput component
66
+ * Map SF errors to ValidationRuleResult-like objects, for CardInput component
67
67
  */
68
68
  mapErrorsToValidationRuleResult(): object;
69
69
  processBinLookupResponse(binLookupResponse: BinLookupResponse, resetObject: SingleBrandResetObject): void;
@@ -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.1";
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[];
@@ -41,4 +41,3 @@ export declare function notFalsy(x: any): boolean;
41
41
  * @returns \{function(): *\}
42
42
  */
43
43
  export declare function partial(...args: any[]): (...args2: any[]) => any;
44
- export declare const isEmpty: (input: any) => boolean;
@@ -1,7 +1,7 @@
1
1
  import { CoreOptions } from '../types';
2
2
  declare class Analytics {
3
3
  private static defaultProps;
4
- checkoutAttemptId: any;
4
+ checkoutAttemptId: string;
5
5
  props: any;
6
6
  private readonly logEvent;
7
7
  private readonly logTelemetry;
@@ -12,10 +12,6 @@ export interface AnalyticsOptions {
12
12
  * Enable/Disable telemetry data
13
13
  */
14
14
  telemetry?: boolean;
15
- /**
16
- * Enable/Disable conversion events
17
- */
18
- conversion?: boolean;
19
15
  /**
20
16
  * Reuse a previous checkoutAttemptId from a previous page
21
17
  */
@@ -0,0 +1,6 @@
1
+ export declare type DataSet = DataSetItem[];
2
+ export interface DataSetItem {
3
+ id: string;
4
+ name: string;
5
+ selectedOptionName?: string;
6
+ }
@@ -1 +1 @@
1
- export default function getDataset(name: string, loadingContext: any, locale: any): Promise<any>;
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
@@ -23,7 +23,7 @@
23
23
  "./dist/adyen.css": "./dist/adyen.css",
24
24
  "./package.json": "./package.json"
25
25
  },
26
- "version": "5.15.0",
26
+ "version": "5.16.2",
27
27
  "license": "MIT",
28
28
  "homepage": "https://docs.adyen.com/checkout",
29
29
  "repository": "github:Adyen/adyen-web",