@adyen/adyen-web 5.6.2 → 5.7.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.
Files changed (36) hide show
  1. package/README.md +1 -1
  2. package/dist/adyen.css +2 -2
  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 -2
  7. package/dist/cjs/adyen.css.map +1 -1
  8. package/dist/cjs/index.js +1 -1
  9. package/dist/es/adyen.css +2 -2
  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 -2
  13. package/dist/es.modern/adyen.css.map +1 -1
  14. package/dist/es.modern/index.js +1 -1
  15. package/dist/types/components/Ach/components/AchInput/AchInput.d.ts +2 -4
  16. package/dist/types/components/Ach/components/AchInput/defaultProps.d.ts +0 -3
  17. package/dist/types/components/Ach/components/AchInput/types.d.ts +40 -0
  18. package/dist/types/components/Card/Bancontact.d.ts +3 -4
  19. package/dist/types/components/Card/Card.d.ts +4 -4
  20. package/dist/types/components/Card/components/CardInput/CardInput.d.ts +2 -40
  21. package/dist/types/components/Card/components/CardInput/components/CardFieldsWrapper.d.ts +47 -0
  22. package/dist/types/components/Card/components/CardInput/components/Installments/Installments.d.ts +4 -0
  23. package/dist/types/components/Card/components/CardInput/components/StoredCardFields.d.ts +1 -1
  24. package/dist/types/components/Card/components/CardInput/components/StoredCardFieldsWrapper.d.ts +16 -0
  25. package/dist/types/components/Card/components/CardInput/defaultProps.d.ts +1 -4
  26. package/dist/types/components/Card/components/CardInput/handlers.d.ts +8 -0
  27. package/dist/types/components/Card/components/CardInput/types.d.ts +48 -15
  28. package/dist/types/components/Card/components/CardInput/utils.d.ts +47 -1
  29. package/dist/types/components/Card/types.d.ts +0 -2
  30. package/dist/types/components/SecuredFields/SecuredFieldsInput/SecuredFieldsInput.d.ts +31 -1
  31. package/dist/types/components/internal/SecuredFields/SFP/SecuredFieldsProvider.d.ts +2 -24
  32. package/dist/types/components/internal/SecuredFields/SFP/defaultProps.d.ts +31 -71
  33. package/dist/types/components/internal/SecuredFields/SFP/types.d.ts +32 -0
  34. package/dist/types/components/internal/SecuredFields/lib/CSF/types.d.ts +1 -1
  35. package/dist/types/components/internal/SecuredFields/lib/utilities/commonUtils.d.ts +1 -1
  36. package/package.json +3 -3
@@ -1,9 +1,9 @@
1
1
  import { h } from 'preact';
2
2
  import './AchInput.scss';
