@adyen/kyc-components 2.59.0 → 2.59.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.
package/dist/style.css CHANGED
@@ -285,6 +285,9 @@ button[disabled]:hover {
285
285
  display: inline-flex;
286
286
  vertical-align: baseline;
287
287
  }
288
+ .adyen-kyc-icon svg {
289
+ height: 100%;
290
+ }
288
291
  .adyen-kyc-icon svg path {
289
292
  fill: currentColor;
290
293
  }
@@ -1,2 +1,2 @@
1
1
  import type { DropinComposerProps } from '../../types';
2
- export declare function DropinComposerComponent({ capabilities, legalEntityResponse, onSubmit, onChange, onLoad, onNavigate, ...args }: DropinComposerProps): import("preact").JSX.Element;
2
+ export declare function DropinComposerComponent({ legalEntityResponse, onSubmit, onChange, onLoad, onNavigate, ...args }: DropinComposerProps): import("preact").JSX.Element;
@@ -1,12 +1,3 @@
1
1
  import type { FormRules } from '../../core/models/form-rules';
2
- import type { BankVerificationVendor } from '../BankVerification/types';
3
- import type { DropinAPIHandlers } from '../Dropins/types';
4
2
  import type { PayoutDetailsSchema } from './types';
5
- interface VerificationAvailableArgs {
6
- provider?: BankVerificationVendor;
7
- verificationVendorsCallback?: DropinAPIHandlers['handleGetBankVerificationVendors'];
8
- }
9
- export declare const isInstantVerificationAvailable: ({ verificationVendorsCallback, provider, }: VerificationAvailableArgs) => boolean;
10
- export declare const isProviderPlaidEmbedded: (redirectUrl: string | undefined) => boolean;
11
3
  export declare const rules: FormRules<PayoutDetailsSchema>;
12
- export {};
@@ -28,13 +28,12 @@ export interface PayoutDetailsProps extends BaseOuterFormProps<PayoutDetailsSche
28
28
  legalEntityResponse: ExistingLegalEntity;
29
29
  associatedLegalArrangement?: ExistingLegalEntity;
30
30
  taskType?: TaskTypes;
31
- handleGetBankVerificationVendors?: DropinAPIHandlers['handleGetBankVerificationVendors'];
32
31
  onBack?: () => void;
33
32
  onNext?: () => void;
34
33
  accountHolder: string;
35
34
  provider?: BankVerificationVendor;
36
35
  bankVendorsLoadingStatus: LoadingStatus;
37
- instantVerificationEnabled?: boolean;
36
+ instantVerificationAvailable: boolean;
38
37
  refreshLegalEntity?(): Promise<LegalEntity>;
39
38
  createTrustedTransferInstrument?: (code: string, state: string) => Promise<CreateTrustedTransferInstrumentResponse | undefined>;
40
39
  handleBankVerificationError?: (errorCode: string, errorMessage: string, state: string, metadata?: Map<string, string>) => Promise<BankVerificationErrorResponse>;
@@ -42,7 +41,8 @@ export interface PayoutDetailsProps extends BaseOuterFormProps<PayoutDetailsSche
42
41
  handleNextClick(): void;
43
42
  }
44
43
  export type PayoutDropinApiHandlers = Required<Pick<DropinAPIHandlers, 'handleCreateDocument' | 'handleGetDocument' | 'handleUpdateDocument' | 'handleUpdateTransferInstrument' | 'handleCreateTransferInstrument'>>;
