@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/es/adyen-kyc-components.es.js +245 -316
- package/dist/style.css +3 -0
- package/dist/types/components/Dropins/DropinComposer/components/DropinComposerComponent.d.ts +1 -1
- package/dist/types/components/PayoutDetails/rules.d.ts +0 -9
- package/dist/types/components/PayoutDetails/types.d.ts +3 -3
- package/dist/types/components/PayoutDetails/utils.d.ts +1 -0
- package/dist/types/components/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts +4 -2
- package/dist/types/components/PayoutVerificationMethod/types.d.ts +1 -1
- package/dist/types/components/internal/Address/components/SearchAddress.d.ts +1 -1
- package/dist/types/core/Context/CoreContext.d.ts +1 -0
- package/dist/types/core/hooks/useScenarioConfiguration.d.ts +2 -2
- package/package.json +1 -1
- package/dist/types/core/hooks/useIsElementVisible.d.ts +0 -2
package/dist/style.css
CHANGED
package/dist/types/components/Dropins/DropinComposer/components/DropinComposerComponent.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { DropinComposerProps } from '../../types';
|
|
2
|
-
export declare function DropinComposerComponent({
|
|
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
|
-
|
|
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;
|
package/dist/types/components/PayoutVerificationMethod/payoutVerificationMethodMetadata.d.ts
CHANGED
|
@@ -8,7 +8,9 @@ export interface PayoutVerificationMethodMetadata {
|
|
|
8
8
|
svgName: SvgName;
|
|
9
9
|
provider?: {
|
|
10
10
|
name: string;
|
|
11
|
-
svgName
|
|
11
|
+
svgName?: SvgName;
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
|
-
export declare const
|
|
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
|
-
|
|
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,
|
|
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
|
-
|
|
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,
|
|
26
|
+
export declare const useScenarioConfiguration: ({ getConfigurationData, getPayoutAccountFormatData, parseConfiguration, country, instantVerificationAvailable, setLoadingStatus, existingBankAccountFormat, }: UseScenarioConfigurationOptions) => ScenarioConfiguration;
|
package/package.json
CHANGED