@adyen/adyen-web 5.16.0 → 5.17.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.
@@ -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;
@@ -21,6 +21,11 @@ export interface GooglePayPropsConfiguration {
21
21
  * Merchant fully qualified domain name.
22
22
  */
23
23
  merchantOrigin?: string;
24
+ /**
25
+ * Google JWT solution for platforms
26
+ * To request Google Pay credentials, you can enable platforms to send requests that are authenticated with the platform credentials. You don't need to register individual domain names to call Google Pay APIs.
27
+ */
28
+ authJwt?: string;
24
29
  }
25
30
  export interface GooglePayProps extends UIElementProps {
26
31
  type?: 'googlepay' | 'paywithgoogle';
@@ -1,6 +1,7 @@
1
1
  import { h } from 'preact';
2
2
  import UIElement from '../UIElement';
3
3
  import { ErrorObject } from './components/utils';
4
+ import Language from '../../language';
4
5
  export interface ThreeDS2ChallengeProps {
5
6
  token?: string;
6
7
  dataKey?: string;
@@ -10,7 +11,9 @@ export interface ThreeDS2ChallengeProps {
10
11
  size?: string;
11
12
  challengeWindowSize?: '01' | '02' | '03' | '04' | '05';
12
13
  type?: string;
14
+ loadingContext?: string;
13
15
  useOriginalFlow?: boolean;
16
+ i18n?: Language;
14
17
  }
15
18
  declare class ThreeDS2Challenge extends UIElement<ThreeDS2ChallengeProps> {
16
19
  static type: string;
@@ -1,6 +1,7 @@
1
1
  import { Component, h } from 'preact';
2
2
  import { PrepareChallenge3DS2Props, PrepareChallenge3DS2State } from './types';
3
3
  import '../../ThreeDS2.scss';
4
+ import './challenge.scss';
4
5
  declare class PrepareChallenge3DS2 extends Component<PrepareChallenge3DS2Props, PrepareChallenge3DS2State> {
5
6
  static defaultProps: {
6
7
  onComplete: () => void;
@@ -8,6 +9,7 @@ declare class PrepareChallenge3DS2 extends Component<PrepareChallenge3DS2Props,
8
9
  };
9
10
  constructor(props: any);
10
11
  setStatusComplete(resultObj: any): void;
12
+ setStatusError(errorObj: any): void;
11
13
  render(props: any, { challengeData }: {
12
14
  challengeData: any;
13
15
  }): h.JSX.Element;
@@ -18,13 +18,16 @@ export interface ChallengeData {
18
18
  postMessageDomain: string;
19
19
  }
20
20
  export interface ResultObject {
21
- transStatus?: ResultValue;
22
21
  threeDSCompInd?: ResultValue;
22
+ transStatus?: ResultValue;
23
+ errorCode?: string;
24
+ errorDescription?: string;
23
25
  }
24
26
  export interface ThreeDS2FlowObject {
25
27
  result: ResultObject;
26
28
  type: 'ChallengeShopper' | 'IdentifyShopper' | 'challengeResult' | 'fingerPrintResult';
27
29
  errorCode?: string;
30
+ threeDSServerTransID?: string;
28
31
  }
29
32
  export interface ThreeDS2Token {
30
33
  acsTransID?: string;
@@ -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;
@@ -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;
@@ -1,11 +1,2 @@
1
- /**
2
- * Centralised window.postMessage processing function used in 3DS2 components
3
- *
4
- * @param domain - expected domain for the postMesssage to have originated from
5
- * @param resolve - the resolve function from the Promise that called this function
6
- * @param reject - the reject function from the Promise that called this function
7
- * @param rejectObj - an object to reject the promise with if origins don't match
8
- * @param expectedType - string to check that the passed data has the expected type
9
- */
10
1
  declare const getProcessMessageHandler: (domain: string, resolve: Function, reject: Function, rejectObj: object, expectedType: string) => Function;
11
2
  export default getProcessMessageHandler;
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.16.0",
26
+ "version": "5.17.0",
27
27
  "license": "MIT",
28
28
  "homepage": "https://docs.adyen.com/checkout",
29
29
  "repository": "github:Adyen/adyen-web",