3
- declare function AchInput(props: any): h.JSX.Element;
3
+ import { ACHInputProps } from './types';
4
+ declare function AchInput(props: ACHInputProps): h.JSX.Element;
4
5
  declare namespace AchInput {
5
6
  var defaultProps: {
6
- details: any[];
7
7
  type: string;
8
8
  hasHolderName: boolean;
9
9
  holderNameRequired: boolean;
@@ -13,9 +13,7 @@ declare namespace AchInput {
13
13
  onConfigSuccess: () => void;
14
14
  onAllValid: () => void;
15
15
  onFieldValid: () => void;
16
- onBrand: () => void;
17
16
  onError: () => void;
18
- onBinValue: () => void;
19
17
  onBlur: () => void;
20
18
  onFocus: () => void;
21
19
  onChange: () => void;
@@ -1,5 +1,4 @@
1
1
  declare const _default: {
2
- details: any[];
3
2
  type: string;
4
3
  hasHolderName: boolean;
5
4
  holderNameRequired: boolean;
@@ -9,9 +8,7 @@ declare const _default: {
9
8
  onConfigSuccess: () => void;
10
9
  onAllValid: () => void;
11
10
  onFieldValid: () => void;
12
- onBrand: () => void;
13
11
  onError: () => void;
14
- onBinValue: () => void;
15
12
  onBlur: () => void;
16
13
  onFocus: () => void;
17
14
  onChange: () => void;
@@ -1,3 +1,5 @@
1
+ import Language from '../../../../language/Language';
2
+ import { StylesObject } from '../../../internal/SecuredFields/lib/types';
1
3
  export interface ACHInputStateValid {
2
4
  holderName?: boolean;
3
5
  billingAddress?: boolean;
@@ -10,3 +12,41 @@ export interface ACHInputStateError {
10
12
  encryptedBankAccountNumber?: boolean;
11
13
  encryptedBankLocationId?: boolean;
12
14
  }
15
+ export interface ACHInputDataState {
16
+ holderName?: string;
17
+ billingAddress?: object;
18
+ }
19
+ declare type Placeholders = {
20
+ holderName?: string;
21
+ };
22
+ export interface ACHInputProps {
23
+ allowedDOMAccess?: boolean;
24
+ autoFocus?: boolean;
25
+ billingAddressAllowedCountries?: string[];
26
+ billingAddressRequired?: boolean;
27
+ billingAddressRequiredFields?: string[];
28
+ clientKey: string;
29
+ data?: ACHInputDataState;
30
+ hasHolderName?: boolean;
31
+ holderName?: string;
32
+ holderNameRequired?: boolean;
33
+ i18n?: Language;
34
+ keypadFix?: boolean;
35
+ legacyInputMode?: boolean;
36
+ loadingContext: string;
37
+ onAllValid?: () => {};
38
+ onBlur?: (e: any) => {};
39
+ onChange?: (obj: any) => {};
40
+ onConfigSuccess?: () => {};
41
+ onError?: () => {};
42
+ onFieldValid?: () => {};
43
+ onFocus?: (e: any) => {};
44
+ onLoad?: () => {};
45
+ payButton?: (obj: any) => {};
46
+ placeholders?: Placeholders;
47
+ showPayButton?: boolean;
48
+ showWarnings?: boolean;
49
+ styles?: StylesObject;
50
+ type?: string;
51
+ }
52
+ export {};
@@ -16,6 +16,9 @@ declare class BancontactElement extends CardElement {
16
16
  formatProps(props: CardElementProps): {
17
17
  type: string;
18
18
  cvcPolicy: import("../internal/SecuredFields/lib/types").CVCPolicyType;
19
+ holderNameRequired: boolean;
20
+ hasCVC: boolean;
21
+ billingAddressRequired: any;
19
22
  countryCode: any;
20
23
  configuration: {
21
24
  socialSecurityNumberMode: import("./types").SocialSecurityMode;
@@ -30,10 +33,6 @@ declare class BancontactElement extends CardElement {
30
33
  moveFocus: any;
31
34
  showPanel: any;
32
35
  };
33
- groupTypes: string[];
34
- holderNameRequired: boolean;
35
- hasCVC: boolean;
36
- billingAddressRequired: any;
37
36
  brand?: string;
38
37
  brands?: string[];
39
38
  enableStoreDetails?: boolean;
@@ -8,7 +8,11 @@ export declare class CardElement extends UIElement<CardElementProps> {
8
8
  onBinLookup: () => void;
9
9
  SRConfig: {};
10
10
  };
11
+ setComponentRef: (ref: any) => void;
11
12
  formatProps(props: CardElementProps): {
13
+ holderNameRequired: boolean;
14
+ hasCVC: boolean;
15
+ billingAddressRequired: any;
12
16
  type: string;
13
17
  countryCode: any;
14
18
  configuration: {
@@ -24,10 +28,6 @@ export declare class CardElement extends UIElement<CardElementProps> {
24
28
  moveFocus: any;
25
29
  showPanel: any;
26
30
  };
27
- groupTypes: string[];
28
- holderNameRequired: boolean;
29
- hasCVC: boolean;
30
- billingAddressRequired: any;
31
31
  brand?: string;
32
32
  brands?: string[];
33
33
  enableStoreDetails?: boolean;
@@ -1,43 +1,5 @@
1
- import { h } from 'preact';
1
+ import { FunctionalComponent } from 'preact';
2
2
  import './CardInput.scss';
3
3
  import { CardInputProps } from './types';
4
- declare function CardInput(props: CardInputProps): h.JSX.Element;
5
- declare namespace CardInput {
6
- var defaultProps: {
7
- details: any[];
8
- type: string;
9
- hasHolderName: boolean;
10
- holderNameRequired: boolean;
11
- enableStoreDetails: boolean;
12
- hideCVC: boolean;
13
- hasCVC: boolean;
14
- hasStoreDetails: boolean;
15
- storedDetails: any;
16
- showBrandIcon: boolean;
17
- positionHolderNameOnTop: boolean;
18
- billingAddressRequired: boolean;
19
- billingAddressRequiredFields: string[];
20
- installmentOptions: {};
21
- configuration: {
22
- koreanAuthenticationRequired: boolean;
23
- socialSecurityNumberMode: import("../../types").SocialSecurityMode;
24
- };
25
- onLoad: () => any;
26
- onConfigSuccess: () => any;
27
- onAllValid: () => any;
28
- onFieldValid: () => any;
29
- onBrand: () => any;
30
- onError: () => any;
31
- onBinValue: () => any;
32
- onBlur: () => any;
33
- onFocus: () => any;
34
- onChange: () => any;
35
- data: {
36
- billingAddress: {};
37
- };
38
- styles: {};
39
- placeholders: {};
40
- SRConfig: {};
41
- };
42
- }
4
+ declare const CardInput: FunctionalComponent<CardInputProps>;
43
5
  export default CardInput;
@@ -0,0 +1,47 @@
1
+ import { h } from 'preact';
2
+ export declare const CardFieldsWrapper: ({ data, valid, errors, handleChangeFor, sfpState, setFocusOn, collateErrors, errorFieldId, cvcPolicy, focusedElement, hasInstallments, handleInstallments, showAmountsInInstallments, mergedSRErrors, moveFocus, showPanel, handleErrorPanelFocus, formData, formErrors, formValid, expiryDatePolicy, dualBrandSelectElements, extensions, selectedBrandValue, showKCP, showBrazilianSSN, socialSecurityNumber, handleOnStoreDetails, billingAddress, handleAddress, billingAddressRef, amount, billingAddressRequired, billingAddressRequiredFields, billingAddressAllowedCountries, brandsConfiguration, enableStoreDetails, hasCVC, hasHolderName, holderNameRequired, installmentOptions, placeholders, positionHolderNameOnTop, showBrandIcon }: {
3
+ data: any;
4
+ valid: any;
5
+ errors: any;
6
+ handleChangeFor: any;
7
+ sfpState: any;
8
+ setFocusOn: any;
9
+ collateErrors: any;
10
+ errorFieldId: any;
11
+ cvcPolicy: any;
12
+ focusedElement: any;
13
+ hasInstallments: any;
14
+ handleInstallments: any;
15
+ showAmountsInInstallments: any;
16
+ mergedSRErrors: any;
17
+ moveFocus: any;
18
+ showPanel: any;
19
+ handleErrorPanelFocus: any;
20
+ formData: any;
21
+ formErrors: any;
22
+ formValid: any;
23
+ expiryDatePolicy: any;
24
+ dualBrandSelectElements: any;
25
+ extensions: any;
26
+ selectedBrandValue: any;
27
+ showKCP: any;
28
+ showBrazilianSSN: any;
29
+ socialSecurityNumber: any;
30
+ handleOnStoreDetails: any;
31
+ billingAddress: any;
32
+ handleAddress: any;
33
+ billingAddressRef: any;
34
+ amount: any;
35
+ billingAddressRequired: any;
36
+ billingAddressRequiredFields: any;
37
+ billingAddressAllowedCountries: any;
38
+ brandsConfiguration: any;
39
+ enableStoreDetails: any;
40
+ hasCVC: any;
41
+ hasHolderName: any;
42
+ holderNameRequired: any;
43
+ installmentOptions: any;
44
+ placeholders: any;
45
+ positionHolderNameOnTop: any;
46
+ showBrandIcon: any;
47
+ }) => h.JSX.Element;
@@ -1,5 +1,9 @@
1
1
  import { h } from 'preact';
2
2
  import { InstallmentsProps } from '../types';
3
+ export interface InstallmentsObj {
4
+ value: number;
5
+ plan?: 'revolving';
6
+ }
3
7
  /**
4
8
  * Installments generic dropdown
5
9
  */
@@ -1,3 +1,3 @@
1
1
  import { h } from 'preact';
2
2
  import { StoredCardFieldsProps } from './types';
3
- export default function StoredCardFields({ brand, hasCVC, onFocusField, errors, valid, ...props }: StoredCardFieldsProps): h.JSX.Element;
3
+ export default function StoredCardFields({ brand, hasCVC, onFocusField, errors, valid, cvcPolicy, focusedElement, lastFour, expiryMonth, expiryYear }: StoredCardFieldsProps): h.JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { h } from 'preact';
2
+ export declare const StoredCardFieldsWrapper: ({ sfpState, setFocusOn, cvcPolicy, focusedElement, hasInstallments, handleInstallments, showAmountsInInstallments, amount, hasCVC, installmentOptions, lastFour, expiryMonth, expiryYear }: {
3
+ sfpState: any;
4
+ setFocusOn: any;
5
+ cvcPolicy: any;
6
+ focusedElement: any;
7
+ hasInstallments: any;
8
+ handleInstallments: any;
9
+ showAmountsInInstallments: any;
10
+ amount: any;
11
+ hasCVC: any;
12
+ installmentOptions: any;
13
+ lastFour: any;
14
+ expiryMonth: any;
15
+ expiryYear: any;
16
+ }) => h.JSX.Element;
@@ -1,14 +1,11 @@
1
1
  import { SocialSecurityMode } from '../../types';
2
2
  declare const _default: {
3
- details: any[];
4
3
  type: string;
4
+ setComponentRef: () => void;
5
5
  hasHolderName: boolean;
6
6
  holderNameRequired: boolean;
7
7
  enableStoreDetails: boolean;
8
- hideCVC: boolean;
9
8
  hasCVC: boolean;
10
- hasStoreDetails: boolean;
11
- storedDetails: any;
12
9
  showBrandIcon: boolean;
13
10
  positionHolderNameOnTop: boolean;
14
11
  billingAddressRequired: boolean;
@@ -0,0 +1,8 @@
1
+ import { ErrorPanelObj } from '../../../../core/Errors/ErrorPanel';
2
+ import { CbObjOnFocus } from '../../../internal/SecuredFields/lib/types';
3
+ /**
4
+ * Return a function that can act as a callback for the ErrorPanel
5
+ */
6
+ export declare const getErrorPanelHandler: (isValidating: any, sfp: any, handleFocus: (e: CbObjOnFocus) => void) => (errors: ErrorPanelObj) => void;
7
+ export declare const getAddressHandler: (setFormData: any, setFormValid: any, setFormErrors: any) => (address: any) => void;
8
+ export declare const getFocusHandler: (setFocusedElement: any, onFocus: any, onBlur: any) => (e: CbObjOnFocus) => void;
@@ -1,5 +1,5 @@
1
1
  import Language from '../../../../language/Language';
2
- import { CardBrandsConfiguration, CardConfiguration, DualBrandSelectElement, SocialSecurityMode } from '../../types';
2
+ import { BinLookupResponse, CardBrandsConfiguration, CardConfiguration, DualBrandSelectElement } from '../../types';
3
3
  import { PaymentAmount } from '../../../../types';
4
4
  import { InstallmentOptions } from './components/types';
5
5
  import { ValidationResult } from '../../../internal/PersonalDetails/types';
@@ -7,6 +7,7 @@ import { CVCPolicyType, DatePolicyType } from '../../../internal/SecuredFields/l
7
7
  import { ValidationRuleResult } from '../../../../utils/Validator/Validator';
8
8
  import Specifications from '../../../internal/Address/Specifications';
9
9
  import { AddressSchema, StringObject } from '../../../internal/Address/types';
10
+ import { CbObjOnError, StylesObject } from '../../../internal/SecuredFields/lib/types';
10
11
  export interface CardInputValidState {
11
12
  holderName?: boolean;
12
13
  billingAddress?: boolean;
@@ -34,48 +35,71 @@ export interface CardInputDataState {
34
35
  socialSecurityNumber?: string;
35
36
  taxNumber?: string;
36
37
  }
37
- interface Placeholders {
38
+ declare type Placeholders = {
38
39
  holderName?: string;
39
- }
40
+ };
41
+ /**
42
+ * Should be the subset of the props sent to CardInput that are *actually* used by CardInput
43
+ * - either in the comp itself or are passed on to its children
44
+ */
40
45
  export interface CardInputProps {
41
46
  amount?: PaymentAmount;
47
+ allowedDOMAccess?: boolean;
48
+ autoFocus?: boolean;
42
49
  billingAddressAllowedCountries?: string[];
43
50
  billingAddressRequired?: boolean;
44
51
  billingAddressRequiredFields?: string[];
45
52
  brand?: string;
53
+ brands?: string[];
46
54
  brandsConfiguration?: CardBrandsConfiguration;
55
+ clientKey: string;
47
56
  configuration?: CardConfiguration;
48
57
  countryCode?: string;
49
58
  cvcPolicy?: CVCPolicyType;
50
59
  data?: CardInputDataState;
51
60
  enableStoreDetails?: boolean;
61
+ expiryMonth?: string;
62
+ expiryYear?: string;
52
63
  fundingSource?: string;
53
64
  hasCVC?: boolean;
54
65
  hasHolderName?: boolean;
55
- holderName?: string;
56
66
  holderNameRequired?: boolean;
57
67
  i18n?: Language;
68
+ implementationType?: string;
69
+ isCollatingErrors?: boolean;
58
70
  installmentOptions?: InstallmentOptions;
59
- socialSecurityNumberMode?: SocialSecurityMode;
60
- loadingContext?: string;
71
+ keypadFix?: boolean;
72
+ lastFour?: string;
73
+ loadingContext: string;
74
+ legacyInputMode?: boolean;
75
+ minimumExpiryDate?: string;
76
+ onAdditionalSFConfig?: () => {};
77
+ onAdditionalSFRemoved?: () => {};
78
+ onAllValid?: () => {};
79
+ onAutoComplete?: () => {};
80
+ onBinValue?: () => {};
61
81
  onBlur?: (e: any) => {};
82
+ onBrand?: () => {};
83
+ onConfigSuccess?: () => {};
84
+ onChange?: (state: any) => {};
85
+ onError?: () => {};
86
+ onFieldValid?: () => {};
62
87
  onFocus?: (e: any) => {};
88
+ onLoad?: () => {};
63
89
  payButton?: (obj: any) => {};
64
90
  placeholders?: Placeholders;
65
91
  positionHolderNameOnTop?: boolean;
92
+ setComponentRef?: (ref: any) => void;
93
+ showBrandIcon?: boolean;
66
94
  showInstallmentAmounts?: boolean;
67
95
  showPayButton?: boolean;
96
+ showWarnings?: boolean;
97
+ specifications?: Specifications;
98
+ SRConfig?: ScreenreaderConfig;
68
99
  storedPaymentMethodId?: string;
69
- styles?: object;
100
+ styles?: StylesObject;
101
+ trimTrailingSeparator?: boolean;
70
102
  type?: string;
71
- onChange?: (state: any) => {};
72
- onSubmit?: () => {};
73
- onBrand?: () => {};
74
- onBinValue?: () => {};
75
- details?: object;
76
- storedDetails?: object;
77
- SRConfig?: ScreenreaderConfig;
78
- specifications?: Specifications;
79
103
  }
80
104
  export interface CardInputState {
81
105
  dualBrandSelectElements: DualBrandSelectElement[];
@@ -93,6 +117,15 @@ export interface CardInputState {
93
117
  issuingCountryCode: string;
94
118
  showSocialSecurityNumber?: boolean;
95
119
  }
120
+ export interface CardInputRef {
121
+ sfp?: any;
122
+ setFocusOn?: (who: any) => void;
123
+ showValidation?: (who: any) => void;
124
+ processBinLookupResponse?: (binLookupResponse: BinLookupResponse, isReset: boolean) => void;
125
+ setStatus?: any;
126
+ updateStyles?: (stylesObj: StylesObject) => void;
127
+ handleUnsupportedCard?: (errObj: CbObjOnError) => boolean;
128
+ }
96
129
  interface ScreenreaderConfig {
97
130
  collateErrors?: boolean;
98
131
  moveFocus?: boolean;
@@ -1,5 +1,51 @@
1
1
  import { ErrorPanelObj } from '../../../../core/Errors/ErrorPanel';
2
- import { LayoutObj, SortErrorsObj } from './types';
2
+ import Language from '../../../../language/Language';
3
+ import { CardInputProps, LayoutObj, SortErrorsObj } from './types';
3
4
  export declare const getCardImageUrl: (brand: string, loadingContext: string) => string;
4
5
  export declare const getLayout: ({ props, showKCP, showBrazilianSSN, countrySpecificSchemas }: LayoutObj) => string[];
5
6
  export declare const sortErrorsForPanel: ({ errors, layout, i18n, countrySpecificLabels }: SortErrorsObj) => ErrorPanelObj;
7
+ export declare const extractPropsForCardFields: (props: CardInputProps) => {
8
+ amount: import("../../../../types").PaymentAmount;
9
+ billingAddressRequired: boolean;
10
+ billingAddressRequiredFields: string[];
11
+ billingAddressAllowedCountries: string[];
12
+ brandsConfiguration: import("../../types").CardBrandsConfiguration;
13
+ enableStoreDetails: boolean;
14
+ hasCVC: boolean;
15
+ hasHolderName: boolean;
16
+ holderNameRequired: boolean;
17
+ installmentOptions: import("./components/types").InstallmentOptions;
18
+ placeholders: {
19
+ holderName?: string;
20
+ };
21
+ positionHolderNameOnTop: boolean;
22
+ showBrandIcon: boolean;
23
+ lastFour: string;
24
+ expiryMonth: string;
25
+ expiryYear: string;
26
+ };
27
+ export declare const extractPropsForSFP: (props: CardInputProps) => {
28
+ allowedDOMAccess: boolean;
29
+ autoFocus: boolean;
30
+ brands: string[];
31
+ brandsConfiguration: import("../../types").CardBrandsConfiguration;
32
+ clientKey: string;
33
+ countryCode: string;
34
+ i18n: Language;
35
+ implementationType: string;
36
+ keypadFix: boolean;
37
+ legacyInputMode: boolean;
38
+ loadingContext: string;
39
+ minimumExpiryDate: string;
40
+ onAdditionalSFConfig: () => {};
41
+ onAdditionalSFRemoved: () => {};
42
+ onAllValid: () => {};
43
+ onAutoComplete: () => {};
44
+ onBinValue: () => {};
45
+ onConfigSuccess: () => {};
46
+ onError: () => {};
47
+ onFieldValid: () => {};
48
+ onLoad: () => {};
49
+ showWarnings: boolean;
50
+ trimTrailingSeparator: boolean;
51
+ };
@@ -17,8 +17,6 @@ export interface CardElementProps extends UIElementProps {
17
17
  * except for a single branded card when it will be the same as the brand prop
18
18
  */
19
19
  type?: string;
20
- /** @deprecated use brands instead */
21
- groupTypes?: string[];
22
20
  /** List of brands accepted by the component */
23
21
  brands?: string[];
24
22
  /** Show/hide the "store details" checkbox */
@@ -1,8 +1,38 @@
1
1
  import { h } from 'preact';
2
2
  import Language from '../../../language/Language';
3
+ import { CardBrandsConfiguration } from '../../Card/types';
4
+ import { StylesObject } from '../../internal/SecuredFields/lib/types';
3
5
  interface SecuredFieldsProps {
4
- onChange: (data: any) => void;
6
+ allowedDOMAccess?: boolean;
7
+ autoFocus?: boolean;
8
+ brands?: string[];
9
+ brandsConfiguration?: CardBrandsConfiguration;
10
+ clientKey?: string;
11
+ countryCode?: string;
5
12
  i18n: Language;
13
+ implementationType?: string;
14
+ isCollatingErrors?: boolean;
15
+ keypadFix?: boolean;
16
+ loadingContext?: string;
17
+ legacyInputMode?: boolean;
18
+ minimumExpiryDate?: string;
19
+ onAdditionalSFConfig?: () => {};
20
+ onAdditionalSFRemoved?: () => {};
21
+ onAllValid?: () => {};
22
+ onAutoComplete?: () => {};
23
+ onBinValue?: () => {};
24
+ onBrand?: () => {};
25
+ onConfigSuccess?: () => {};
26
+ onChange: (data: any) => void;
27
+ onError?: () => {};
28
+ onFieldValid?: () => {};
29
+ onFocus?: (e: any) => {};
30
+ onLoad?: () => {};
31
+ rootNode: HTMLElement;
32
+ showWarnings?: boolean;
33
+ styles?: StylesObject;
34
+ trimTrailingSeparator?: boolean;
35
+ type: string;
6
36
  }
7
37
  declare function SecuredFieldsInput(props: SecuredFieldsProps): h.JSX.Element;
8
38
  declare namespace SecuredFieldsInput {
@@ -1,29 +1,8 @@
1
1
  import { Component } from 'preact';
2
2
  import { SFPProps } from './defaultProps';
3
3
  import { StylesObject, CbObjOnError } from '../lib/types';
4
- import { AddressData } from '../../../../types';
5
4
  import { BinLookupResponse } from '../../../Card/types';
6
- import { CVCPolicyType, DatePolicyType } from '../lib/types';
7
- export interface SFPState {
8
- status?: string;
9
- brand?: string;
10
- errors?: object;
11
- valid: object;
12
- data: object;
13
- cvcPolicy?: CVCPolicyType;
14
- isSfpValid?: boolean;
15
- autoCompleteName?: string;
16
- billingAddress?: AddressData;
17
- hasUnsupportedCard?: boolean;
18
- hasKoreanFields?: boolean;
19
- showSocialSecurityNumber?: boolean;
20
- expiryDatePolicy?: DatePolicyType;
21
- socialSecurityNumber?: string;
22
- }
23
- export interface SingleBrandResetObject {
24
- brand: string;
25
- cvcPolicy: CVCPolicyType;
26
- }
5
+ import { SFPState, SingleBrandResetObject } from './types';
27
6
  /**
28
7
  * SecuredFieldsProvider:
29
8
  * Initialises & handles the client-side part of SecuredFields
@@ -53,7 +32,7 @@ declare class SecuredFieldsProvider extends Component<SFPProps, SFPState> {
53
32
  keypadFix: boolean;
54
33
  rootNode: any;
55
34
  loadingContext: any;
56
- groupTypes: any[];
35
+ brands: any[];
57
36
  allowedDOMAccess: boolean;
58
37
  showWarnings: boolean;
59
38
  autoFocus: boolean;
@@ -68,7 +47,6 @@ declare class SecuredFieldsProvider extends Component<SFPProps, SFPState> {
68
47
  onBinValue: () => void;
69
48
  onFocus: () => void;
70
49
  onAutoComplete: () => void;
71
- placeholders: {};
72
50
  styles: {};
73
51
  };
74
52
  componentDidMount(): void;