@adyen/kyc-components 4.28.0-beta.0 → 4.28.0-beta.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/{AcceptTermsOfServiceWorkflow-BHLj18cI.js → AcceptTermsOfServiceWorkflow-Be-e8pF_.js} +1 -1
- package/dist/{AccountSetupRejected-DrzCd1ET.js → AccountSetupRejected-BGfF7hle.js} +1 -1
- package/dist/{AdaptiveWorkflow-DmZF4G5t.js → AdaptiveWorkflow-aM_fyYfd.js} +20 -20
- package/dist/{AdaptiveWorkflowComponent-Bv5fIffv.js → AdaptiveWorkflowComponent-DvhXVdFs.js} +2 -2
- package/dist/{AddressFields-CF-UaSiA.js → Address-BrGQ-519.js} +15 -15
- package/dist/{BusinessFinancingDropin-DxUscJnz.js → BusinessFinancingDropin-Bgg_7bb2.js} +22 -22
- package/dist/{BusinessFinancingPage-aNSrpxqt.js → BusinessFinancingPage-BlABPwhd.js} +2 -2
- package/dist/{BusinessRegistrationNumberField-ByWbtuPm.js → BusinessRegistrationNumberField-VltO-NYx.js} +5 -5
- package/dist/{BusinessRegistrationNumberFieldGroup-BsaKq6cn.js → BusinessRegistrationNumberFieldGroup-Dv6BDmMB.js} +5 -5
- package/dist/{BusinessTypeSelectionPage-C8BtZX8K.js → BusinessTypeSelectionPage-C228n5L8.js} +11 -11
- package/dist/{Checkbox-Ec4wyyJQ.js → Checkbox-qmfi_XIo.js} +2 -2
- package/dist/{ComponentGroup-DnbvXojQ.js → ComponentGroup-CYKRwp_O.js} +1 -1
- package/dist/{ConstitutionalDocument-B4rf4Lt3.js → ConstitutionalDocument-amr_KQ4y.js} +131 -125
- package/dist/{ContactDetails-CZgDXYqx.js → ContactDetails-BOsIRVqJ.js} +5 -5
- package/dist/{ContextGuidance-C8FlwEPA.js → ContextGuidance-BXm2eIOy.js} +2 -2
- package/dist/{CountryField-8KwVjSwx.js → CountryField-CrMa4ivD.js} +3 -3
- package/dist/{Currency-DyE49bKs.js → Currency-l31xe6JM.js} +6 -6
- package/dist/{CustomerSupport-CvTI3Snc.js → CustomerSupport-D2jBxiF7.js} +12 -12
- package/dist/{DateField-l6H-nmfS.js → DateField-BgmwaY3C.js} +4 -4
- package/dist/{DebugModal-xkdniRzn.js → DebugModal-BlIi2HLj.js} +6 -6
- package/dist/{DecisionMakerDetails-CykBZZ9U.js → DecisionMakerDetails-jLcZ7TL2.js} +9 -9
- package/dist/{DecisionMakerDetailsPage-BnjOq-R1.js → DecisionMakerDetailsPage-BFJYqKEE.js} +5 -5
- package/dist/{DecisionMakers-B-4h5Vw_.js → DecisionMakers-CxKzZBAH.js} +11 -11
- package/dist/{Dropzone-D7Z9PsqG.js → Dropzone-bgeKnb5I.js} +5 -5
- package/dist/{EmailField-B-g3-z2A.js → EmailField-Bu-zlqHj.js} +4 -4
- package/dist/{EntityAssociation-CPRU3Nzl.js → EntityAssociation-CiZRBefO.js} +3 -3
- package/dist/{ErrorPanel-DUI1R5Sq.js → ErrorPanel-CBmxfydA.js} +2 -2
- package/dist/{GlobalEntryModal-Fszy2PMv.js → GlobalEntryModal-BdBW0KQQ.js} +17 -16
- package/dist/{GlobalEntryPage-GMRCmYj1.js → GlobalEntryPage-rC5GlvG_.js} +4 -4
- package/dist/{IdentityNumber-M8NzdW3O.js → IdentityNumber-CEJJ12gt.js} +4 -4
- package/dist/{IdentityNumberFieldGroup-nOlB5kOW.js → IdentityNumberFieldGroup-CZfyC-Uk.js} +3 -3
- package/dist/{IdentityScreeningWorkflow-kYczDRbc.js → IdentityScreeningWorkflow-BCSAk8rF.js} +8 -8
- package/dist/{IndividualDropin-C9bKZu8q.js → IndividualDropin-sjM2hszP.js} +99 -138
- package/dist/{IndustryCodeFieldGroup-ULwwyMfV.js → IndustryCodeFieldGroup-DYalt7iN.js} +4 -4
- package/dist/{InputDate-fc3bdvdZ.js → InputDate-C1Q3XDFU.js} +4 -4
- package/dist/{Introduction-BymKbaBE.js → Introduction-DMxhsL3f.js} +5 -5
- package/dist/{InvitedDecisionMakerComponent-CLBrLaip.js → InvitedDecisionMakerComponent-DyfllTrf.js} +7 -7
- package/dist/{JpAddressFields-Dhe_cQhr.js → JpAddress-eN7gCiZX.js} +13 -13
- package/dist/{LegalCompanyNameField-Ch1VrlJs.js → LegalCompanyNameField-hsrxQFKc.js} +4 -4
- package/dist/{LegalRepresentativeDetailsPage-ZsBdOW-Y.js → LegalRepresentativeDetailsPage-DWWgUBxS.js} +3 -3
- package/dist/{Name-r1ugrnWU.js → Name-X_kAmtWn.js} +3 -3
- package/dist/{NumberField-DzM3ge0J.js → NumberField-DZon5iLa.js} +3 -3
- package/dist/{PatriotActDisclosure-O5TlzUXU.js → PatriotActDisclosure-DsSoSucu.js} +9 -9
- package/dist/{PayoutDetailsDropin-J0pS_4a9.js → PayoutDetailsDropin-ARFbf1mK.js} +22 -22
- package/dist/{PayoutDetailsPage-COLJyIQ-.js → PayoutDetailsPage-yToj25iO.js} +4 -4
- package/dist/{RadioGroup-SDQSOsEf.js → RadioGroup-Di2A9RNN.js} +2 -2
- package/dist/{Review-PhQYqPF4.js → Review-lUkK6MwE.js} +5 -5
- package/dist/{RootBusinessDetailsPage-BI7ryRjt.js → RootBusinessDetailsPage-ZxdONb8B.js} +2 -2
- package/dist/{RootBusinessLinesPage-mvoHQZD_.js → RootBusinessLinesPage-Baet_8as.js} +17 -17
- package/dist/{RootIndividualDetailsPage-Cpm0vnKV.js → RootIndividualDetailsPage-BtcFOmeC.js} +3 -3
- package/dist/{Select-DtO-GvLp.js → Select-Cbxz27iA.js} +3 -3
- package/dist/{SignPCIComponent-Dvmu4-hc.js → SignPCIComponent-B1itIk9F.js} +10 -10
- package/dist/{SingpassSelection-np9ZfMrZ.js → SingpassSelection-BBA3x8Ek.js} +4 -4
- package/dist/{SoleProprietorshipPage-CwKtif4U.js → SoleProprietorshipPage-D6yrh1Uz.js} +2 -2
- package/dist/{SourceOfFundsPage-waLLSQf2.js → SourceOfFundsPage-Bb67iz0x.js} +18 -18
- package/dist/{SourceOfFundsWorkflow-Cat3HvUT.js → SourceOfFundsWorkflow-BJ9h5nc9.js} +1 -1
- package/dist/{StateField-DxKg7Ea-.js → StateField-BxWm98Tj.js} +9 -9
- package/dist/{Step-ZD1CeO4b.js → Step-BRmpSabH.js} +3 -3
- package/dist/{Summary-BJnh9lZz.js → Summary-BcIbpAPH.js} +1 -1
- package/dist/{SummarySection-D91P7H2B.js → SummarySection-DnHHb-mJ.js} +2 -2
- package/dist/{Task-_WDQUdM0.js → Task-BG_dxQ2R.js} +4 -4
- package/dist/{TaskGroup-C20Kri7W.js → TaskGroup-DEPNWcDV.js} +2 -2
- package/dist/{TaskListItem-BRTxzrek.js → TaskListItem-DpKBxP1U.js} +5 -5
- package/dist/TaxInformationField-Bi3pbDh_.js +259 -0
- package/dist/{TaxInformationFieldGroup-BiNe6-D4.js → TaxInformationFieldGroup-CrXPGmyZ.js} +7 -7
- package/dist/{TaxReportingDropin-DuZpEzKn.js → TaxReportingDropin-CWBoGi-F.js} +11 -11
- package/dist/{TaxReportingWorkflow-CMhxj0jx.js → TaxReportingWorkflow-DTB8F3cy.js} +1 -1
- package/dist/{TermsOfServiceManagement-Cp6-BOaT.js → TermsOfServiceManagement-nu7MYGFM.js} +9 -9
- package/dist/{TextArea-DD-KMQbg.js → TextArea-CweAdV3F.js} +3 -3
- package/dist/{TextField-Bdu0Wm6_.js → TextField-1RHuuIFu.js} +4 -4
- package/dist/{TrustDetailsPage-IGLuJZUE.js → TrustDetailsPage-C2921KNk.js} +23 -22
- package/dist/{TrustMemberCompanyPage-CNIDzOte.js → TrustMemberCompanyPage-C42UF9Wh.js} +4 -4
- package/dist/{TrustMemberIndividualPage-Q_IDqWsr.js → TrustMemberIndividualPage-C924EwDD.js} +3 -3
- package/dist/{TrustMemberRoleAndTypePage-B2EtfK6g.js → TrustMemberRoleAndTypePage-Dm_RyCCU.js} +19 -19
- package/dist/{TrustMembersOverview-hDVqCUbB.js → TrustMembersOverview-D9LIDqH0.js} +10 -10
- package/dist/{UboTaskItem-Bt45kkQu.js → UboTaskItem-Bu4PYMxQ.js} +3 -3
- package/dist/{UnincorporatedPartnershipIndividualPage-hkrLvEZw.js → UnincorporatedPartnershipIndividualPage-BcrmCuUV.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberCompanyPage-B8e9E2t2.js → UnincorporatedPartnershipMemberCompanyPage-BkUvuiG8.js} +3 -3
- package/dist/{UnincorporatedPartnershipMemberRoleAndTypePage-Rey_F44n.js → UnincorporatedPartnershipMemberRoleAndTypePage-BLvqAXNn.js} +9 -9
- package/dist/{UnincorporatedPartnershipMembersOverview-DPO8TjP4.js → UnincorporatedPartnershipMembersOverview-kTIfytG_.js} +5 -5
- package/dist/{VerificationErrorAlert-Lim_NsJO.js → VerificationErrorAlert-DKPgv09S.js} +2 -2
- package/dist/{WebsiteField-BLgq-_me.js → WebsiteField-9tvLajQV.js} +4 -4
- package/dist/{Workflow-CnkirZOn.js → Workflow-DFNvXzVW.js} +3 -3
- package/dist/{accountHolderUtils-D6wEBsLQ.js → accountHolderUtils-Cga0JXlL.js} +1 -1
- package/dist/adyen-business-financing.js +3 -3
- package/dist/adyen-individual-configuration.js +3 -3
- package/dist/adyen-individual-status.js +1 -1
- package/dist/adyen-invited-decision-maker.js +2 -2
- package/dist/adyen-onboarding.js +18 -18
- package/dist/adyen-terms-of-service-management.js +2 -2
- package/dist/adyen-terms-of-service-status.js +1 -1
- package/dist/adyen-transfer-instrument-configuration.js +2 -2
- package/dist/adyen-transfer-instrument-management.js +6 -6
- package/dist/adyen-verification-status.js +1 -1
- package/dist/{bafinUtils-TT8a0y7q.js → bafinUtils-Dxa3eJnZ.js} +10 -257
- package/dist/{constants-DsYpJv_6.js → constants-BgGlk1x-.js} +3 -3
- package/dist/{dropinUtils-CZuO0w1x.js → dropinUtils-5RadTVG9.js} +5 -5
- package/dist/{error-DBn4_qws.js → error-D0RXQj2N.js} +2 -2
- package/dist/{fieldConfig-Dh_qmAto.js → fieldConfig-xaGvx64s.js} +1 -1
- package/dist/{formatDataForSummary-oC9odBCW.js → formatDataForSummary-sQzHQFug.js} +127 -15
- package/dist/{formatValidationError-BsRC83kl.js → formatValidationError-Dy9gejj2.js} +1 -1
- package/dist/{getDefaultRegistrationNumberType-t926T5FG.js → getDefaultRegistrationNumberType-HWiiKcO3.js} +5 -5
- package/dist/{getValidationError-CXILdPw6.js → getValidationError-a_976vi9.js} +1 -1
- package/dist/{invalidateRootLegalEntity-CnH38v8h.js → invalidateRootLegalEntity-DBGrep1S.js} +1 -1
- package/dist/mapAddressLocalizationToJpAddressSchema-CT6eGqwa.js +39 -0
- package/dist/{mapExistingFile-CqbTLZ6i.js → mapExistingFile-CLSPk17k.js} +1 -1
- package/dist/{mapTransferInstrumentToPayoutAccount-Bet2QLgn.js → mapTransferInstrumentToPayoutAccount-DMhDNc2L.js} +1 -1
- package/dist/{processValidationErrors-B-A5EFGo.js → processValidationErrors-gryOf4Fj.js} +2 -2
- package/dist/{registerEmbed-CZDAZwKX.js → registerEmbed-TZ9ArAAB.js} +7 -7
- package/dist/{roleMetadata-DR0IBuky.js → roleMetadata-pBX4Alj3.js} +2 -2
- package/dist/types/api/address/useAddressCleanse.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/VerifiedBusinessCard/VerifiedBusinessCard.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/types.d.ts +1 -1
- package/dist/types/components/Business/forms/AdditionalInformation/utils.d.ts +1 -1
- package/dist/types/components/Business/utils/buildRequiredForms.d.ts +1 -0
- package/dist/types/components/Business/utils/isEligibleForReducedBusinessDetailsFlow.d.ts +15 -0
- package/dist/types/components/EFP/tasks/BusinessFinancingDropin/types.d.ts +1 -1
- package/dist/types/components/Individual/forms/AdditionalPersonalDetails/AdditionalPersonalDetails.types.d.ts +1 -1
- package/dist/types/components/Individual/forms/IdVerificationMethod/individualConflictsSchema.d.ts +1 -1
- package/dist/types/components/Individual/forms/Individual.rules.d.ts +7 -1
- package/dist/types/components/Individual/mapping/mapIndividualSchemaToLegalEntity.d.ts +18 -0
- package/dist/types/components/Individual/tasks/IndividualDropin/IndividualSummary.d.ts +4 -1
- package/dist/types/components/Individual/utils/formatDataForSummary.d.ts +4 -1
- package/dist/types/components/Shared/{forms/Address/AddressFields.d.ts → fields/Address/Address.d.ts} +2 -2
- package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/RegistrationAndOperationalAddressFields.d.ts +7 -1
- package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/types.d.ts +5 -5
- package/dist/types/components/Shared/fields/{RegistrationAndOperationalAddressFields → Address/RegistrationAndOperationalAddressFields}/utils.d.ts +2 -2
- package/dist/types/components/Shared/{forms → fields}/Address/SearchAddress.d.ts +1 -1
- package/dist/types/components/Shared/fields/Address/localized/jp/JpAddress.d.ts +2 -0
- package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.d.ts +1 -1
- package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.d.ts +1 -1
- package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapJpAddressSummary.d.ts +1 -1
- package/dist/types/components/Shared/{forms → fields}/Address/rules.d.ts +1 -1
- package/dist/types/components/Shared/{forms → fields}/Address/types.d.ts +1 -1
- package/dist/types/components/Trust/forms/Trust/forms.d.ts +1 -1
- package/dist/types/components/Trust/forms/TrustRegistrationAddress/types.d.ts +1 -1
- package/dist/types/utils/addressToString.d.ts +1 -1
- package/dist/{unincorporatedPartnership-B5pKn0gl.js → unincorporatedPartnership-DsneX1hY.js} +1 -1
- package/dist/{useBusinessDetailsData-CPzTltvn.js → useBusinessDetailsData-Bc_E4Xil.js} +78 -41
- package/dist/{useCanSeeIntroduction-Cnuh14Cr.js → useCanSeeIntroduction-RI4wFjW9.js} +2 -2
- package/dist/{useForm-B2fQ78Se.js → useForm-C3lG_s-c.js} +2 -2
- package/dist/{useId-AzWxLa17.js → useId-Cot-htyS.js} +1 -1
- package/dist/{useNavigate-Bx6F2ghI.js → useNavigate-BAkzuA3A.js} +32 -32
- package/dist/{useSalesChannels-Db_8bYBY.js → useSalesChannels-vbuU4JFd.js} +1 -1
- package/dist/{useSaveForLater-BQio20Zg.js → useSaveForLater-CT5C_u8v.js} +3 -3
- package/dist/{useTaskLandedEvent-DdeWh_nV.js → useTaskLandedEvent-J-MdMD4n.js} +1 -1
- package/dist/{useTrustMembers-CqeR9IVN.js → useTrustMembers-SGPMEcnS.js} +2 -2
- package/dist/{useUnincorporatedPartnershipMembers-WOJzF2NV.js → useUnincorporatedPartnershipMembers-CdbgUMUI.js} +2 -2
- package/dist/{utils-BfA0Rrku.js → utils-DPqmuHDt.js} +1 -1
- package/dist/{utils-8yLC-qJv.js → utils-SRtPrNOg.js} +1 -1
- package/dist/{utils-AnusXLKP.js → utils-szr8jBGQ.js} +3 -3
- package/dist/{validate-Bcw1m17m.js → validate-BiZvmxlT.js} +2 -2
- package/dist/{validate-DSR31SH8.js → validate-CmvKoxYM.js} +15 -10
- package/dist/{validate-CxL6_omc.js → validate-Dc6tnt1l.js} +2 -2
- package/dist/{validate-Bf1SBTiG.js → validate-DxoJtDwQ.js} +3 -3
- package/dist/{validateExtractionResult-BD0Vu-XF.js → validateExtractionResult-D8JAU47X.js} +1 -1
- package/package.json +1 -1
- package/dist/mapAddressLocalizationToJpAddressSchema-D8qKuElS.js +0 -26
- package/dist/mapJpAddressSchemaToAddressLocalizations-myaH4YTR.js +0 -19
- package/dist/types/components/Shared/forms/Address/localized/jp/JpAddressFields.d.ts +0 -2
- /package/dist/types/components/Shared/{forms → fields}/Address/AddressField.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/SearchAddressItem.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/constants.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/ReadonlyTextField.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/utils.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/validate.d.ts +0 -0
- /package/dist/types/components/Shared/{forms → fields}/Address/validate.formats.d.ts +0 -0
|
@@ -2,7 +2,7 @@ try {
|
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "aced4589-0525-4bc9-940b-811fff1b2004", e._sentryDebugIdIdentifier = "sentry-dbid-aced4589-0525-4bc9-940b-811fff1b2004");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { a as translateTranslatable } from "./Select-
|
|
5
|
+
import { a as translateTranslatable } from "./Select-Cbxz27iA.js";
|
|
6
6
|
//#region src/adaptiveWorkflow/utils/validators/getValidationError.ts
|
|
7
7
|
/**
|
|
8
8
|
* Runs an array of validators against a value.
|
package/dist/{invalidateRootLegalEntity-CnH38v8h.js → invalidateRootLegalEntity-DBGrep1S.js}
RENAMED
|
@@ -2,7 +2,7 @@ try {
|
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "ba5fc342-0f36-4ab9-aba0-fb91433f3b0c", e._sentryDebugIdIdentifier = "sentry-dbid-ba5fc342-0f36-4ab9-aba0-fb91433f3b0c");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { V as ToastContext } from "./registerEmbed-
|
|
5
|
+
import { V as ToastContext } from "./registerEmbed-TZ9ArAAB.js";
|
|
6
6
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
7
7
|
import { s as useApiContext } from "./http-C8rt2BZk.js";
|
|
8
8
|
import { useCallback, useContext } from "preact/hooks";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
try {
|
|
2
|
+
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "b2bf8dbc-e1b8-4ba5-8f8b-b552610f6194", e._sentryDebugIdIdentifier = "sentry-dbid-b2bf8dbc-e1b8-4ba5-8f8b-b552610f6194");
|
|
4
|
+
} catch (e) {}
|
|
5
|
+
import { m as isEmpty } from "./StateField-BxWm98Tj.js";
|
|
6
|
+
import { L as mapApiScriptLocalizationToSchemaFields, R as mapSchemaFieldsToApiScriptLocalization } from "./bafinUtils-Dxa3eJnZ.js";
|
|
7
|
+
//#region src/components/Shared/fields/Address/localized/jp/mapJpAddressSchemaToAddressLocalizations.ts
|
|
8
|
+
var mapJpAddressSchemaToAddressLocalizations = (data) => {
|
|
9
|
+
if (!data) return [];
|
|
10
|
+
return [mapSchemaFieldsToApiScriptLocalization(data, "jaHani"), mapSchemaFieldsToApiScriptLocalization(data, "jaKana")].filter(({ fields }) => !isEmpty(fields)).map(({ script, fields }) => ({
|
|
11
|
+
script,
|
|
12
|
+
fields: {
|
|
13
|
+
city: fields.city,
|
|
14
|
+
..."street" in fields ? { street: fields.street } : void 0
|
|
15
|
+
}
|
|
16
|
+
}));
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/components/Shared/fields/Address/localized/jp/mapAddressLocalizationToJpAddressSchema.ts
|
|
20
|
+
var mapAddressLocalizationToJpAddressSchema = (localization) => {
|
|
21
|
+
if (!localization) return {};
|
|
22
|
+
let jpAddress = {};
|
|
23
|
+
for (const { script, fields } of localization) {
|
|
24
|
+
const schemaFieldsFromLocalization = mapApiScriptLocalizationToSchemaFields({
|
|
25
|
+
script,
|
|
26
|
+
fields: {
|
|
27
|
+
city: fields?.city,
|
|
28
|
+
street: fields?.street
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
jpAddress = {
|
|
32
|
+
...jpAddress,
|
|
33
|
+
...schemaFieldsFromLocalization
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return jpAddress;
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
export { mapJpAddressSchemaToAddressLocalizations as n, mapAddressLocalizationToJpAddressSchema as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d0bda6f1-1229-46a6-a6c2-58a32a737d25", e._sentryDebugIdIdentifier = "sentry-dbid-d0bda6f1-1229-46a6-a6c2-58a32a737d25");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { t as useScenarios } from "./useScenarios-DfE71fl7.js";
|
|
6
6
|
import { useEffect, useMemo } from "preact/hooks";
|
|
@@ -4,7 +4,7 @@ try {
|
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { n as httpGet, s as useApiContext } from "./http-C8rt2BZk.js";
|
|
6
6
|
import { b as crossBorderMapping, x as payoutComponentKeyMapping } from "./processCapabilities-B75YIdXZ.js";
|
|
7
|
-
import { a as mapWith } from "./utils-
|
|
7
|
+
import { a as mapWith } from "./utils-DPqmuHDt.js";
|
|
8
8
|
import { skipToken, useQuery } from "@tanstack/preact-query";
|
|
9
9
|
//#region src/api/transferInstruments/useTransferInstrument.ts
|
|
10
10
|
var getTransferInstrument = async (legalEntityId, baseUrl, transferInstrumentId) => {
|
|
@@ -4,8 +4,8 @@ try {
|
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { S as remediationPayoutApiKeyMapping, d as remediationIndividualApiKeyMapping, v as remediationBusinessDetailsApiKeyMapping } from "./processCapabilities-B75YIdXZ.js";
|
|
6
6
|
import { t as TaskTypes } from "./taskTypes-3vSkMBDm.js";
|
|
7
|
-
import { t as assignToProp } from "./utils-
|
|
8
|
-
import { h as getFieldNameFromPath } from "./dropinUtils-
|
|
7
|
+
import { t as assignToProp } from "./utils-DPqmuHDt.js";
|
|
8
|
+
import { h as getFieldNameFromPath } from "./dropinUtils-5RadTVG9.js";
|
|
9
9
|
//#region src/types/errors/maintenance-mode-error.ts
|
|
10
10
|
var isMaintenanceModeError = (error) => error && typeof error === "object" && "messageCode" in error && error.messageCode === "maintenanceMode";
|
|
11
11
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
try {
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
3
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "8a100b63-3876-4da9-ad09-75d05ea84073", e._sentryDebugIdIdentifier = "sentry-dbid-8a100b63-3876-4da9-ad09-75d05ea84073");
|
|
4
4
|
} catch (e) {}
|
|
5
5
|
import { a as setDefaults, i as setI18n, n as addResourceBundles, r as useTranslation } from "./translation-CpH8D2NK.js";
|
|
6
6
|
import { t as createLogger } from "./logger-Z8AeTE4x.js";
|
|
@@ -408,7 +408,7 @@ var useAccountHolder = () => {
|
|
|
408
408
|
//#endregion
|
|
409
409
|
//#region src/hooks/useAnalytics/useAnalytics.ts
|
|
410
410
|
var useAnalytics = ({ userEvents, sessionId, sessionData }) => {
|
|
411
|
-
const sdkVersion = "4.28.0-beta.
|
|
411
|
+
const sdkVersion = "4.28.0-beta.2";
|
|
412
412
|
const { data: rootLegalEntity } = useLegalEntity(ROOT_LE);
|
|
413
413
|
const { mutateAsync } = usePushAnalyticEvent(sessionId ?? "");
|
|
414
414
|
const { accountHolder } = useAccountHolder();
|
|
@@ -520,7 +520,7 @@ var AnalyticsProvider = ({ componentName, children, rootLegalEntityId, locale })
|
|
|
520
520
|
const capabilities = rootLegalEntity?.capabilities && Object.keys(rootLegalEntity.capabilities);
|
|
521
521
|
const shouldTrackPrefilledDetails = capabilities?.includes("receivePayments") && onboardingVersion && onboardingVersion > 1;
|
|
522
522
|
const sessionData = {
|
|
523
|
-
sdkVersion: "4.28.0-beta.
|
|
523
|
+
sdkVersion: "4.28.0-beta.2",
|
|
524
524
|
componentName,
|
|
525
525
|
userAgent: navigator.userAgent,
|
|
526
526
|
legalEntityId: rootLegalEntityId,
|
|
@@ -1799,7 +1799,7 @@ var AllowedCountryGate = ({ children }) => {
|
|
|
1799
1799
|
};
|
|
1800
1800
|
//#endregion
|
|
1801
1801
|
//#region src/components/Shared/devex/DebugListener/DebugListener.tsx
|
|
1802
|
-
var DebugModal = lazy(async () => (await import("./DebugModal-
|
|
1802
|
+
var DebugModal = lazy(async () => (await import("./DebugModal-BlIi2HLj.js")).DebugModal);
|
|
1803
1803
|
/**
|
|
1804
1804
|
* Adds a listener on the page to open the debug modal when the
|
|
1805
1805
|
* debug modal key combination is pressed to open it
|
|
@@ -2548,7 +2548,7 @@ var EmbedShell = ({ children, rootLegalEntityId, settings, features, refreshExpe
|
|
|
2548
2548
|
children: [/* @__PURE__ */ jsx(LanguageSwitcher, { locale }), /* @__PURE__ */ jsxs(StoreProvider, { children: [/* @__PURE__ */ jsx("span", {
|
|
2549
2549
|
id: "sdk-version",
|
|
2550
2550
|
hidden: true,
|
|
2551
|
-
children: "4.28.0-beta.
|
|
2551
|
+
children: "4.28.0-beta.2"
|
|
2552
2552
|
}), /* @__PURE__ */ jsx(AnalyticsProvider, {
|
|
2553
2553
|
componentName,
|
|
2554
2554
|
locale,
|
|
@@ -2601,13 +2601,13 @@ var registerEmbed = (component, tagName, propNames, options) => {
|
|
|
2601
2601
|
throw new Error(`[adyen-kyc-components] cannot register <${tagName}>: tag name is already in use.`);
|
|
2602
2602
|
}
|
|
2603
2603
|
const customElement = register(component, tagName, propNames, options);
|
|
2604
|
-
Object.defineProperty(customElement, ADYEN_EMBED_MARKER, { value: "4.28.0-beta.
|
|
2604
|
+
Object.defineProperty(customElement, ADYEN_EMBED_MARKER, { value: "4.28.0-beta.2" });
|
|
2605
2605
|
return customElement;
|
|
2606
2606
|
};
|
|
2607
2607
|
/** Explain that multiple versions should not be used */
|
|
2608
2608
|
var warnOnSdkVersionMismatch = (tagName, existingElement) => {
|
|
2609
2609
|
const registeredVersion = Reflect.get(existingElement, ADYEN_EMBED_MARKER);
|
|
2610
|
-
if (registeredVersion !== "4.28.0-beta.
|
|
2610
|
+
if (registeredVersion !== "4.28.0-beta.2") console.warn(`[adyen-kyc-components] <${tagName}> was already registered by another copy of the SDK (registered: ${String(registeredVersion)}, current: 4.28.0-beta.2). Keeping existing `);
|
|
2611
2611
|
};
|
|
2612
2612
|
//#endregion
|
|
2613
2613
|
export { concatenateFieldNames as $, useAllowedCountries as A, ToastContextProvider as B, getObscuredAccountNumber as C, useDataset as D, AlertIcon as E, ExperimentNames as F, INDIVIDUAL_VALID_CHAR_REGEX as G, ADDRESS_VALID_CHAR_REGEX as H, FeatureNames as I, NO_ALPHABET_UNICODE_REGEX as J, LATIN_SPACE_MARK_PUNCTUATION_NUMBERS_REGEX as K, ToggleContext as L, useSetting as M, Header as N, datasetIdentifier as O, _rolldown_dynamic_import_helper_default as P, chomeAndBanchiValidator as Q, listToRecord as R, isPartOfUnincorporatedPartnership as S, Alert as T, EMOJI_REGEX as U, ToastContext as V, HAS_PROTOCOL_REGEX as W, SPECIAL_CHARS as X, OTHER_ENTITIES_VALID_CHAR_REGEX as Y, URL_REGEX as Z, isPartOfTrustFromLegalEntity as _, AnalyticsContext as _t, useGetTaskStatus as a, hasRepeatedCharacters as at, TrustMemberGuidanceLabels as b, useVersionConfiguration as bt, getAgeRangeForLegalRepresentative as c, isEmpty as ct, splitTaskIdentifier as d, isUndefinedOrNull as dt, extractFieldName as et, hasAllCapabilitiesResolved as f, isValidMinLength as ft, getOwnTrustProblems as g, StateContext as gt, getCountrySpecificTrustTypeOptions as h, standardKatakanaValidator as ht, isDarkMode as i, hasMaximumTwoRepeatedCharacters as it, useCapabilities as j, datasetUtilities as k, getAgeToday as l, isISIN as lt, isEmptyEntity as m, standardKanjiValidator as mt, resolveEnvironment as n, getMaxLengthByFieldAndCountry as nt, useGlobalStore as o, hasText as ot, hasRejectedCapabilities as p, matchesRegex as pt, NO_ALPHABET_REGEX as q, EmbedShell as r, hasEmptyFields as rt, doesLegalEntityRequiresLegalRepresentative as s, isAccountIdentifierObscured as st, registerEmbed as t, getFormattingRegEx as tt, isLegalRepresentativeNeeded as u, isInvalidName as ut, DEFAULT_TRUST_MEMBER_REQUIREMENTS as v, useAccountHolder as vt, isInstantVerifiedAccount as w, getOwnUnincorporatedPartnershipProblems as x, stylesheets as xt, TRUST_DEFAULT_DESCRIPTIONS_MAP as y, useLocalStorage as yt, useToggles as z };
|
|
@@ -2,10 +2,10 @@ try {
|
|
|
2
2
|
let e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {}, n = new e.Error().stack;
|
|
3
3
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "3d1059a5-7d26-4696-b5df-9e7b5a8b6cd2", e._sentryDebugIdIdentifier = "sentry-dbid-3d1059a5-7d26-4696-b5df-9e7b5a8b6cd2");
|
|
4
4
|
} catch (e) {}
|
|
5
|
-
import { b as TrustMemberGuidanceLabels } from "./registerEmbed-
|
|
5
|
+
import { b as TrustMemberGuidanceLabels } from "./registerEmbed-TZ9ArAAB.js";
|
|
6
6
|
import { t as DecisionMakerTypes } from "./decisionMaker-CR0qaGWQ.js";
|
|
7
7
|
import { t as TrustMemberTypes } from "./trustMemberType-Ix2sf6e_.js";
|
|
8
|
-
import { t as UnincorporatedPartnershipMemberTypes } from "./unincorporatedPartnership-
|
|
8
|
+
import { t as UnincorporatedPartnershipMemberTypes } from "./unincorporatedPartnership-DsneX1hY.js";
|
|
9
9
|
//#region src/utils/roleMetadata.ts
|
|
10
10
|
var roleMetadata = {
|
|
11
11
|
[DecisionMakerTypes.CONTROLLING_PERSON]: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CleanseAPIRequestPayload, RetrieveAddressSuccessResponse } from '../address/address.types';
|
|
2
|
-
import type { AddressSchema } from '../../components/Shared/
|
|
2
|
+
import type { AddressSchema } from '../../components/Shared/fields/Address/types';
|
|
3
3
|
import type { QueryOptions } from '../types';
|
|
4
4
|
export type QueryKeyAddressCleanse = ['addressCleanse', CleanseAPIRequestPayload];
|
|
5
5
|
export declare const useAddressCleanse: (data: CleanseAPIRequestPayload, options?: QueryOptions<RetrieveAddressSuccessResponse>) => import("@tanstack/preact-query").UseQueryResult<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CompanyDatasetResponse } from '../../../../../api/companyDataSet/companyDataset.types';
|
|
2
|
-
import type { AddressSchema } from '../../../../Shared/
|
|
2
|
+
import type { AddressSchema } from '../../../../Shared/fields/Address/types';
|
|
3
3
|
interface VerifiedBusinessDataProps {
|
|
4
4
|
verifiedBusiness: CompanyDatasetResponse | undefined;
|
|
5
5
|
verifiedAddress: AddressSchema | undefined;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { CompanyType } from '../../../../api/legalEntity/legalEntity.types';
|
|
2
2
|
import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
|
|
3
|
+
import type { RegistrationAndOperationalAddressFieldsSchema } from '../../../Shared/fields/Address/RegistrationAndOperationalAddressFields/types';
|
|
3
4
|
import type { DateOfIncorporationFieldSchema } from '../../../Shared/fields/DateOfIncorporationField/types';
|
|
4
5
|
import type { DBANameFieldSchema } from '../../../Shared/fields/DBANameField/types';
|
|
5
6
|
import type { EInvoicingCodeFieldSchema } from '../../../Shared/fields/EInvoicingCodeField/types';
|
|
6
7
|
import type { IndustryCodeFieldSchema } from '../../../Shared/fields/IndustryCodeField/types';
|
|
7
8
|
import type { LegalEntityIdentifierFieldSchema } from '../../../Shared/fields/LegalEntityIdentifierField/types';
|
|
8
|
-
import type { RegistrationAndOperationalAddressFieldsSchema } from '../../../Shared/fields/RegistrationAndOperationalAddressFields/types';
|
|
9
9
|
import type { StockExchangeMICFieldSchema } from '../../../Shared/fields/StockExchangeMICField/types';
|
|
10
10
|
import type { StockISINFieldSchema } from '../../../Shared/fields/StockISINField/types';
|
|
11
11
|
import type { StockTickerSymbolFieldSchema } from '../../../Shared/fields/StockTickerSymbol/types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CompanyDatasetResponseAddress } from '../../../../api/companyDataSet/companyDataset.types';
|
|
2
|
-
import type { AddressSchema } from '../../../Shared/
|
|
2
|
+
import type { AddressSchema } from '../../../Shared/fields/Address/types';
|
|
3
3
|
export declare const mapAddressData: (verifiedBusiness: CompanyDatasetResponseAddress) => AddressSchema;
|
|
4
4
|
export declare const isDateOlderThanAYear: (dateString: string | undefined) => boolean;
|
|
@@ -15,6 +15,7 @@ export interface BuildRequiredFormsProps {
|
|
|
15
15
|
isSettingEnabled: (settingName: BooleanSettingName) => boolean;
|
|
16
16
|
};
|
|
17
17
|
options?: {
|
|
18
|
+
skipBasicInformation?: boolean;
|
|
18
19
|
skipBusinessSelection?: boolean;
|
|
19
20
|
skipCompanyStructure?: boolean;
|
|
20
21
|
skipSummary?: boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ExistingLegalEntity } from '../../../api/legalEntity/legalEntity.types';
|
|
2
|
+
import type { FeatureName } from '../../../context/ToggleContext/types';
|
|
3
|
+
import { type TaskType } from '../../../stores/globalStore/taskTypes';
|
|
4
|
+
export interface ReducedBusinessDetailsEligibilityParams {
|
|
5
|
+
taskType: TaskType;
|
|
6
|
+
legalEntityResponse: ExistingLegalEntity;
|
|
7
|
+
isFeatureEnabled: (featureName: FeatureName) => boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A registered business that completed Global Entry has already provided its legal name,
|
|
11
|
+
* company structure, and registration/tax identifiers there. Returning to the Business Details
|
|
12
|
+
* task should not re-ask for them via the `basicInformation`, `businessSelection`, and
|
|
13
|
+
* `companyStructure` pages.
|
|
14
|
+
*/
|
|
15
|
+
export declare const isEligibleForReducedBusinessDetailsFlow: ({ taskType, legalEntityResponse, isFeatureEnabled, }: ReducedBusinessDetailsEligibilityParams) => boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CapabilityName, ExistingLegalEntity, LegalEntityCapabilityDto, LegalEntityDto } from '../../../../api/legalEntity/legalEntity.types';
|
|
2
2
|
import type { BaseInnerFormProps, BaseOuterFormProps } from '../../../../hooks/useForm/types';
|
|
3
3
|
import type { NsTranslationKey, Translatable } from '../../../../../types';
|
|
4
|
-
import type { AddressSchema } from '../../../Shared/
|
|
4
|
+
import type { AddressSchema } from '../../../Shared/fields/Address/types';
|
|
5
5
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
6
6
|
import type { FormList, FormModel } from '../../../../types/form';
|
|
7
7
|
import type { BusinessFinancingBasicCompanyInformationSchema } from './BusinessFinancingBasicCompanyInformation';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
|
|
2
2
|
import type { NsTranslationKey } from '../../../../../types';
|
|
3
|
+
import type { AddressSchema } from '../../../Shared/fields/Address/types';
|
|
3
4
|
import type { IndividualIdNumberType } from '../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
|
|
4
5
|
import type { TaxInformationFieldSchema } from '../../../Shared/fields/TaxInformationField/types';
|
|
5
|
-
import type { AddressSchema } from '../../../Shared/forms/Address/types';
|
|
6
6
|
import type { TaskType } from '../../../../stores/globalStore/taskTypes';
|
|
7
7
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
8
8
|
import type { ValidationRuleResults, ValidatorMode } from '../../../../utils/validation/types';
|
package/dist/types/components/Individual/forms/IdVerificationMethod/individualConflictsSchema.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { AddressSchema } from '../../../Shared/fields/Address/types';
|
|
1
2
|
import type { IndividualIdNumberType } from '../../../Shared/fields/IdFieldTypeSelector/countryIdNumberTypes';
|
|
2
3
|
import type { Phone } from '../../../Shared/fields/PhoneField/types';
|
|
3
|
-
import type { AddressSchema } from '../../../Shared/forms/Address/types';
|
|
4
4
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
5
5
|
import type { IndividualSchema } from '../Individual.types';
|
|
6
6
|
/**
|
|
@@ -4,7 +4,12 @@ import type { FormRulesParams } from '../../../types/form-rules';
|
|
|
4
4
|
import type { IndividualSchema } from './Individual.types';
|
|
5
5
|
export declare const COUNTRIES_WHICH_USE_MULTIPLE_IDENTITY_TYPES: CountryCode[];
|
|
6
6
|
export declare const DECISION_MAKER_TYPES_WITH_JOBTITLE: DecisionMakerType[];
|
|
7
|
-
|
|
7
|
+
interface IndividualRulesParams extends FormRulesParams<IndividualSchema> {
|
|
8
|
+
existingTaxInformation?: ReadonlyArray<{
|
|
9
|
+
country?: string;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
export declare const individualRules: ({ matchingScenario, data, country, taskType, isFeatureEnabled, isSettingEnabled, rootLegalEntity, problems, version, existingTaxInformation, }: IndividualRulesParams) => {
|
|
8
13
|
countryUsesTaxId: () => "REQUIRED" | undefined;
|
|
9
14
|
isDirectorIdNumberRequiredForCountry: () => "REQUIRED" | undefined;
|
|
10
15
|
idNumberRules: () => "REQUIRED" | "OPTIONAL" | undefined;
|
|
@@ -46,3 +51,4 @@ export declare const individualRules: ({ matchingScenario, data, country, taskTy
|
|
|
46
51
|
japanSpecificOptionalField: () => "OPTIONAL" | undefined;
|
|
47
52
|
};
|
|
48
53
|
export type IndividualRules = ReturnType<typeof individualRules>;
|
|
54
|
+
export {};
|
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
import type { LegalEntityDto } from '../../../api/legalEntity/legalEntity.types';
|
|
2
|
+
import type { TaxInformation } from '../../Shared/fields/TaxInformationField/types';
|
|
2
3
|
import type { CountryCode } from '../../../types/datasets/country-code';
|
|
3
4
|
import type { Scenario } from '../../../types/scenarios';
|
|
4
5
|
import type { IndividualSchema } from '../forms/Individual.types';
|
|
6
|
+
/**
|
|
7
|
+
* Countries where an individual's identity number is also their tax ID, so it is asked for once, as
|
|
8
|
+
* the identity number, and copied into the tax record on submit. `individualRules` skips the tax ID
|
|
9
|
+
* field for them when the identity number covers it.
|
|
10
|
+
*/
|
|
11
|
+
export declare const TAX_ID_FROM_ID_NUMBER_COUNTRIES: readonly CountryCode[];
|
|
12
|
+
/**
|
|
13
|
+
* OXP-5995: where the identity number is also the tax ID, it is asked for once and copied into the
|
|
14
|
+
* tax record, rather than repeating the question for the two API objects. This is done here, not on
|
|
15
|
+
* the backend, because it does not apply to API users.
|
|
16
|
+
*
|
|
17
|
+
* An obscured `idNumber` is the saved one, masked, so it is never copied.
|
|
18
|
+
*
|
|
19
|
+
* @returns The tax records with the identity number as the record for the country, keeping the
|
|
20
|
+
* records for other countries, or `undefined` when the identity number is not copied.
|
|
21
|
+
*/
|
|
22
|
+
export declare const getTaxInformationWithIdNumber: (additionalPersonalDetails: IndividualSchema["additionalPersonalDetails"], matchingScenario: Scenario[] | undefined, country: CountryCode | undefined) => TaxInformation[] | undefined;
|
|
5
23
|
export declare const mapIndividualSchemaToLegalEntity: (individual: IndividualSchema, matchingScenario?: Scenario[],
|
|
6
24
|
/** Tax records already saved on the legal entity, so records for other countries are kept. */
|
|
7
25
|
existingTaxInformation?: ReadonlyArray<{
|
|
@@ -3,6 +3,7 @@ import type { TaskType } from '../../../../stores/globalStore/taskTypes';
|
|
|
3
3
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
4
4
|
import type { EntityProblems } from '../../../../types/errors/entity-problems';
|
|
5
5
|
import type { FormModelWithValidity } from '../../../../types/form';
|
|
6
|
+
import type { Scenario } from '../../../../types/scenarios';
|
|
6
7
|
import type { IndividualSchema } from '../../forms/Individual.types';
|
|
7
8
|
interface IndividualSummaryProps {
|
|
8
9
|
data: IndividualSchema;
|
|
@@ -16,6 +17,8 @@ interface IndividualSummaryProps {
|
|
|
16
17
|
existingTaxInformation?: ReadonlyArray<{
|
|
17
18
|
country?: string;
|
|
18
19
|
}>;
|
|
20
|
+
/** Decides whether the submit also sends the identity number as the tax ID. */
|
|
21
|
+
matchingScenario?: Scenario[];
|
|
19
22
|
}
|
|
20
23
|
/**
|
|
21
24
|
* The summary step of the individual task, passed to `FormFlow` as its `summaryComponent`.
|
|
@@ -23,5 +26,5 @@ interface IndividualSummaryProps {
|
|
|
23
26
|
* Row formatting lives in {@link formatDataForSummary}. This component owns the lazily loaded
|
|
24
27
|
* provider logo, which the formatter cannot, and composes the sections into `Summary`.
|
|
25
28
|
*/
|
|
26
|
-
export declare const IndividualSummary: ({ data, forms, taskType, country, isSettingEnabled, problems, handleEditForm, existingTaxInformation, }: IndividualSummaryProps) => import("preact/jsx-runtime").JSX.Element;
|
|
29
|
+
export declare const IndividualSummary: ({ data, forms, taskType, country, isSettingEnabled, problems, handleEditForm, existingTaxInformation, matchingScenario, }: IndividualSummaryProps) => import("preact/jsx-runtime").JSX.Element;
|
|
27
30
|
export {};
|
|
@@ -5,6 +5,7 @@ import type { SummarySectionData } from '../../Shared/SummarySection/SummarySect
|
|
|
5
5
|
import type { TaskType } from '../../../stores/globalStore/taskTypes';
|
|
6
6
|
import type { CountryCode } from '../../../types/datasets/country-code';
|
|
7
7
|
import type { FormModelWithValidity } from '../../../types/form';
|
|
8
|
+
import type { Scenario } from '../../../types/scenarios';
|
|
8
9
|
import type { IndividualSchema } from '../forms/Individual.types';
|
|
9
10
|
type IndividualTFunction = TFunction<readonly ['common', 'individual']>;
|
|
10
11
|
export interface IndividualSummarySection extends SummarySectionData {
|
|
@@ -37,6 +38,8 @@ export interface FormatDataForSummaryOptions {
|
|
|
37
38
|
existingTaxInformation?: ReadonlyArray<{
|
|
38
39
|
country?: string;
|
|
39
40
|
}>;
|
|
41
|
+
/** Decides whether the submit also sends the identity number as the tax ID. */
|
|
42
|
+
matchingScenario?: Scenario[];
|
|
40
43
|
}
|
|
41
44
|
export type SummarySource = 'form' | 'legalEntity';
|
|
42
45
|
/**
|
|
@@ -45,5 +48,5 @@ export type SummarySource = 'form' | 'legalEntity';
|
|
|
45
48
|
* Rows are an ordered list rather than a record keyed by translation key, as Business and Trust
|
|
46
49
|
* use, because terms come from two namespaces and, for the invite flow, arrive pre-translated.
|
|
47
50
|
*/
|
|
48
|
-
export declare function formatDataForSummary({ data, forms, t, language, taskType, country, isSettingEnabled, instantVerificationDetails, source, existingTaxInformation, }: FormatDataForSummaryOptions): IndividualSummarySection[];
|
|
51
|
+
export declare function formatDataForSummary({ data, forms, t, language, taskType, country, isSettingEnabled, instantVerificationDetails, source, existingTaxInformation, matchingScenario, }: FormatDataForSummaryOptions): IndividualSummarySection[];
|
|
49
52
|
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import './Address.css';
|
|
2
2
|
import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
|
|
3
|
-
import type { AddressSchema, AddressType } from '../../
|
|
3
|
+
import type { AddressSchema, AddressType } from '../../fields/Address/types';
|
|
4
4
|
import type { ValidatorMode } from '../../../../utils/validation/types';
|
|
5
5
|
export interface AddressFieldsProps extends BaseInnerFormProps<AddressSchema> {
|
|
6
6
|
addressType: AddressType;
|
|
7
7
|
hideCountry?: boolean;
|
|
8
8
|
handleFieldChange: (fieldName: keyof AddressSchema, mode?: ValidatorMode) => (e: unknown) => void;
|
|
9
9
|
}
|
|
10
|
-
export declare function
|
|
10
|
+
export declare function Address({ data, readOnly, hideCountry, fieldValidationErrors, requiredFields, optionalFields, readOnlyFields, trustedFields, errors, valid, handleFieldChange, addressType, }: AddressFieldsProps): import("preact/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
import type { RegistrationAndOperationalAddressFieldsSchema, RyunsBitchinAddressFieldProps } from '
|
|
1
|
+
import type { RegistrationAndOperationalAddressFieldsSchema, RyunsBitchinAddressFieldProps } from '../../../fields/Address/RegistrationAndOperationalAddressFields/types';
|
|
2
2
|
export declare const REGISTRATION_AND_OPERATIONAL_ADDRESS_FIELDS: (keyof RegistrationAndOperationalAddressFieldsSchema)[];
|
|
3
|
+
/**
|
|
4
|
+
* A shared way of using & interacting with a registration & operational address on the same page, used
|
|
5
|
+
* by Business Details & Trusts/Unincorporated partnerships.
|
|
6
|
+
*
|
|
7
|
+
* Hides country & interacts with `operationalAddressIsSame` to show/hide operational address fields.
|
|
8
|
+
*/
|
|
3
9
|
export declare function RegistrationAndOperationalAddressFields({ country, readOnlyAddressFields, entityType, data, valid, errors, requiredFields, optionalFields, trustedFields, fieldValidationErrors, handleChangeFor, formUtils, }: RyunsBitchinAddressFieldProps): import("preact/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { BaseInnerFormProps } from '
|
|
2
|
-
import type { AddressSchema } from '
|
|
3
|
-
import type { CountryCode } from '
|
|
4
|
-
import type { FormUtils } from '
|
|
5
|
-
import type { ValidatorMode } from '
|
|
1
|
+
import type { BaseInnerFormProps } from '../../../../../hooks/useForm/types';
|
|
2
|
+
import type { AddressSchema } from '../../../fields/Address/types';
|
|
3
|
+
import type { CountryCode } from '../../../../../types/datasets/country-code';
|
|
4
|
+
import type { FormUtils } from '../../../../../utils/formUtils';
|
|
5
|
+
import type { ValidatorMode } from '../../../../../utils/validation/types';
|
|
6
6
|
export interface RegistrationAndOperationalAddressFieldsSchema {
|
|
7
7
|
residentialAddressIndicator?: boolean;
|
|
8
8
|
operationalAddressIsSame?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { RegistrationAndOperationalAddressFieldsSchema } from '
|
|
2
|
-
import type { AddressSchema } from '
|
|
1
|
+
import type { RegistrationAndOperationalAddressFieldsSchema } from '../../../fields/Address/RegistrationAndOperationalAddressFields/types';
|
|
2
|
+
import type { AddressSchema } from '../../../fields/Address/types';
|
|
3
3
|
/**
|
|
4
4
|
* Parses the nested trusted fields on a legal entity e.g. ['registrationAddress.address', 'registrationAddress.postalCode'],
|
|
5
5
|
* rebuilding them into the flattened, prefixed fields for the addresses, e.g., `registrationAddress.address` -> `registrationAddressAddress`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RetrieveAddressSuccessResponse } from '../../../../api/address/address.types';
|
|
2
2
|
import type { FieldErrorMessage } from '../../../ui/atoms/Field/Field.types';
|
|
3
3
|
import type { Translatable } from '../../../../../types';
|
|
4
|
-
import type { AddressFieldProps } from '../../
|
|
4
|
+
import type { AddressFieldProps } from '../../fields/Address/types';
|
|
5
5
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
6
6
|
interface SearchAddressProps extends Pick<AddressFieldProps, 'readOnly' | 'optional' | 'handleBlur'> {
|
|
7
7
|
addressText?: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { AddressDto } from '../../../../../../api/legalEntity/legalEntity.types';
|
|
2
|
-
import type { AddressSchema } from '../../../../
|
|
2
|
+
import type { AddressSchema } from '../../../../fields/Address/types';
|
|
3
3
|
export declare const mapAddressLocalizationToJpAddressSchema: (localization: AddressDto["localization"] | undefined) => AddressSchema;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { AddressDto } from '../../../../../../api/legalEntity/legalEntity.types';
|
|
2
|
-
import type { AddressSchema } from '../../../../
|
|
2
|
+
import type { AddressSchema } from '../../../../fields/Address/types';
|
|
3
3
|
export declare const mapJpAddressSchemaToAddressLocalizations: (data: AddressSchema | undefined) => NonNullable<AddressDto["localization"]>;
|
package/dist/types/components/Shared/{forms → fields}/Address/localized/jp/mapJpAddressSummary.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StructuredListItem } from '../../../../../ui/atoms/StructuredList/StructuredList';
|
|
2
2
|
import type { NsTranslationKey } from '../../../../../../../types';
|
|
3
|
-
import type { AddressSchema } from '../../../../
|
|
3
|
+
import type { AddressSchema } from '../../../../fields/Address/types';
|
|
4
4
|
import type { DatasetUtil } from '../../../../../../utils/datasetUtil';
|
|
5
5
|
type MappedSummary = Partial<Record<NsTranslationKey<'common'>, StructuredListItem['details'] | undefined>>;
|
|
6
6
|
export declare const mapJpAddressSummary: (data: AddressSchema | undefined, datasetUtils: DatasetUtil) => MappedSummary;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BooleanSettingName } from '../../../../context/SettingsContext/types';
|
|
2
|
-
import type { AddressSchema } from '../../
|
|
2
|
+
import type { AddressSchema } from '../../fields/Address/types';
|
|
3
3
|
import { type CountryCode } from '../../../../types/datasets/country-code';
|
|
4
4
|
import type { FieldRule } from '../../../../types/form-rules';
|
|
5
5
|
/**
|
|
@@ -28,7 +28,7 @@ export interface AddressFieldProps {
|
|
|
28
28
|
maxlength?: number;
|
|
29
29
|
hideField?: boolean;
|
|
30
30
|
trimOnBlur?: boolean;
|
|
31
|
-
handleChangeFor: (key: keyof AddressSchema, mode?: ValidatorMode) => (e:
|
|
31
|
+
handleChangeFor: (key: keyof AddressSchema, mode?: ValidatorMode) => (e: unknown) => void;
|
|
32
32
|
handleBlur?: (e: FocusEvent) => void;
|
|
33
33
|
}
|
|
34
34
|
export type AddressSchemas = RecordWithDefault<CountryCode, Array<keyof AddressSchema>>;
|
|
@@ -7,7 +7,7 @@ export declare const trustForms: {
|
|
|
7
7
|
readonly trustRegistrationAddress: {
|
|
8
8
|
readonly formId: "trustRegistrationAddress";
|
|
9
9
|
readonly formName: "addressDetails";
|
|
10
|
-
readonly fields: (keyof import("../../../Shared/fields/RegistrationAndOperationalAddressFields/types").RegistrationAndOperationalAddressFieldsSchema)[];
|
|
10
|
+
readonly fields: (keyof import("../../../Shared/fields/Address/RegistrationAndOperationalAddressFields/types").RegistrationAndOperationalAddressFieldsSchema)[];
|
|
11
11
|
};
|
|
12
12
|
readonly trustConstitutionalDocument: {
|
|
13
13
|
readonly formId: "trustConstitutionalDocument";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseInnerFormProps } from '../../../../hooks/useForm/types';
|
|
2
|
-
import type { RegistrationAndOperationalAddressFieldsSchema } from '../../../Shared/fields/RegistrationAndOperationalAddressFields/types';
|
|
2
|
+
import type { RegistrationAndOperationalAddressFieldsSchema } from '../../../Shared/fields/Address/RegistrationAndOperationalAddressFields/types';
|
|
3
3
|
import type { TaskType } from '../../../../stores/globalStore/taskTypes';
|
|
4
4
|
import type { CountryCode } from '../../../../types/datasets/country-code';
|
|
5
5
|
export type TrustRegistrationAddressSchema = RegistrationAndOperationalAddressFieldsSchema;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AddressDto } from '../api/legalEntity/legalEntity.types';
|
|
2
|
-
import type { AddressSchema } from '../components/Shared/
|
|
2
|
+
import type { AddressSchema } from '../components/Shared/fields/Address/types';
|
|
3
3
|
import type { DatasetUtil } from './datasetUtil';
|
|
4
4
|
/**
|
|
5
5
|
* Maps an Address object from the API model to the local AddressSchema used by forms.
|
package/dist/{unincorporatedPartnership-B5pKn0gl.js → unincorporatedPartnership-DsneX1hY.js}
RENAMED
|
@@ -8,7 +8,7 @@ import { t as Loader } from "./Loader-BDaKGf77.js";
|
|
|
8
8
|
import { s as keysOf } from "./genUtils-nphCwt1A.js";
|
|
9
9
|
import { t as StackLayout } from "./StackLayout-J1ynSX-P.js";
|
|
10
10
|
import { T as dataMissingRemediationsToFieldsMap, h as businessDetailsApiKeyMapping, r as remediationHasFileUploadField, s as individualApiKeyMapping } from "./processCapabilities-B75YIdXZ.js";
|
|
11
|
-
import { o as formDebugInfo } from "./RadioGroup-
|
|
11
|
+
import { o as formDebugInfo } from "./RadioGroup-Di2A9RNN.js";
|
|
12
12
|
import { Suspense } from "preact/compat";
|
|
13
13
|
import { jsx, jsxs } from "preact/jsx-runtime";
|
|
14
14
|
var LandingLayout_module_default = {
|