@adyen/kyc-components 2.2.6 → 2.3.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.
- package/dist/es/adyen-kyc-components.es.js +1705 -1570
- package/dist/types/components/BankVerification/types.d.ts +3 -5
- package/dist/types/components/BankVerification/validate.d.ts +3 -0
- package/dist/types/components/BankVerification/verification/widget/component/BankVerificationWidget.d.ts +2 -2
- package/dist/types/components/BankVerification/verification/widget/iframeWidget.d.ts +1 -4
- package/dist/types/components/Dropins/PayoutDetailsDropin/components/PayoutDetailsDropinComponent.d.ts +1 -1
- package/dist/types/components/PayoutDetails/types.d.ts +1 -1
- package/dist/types/core/hooks/useForm/types.d.ts +1 -1
- package/dist/types/core/hooks/useFormComposer.d.ts +4 -2
- package/package.json +1 -1
|
@@ -4,7 +4,6 @@ import { BankVerificationVendorsResponse } from '../../core/models/api/contracts
|
|
|
4
4
|
import { LegalEntity } from '../../core/models/api/legal-entity';
|
|
5
5
|
import { CountryCode } from '../../core/models/country-code';
|
|
6
6
|
import { Currency } from '../../core/models/currency';
|
|
7
|
-
import { VendorIdentifier } from './verification/widget/iframeWidget';
|
|
8
7
|
export interface AccountVerificationResponse {
|
|
9
8
|
bankName: string;
|
|
10
9
|
name: string;
|
|
@@ -23,12 +22,11 @@ export interface PayoutAccountVerificationProps extends BaseInnerFormProps<Accou
|
|
|
23
22
|
getBankVerificationVendors: (country: string) => Promise<BankVerificationVendorsResponse>;
|
|
24
23
|
setBankVerificationError: (error: InstantVerificationErrorNotification) => void;
|
|
25
24
|
onBack?: () => void;
|
|
26
|
-
onNext?: () => void;
|
|
27
25
|
country?: string;
|
|
28
|
-
hideDropinLayout
|
|
26
|
+
hideDropinLayout: StateUpdater<boolean>;
|
|
29
27
|
bankInfoValidated: boolean;
|
|
30
28
|
setBankInfoValidated: StateUpdater<boolean>;
|
|
31
|
-
hideOnHomeButton
|
|
29
|
+
hideOnHomeButton: StateUpdater<boolean>;
|
|
32
30
|
formIsActive: boolean;
|
|
33
31
|
refreshLegalEntity?(): Promise<LegalEntity>;
|
|
34
32
|
}
|
|
@@ -41,7 +39,7 @@ export interface InstantBankVerificationProps {
|
|
|
41
39
|
}
|
|
42
40
|
export type CountryBankVerificationVendors = Partial<Record<CountryCode, string>>;
|
|
43
41
|
export interface BankVerificationVendor {
|
|
44
|
-
name?:
|
|
42
|
+
name?: string;
|
|
45
43
|
redirectUrl?: string;
|
|
46
44
|
}
|
|
47
45
|
export interface InstantVerificationErrorNotification {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './BankVerificationWidget.scss';
|
|
2
2
|
import { AccountVerificationResponse } from '../../../types';
|
|
3
|
-
import { AccountVerificationCallbackErrorObject
|
|
3
|
+
import { AccountVerificationCallbackErrorObject } from '../iframeWidget';
|
|
4
4
|
type SuccessPayload = {
|
|
5
5
|
action: 'verification_success';
|
|
6
6
|
result: {
|
|
@@ -17,7 +17,7 @@ type RetryPayload = {
|
|
|
17
17
|
export type VerificationWidgetCallback = (payload: SuccessPayload | ExceptionPayload | RetryPayload) => void;
|
|
18
18
|
export type BankVerificationWidgetProps = {
|
|
19
19
|
url: string;
|
|
20
|
-
vendor:
|
|
20
|
+
vendor: string;
|
|
21
21
|
widgetCallback: VerificationWidgetCallback;
|
|
22
22
|
};
|
|
23
23
|
export declare function BankVerificationWidget({ url, vendor, widgetCallback, }: BankVerificationWidgetProps): import("preact").JSX.Element;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { AccountVerificationResponse } from '../../types';
|
|
2
|
-
export declare const vendorIdentifiers: readonly ["Tink", "PayWithMyBank"];
|
|
3
|
-
export type VendorIdentifier = (typeof vendorIdentifiers)[number];
|
|
4
|
-
export declare const TINK_VENDOR: "Tink", TRUSTLY_VENDOR: "PayWithMyBank";
|
|
5
2
|
export interface AccountVerificationReportIdMessage {
|
|
6
3
|
type: 'account_verification_report_id';
|
|
7
4
|
data: string;
|
|
@@ -28,7 +25,7 @@ export default class IFrameWidget {
|
|
|
28
25
|
private listener;
|
|
29
26
|
private mountInProgress;
|
|
30
27
|
private iframeUrlState;
|
|
31
|
-
constructor(iframeElement: HTMLIFrameElement, url: string, vendor:
|
|
28
|
+
constructor(iframeElement: HTMLIFrameElement, url: string, vendor: string);
|
|
32
29
|
removeMessageEventListener(): void;
|
|
33
30
|
private handleMessage;
|
|
34
31
|
unmount(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LegalEntity } from '../../../../core/models/api/legal-entity';
|
|
2
2
|
import { PayoutDetailsDropinProps } from '../../../PayoutDetails/types';
|
|
3
3
|
export declare const getRegistrationCountry: (legalEntityResponse: LegalEntity) => "ID" | "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BV" | "BR" | "IO" | "BN" | "BG" | "BF" | "BI" | "KH" | "CM" | "CA" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "CI" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "EL" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "HM" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KP" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "FM" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "SH" | "KN" | "LC" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "US" | "UM" | "UY" | "UZ" | "VU" | "VE" | "VN" | "VG" | "VI" | "WF" | "EH" | "YE" | "ZM" | "ZW";
|
|
4
|
-
export declare function PayoutDetailsDropinComponent(
|
|
4
|
+
export declare function PayoutDetailsDropinComponent({ transferInstrument, setTransferInstrument, handleCreateDocument, handleGetDocument, handleUpdateDocument, handleUpdateTransferInstrument, handleCreateTransferInstrument, handleGetBankVerificationVendors, legalEntityResponse, trackingConfig, accountHolder, country, problems: propProblems, onSubmit: externalOnSubmit, onChange, taskType, taskName, eventEmitter, capabilities, handleHomeClick, homeButtonLabel, refreshLegalEntity, navigateBackToTaskList, }: PayoutDetailsDropinProps): import("preact").JSX.Element;
|
|
@@ -31,7 +31,6 @@ export interface PayoutDetailsProps extends BaseOuterFormProps<PayoutDetailsSche
|
|
|
31
31
|
onNext?: () => void;
|
|
32
32
|
accountHolder?: string;
|
|
33
33
|
bankVerificationVendors?: CountryBankVerificationVendors;
|
|
34
|
-
navigateBackToTaskList?: () => void;
|
|
35
34
|
instantVerificationEnabled?: boolean;
|
|
36
35
|
refreshLegalEntity?(): Promise<LegalEntity>;
|
|
37
36
|
}
|
|
@@ -39,4 +38,5 @@ export interface PayoutDetailsDropinProps extends PayoutDetailsProps, DropinProp
|
|
|
39
38
|
accountHolder?: string;
|
|
40
39
|
transferInstrument?: TransferInstrument;
|
|
41
40
|
setTransferInstrument?: StateUpdater<TransferInstrument>;
|
|
41
|
+
navigateBackToTaskList?(): void;
|
|
42
42
|
}
|
|
@@ -71,7 +71,7 @@ export interface BaseOuterFormProps<FormSchema> extends BaseFormProps<FormSchema
|
|
|
71
71
|
setHideOnHomeButton?: StateUpdater<boolean>;
|
|
72
72
|
setHideBackButton?: StateUpdater<boolean>;
|
|
73
73
|
setSubmitButtonLabel?: StateUpdater<string>;
|
|
74
|
-
|
|
74
|
+
setSkipSubmit?: StateUpdater<boolean>;
|
|
75
75
|
}
|
|
76
76
|
export interface BaseInnerFormProps<FormSchema> extends BaseFormProps<FormSchema> {
|
|
77
77
|
formVerificationErrors?: FormVerificationErrors;
|
|
@@ -12,11 +12,13 @@ export interface FormComposer {
|
|
|
12
12
|
shouldValidate: boolean;
|
|
13
13
|
setShouldValidate: StateUpdater<boolean>;
|
|
14
14
|
}
|
|
15
|
-
export declare const useFormComposer: ({ problems, baseTrackingPayload, forms, formRef, submitButtonLabel, onSubmit, }: {
|
|
15
|
+
export declare const useFormComposer: ({ problems, baseTrackingPayload, forms, formRef, submitButtonLabel, onSubmit, skipSubmit, onSkipSubmit, }: {
|
|
16
16
|
problems: EntityProblems;
|
|
17
17
|
baseTrackingPayload: BaseTrackingPayload;
|
|
18
18
|
forms: FormModelWithValidity[];
|
|
19
|
-
formRef
|
|
19
|
+
formRef?: any;
|
|
20
20
|
submitButtonLabel?: TranslationKey;
|
|
21
21
|
onSubmit(): void;
|
|
22
|
+
skipSubmit?: boolean;
|
|
23
|
+
onSkipSubmit?(): void;
|
|
22
24
|
}) => FormComposer;
|