@adyen/kyc-components 3.76.0-beta.1 → 4.0.0-beta.1
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/{AcceptTermsOfServiceComponent-BOQpgDuh.js → AcceptTermsOfServiceComponent-BQ4Yct7L.js} +6 -6
- package/dist/{AccountSetupRejected-CLD5yPUd.js → AccountSetupRejected-UVhxMcAe.js} +2 -2
- package/dist/{Avatar-ByXDvRnN.js → Avatar-NEiNEcRx.js} +1 -1
- package/dist/{BusinessDetailsDropin-CC8AQSzz.js → BusinessDetailsDropin-l0xfPekL.js} +18 -47
- package/dist/{BusinessFinancingComponent-DaTK2ha9.js → BusinessFinancingComponent-Bs-poF2d.js} +2 -2
- package/dist/{BusinessFinancingDropin-Cxo-nBOC.js → BusinessFinancingDropin-DoRzdS4n.js} +10 -20
- package/dist/{BusinessFinancingPage-CBxphlTv.js → BusinessFinancingPage-DSlmJmOK.js} +2 -2
- package/dist/{BusinessTypeSelectionPage-BTtEGnSf.js → BusinessTypeSelectionPage-Bmi_8K2g.js} +4 -4
- package/dist/{ContractViewer-Df9tNJPa.js → ContractViewer-R4-gfVmp.js} +1 -1
- package/dist/{CreateIndividualComponent-CB4EKaBU.js → CreateIndividualComponent-D3aXuYRk.js} +3 -3
- package/dist/{CreateTransferInstrumentComponent-DzLl5c2J.js → CreateTransferInstrumentComponent-C-ncZ-A8.js} +2 -2
- package/dist/{CustomerSupport-WjBJL8ee.js → CustomerSupport-CMFRgQNa.js} +5 -5
- package/dist/{DebugModal-DTjZh61l.js → DebugModal-BEmhG3UP.js} +8 -8
- package/dist/{DecisionMakerDetailsPage-CGHxqfLV.js → DecisionMakerDetailsPage-DI2Ubmef.js} +3 -3
- package/dist/{DecisionMakers-Cq1ugA0Q.js → DecisionMakers-BKhtcs_K.js} +4 -4
- package/dist/{EmbeddedStatus-U4HvtsbX.js → EmbeddedStatus-BsZsXbKc.js} +2 -2
- package/dist/{FormEndState-DXjakR3n.js → FormEndState-C3HCmXcw.js} +1 -1
- package/dist/{FormFlow-DQdofZrs.js → FormFlow-Bt-mu4Wm.js} +2 -2
- package/dist/{IndividualOnfidoDropin-Ces-NVRq.js → IndividualOnfidoDropin-DGMCOm9M.js} +12 -80
- package/dist/{Introduction-CoAMVQ3N.js → Introduction-DJ6qIUPC.js} +3 -3
- package/dist/{LegalRepresentativeDetailsPage-DR4k-6tr.js → LegalRepresentativeDetailsPage-CyHwQR_W.js} +3 -3
- package/dist/{ManageIndividualComponent-DCy_23X2.js → ManageIndividualComponent-BIMCvcr2.js} +3 -3
- package/dist/{ManagePCIComponent-mIpoEgqY.js → ManagePCIComponent-Blj60xLa.js} +3 -3
- package/dist/{ManageTermsOfServiceComponent-BhbLMdNx.js → ManageTermsOfServiceComponent-CsM23jq3.js} +3 -3
- package/dist/{ManageTransferInstrumentComponent-BPiWJOhY.js → ManageTransferInstrumentComponent-Vut9_bRn.js} +3 -3
- package/dist/{OnboardingDropinComponent-BVaYr5u1.js → OnboardingDropinComponent-BW6er2HU.js} +44 -45
- package/dist/{ProviderButton-BhJVIjNR.js → ProviderButton-DAsW5EVa.js} +2 -2
- package/dist/{Review-C5hzFoFb.js → Review-DWDbL9-9.js} +3 -3
- package/dist/{RootBusinessDetailsPage-msInyOAG.js → RootBusinessDetailsPage-BTYIldSf.js} +2 -2
- package/dist/{RootIndividualDetailsPage-DkzqPD70.js → RootIndividualDetailsPage-DCxJ3ycQ.js} +3 -3
- package/dist/{SignPCIComponent-DGUa4ESJ.js → SignPCIComponent-kHaxhkWa.js} +5 -5
- package/dist/{SingpassSelection-ChJWE7tg.js → SingpassSelection-Dmlbiq4Z.js} +2 -2
- package/dist/{SoleProprietorshipPage-Bkz3cuhd.js → SoleProprietorshipPage-Bdhs90-q.js} +2 -2
- package/dist/{SourceOfFunds.module-D9RYIoX3.js → SourceOfFunds.module-xwHIboir.js} +1 -1
- package/dist/{SourceOfFundsPage-gHK01p0a.js → SourceOfFundsPage-Bj22DAFv.js} +9 -14
- package/dist/{StoreProvider-BPX6_P1w.js → StoreProvider-BmzY19Td.js} +423 -367
- package/dist/{TaskItemStatus-Cja3jHef.js → TaskItemStatus-CB6FEOnk.js} +2 -2
- package/dist/{TaxReportingDropin-EGclbYvF.js → TaxReportingDropin-jofokkei.js} +7 -7
- package/dist/{TileGroup-D2oyZXRy.js → TileGroup-i5Jc08ns.js} +2 -2
- package/dist/{TrustDetailsPage-BjZh9pfZ.js → TrustDetailsPage-B6HmvYUf.js} +9 -9
- package/dist/{TrustMemberCompanyPage-YzgDh_y0.js → TrustMemberCompanyPage-D3VJOq6a.js} +3 -3
- package/dist/{TrustMemberIndividualPage-B08_52rA.js → TrustMemberIndividualPage-1aeOYsnG.js} +3 -3
- package/dist/{UnincorporatedPartnershipIndividualPage-DECzh_NU.js → UnincorporatedPartnershipIndividualPage-Bt7e6ncF.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-CY5rfvMd.js → UnincorporatedPartnershipMemberCompanyPage-Ck5C_SEU.js} +2 -2
- package/dist/{VerificationErrorAlert-BMxnbhxL.js → VerificationErrorAlert-DhtKOmjt.js} +1 -1
- package/dist/{ViewVerificationStatusComponent-MQ3YZjpk.js → ViewVerificationStatusComponent-DtKLcCGI.js} +2 -2
- package/dist/adyen-business-financing.js +2 -2
- package/dist/adyen-individual.js +2 -2
- package/dist/adyen-kyc-components.js +14 -14
- package/dist/adyen-manage-individual.js +2 -2
- package/dist/adyen-manage-pci.js +2 -2
- package/dist/adyen-manage-terms-of-service.js +2 -2
- package/dist/adyen-manage-transfer-instruments.js +2 -2
- package/dist/adyen-onboarding.js +2 -2
- package/dist/adyen-sign-pci.js +2 -2
- package/dist/adyen-terms-of-service.js +2 -2
- package/dist/adyen-transfer-instrument.js +2 -2
- package/dist/adyen-verification-status.js +2 -2
- package/dist/{css-CCYsn1Bx.js → css-CQUoQdd2.js} +1 -1
- package/dist/{getFieldsWithExistingData-Df64vw7x.js → getFieldsWithExistingData-BW8_TEQl.js} +2 -2
- package/dist/{hasDataChanged-sUtN0Sjv.js → hasDataChanged-Mu0HyZ3E.js} +1 -1
- package/dist/{json-BYBI9iH_.js → json-DWikzB4g.js} +1 -1
- package/dist/{localizeDateString-CNlJ2Twp.js → localizeDateString-QtCjf8Fg.js} +1 -1
- package/dist/{mapFinancialReportsToFinancialInformation-ByUX4IZt.js → mapFinancialReportsToFinancialInformation-C-2jp0wg.js} +2 -2
- package/dist/{plaintext-BuWLFFGU.js → plaintext-B39yQnOr.js} +1 -1
- package/dist/{resolveEnvironment-CeEOE-Ml.js → resolveEnvironment-Dx0BPNMa.js} +3 -3
- package/dist/{rules-BOvgh8q2.js → rules-CUANHpja.js} +2 -2
- package/dist/style.css +0 -19
- package/dist/styles-CLV89_hH.js +0 -19
- package/dist/types/api/transferInstruments/useHandleBankVerificationError.d.ts +3 -3
- package/dist/types/components/EFP/fields/LegalFormField/LegalFormField.d.ts +1 -1
- package/dist/types/components/EFP/fields/NaceCodeField/NaceCodeField.d.ts +1 -1
- package/dist/types/components/EFP/tasks/SourceOfFundsDropin/utils.d.ts +0 -1
- package/dist/types/components/Individual/fields/IdentityNumber/IdentityNumber.d.ts +0 -1
- package/dist/types/components/Individual/fields/NameFields/NameFields.d.ts +2 -1
- package/dist/types/components/Individual/mapping/individualOnfidoKeyMappings.d.ts +1 -0
- package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts +5 -3
- package/dist/types/components/Shared/fields/CountryField/CountryField.d.ts +1 -1
- package/dist/types/components/Shared/fields/CountryOfGoverningLawField/CountryOfGoverningLawField.d.ts +1 -1
- package/dist/types/components/Shared/fields/StateField/StateField.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/AddressField.d.ts +1 -1
- package/dist/types/components/Shared/forms/Address/SearchAddress.d.ts +2 -2
- package/dist/types/components/Shared/forms/Address/types.d.ts +0 -1
- package/dist/types/components/ui/atoms/Checkbox/Checkbox.d.ts +1 -2
- package/dist/types/components/ui/atoms/Field/Field.d.ts +1 -1
- package/dist/types/components/ui/atoms/Field/Field.types.d.ts +2 -0
- package/dist/types/components/ui/molecules/MaskedInput/MaskedInput.d.ts +1 -5
- package/dist/types/context/StateContext/types.d.ts +0 -1
- package/dist/types/hooks/useForm/types.d.ts +1 -2
- package/dist/types/utils/api/processCapabilitites.d.ts +2 -1
- package/dist/{useMultiForm-CZt22ApL.js → useMultiForm-Bwx2nVhh.js} +2 -2
- package/dist/{useOnboardingStatus-DUpCpEX5.js → useOnboardingStatus-Cwba-HzS.js} +1 -1
- package/dist/{useSalesChannelsSettings-7_LCHKOD.js → useSalesChannelsSettings-BLzegVJh.js} +1 -1
- package/dist/{useTermsOfServiceStatus-XQrO9fJx.js → useTermsOfServiceStatus-C-i9mF4m.js} +1 -1
- package/dist/{useUpdateLegalEntity-n02Bk4nJ.js → useUpdateLegalEntity-xQlAqIqy.js} +2 -2
- package/dist/{utils-0EQ0eKAn.js → utils-DXv7uAh6.js} +4 -4
- package/dist/{validate-DVNNANhX.js → validate-BN5p-GhK.js} +2 -2
- package/dist/{yaml-Ca7Tl3w_.js → yaml-jFdy-qnY.js} +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { NaceCodeFieldProps } from './types';
|
|
2
|
-
export declare function NaceCodeField({ name, data, valid, errorMessage, label, readonly, handleChangeFor, helperText,
|
|
2
|
+
export declare function NaceCodeField({ name, data, valid, errorMessage, label, readonly, handleChangeFor, helperText, }: NaceCodeFieldProps): import("preact/jsx-runtime").JSX.Element;
|
|
@@ -61,7 +61,6 @@ export declare const formatDateForInput: (isoDateString?: string) => string;
|
|
|
61
61
|
export declare const getSofCardDetails: (i18n: Language, sourceOfFunds?: SourceOfFundsType) => string;
|
|
62
62
|
export declare const ALLOWED_SOF_SERVICES: string[];
|
|
63
63
|
export declare const SOF_INVALID_INPUT_ERROR_CODES: string[];
|
|
64
|
-
export declare const SOF_ALL_INVALID_INPUT_ERRORS: string[];
|
|
65
64
|
export declare const getRelevantErrors: (problems: Problem[] | undefined, targetCodes: string[]) => false | VerificationError[];
|
|
66
65
|
export declare const getUniqueRemediationActions: (error: VerificationError) => import("../../../../core/models/api/remediating-action").RemediatingAction[];
|
|
67
66
|
export declare const SOF_DATA_MISSING_ERROR_CODES: string[];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import './IdentityNumber.scss';
|
|
2
1
|
import type { IdentityNumberProps, IdentityNumberSchema } from './type';
|
|
3
2
|
export declare const idNumberFields: (keyof IdentityNumberSchema)[];
|
|
4
3
|
export declare function IdentityNumber(props: IdentityNumberProps): import("preact/jsx-runtime").JSX.Element | undefined;
|
|
@@ -2,7 +2,8 @@ import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
|
|
|
2
2
|
interface FieldConfig<FormSchema> {
|
|
3
3
|
name: keyof FormSchema;
|
|
4
4
|
label: string;
|
|
5
|
-
|
|
5
|
+
/** @deprecated */
|
|
6
|
+
classNameModifiers?: string[];
|
|
6
7
|
helper?: string;
|
|
7
8
|
isValid?: boolean;
|
|
8
9
|
}
|
|
@@ -5,3 +5,4 @@ export declare const individualOnfidoObscuredFields: Array<MappingKey<Individual
|
|
|
5
5
|
export declare const individualOnfidoBaseMapping: MappingRecord<IndividualOnfidoSchema, Pick<LegalEntity, 'individual'>>;
|
|
6
6
|
export declare const individualOnfidoApiKeyMapping: MappingRecord<Pick<LegalEntity, 'individual'>, IndividualOnfidoSchema>;
|
|
7
7
|
export declare const individualOnfidoDocumentMapping: DocumentMappingRecord<IndividualOnfidoSchema>;
|
|
8
|
+
export declare const remediationIndividualOnfidoApiKeyMapping: MappingRecord<Pick<LegalEntity, 'individual'>, IndividualOnfidoSchema> & DocumentMappingRecord<IndividualOnfidoSchema>;
|
package/dist/types/components/Shared/fields/BusinessRegistrationNumberField/fieldConfig.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ExperimentName } from '../../../../context/ExperimentContext/types';
|
|
2
2
|
import { CompanyTypesValue } from '../../../../core/models/api/company-types-value';
|
|
3
3
|
import type { StateCodeUS } from '../../../../types/datasets/state-code';
|
|
4
|
-
import type { FieldMetadata, PerCountryFieldConfig } from '../../../../utils/fieldConfigurations';
|
|
4
|
+
import type { FieldMetadata, NoParams, PerCountryFieldConfig } from '../../../../utils/fieldConfigurations';
|
|
5
5
|
import type { CompanyRegistrationNumberType } from '../IdFieldTypeSelector/countryIdNumberTypes';
|
|
6
6
|
import type { BusinessRegistrationNumberFieldSchema } from './types';
|
|
7
7
|
interface FieldConfigParams {
|
|
@@ -10,6 +10,8 @@ interface FieldConfigParams {
|
|
|
10
10
|
state?: StateCodeUS | undefined;
|
|
11
11
|
isExperimentEnabled?: (experiment: ExperimentName) => boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
13
|
+
export declare const registrationNumberDefaultFieldMetadata: FieldMetadata<BusinessRegistrationNumberFieldSchema, 'registrationNumber'>;
|
|
14
|
+
export declare const registrationNumberDefaultFieldConfig: PerCountryFieldConfig<BusinessRegistrationNumberFieldSchema, 'registrationNumber', FieldConfigParams>;
|
|
15
|
+
export declare const exemptFromRegistrationNumberDefaultFieldMetadata: FieldMetadata<BusinessRegistrationNumberFieldSchema, 'exemptedFromRegistrationNumber'>;
|
|
16
|
+
export declare const exemptFromRegistrationNumberDefaultFieldConfig: PerCountryFieldConfig<BusinessRegistrationNumberFieldSchema, 'exemptedFromRegistrationNumber', NoParams>;
|
|
15
17
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { CountryFieldProps, CountryFieldSchema } from './types';
|
|
2
2
|
export declare const COUNTRY_FIELD: Array<keyof CountryFieldSchema>;
|
|
3
|
-
export declare function CountryField({ name, data, valid, errors, labels, readonly, handleChangeFor, helperText, allowedCountries,
|
|
3
|
+
export declare function CountryField({ name, data, valid, errors, labels, readonly, handleChangeFor, helperText, allowedCountries, handleBlur, }: CountryFieldProps): import("preact/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { CountryOfGoverningLawFieldProps, CountryOfGoverningLawFieldSchema } from './types';
|
|
2
2
|
export declare const COUNTRY_OF_GOVERNING_LAW_FIELD: Array<keyof CountryOfGoverningLawFieldSchema>;
|
|
3
|
-
export declare function CountryOfGoverningLawField({ data, valid, errors, labels, readonly, handleChangeFor, helperText, allowedCountries, country,
|
|
3
|
+
export declare function CountryOfGoverningLawField({ data, valid, errors, labels, readonly, handleChangeFor, helperText, allowedCountries, country, }: CountryOfGoverningLawFieldProps): import("preact/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { StateFieldProps, StateFieldSchema } from './types';
|
|
2
2
|
export declare const STATE_FIELD: Array<keyof StateFieldSchema>;
|
|
3
|
-
export declare function StateField({ data, valid, errors, labels, placeholders, readonly, handleChangeFor, selectedCountry,
|
|
3
|
+
export declare function StateField({ data, valid, errors, labels, placeholders, readonly, handleChangeFor, selectedCountry, handleBlur, }: StateFieldProps): import("preact/jsx-runtime").JSX.Element | null;
|
|
@@ -6,4 +6,4 @@ import type { AddressFieldProps } from './types';
|
|
|
6
6
|
* NOT TO BE USED: if you just want to add a Country or State dropdown outside of an Address component
|
|
7
7
|
* - then you should implement <CountryField> or <StateField> directly
|
|
8
8
|
*/
|
|
9
|
-
export declare function AddressField({
|
|
9
|
+
export declare function AddressField({ schema, data, valid, errors, fieldProblems, fieldName, trimOnBlur, hideField, maxlength, readOnly, optional, handleChangeFor, handleBlur, }: AddressFieldProps): import("preact/jsx-runtime").JSX.Element | null;
|
|
@@ -2,7 +2,7 @@ import type { RetrieveAddressSuccessResponse } from '../../../../api/address/add
|
|
|
2
2
|
import type { Translatable } from '../../../../../types';
|
|
3
3
|
import type { AddressFieldProps } from '../../forms/Address/types';
|
|
4
4
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
5
|
-
interface SearchAddressProps extends Pick<AddressFieldProps, '
|
|
5
|
+
interface SearchAddressProps extends Pick<AddressFieldProps, 'readOnly' | 'optional' | 'handleBlur'> {
|
|
6
6
|
addressText?: string;
|
|
7
7
|
country: CountryCode | undefined;
|
|
8
8
|
labelKey: Translatable;
|
|
@@ -11,5 +11,5 @@ interface SearchAddressProps extends Pick<AddressFieldProps, 'classNameModifiers
|
|
|
11
11
|
onAddressTextChange(addressText: string): void;
|
|
12
12
|
onAutofillAddress(foundAddress: RetrieveAddressSuccessResponse): void;
|
|
13
13
|
}
|
|
14
|
-
export declare const SearchAddress: ({ addressText, country, labelKey, errorMessage, isValid,
|
|
14
|
+
export declare const SearchAddress: ({ addressText, country, labelKey, errorMessage, isValid, readOnly, optional, handleBlur, onAddressTextChange, onAutofillAddress, }: SearchAddressProps) => import("preact/jsx-runtime").JSX.Element;
|
|
15
15
|
export {};
|
|
@@ -24,7 +24,6 @@ export interface AddressProps extends BaseInnerFormProps<AddressSchema> {
|
|
|
24
24
|
condensed?: boolean;
|
|
25
25
|
}
|
|
26
26
|
export interface AddressFieldProps {
|
|
27
|
-
classNameModifiers?: string[];
|
|
28
27
|
schema?: Array<keyof AddressSchema>;
|
|
29
28
|
data: AddressSchema;
|
|
30
29
|
fieldName: keyof AddressSchema;
|
|
@@ -5,7 +5,6 @@ interface CheckboxProps extends Partial<FieldChildProps> {
|
|
|
5
5
|
id: string;
|
|
6
6
|
checked: boolean;
|
|
7
7
|
onChange: (isChecked: boolean) => void;
|
|
8
|
-
classNameModifiers?: string[];
|
|
9
8
|
label: string | ComponentChild;
|
|
10
9
|
name: string;
|
|
11
10
|
className?: string;
|
|
@@ -18,5 +17,5 @@ interface CheckboxProps extends Partial<FieldChildProps> {
|
|
|
18
17
|
'aria-invalid'?: boolean;
|
|
19
18
|
'aria-describedby'?: string;
|
|
20
19
|
}
|
|
21
|
-
export declare function Checkbox({ id, name, value, className,
|
|
20
|
+
export declare function Checkbox({ id, name, value, className, label, isInvalid, onChange, helper, checked, readonly, disabled, enableTracking, 'aria-required': ariaRequired, 'aria-invalid': ariaInvalid, 'aria-describedby': ariaDescribedBy, }: Readonly<CheckboxProps>): import("preact/jsx-runtime").JSX.Element;
|
|
22
21
|
export {};
|
|
@@ -27,4 +27,4 @@ export type MaybeLabelElementProps = {
|
|
|
27
27
|
</Field>
|
|
28
28
|
* ```
|
|
29
29
|
*/
|
|
30
|
-
export declare const Field: ({ className, classNameModifiers, children, disabled, optional, errorMessage, formatGuidance, focused, helper, helperPosition, isValid, label, name, showErrorIconBottom, el, wrapperRef, onBlur, onFieldBlur, onFocus, onFocusField, }: FieldProps) => JSX.Element;
|
|
30
|
+
export declare const Field: ({ className, classNameModifiers, children, disabled, optional, errorMessage, formatGuidance, focused, helper, helperPosition, isValid, label, name, showErrorIconBottom, el, wrapperRef, dataTestId, onBlur, onFieldBlur, onFocus, onFocusField, }: FieldProps) => JSX.Element;
|
|
@@ -20,14 +20,10 @@ export interface MaskedInputProps extends MaskSettings {
|
|
|
20
20
|
readonly?: boolean;
|
|
21
21
|
disabled?: boolean;
|
|
22
22
|
optional?: boolean;
|
|
23
|
-
classNameModifiers?: {
|
|
24
|
-
field?: string[];
|
|
25
|
-
input?: string[];
|
|
26
|
-
};
|
|
27
23
|
acceptObscuredValue?: boolean;
|
|
28
24
|
helper?: string | JSX.Element;
|
|
29
25
|
helperPosition?: 'above' | 'below';
|
|
30
26
|
useFieldComponent?: boolean;
|
|
31
27
|
stripNonAllowedInputs?: boolean;
|
|
32
28
|
}
|
|
33
|
-
export declare const MaskedInput: ({ value, onInput, onBlur, onFocus, onMismatch: onMismatchExternal, isValid: validationIsValid, errorMessage, shouldValidate, mask, name, label, placeholder, transformOnType, type, readonly, disabled, optional, formatGuidance,
|
|
29
|
+
export declare const MaskedInput: ({ value, onInput, onBlur, onFocus, onMismatch: onMismatchExternal, isValid: validationIsValid, errorMessage, shouldValidate, mask, name, label, placeholder, transformOnType, type, readonly, disabled, optional, formatGuidance, acceptObscuredValue, helper, helperPosition, useFieldComponent, stripNonAllowedInputs, }: MaskedInputProps) => JSX.Element;
|
|
@@ -54,7 +54,6 @@ export type StateModel<TLDS extends TopLevelDataSchema = TopLevelDataSchema> = {
|
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
export type TopLevelDataSchema = IndividualSchema | IndividualOnfidoSchema | BusinessDetailsSchema | CustomerSupportSchema | PayoutDetailsSchema | TrustSchema | TrustMemberSchema | BusinessFinancingSchema | SourceOfFundsSchema | TaxReportingSchema;
|
|
57
|
-
export type AnyFormIdOfTLDS = keyof IndividualSchema | keyof BusinessDetailsSchema | keyof PayoutDetailsSchema | keyof TrustSchema | keyof TrustMemberSchema;
|
|
58
57
|
export interface State<TLDS extends TopLevelDataSchema> {
|
|
59
58
|
data: TLDS;
|
|
60
59
|
allData: TLDS;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Dispatch, StateUpdater } from 'preact/hooks';
|
|
2
|
-
import type { AnyFormIdOfTLDS } from '../../context/StateContext/types';
|
|
3
2
|
import type { Translatable, TranslationKey } from '../../../types';
|
|
4
3
|
import type { CapabilityName } from '../../core/models/api/capability';
|
|
5
4
|
import type { TrustedFieldsProvider } from '../../core/models/api/trusted-fields-provider';
|
|
@@ -38,8 +37,8 @@ export interface BaseFormFieldProps<FieldSchema> {
|
|
|
38
37
|
guidanceText?: Partial<Record<keyof FieldSchema, string>>;
|
|
39
38
|
placeholders?: Partial<Record<keyof FieldSchema, string>>;
|
|
40
39
|
className?: string;
|
|
40
|
+
/** @deprecated */
|
|
41
41
|
classNameModifiers?: string[];
|
|
42
|
-
stateSliceId?: AnyFormIdOfTLDS;
|
|
43
42
|
name?: string;
|
|
44
43
|
requiredFields?: Partial<Array<keyof FieldSchema>>;
|
|
45
44
|
handleChangeFor: (key: keyof FieldSchema, mode?: ValidatorMode) => (e: any) => void;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { ExperimentName } from '../../context/ExperimentContext/types';
|
|
1
2
|
import type { CapabilityName } from '../../core/models/api/capability';
|
|
2
3
|
import type { ExistingLegalEntity } from '../../core/models/api/legal-entity';
|
|
3
4
|
import type { ExistingTransferInstrument } from '../../core/models/api/transfer-instrument';
|
|
4
5
|
import type { CountryCode } from '../../types/datasets/country-code';
|
|
5
6
|
import type { CapabilityProblems } from '../../types/errors/capability-problems';
|
|
6
7
|
import type { Remediation } from '../../types/errors/remediation';
|
|
7
|
-
export declare function getCapabilityProblems(entity: ExistingLegalEntity | ExistingTransferInstrument, country: CountryCode): CapabilityProblems;
|
|
8
|
+
export declare function getCapabilityProblems(entity: ExistingLegalEntity | ExistingTransferInstrument, country: CountryCode, isExperimentEnabled?: (key: ExperimentName) => boolean): CapabilityProblems;
|
|
8
9
|
export declare const remediationHasFileUploadField: (remediation: Remediation) => boolean;
|
|
9
10
|
export declare const getCapabilities: (legalEntity?: ExistingLegalEntity) => CapabilityName[];
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "a1198856-c0ed-47aa-8023-3a8b5595bc4f", e._sentryDebugIdIdentifier = "sentry-dbid-a1198856-c0ed-47aa-8023-3a8b5595bc4f");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useCallback, useMemo, useReducer, useEffect } from "preact/hooks";
|
|
11
|
-
import { a_ as objectsDeepEqual,
|
|
11
|
+
import { a_ as objectsDeepEqual, dI as ValidationResult, X as createLogger, dJ as isNotEmptyValidator, ap as isEmpty } from "./StoreProvider-BmzY19Td.js";
|
|
12
12
|
const omitKeys = (obj, omit) => Object.keys(obj).filter((k) => !omit.includes(k)).reduce((a, c) => {
|
|
13
13
|
a[c] = obj[c];
|
|
14
14
|
return a;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { p as useApiContext, q as useQuery, r as httpGet } from "./StoreProvider-
|
|
10
|
+
import { p as useApiContext, q as useQuery, r as httpGet } from "./StoreProvider-BmzY19Td.js";
|
|
11
11
|
const getOnboardingStatus = async (legalEntityId, baseUrl) => {
|
|
12
12
|
return httpGet({
|
|
13
13
|
baseUrl,
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { p as useApiContext, q as useQuery, bh as httpPost, J as useSettingsContext, K as SettingNames } from "./StoreProvider-
|
|
10
|
+
import { p as useApiContext, q as useQuery, bh as httpPost, J as useSettingsContext, K as SettingNames } from "./StoreProvider-BmzY19Td.js";
|
|
11
11
|
import { useMemo } from "preact/hooks";
|
|
12
12
|
const getPciStatus = async (legalEntityId, baseUrl, data) => {
|
|
13
13
|
return httpPost(
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { p as useApiContext, q as useQuery, r as httpGet } from "./StoreProvider-
|
|
10
|
+
import { p as useApiContext, q as useQuery, r as httpGet } from "./StoreProvider-BmzY19Td.js";
|
|
11
11
|
const getTermsOfServiceAcceptanceInfos = async (legalEntityId, baseUrl) => {
|
|
12
12
|
return httpGet({
|
|
13
13
|
baseUrl,
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "4fcc104d-3067-4cce-9c7e-71e42e827f33", e._sentryDebugIdIdentifier = "sentry-dbid-4fcc104d-3067-4cce-9c7e-71e42e827f33");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { p as useApiContext, bf as useMutation, bh as httpPost, be as useInvalidateRootLegalEntity,
|
|
10
|
+
import { p as useApiContext, bf as useMutation, bh as httpPost, be as useInvalidateRootLegalEntity, bn as useQueryClient } from "./StoreProvider-BmzY19Td.js";
|
|
11
11
|
const createLegalEntity = async (legalEntityId, baseUrl, data) => {
|
|
12
12
|
return httpPost(
|
|
13
13
|
{
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "0938e733-3278-41ce-9db2-1be3aab04cbe", e._sentryDebugIdIdentifier = "sentry-dbid-0938e733-3278-41ce-9db2-1be3aab04cbe");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { g as getLegalEntityCountry,
|
|
11
|
-
import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-
|
|
12
|
-
import { S as SOLE_PROP_COUNTRIES } from "./rules-
|
|
10
|
+
import { g as getLegalEntityCountry, by as getCapabilities, y as LegalEntityType, M as hasOwnEntityAssociationOfType, O as CompanyTypesValue, ao as CountryCodes, dN as ALLOWED_UNINCORPORATED_PARTNERSHIP_COUNTRIES } from "./StoreProvider-BmzY19Td.js";
|
|
11
|
+
import { d as allowIndividualWithoutSoleProp } from "./OnboardingDropinComponent-BW6er2HU.js";
|
|
12
|
+
import { S as SOLE_PROP_COUNTRIES } from "./rules-CUANHpja.js";
|
|
13
13
|
const TRUST_COUNTRIES = [CountryCodes.Australia, CountryCodes.NewZealand];
|
|
14
14
|
const BUSINESS_BANK_ACCOUNT_COUNTRIES = [
|
|
15
15
|
CountryCodes.UnitedStates,
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
{
|
|
3
3
|
try {
|
|
4
4
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
5
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
5
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "fb7872de-3fdd-4982-993f-e6431dd913e0", e._sentryDebugIdIdentifier = "sentry-dbid-fb7872de-3fdd-4982-993f-e6431dd913e0");
|
|
6
6
|
} catch (e) {
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
10
|
import { useCallback } from "preact/hooks";
|
|
11
|
-
import { p as useApiContext, bh as httpPost,
|
|
11
|
+
import { p as useApiContext, bh as httpPost, dK as emailPattern } from "./StoreProvider-BmzY19Td.js";
|
|
12
12
|
const validatePhoneNumber = (baseUrl, data) => {
|
|
13
13
|
return httpPost(
|
|
14
14
|
{
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
;
|
|
10
|
-
import { c as cssProps } from "./DebugModal-
|
|
10
|
+
import { c as cssProps } from "./DebugModal-BEmhG3UP.js";
|
|
11
11
|
const definitions = {
|
|
12
12
|
any: { regex: /.*/g, css: cssProps.text },
|
|
13
13
|
boolean: { regex: /^(\s*)([\w-]+)(:)\s*(.*)$/g, css: cssProps.boolean },
|