45
- export interface PayoutDetailsDropinProps extends Omit<PayoutDetailsProps, 'country' | 'accountHolder' | 'handleNextClick' | 'bankVendorsLoadingStatus'>, Omit<DropinProps, 'legalEntityResponse'>, PayoutDropinApiHandlers {
44
+ export interface PayoutDetailsDropinProps extends Omit<PayoutDetailsProps, 'country' | 'accountHolder' | 'handleNextClick' | 'bankVendorsLoadingStatus' | 'instantVerificationAvailable'>, Omit<DropinProps, 'legalEntityResponse'>, PayoutDropinApiHandlers {
45
+ handleGetBankVerificationVendors?: DropinAPIHandlers['handleGetBankVerificationVendors'];
46
46
  accountHolder?: string;
47
47
  transferInstrument?: TransferInstrument;
48
48
  setTransferInstrument?: Dispatch<StateUpdater<TransferInstrument>>;
@@ -0,0 +1 @@
1
+ export declare const isProviderPlaidEmbedded: (redirectUrl?: string) => boolean;
@@ -8,7 +8,9 @@ export interface PayoutVerificationMethodMetadata {
8
8
  svgName: SvgName;
9
9
  provider?: {
10
10
  name: string;
11
- svgName: SvgName | string;
11
+ svgName?: SvgName;
12
12
  };
13
13
  }
14
- export declare const makePayoutVerificationMethodsMetadata: (instantVerificationProvider: string | undefined) => Record<VerificationMethod, PayoutVerificationMethodMetadata>;
14
+ export declare const getProviderName: (providerName?: string) => string;
15
+ export declare const getProviderIconName: (providerName?: string) => SvgName | undefined;
16
+ export declare const makePayoutVerificationMethodsMetadata: (instantVerificationProviderName?: string) => Record<VerificationMethod, PayoutVerificationMethodMetadata>;
@@ -18,7 +18,7 @@ export interface PayoutVerificationMethodProps extends BaseInnerFormProps<Payout
18
18
  accountHolder: string;
19
19
  provider?: BankVerificationVendor;
20
20
  bankVendorsLoadingStatus: LoadingStatus;
21
- instantVerificationAllowed: boolean;
21
+ instantVerificationAvailable: boolean;
22
22
  bankInfoValidated: boolean;
23
23
  legalEntityResponse: ExistingLegalEntity;
24
24
  handleNextClick: () => void;
@@ -1,4 +1,4 @@
1
1
  import type { JSX } from 'preact';
2
2
  import type { SearchAddressProps } from '../types';
3
- declare const SearchAddress: ({ data, legalEntityId, autocompleteAddressForm, handleChangeFor, handleAddressSearch, handleFindAddress, addressType, kompanyAddress, kompanyPrefilled, }: SearchAddressProps) => JSX.Element;
3
+ declare const SearchAddress: ({ data, legalEntityId, autocompleteAddressForm, handleChangeFor, handleAddressSearch, handleFindAddress, addressType, kompanyAddress, }: SearchAddressProps) => JSX.Element;
4
4
  export default SearchAddress;
@@ -10,5 +10,6 @@ export interface CoreContextType {
10
10
  accountFormat: BankAccountFormatType;
11
11
  setIsModalView: (isModal: boolean) => void;
12
12
  isModalView: boolean;
13
+ allowedCountries?: CountryCode[];
13
14
  }
14
15
  export declare const CoreContext: import("preact").Context<CoreContextType>;
@@ -16,11 +16,11 @@ export interface UseScenarioConfigurationOptions {
16
16
  country: CountryCode;
17
17
  setLoadingStatus: Dispatch<StateUpdater<LoadingStatus>>;
18
18
  getPayoutAccountFormatData?: () => Promise<PayoutAccountFormats>;
19
- instantVerificationEnabled?: boolean;
19
+ instantVerificationAvailable?: boolean;
20
20
  existingBankAccountFormat?: BankAccountFormatType;
21
21
  }
22
22
  export interface ScenarioConfiguration {
23
23
  fieldConfigurations: FieldConfigurations<any> | undefined;
24
24
  requiredFields: AccountFormatRequirements | undefined;
25
25
  }
26
- export declare const useScenarioConfiguration: ({ getConfigurationData, getPayoutAccountFormatData, parseConfiguration, country, instantVerificationEnabled, setLoadingStatus, existingBankAccountFormat, }: UseScenarioConfigurationOptions) => ScenarioConfiguration;
26
+ export declare const useScenarioConfiguration: ({ getConfigurationData, getPayoutAccountFormatData, parseConfiguration, country, instantVerificationAvailable, setLoadingStatus, existingBankAccountFormat, }: UseScenarioConfigurationOptions) => ScenarioConfiguration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.59.0",
3
+ "version": "2.59.2",
4
4
  "keywords": [
5
5
  "adyen",
6
6
  "adyen-kyc",
@@ -1,2 +0,0 @@
1
- import type { MutableRef } from 'preact/hooks';
2
- export declare function useIsElementVisible(ref: MutableRef<Element>, fallback?: boolean): boolean;