@adyen/kyc-components 2.46.0 → 2.46.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.
@@ -925,7 +925,8 @@ const legalCompanyName__US = "Legal name";
925
925
  const legalCompanyName__helperText = "Enter the name exactly as it is on your company's official registration documents.";
926
926
  const legalCompanyName__helperText__AU = "Enter the name exactly as it is on your Australian Securities and Investment Commission's (ASIC).";
927
927
  const legalCompanyName__helperText__NL = "Enter the name exactly as it is on your Chamber of Commerce registration.";
928
- const legalCompanyName__helperText__US = "The legal name is used to identify a business with the government. This information came from a trusted data source and can not be edited.";
928
+ const legalCompanyName__helperText__US = "Enter the name exactly as it appears on your Secretary of State Registration.";
929
+ const legalCompanyName__helperText__US__business = "The legal name is used to identify a business with the government. This information came from a trusted data source and can not be edited.";
929
930
  const legalCompanyName__helperText__PR = "Enter the name exactly as it appears on your Department of State Registration.";
930
931
  const legalCompanyName__helperText__SG = "Enter the name exactly as it is on your Accounting and Corporate Regulatory Authority (ACRA) BizFile.";
931
932
  const legalCompanyName__helperText__HK = "Enter the name exactly as it is on your Hong Kong Companies Registry's Certificate of Incorporation.";
@@ -2260,6 +2261,7 @@ const defaultTrans = {
2260
2261
  legalCompanyName__helperText__AU,
2261
2262
  legalCompanyName__helperText__NL,
2262
2263
  legalCompanyName__helperText__US,
2264
+ legalCompanyName__helperText__US__business,
2263
2265
  legalCompanyName__helperText__PR,
2264
2266
  legalCompanyName__helperText__SG,
2265
2267
  legalCompanyName__helperText__HK,
@@ -4283,6 +4285,15 @@ function useForm({
4283
4285
  fieldProblems: state2.fieldProblems
4284
4286
  };
4285
4287
  }
4288
+ const resolveFieldMetadata = (countryEntry, params, defaultMetadata) => {
4289
+ if (typeof countryEntry === "object") {
4290
+ return countryEntry;
4291
+ }
4292
+ if (typeof countryEntry === "function") {
4293
+ return countryEntry(params);
4294
+ }
4295
+ return defaultMetadata;
4296
+ };
4286
4297
  function useDataset(datasetIdentifier2, skip) {
4287
4298
  const {
4288
4299
  i18n
@@ -5338,189 +5349,6 @@ function LegalCompanyNameField({
5338
5349
  })
5339
5350
  });
5340
5351
  }
5341
- const Disclaimer = ({
5342
- title,
5343
- children
5344
- }) => jsxs("div", {
5345
- className: "adyen-kyc-disclaimer-container",
5346
- children: [jsx("div", {
5347
- className: "adyen-kyc-disclaimer__title",
5348
- children: title
5349
- }), jsx("div", {
5350
- className: "adyen-kyc-disclaimer__content",
5351
- children
5352
- })]
5353
- });
5354
- const PatriotActDisclosure = () => {
5355
- const {
5356
- i18n
5357
- } = useI18nContext();
5358
- return jsxs(Disclaimer, {
5359
- title: i18n.get("patriotActDisclosureTitle"),
5360
- children: [jsx("p", {
5361
- children: i18n.get("patriotActDisclosureTextParagraph1")
5362
- }), jsx("p", {
5363
- children: i18n.get("patriotActDisclosureTextParagraph2")
5364
- })]
5365
- });
5366
- };
5367
- const companyCountryValidationRules = {
5368
- country: {
5369
- modes: ["blur"],
5370
- validate: (companyCountry) => !isEmpty(companyCountry),
5371
- errorMessage: "fieldIsRequired"
5372
- },
5373
- legalCompanyName: {
5374
- modes: ["blur"],
5375
- validate: (legalCompanyName2) => !isEmpty(legalCompanyName2),
5376
- errorMessage: "fieldIsRequired"
5377
- },
5378
- countryOfGoverningLaw: {
5379
- modes: ["blur"],
5380
- validate: (countryOfGoverningLaw2) => !isEmpty(countryOfGoverningLaw2),
5381
- errorMessage: "fieldIsRequired"
5382
- }
5383
- };
5384
- const countryWithGoverningLawFields = [...LEGAL_COMPANY_NAME_FIELD, ...COUNTRY_FIELD, ...COUNTRY_OF_GOVERNING_LAW_FIELD];
5385
- const companyNameAndCountryFields = [...LEGAL_COMPANY_NAME_FIELD, ...COUNTRY_FIELD];
5386
- function CompanyNameAndCountry(props) {
5387
- const {
5388
- i18n
5389
- } = useI18nContext();
5390
- const {
5391
- isSettingEnabled
5392
- } = useSettingsContext();
5393
- const {
5394
- id: id2,
5395
- isTopLevelEntity
5396
- } = props;
5397
- const allowedCountries = useAllowedCountries();
5398
- const {
5399
- isExperimentEnabled
5400
- } = useExperimentsContext();
5401
- const {
5402
- sliceData,
5403
- updateStateSlice
5404
- } = useGlobalDataSlice(id2);
5405
- const schemaWithGoverningLaw = (sliceData == null ? void 0 : sliceData.country) === "GB" && (sliceData == null ? void 0 : sliceData.differentCountryOfGoverningLaw) ? countryWithGoverningLawFields : companyNameAndCountryFields;
5406
- const {
5407
- data: formData,
5408
- valid: formValid,
5409
- errors: formErrors,
5410
- fieldProblems: formFieldProblems,
5411
- handleChangeFor
5412
- } = useForm({
5413
- ...props,
5414
- schema: schemaWithGoverningLaw,
5415
- defaultData: props == null ? void 0 : props.data,
5416
- rules: (props == null ? void 0 : props.validators) || companyCountryValidationRules,
5417
- fieldProblems: props == null ? void 0 : props.fieldValidationErrors
5418
- });
5419
- const formUtils = formUtilities(props, i18n);
5420
- const isAllowedEditPrefilledCountry = isSettingEnabled(SettingNames.AllowPrefilledCountryEdit);
5421
- const isCountryOfGoverningLawEnabled = isExperimentEnabled("EnableCountryOfGoverningLawForUKCompanies");
5422
- const isCountryOfGoverningLawAllowed = formData.country === "GB";
5423
- const showCountryOfGoverningLaw = isCountryOfGoverningLawEnabled && isCountryOfGoverningLawAllowed;
5424
- useEffect(() => {
5425
- updateStateSlice == null ? void 0 : updateStateSlice({
5426
- data: {
5427
- ...sliceData,
5428
- ...formData
5429
- },
5430
- errors: formErrors,
5431
- valid: formValid,
5432
- fieldProblems: formFieldProblems
5433
- });
5434
- }, [formData, formErrors, formFieldProblems, formValid, updateStateSlice]);
5435
- const handleChangeForCountries = (key) => (e) => {
5436
- handleChangeFor(key)(e);
5437
- if (!formData.differentCountryOfGoverningLaw && e.target.value === "GB") {
5438
- const countryOfGoverningLawEvent = {
5439
- target: {
5440
- name: "countryOfGoverningLaw",
5441
- value: e.target.value
5442
- }
5443
- };
5444
- handleChangeFor("countryOfGoverningLaw")(countryOfGoverningLawEvent);
5445
- }
5446
- };
5447
- return jsxs("form", {
5448
- children: [jsx(FormHeader, {
5449
- heading: props == null ? void 0 : props.heading
5450
- }), jsx(ErrorPanel, {
5451
- verificationErrors: props == null ? void 0 : props.formVerificationErrors,
5452
- validationErrors: props == null ? void 0 : props.fieldValidationErrors,
5453
- formUtils,
5454
- id: "ariaErrorField"
5455
- }), formData.country === "US" ? jsx(PatriotActDisclosure, {}) : void 0, formUtils.isRequiredField("legalCompanyName") && jsx(LegalCompanyNameField, {
5456
- data: formUtils.getFieldData(formData, LEGAL_COMPANY_NAME_FIELD),
5457
- valid: formUtils.getFieldValid(formValid, LEGAL_COMPANY_NAME_FIELD),
5458
- errors: formUtils.getFieldErrors(formErrors, formFieldProblems, LEGAL_COMPANY_NAME_FIELD),
5459
- labels: formUtils.getFieldLabels(LEGAL_COMPANY_NAME_FIELD),
5460
- helperText: formUtils.getFieldHelperText(LEGAL_COMPANY_NAME_FIELD, {
5461
- legalCompanyName: "legalCompanyName__helperText"
5462
- }),
5463
- readonly: formUtils.isReadOnly("legalCompanyName"),
5464
- handleChangeFor
5465
- }), formUtils.isRequiredField("country") && jsx(CountryField, {
5466
- data: formUtils.getFieldData(formData, COUNTRY_FIELD),
5467
- valid: formUtils.getFieldValid(formValid, COUNTRY_FIELD),
5468
- errors: formUtils.getFieldErrors(formErrors, formFieldProblems, COUNTRY_FIELD),
5469
- labels: formUtils.getFieldLabels(COUNTRY_FIELD, {
5470
- country: "countryRegionOfEstablishment"
5471
- }),
5472
- readonly: !isAllowedEditPrefilledCountry || Boolean(props == null ? void 0 : props.disableCountry),
5473
- classNameModifiers: ["country"],
5474
- allowedCountries: isTopLevelEntity ? allowedCountries : void 0,
5475
- handleChangeFor: handleChangeForCountries
5476
- }), showCountryOfGoverningLaw && jsx(CountryOfGoverningLawField, {
5477
- data: formUtils.getFieldData(formData, COUNTRY_OF_GOVERNING_LAW_FIELD),
5478
- valid: formUtils.getFieldValid(formValid, COUNTRY_OF_GOVERNING_LAW_FIELD),
5479
- errors: formUtils.getFieldErrors(formErrors, formFieldProblems, COUNTRY_OF_GOVERNING_LAW_FIELD),
5480
- labels: formUtils.getFieldLabels(COUNTRY_OF_GOVERNING_LAW_FIELD),
5481
- readonly: false,
5482
- classNameModifiers: ["country"],
5483
- allowedCountries: isTopLevelEntity ? allowedCountries : void 0,
5484
- handleChangeFor
5485
- })]
5486
- });
5487
- }
5488
- const CompanyNameAndCountryComponent = memo(CompanyNameAndCountry, (prevProps, nextProps) => {
5489
- var _a, _b;
5490
- return objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && ((_a = prevProps.data) == null ? void 0 : _a.country) === ((_b = nextProps.data) == null ? void 0 : _b.country) && prevProps.shouldValidate === nextProps.shouldValidate;
5491
- });
5492
- function StateContextSetter({
5493
- stateRef
5494
- }) {
5495
- if (stateRef.current.setState) {
5496
- return null;
5497
- }
5498
- return jsx(StateContext.Consumer, {
5499
- children: (stateContextValue) => {
5500
- if (!stateContextValue) {
5501
- throw new Error("<StateContextSetter> needs to be mounted inside a <StateProvider>");
5502
- }
5503
- const {
5504
- dispatch,
5505
- setActiveForms
5506
- } = stateContextValue;
5507
- stateRef.current.setState = dispatch;
5508
- stateRef.current.setActiveForms = setActiveForms;
5509
- return null;
5510
- }
5511
- });
5512
- }
5513
- var CompanyTypesValue = /* @__PURE__ */ ((CompanyTypesValue2) => {
5514
- CompanyTypesValue2["PRIVATE_COMPANY"] = "privateCompany";
5515
- CompanyTypesValue2["PUBLIC_COMPANY"] = "listedPublicCompany";
5516
- CompanyTypesValue2["UNLISTED_PUBLIC_COMPANY"] = "unlistedPublicCompany";
5517
- CompanyTypesValue2["INCORPORATED_PARTNERSHIP"] = "partnershipIncorporated";
5518
- CompanyTypesValue2["INCORPORATED_ASSOCIATION"] = "associationIncorporated";
5519
- CompanyTypesValue2["GOVERNMENTAL_ORGANIZATION"] = "governmentalOrganization";
5520
- CompanyTypesValue2["NON_PROFIT_OR_CHARITABLE"] = "nonProfit";
5521
- CompanyTypesValue2["SOLE_PROPRIETORSHIP"] = "soleProprietorship";
5522
- return CompanyTypesValue2;
5523
- })(CompanyTypesValue || {});
5524
5352
  var CountryCodes = /* @__PURE__ */ ((CountryCodes2) => {
5525
5353
  CountryCodes2["Afghanistan"] = "AF";
5526
5354
  CountryCodes2["AlandIslands"] = "AX";
@@ -5770,15 +5598,232 @@ var CountryCodes = /* @__PURE__ */ ((CountryCodes2) => {
5770
5598
  CountryCodes2["Zimbabwe"] = "ZW";
5771
5599
  return CountryCodes2;
5772
5600
  })(CountryCodes || {});
5773
- const resolveFieldMetadata = (countryEntry, params, defaultMetadata) => {
5774
- if (typeof countryEntry === "object") {
5775
- return countryEntry;
5776
- }
5777
- if (typeof countryEntry === "function") {
5778
- return countryEntry(params);
5601
+ const validateNotEmptyOnBlur = {
5602
+ modes: ["blur"],
5603
+ validate: (val) => !isEmpty(val),
5604
+ errorMessage: "fieldIsRequired"
5605
+ };
5606
+ const validatePatternOnBlur = (pattern) => ({
5607
+ modes: ["blur"],
5608
+ validate: (val) => !!val && pattern.test(val)
5609
+ });
5610
+ const defaultFieldMetadata$a = {
5611
+ label: "legalCompanyName",
5612
+ helperText: "legalCompanyName__helperText",
5613
+ validators: validateNotEmptyOnBlur
5614
+ };
5615
+ const defaultFieldConfig$a = {
5616
+ [CountryCodes.Australia]: {
5617
+ label: "legalCompanyName",
5618
+ helperText: "legalCompanyName__helperText__AU",
5619
+ validators: validateNotEmptyOnBlur
5620
+ },
5621
+ [CountryCodes.HongKong]: {
5622
+ label: "legalCompanyName",
5623
+ helperText: "legalCompanyName__helperText__HK",
5624
+ validators: validateNotEmptyOnBlur
5625
+ },
5626
+ [CountryCodes.Netherlands]: {
5627
+ label: "legalCompanyName",
5628
+ helperText: "legalCompanyName__helperText__NL",
5629
+ validators: validateNotEmptyOnBlur
5630
+ },
5631
+ [CountryCodes.Singapore]: {
5632
+ label: "legalCompanyName",
5633
+ helperText: "legalCompanyName__helperText__SG",
5634
+ validators: validateNotEmptyOnBlur
5635
+ },
5636
+ [CountryCodes.UnitedStates]: ({
5637
+ isBusiness
5638
+ }) => ({
5639
+ label: "legalCompanyName__US",
5640
+ helperText: isBusiness ? "legalCompanyName__helperText__US__business" : "legalCompanyName__helperText__US",
5641
+ validators: validateNotEmptyOnBlur
5642
+ })
5643
+ };
5644
+ const Disclaimer = ({
5645
+ title,
5646
+ children
5647
+ }) => jsxs("div", {
5648
+ className: "adyen-kyc-disclaimer-container",
5649
+ children: [jsx("div", {
5650
+ className: "adyen-kyc-disclaimer__title",
5651
+ children: title
5652
+ }), jsx("div", {
5653
+ className: "adyen-kyc-disclaimer__content",
5654
+ children
5655
+ })]
5656
+ });
5657
+ const PatriotActDisclosure = () => {
5658
+ const {
5659
+ i18n
5660
+ } = useI18nContext();
5661
+ return jsxs(Disclaimer, {
5662
+ title: i18n.get("patriotActDisclosureTitle"),
5663
+ children: [jsx("p", {
5664
+ children: i18n.get("patriotActDisclosureTextParagraph1")
5665
+ }), jsx("p", {
5666
+ children: i18n.get("patriotActDisclosureTextParagraph2")
5667
+ })]
5668
+ });
5669
+ };
5670
+ const companyCountryValidationRules = {
5671
+ country: {
5672
+ modes: ["blur"],
5673
+ validate: (companyCountry) => !isEmpty(companyCountry),
5674
+ errorMessage: "fieldIsRequired"
5675
+ },
5676
+ legalCompanyName: {
5677
+ modes: ["blur"],
5678
+ validate: (legalCompanyName2) => !isEmpty(legalCompanyName2),
5679
+ errorMessage: "fieldIsRequired"
5680
+ },
5681
+ countryOfGoverningLaw: {
5682
+ modes: ["blur"],
5683
+ validate: (countryOfGoverningLaw2) => !isEmpty(countryOfGoverningLaw2),
5684
+ errorMessage: "fieldIsRequired"
5779
5685
  }
5780
- return defaultMetadata;
5781
5686
  };
5687
+ const countryWithGoverningLawFields = [...LEGAL_COMPANY_NAME_FIELD, ...COUNTRY_FIELD, ...COUNTRY_OF_GOVERNING_LAW_FIELD];
5688
+ const companyNameAndCountryFields = [...LEGAL_COMPANY_NAME_FIELD, ...COUNTRY_FIELD];
5689
+ function CompanyNameAndCountry(props) {
5690
+ const {
5691
+ i18n
5692
+ } = useI18nContext();
5693
+ const {
5694
+ isSettingEnabled
5695
+ } = useSettingsContext();
5696
+ const allowedCountries = useAllowedCountries();
5697
+ const {
5698
+ isExperimentEnabled
5699
+ } = useExperimentsContext();
5700
+ const {
5701
+ sliceData,
5702
+ updateStateSlice
5703
+ } = useGlobalDataSlice(props.id);
5704
+ let mergedProps = props;
5705
+ mergedProps = mergeFieldMetadataIntoProps("legalCompanyName", resolveFieldMetadata(defaultFieldConfig$a[sliceData == null ? void 0 : sliceData.country], {
5706
+ isBusiness: false
5707
+ }, defaultFieldMetadata$a), mergedProps);
5708
+ const schemaWithGoverningLaw = (sliceData == null ? void 0 : sliceData.country) === "GB" && (sliceData == null ? void 0 : sliceData.differentCountryOfGoverningLaw) ? countryWithGoverningLawFields : companyNameAndCountryFields;
5709
+ const {
5710
+ data: formData,
5711
+ valid: formValid,
5712
+ errors: formErrors,
5713
+ fieldProblems: formFieldProblems,
5714
+ handleChangeFor
5715
+ } = useForm({
5716
+ ...mergedProps,
5717
+ schema: schemaWithGoverningLaw,
5718
+ defaultData: mergedProps == null ? void 0 : mergedProps.data,
5719
+ rules: (mergedProps == null ? void 0 : mergedProps.validators) || companyCountryValidationRules,
5720
+ fieldProblems: mergedProps == null ? void 0 : mergedProps.fieldValidationErrors
5721
+ });
5722
+ const formUtils = formUtilities(mergedProps, i18n);
5723
+ const isAllowedEditPrefilledCountry = isSettingEnabled(SettingNames.AllowPrefilledCountryEdit);
5724
+ const isCountryOfGoverningLawEnabled = isExperimentEnabled("EnableCountryOfGoverningLawForUKCompanies");
5725
+ const isCountryOfGoverningLawAllowed = formData.country === "GB";
5726
+ const showCountryOfGoverningLaw = isCountryOfGoverningLawEnabled && isCountryOfGoverningLawAllowed;
5727
+ useEffect(() => {
5728
+ updateStateSlice == null ? void 0 : updateStateSlice({
5729
+ data: {
5730
+ ...sliceData,
5731
+ ...formData
5732
+ },
5733
+ errors: formErrors,
5734
+ valid: formValid,
5735
+ fieldProblems: formFieldProblems
5736
+ });
5737
+ }, [formData, formErrors, formFieldProblems, formValid, updateStateSlice]);
5738
+ const handleChangeForCountries = (key) => (e) => {
5739
+ handleChangeFor(key)(e);
5740
+ if (!formData.differentCountryOfGoverningLaw && e.target.value === "GB") {
5741
+ const countryOfGoverningLawEvent = {
5742
+ target: {
5743
+ name: "countryOfGoverningLaw",
5744
+ value: e.target.value
5745
+ }
5746
+ };
5747
+ handleChangeFor("countryOfGoverningLaw")(countryOfGoverningLawEvent);
5748
+ }
5749
+ };
5750
+ return jsxs("form", {
5751
+ children: [jsx(FormHeader, {
5752
+ heading: props == null ? void 0 : props.heading
5753
+ }), jsx(ErrorPanel, {
5754
+ verificationErrors: props == null ? void 0 : props.formVerificationErrors,
5755
+ validationErrors: props == null ? void 0 : props.fieldValidationErrors,
5756
+ formUtils,
5757
+ id: "ariaErrorField"
5758
+ }), formData.country === "US" ? jsx(PatriotActDisclosure, {}) : void 0, formUtils.isRequiredField("legalCompanyName") && jsx(LegalCompanyNameField, {
5759
+ data: formUtils.getFieldData(formData, LEGAL_COMPANY_NAME_FIELD),
5760
+ valid: formUtils.getFieldValid(formValid, LEGAL_COMPANY_NAME_FIELD),
5761
+ errors: formUtils.getFieldErrors(formErrors, formFieldProblems, LEGAL_COMPANY_NAME_FIELD),
5762
+ labels: formUtils.getFieldLabels(LEGAL_COMPANY_NAME_FIELD),
5763
+ helperText: formUtils.getFieldHelperText(LEGAL_COMPANY_NAME_FIELD, {
5764
+ legalCompanyName: "legalCompanyName__helperText"
5765
+ }),
5766
+ readonly: formUtils.isReadOnly("legalCompanyName"),
5767
+ handleChangeFor
5768
+ }), formUtils.isRequiredField("country") && jsx(CountryField, {
5769
+ data: formUtils.getFieldData(formData, COUNTRY_FIELD),
5770
+ valid: formUtils.getFieldValid(formValid, COUNTRY_FIELD),
5771
+ errors: formUtils.getFieldErrors(formErrors, formFieldProblems, COUNTRY_FIELD),
5772
+ labels: formUtils.getFieldLabels(COUNTRY_FIELD, {
5773
+ country: "countryRegionOfEstablishment"
5774
+ }),
5775
+ readonly: !isAllowedEditPrefilledCountry || Boolean(props == null ? void 0 : props.disableCountry),
5776
+ classNameModifiers: ["country"],
5777
+ allowedCountries: mergedProps.isTopLevelEntity ? allowedCountries : void 0,
5778
+ handleChangeFor: handleChangeForCountries
5779
+ }), showCountryOfGoverningLaw && jsx(CountryOfGoverningLawField, {
5780
+ data: formUtils.getFieldData(formData, COUNTRY_OF_GOVERNING_LAW_FIELD),
5781
+ valid: formUtils.getFieldValid(formValid, COUNTRY_OF_GOVERNING_LAW_FIELD),
5782
+ errors: formUtils.getFieldErrors(formErrors, formFieldProblems, COUNTRY_OF_GOVERNING_LAW_FIELD),
5783
+ labels: formUtils.getFieldLabels(COUNTRY_OF_GOVERNING_LAW_FIELD),
5784
+ readonly: false,
5785
+ classNameModifiers: ["country"],
5786
+ allowedCountries: mergedProps.isTopLevelEntity ? allowedCountries : void 0,
5787
+ handleChangeFor
5788
+ })]
5789
+ });
5790
+ }
5791
+ const CompanyNameAndCountryComponent = memo(CompanyNameAndCountry, (prevProps, nextProps) => {
5792
+ var _a, _b;
5793
+ return objectsDeepEqual(prevProps.requiredFields, nextProps.requiredFields) && objectsDeepEqual(prevProps.optionalFields, nextProps.optionalFields) && objectsDeepEqual(prevProps.data, nextProps.data) && objectsDeepEqual(prevProps.formVerificationErrors, nextProps.formVerificationErrors) && objectsDeepEqual(prevProps.fieldValidationErrors, nextProps.fieldValidationErrors) && ((_a = prevProps.data) == null ? void 0 : _a.country) === ((_b = nextProps.data) == null ? void 0 : _b.country) && prevProps.shouldValidate === nextProps.shouldValidate;
5794
+ });
5795
+ function StateContextSetter({
5796
+ stateRef
5797
+ }) {
5798
+ if (stateRef.current.setState) {
5799
+ return null;
5800
+ }
5801
+ return jsx(StateContext.Consumer, {
5802
+ children: (stateContextValue) => {
5803
+ if (!stateContextValue) {
5804
+ throw new Error("<StateContextSetter> needs to be mounted inside a <StateProvider>");
5805
+ }
5806
+ const {
5807
+ dispatch,
5808
+ setActiveForms
5809
+ } = stateContextValue;
5810
+ stateRef.current.setState = dispatch;
5811
+ stateRef.current.setActiveForms = setActiveForms;
5812
+ return null;
5813
+ }
5814
+ });
5815
+ }
5816
+ var CompanyTypesValue = /* @__PURE__ */ ((CompanyTypesValue2) => {
5817
+ CompanyTypesValue2["PRIVATE_COMPANY"] = "privateCompany";
5818
+ CompanyTypesValue2["PUBLIC_COMPANY"] = "listedPublicCompany";
5819
+ CompanyTypesValue2["UNLISTED_PUBLIC_COMPANY"] = "unlistedPublicCompany";
5820
+ CompanyTypesValue2["INCORPORATED_PARTNERSHIP"] = "partnershipIncorporated";
5821
+ CompanyTypesValue2["INCORPORATED_ASSOCIATION"] = "associationIncorporated";
5822
+ CompanyTypesValue2["GOVERNMENTAL_ORGANIZATION"] = "governmentalOrganization";
5823
+ CompanyTypesValue2["NON_PROFIT_OR_CHARITABLE"] = "nonProfit";
5824
+ CompanyTypesValue2["SOLE_PROPRIETORSHIP"] = "soleProprietorship";
5825
+ return CompanyTypesValue2;
5826
+ })(CompanyTypesValue || {});
5782
5827
  const cachedStripPatterns = /* @__PURE__ */ new Map();
5783
5828
  const makeStripPattern = (mask) => {
5784
5829
  const inputPatterns = mask.tokens.filter((token) => token.type === "input" && !!token.allow).map((token) => token.allow);
@@ -7668,15 +7713,6 @@ const PassportNumberPatterns = {
7668
7713
  const ProofOfIdentityCardPatterns = {
7669
7714
  [CountryCodes.HongKong]: /^[A-Z]{1,2}[0-9]{6}[0-9A]$/
7670
7715
  };
7671
- const validateNotEmptyOnBlur = {
7672
- modes: ["blur"],
7673
- validate: (val) => !isEmpty(val),
7674
- errorMessage: "fieldIsRequired"
7675
- };
7676
- const validatePatternOnBlur = (pattern) => ({
7677
- modes: ["blur"],
7678
- validate: (val) => !!val && pattern.test(val)
7679
- });
7680
7716
  const defaultFieldMetadata$9 = {
7681
7717
  label: "registrationNumber"
7682
7718
  };
@@ -10707,9 +10743,6 @@ const businessDetailsFieldsPerScenario = {
10707
10743
  };
10708
10744
  const countryConfig$3 = {
10709
10745
  [CountryCodes.Australia]: {
10710
- legalCompanyName: {
10711
- helperText: "legalCompanyName__helperText__AU"
10712
- },
10713
10746
  legalEntityType: {
10714
10747
  label: "companyType"
10715
10748
  }
@@ -10762,9 +10795,6 @@ const countryConfig$3 = {
10762
10795
  [CountryCodes.Gibraltar]: {},
10763
10796
  [CountryCodes.Guernsey]: {},
10764
10797
  [CountryCodes.HongKong]: {
10765
- legalCompanyName: {
10766
- helperText: "legalCompanyName__helperText__HK"
10767
- },
10768
10798
  legalEntityType: {
10769
10799
  label: "typeOfCompany"
10770
10800
  },
@@ -10818,9 +10848,6 @@ const countryConfig$3 = {
10818
10848
  },
10819
10849
  [CountryCodes.Monaco]: {},
10820
10850
  [CountryCodes.Netherlands]: {
10821
- legalCompanyName: {
10822
- helperText: "legalCompanyName__helperText__NL"
10823
- },
10824
10851
  vatAbsenceReason: {
10825
10852
  label: "vatAbsenceReason"
10826
10853
  }
@@ -10856,9 +10883,6 @@ const countryConfig$3 = {
10856
10883
  country: {
10857
10884
  label: "country__US__business"
10858
10885
  },
10859
- legalCompanyName: {
10860
- helperText: "legalCompanyName__helperText__US"
10861
- },
10862
10886
  tradingName: {
10863
10887
  label: "doingBusinessAs"
10864
10888
  },
@@ -10878,9 +10902,6 @@ const countryConfig$3 = {
10878
10902
  registrationNumber: {
10879
10903
  label: "uen"
10880
10904
  },
10881
- legalCompanyName: {
10882
- helperText: "legalCompanyName__helperText__SG"
10883
- },
10884
10905
  legalEntityType: {
10885
10906
  label: "companyType"
10886
10907
  },
@@ -10909,10 +10930,6 @@ const countryConfig$3 = {
10909
10930
  stateOrProvince: {
10910
10931
  label: "stateOrProvince__US__business"
10911
10932
  },
10912
- legalCompanyName: {
10913
- label: "legalCompanyName__US",
10914
- helperText: "legalCompanyName__helperText__US"
10915
- },
10916
10933
  tradingName: {
10917
10934
  label: "doingBusinessAs"
10918
10935
  },
@@ -24018,13 +24035,6 @@ const dbaNameFieldMetadata = {
24018
24035
  label: "dbaName",
24019
24036
  validators: validateNotEmptyOnBlur
24020
24037
  };
24021
- const LegalCompanyNameFieldValidation = () => ({
24022
- legalCompanyName: {
24023
- modes: ["blur"],
24024
- validate: (legalCompanyName2) => !isEmpty(legalCompanyName2),
24025
- errorMessage: "fieldIsRequired"
24026
- }
24027
- });
24028
24038
  const TAX_INFORMATION_FIELD = ["taxInformation", "exemptedFromTax", "isUen"];
24029
24039
  function TaxInformationField({
24030
24040
  data,
@@ -24381,13 +24391,9 @@ function AdditionalInformationComponent({
24381
24391
  return (_a2 = initialFormUtilsProps.allFields) == null ? void 0 : _a2.reduce((acc, field) => {
24382
24392
  switch (field) {
24383
24393
  case "legalCompanyName":
24384
- return {
24385
- ...acc,
24386
- validators: {
24387
- ...acc.validators,
24388
- ...LegalCompanyNameFieldValidation()
24389
- }
24390
- };
24394
+ return mergeFieldMetadataIntoProps(field, resolveFieldMetadata(defaultFieldConfig$a[country2], {
24395
+ isBusiness: true
24396
+ }, defaultFieldMetadata$a), acc);
24391
24397
  case "dbaName":
24392
24398
  return mergeFieldMetadataIntoProps("dbaName", dbaNameFieldMetadata, acc);
24393
24399
  case "registrationNumber":
@@ -27549,13 +27555,6 @@ function CompanyLookup({
27549
27555
  });
27550
27556
  }
27551
27557
  const CompanyLookupComponent = memo(CompanyLookup, (prevProps, nextProps) => objectsDeepEqual(prevProps.defaultData, nextProps.defaultData) && prevProps.canVerify === nextProps.canVerify && prevProps.legalCompanyName === nextProps.legalCompanyName && prevProps.country === nextProps.country && prevProps.stateOrProvince === nextProps.stateOrProvince && prevProps.taxInformationNumber === nextProps.taxInformationNumber && prevProps.setLoading === nextProps.setLoading && prevProps.setKompanyAddress === nextProps.setKompanyAddress && prevProps.handleCompanyIndexSearch === nextProps.handleCompanyIndexSearch && prevProps.handleCompanyDeepSearch === nextProps.handleCompanyDeepSearch && prevProps.handleGetCompanyDataset === nextProps.handleGetCompanyDataset && prevProps.handleRefreshCompanyDataset === nextProps.handleRefreshCompanyDataset && prevProps.handleVerifyTin === nextProps.handleVerifyTin);
27552
- const StateFieldValidation = () => ({
27553
- stateOrProvince: {
27554
- modes: ["blur"],
27555
- validate: (stateOrProvince2) => !isEmpty(stateOrProvince2),
27556
- errorMessage: "fieldIsRequired"
27557
- }
27558
- });
27559
27558
  const COMPANY_BASICS_FORM_ID = "companyBasics";
27560
27559
  const companyBasicsFields = [...LEGAL_COMPANY_NAME_FIELD, ...COUNTRY_FIELD, ...STATE_FIELD, ...TAX_INFORMATION_FIELD];
27561
27560
  function CompanyBasics({
@@ -27619,13 +27618,9 @@ function CompanyBasics({
27619
27618
  return (_a2 = initialFormUtilsProps.allFields) == null ? void 0 : _a2.reduce((acc, field) => {
27620
27619
  switch (field) {
27621
27620
  case "legalCompanyName":
27622
- return {
27623
- ...acc,
27624
- validators: {
27625
- ...acc.validators,
27626
- ...LegalCompanyNameFieldValidation()
27627
- }
27628
- };
27621
+ return mergeFieldMetadataIntoProps(field, resolveFieldMetadata(defaultFieldConfig$a[country2], {
27622
+ isBusiness: false
27623
+ }, defaultFieldMetadata$a), acc);
27629
27624
  case "country":
27630
27625
  return {
27631
27626
  ...acc,
@@ -27635,13 +27630,9 @@ function CompanyBasics({
27635
27630
  }
27636
27631
  };
27637
27632
  case "stateOrProvince":
27638
- return {
27639
- ...acc,
27640
- validators: {
27641
- ...acc.validators,
27642
- ...StateFieldValidation()
27643
- }
27644
- };
27633
+ return mergeFieldMetadataIntoProps(field, resolveFieldMetadata(defaultFieldConfig[country2], {
27634
+ isBusiness: false
27635
+ }, defaultFieldMetadata), acc);
27645
27636
  case "taxInformation":
27646
27637
  return mergeFieldMetadataIntoProps(field, resolveFieldMetadata(defaultFieldConfig$1[country2], {
27647
27638
  taxIdNumberType,
@@ -27651,7 +27642,7 @@ function CompanyBasics({
27651
27642
  return acc;
27652
27643
  }
27653
27644
  }, initialFormUtilsProps);
27654
- }, [country2, initialFormUtilsProps, taxIdNumberType]);
27645
+ }, [companyType2, country2, initialFormUtilsProps, taxIdNumberType]);
27655
27646
  const schema = (requiredFields == null ? void 0 : requiredFields.length) ? requiredFields : ["legalCompanyName", "country"];
27656
27647
  const {
27657
27648
  schema: formSchema,
@@ -31878,7 +31869,7 @@ const getAgeToday = (birthdate2) => {
31878
31869
  if (todayMonth > bdMonth) {
31879
31870
  return yearDifference;
31880
31871
  }
31881
- if (todayMonth === bdMonth && todayDay >= bdDate.getDate()) {
31872
+ if (todayMonth === bdMonth && todayDay >= bdDate.getUTCDate()) {
31882
31873
  return yearDifference;
31883
31874
  }
31884
31875
  return yearDifference - 1;
@@ -33346,28 +33337,28 @@ const convertExistingTrustMemberToDefaultData = (trustMember, allowMoreRolesForM
33346
33337
  return convertExistingTrustMember(trustMember);
33347
33338
  };
33348
33339
  const TrustRoleAndEntityType = (props) => {
33349
- const {
33350
- existingTrustMember,
33351
- id: id2,
33352
- getLegalEntityHandler,
33353
- isOrganizationSettlorWithExemptionEnabled
33354
- } = props;
33340
+ var _a;
33355
33341
  const {
33356
33342
  i18n
33357
33343
  } = useI18nContext();
33344
+ const country2 = props.country;
33345
+ let mergedProps = props;
33346
+ mergedProps = mergeFieldMetadataIntoProps("legalCompanyName", resolveFieldMetadata(defaultFieldConfig$a[country2], {
33347
+ isBusiness: false
33348
+ }, defaultFieldMetadata$a), mergedProps);
33358
33349
  const {
33359
33350
  isExperimentEnabled
33360
33351
  } = useExperimentsContext();
33361
33352
  const allowMoreRolesForMainRootTrusteeEnabled = isExperimentEnabled("AllowMoreRolesForMainRootTrustee");
33362
- const defaultData = convertExistingTrustMemberToDefaultData(existingTrustMember, allowMoreRolesForMainRootTrusteeEnabled);
33363
- const formUtils = formUtilities(props, i18n);
33353
+ const defaultData = convertExistingTrustMemberToDefaultData(props.existingTrustMember, allowMoreRolesForMainRootTrusteeEnabled);
33354
+ const formUtils = formUtilities(mergedProps, i18n);
33364
33355
  const decideFields = (data2) => {
33365
- var _a, _b;
33366
- if ((_a = data2.role) == null ? void 0 : _a.includes("undefinedBeneficiary")) {
33356
+ var _a2, _b;
33357
+ if ((_a2 = data2.role) == null ? void 0 : _a2.includes("undefinedBeneficiary")) {
33367
33358
  return ["role", "descriptionUndefinedBeneficiary"];
33368
33359
  }
33369
33360
  if ((_b = data2.role) == null ? void 0 : _b.length) {
33370
- if (isOrganizationSettlorWithExemptionEnabled && isOrganizationAndSettlor(data2)) {
33361
+ if (props.isOrganizationSettlorWithExemptionEnabled && isOrganizationAndSettlor(data2)) {
33371
33362
  return ["role", "entityType", "settlorExemptionReason", "country", "legalCompanyName"];
33372
33363
  }
33373
33364
  if (couldBeExemptSettlor(data2)) {
@@ -33395,31 +33386,31 @@ const TrustRoleAndEntityType = (props) => {
33395
33386
  defaultData,
33396
33387
  fieldProblems: props == null ? void 0 : props.fieldValidationErrors
33397
33388
  });
33398
- const availableRoles = allowMoreRolesForMainRootTrusteeEnabled && (existingTrustMember == null ? void 0 : existingTrustMember.trustMemberType) === "rootTrustee" ? getAvailableRolesByTrustMemberTypeAndLegalEntityType(data.role, existingTrustMember) : getAvailableRoles(data.role);
33389
+ const availableRoles = allowMoreRolesForMainRootTrusteeEnabled && ((_a = props.existingTrustMember) == null ? void 0 : _a.trustMemberType) === "rootTrustee" ? getAvailableRolesByTrustMemberTypeAndLegalEntityType(data.role, props.existingTrustMember) : getAvailableRoles(data.role);
33399
33390
  useEffect(() => {
33400
33391
  (async () => {
33401
- var _a;
33402
- if (isOrganizationSettlorWithExemptionEnabled && existingTrustMember && existingTrustMember.trustMemberType === "exemptSettlor" && existingTrustMember.legalEntityId !== "isNewEntry" && existingTrustMember.roles !== void 0 && existingTrustMember.roles.length === 1 && existingTrustMember.roles[0] === "settlor" && getLegalEntityHandler) {
33403
- const response = await getLegalEntityHandler(existingTrustMember.legalEntityId);
33404
- const country2 = (_a = response == null ? void 0 : response.organization) == null ? void 0 : _a.registeredAddress.country;
33392
+ var _a2;
33393
+ if (props.isOrganizationSettlorWithExemptionEnabled && props.existingTrustMember && props.existingTrustMember.trustMemberType === "exemptSettlor" && props.existingTrustMember.legalEntityId !== "isNewEntry" && props.existingTrustMember.roles !== void 0 && props.existingTrustMember.roles.length === 1 && props.existingTrustMember.roles[0] === "settlor" && props.getLegalEntityHandler) {
33394
+ const response = await props.getLegalEntityHandler(props.existingTrustMember.legalEntityId);
33395
+ const country22 = (_a2 = response == null ? void 0 : response.organization) == null ? void 0 : _a2.registeredAddress.country;
33405
33396
  if (response && response.organization) {
33406
- handleChangeFor("country")(country2);
33397
+ handleChangeFor("country")(country22);
33407
33398
  }
33408
33399
  }
33409
33400
  })();
33410
33401
  }, []);
33411
33402
  useEffect(() => {
33412
- var _a;
33413
- (_a = props.onChange) == null ? void 0 : _a.call(props, {
33403
+ var _a2;
33404
+ (_a2 = props.onChange) == null ? void 0 : _a2.call(props, {
33414
33405
  schema,
33415
33406
  data,
33416
33407
  errors,
33417
33408
  valid,
33418
33409
  isValid,
33419
- dataStoreId: id2,
33410
+ dataStoreId: props.id,
33420
33411
  fieldProblems
33421
33412
  });
33422
- }, [schema, data, isValid, i18n, errors, valid, id2, fieldProblems]);
33413
+ }, [schema, data, isValid, i18n, errors, valid, props.id, fieldProblems]);
33423
33414
  const onInputDescription = (e) => {
33424
33415
  const {
33425
33416
  value
@@ -33435,9 +33426,9 @@ const TrustRoleAndEntityType = (props) => {
33435
33426
  }
33436
33427
  };
33437
33428
  const changeSettlorExemptionReasons = (exemptionReasons) => {
33438
- var _a;
33429
+ var _a2;
33439
33430
  if (exemptionReasons.includes("noneOfTheAbove")) {
33440
- handleChangeFor("settlorExemptionReason")(((_a = data.settlorExemptionReason) == null ? void 0 : _a.includes("noneOfTheAbove")) ? exemptionReasons.filter((reason) => reason !== "noneOfTheAbove") : ["noneOfTheAbove"]);
33431
+ handleChangeFor("settlorExemptionReason")(((_a2 = data.settlorExemptionReason) == null ? void 0 : _a2.includes("noneOfTheAbove")) ? exemptionReasons.filter((reason) => reason !== "noneOfTheAbove") : ["noneOfTheAbove"]);
33441
33432
  return;
33442
33433
  }
33443
33434
  handleChangeFor("settlorExemptionReason")(exemptionReasons);
@@ -33456,8 +33447,8 @@ const TrustRoleAndEntityType = (props) => {
33456
33447
  setErrors("lastName", errors2.lastName);
33457
33448
  };
33458
33449
  const onEntityTypeChange = (value) => {
33459
- var _a;
33460
- if (isOrganizationSettlorWithExemptionEnabled && value === LegalEntityType.ORGANIZATION && ((_a = data.role) == null ? void 0 : _a.length) === 1 && data.role[0] === "settlor") {
33450
+ var _a2;
33451
+ if (props.isOrganizationSettlorWithExemptionEnabled && value === LegalEntityType.ORGANIZATION && ((_a2 = data.role) == null ? void 0 : _a2.length) === 1 && data.role[0] === "settlor") {
33461
33452
  changeSettlorExemptionReasons(["professionalServiceProvider"]);
33462
33453
  }
33463
33454
  handleChangeFor("entityType")(value);
@@ -33495,7 +33486,7 @@ const TrustRoleAndEntityType = (props) => {
33495
33486
  errorMessage: formUtils.getErrorMessage("entityType", errors, fieldProblems),
33496
33487
  label: formUtils.getLabel("entityType", "whatTypeOfYourMembersEntity"),
33497
33488
  classNameModifiers: ["entityType"],
33498
- disabled: Boolean(existingTrustMember),
33489
+ disabled: Boolean(props.existingTrustMember),
33499
33490
  children: (childProps) => jsx(RadioCardSelect, {
33500
33491
  ...childProps,
33501
33492
  options: trustMemberLegalEntityTypes,
@@ -33555,8 +33546,8 @@ const TrustRoleAndEntityType = (props) => {
33555
33546
  enterLastNameExactlyAsAppearInID: "enterSettlorsLastNameExactlyAsItAppearsInID"
33556
33547
  },
33557
33548
  onChange: onNameChange,
33558
- dataStoreId: id2
33559
- }) : void 0, isOrganizationSettlorWithExemptionEnabled && (schema == null ? void 0 : schema.includes("country")) && (schema == null ? void 0 : schema.includes("legalCompanyName")) ? jsxs(Fragment, {
33549
+ dataStoreId: props.id
33550
+ }) : void 0, props.isOrganizationSettlorWithExemptionEnabled && (schema == null ? void 0 : schema.includes("country")) && (schema == null ? void 0 : schema.includes("legalCompanyName")) ? jsxs(Fragment, {
33560
33551
  children: [jsx(CountryField, {
33561
33552
  data: formUtils.getFieldData(data, COUNTRY_FIELD),
33562
33553
  valid: formUtils.getFieldValid(valid, COUNTRY_FIELD),
@@ -33695,7 +33686,8 @@ function RoleAndTypeDropinComponent({
33695
33686
  navigateBack,
33696
33687
  addOrUpdateTrustMember,
33697
33688
  getLegalEntityHandler,
33698
- isOrganizationSettlorWithExemptionEnabled
33689
+ isOrganizationSettlorWithExemptionEnabled,
33690
+ country: country2
33699
33691
  }) {
33700
33692
  var _a, _b;
33701
33693
  const {
@@ -33788,7 +33780,8 @@ function RoleAndTypeDropinComponent({
33788
33780
  onChange: onTrustMemberChange,
33789
33781
  shouldValidate,
33790
33782
  getLegalEntityHandler,
33791
- isOrganizationSettlorWithExemptionEnabled
33783
+ isOrganizationSettlorWithExemptionEnabled,
33784
+ country: country2
33792
33785
  })
33793
33786
  }), isSummaryStep && jsx("div", {
33794
33787
  className: "adyen-kyc-form-wrapper",
@@ -37718,7 +37711,7 @@ const ConfigurationApiProvider = ({
37718
37711
  isEmbeddedDropin,
37719
37712
  loadingContext
37720
37713
  } = authContext;
37721
- const sdkVersion = "2.46.0";
37714
+ const sdkVersion = "2.46.1";
37722
37715
  useAnalytics({
37723
37716
  onUserEvent,
37724
37717
  legalEntityId: rootLegalEntityId,
@@ -1,2 +1,2 @@
1
1
  import type { RoleAndTypeDropinProps } from '../types';
2
- export declare function RoleAndTypeDropinComponent({ existingTrustMember, navigateToFullDropinFor, navigateBack, addOrUpdateTrustMember, getLegalEntityHandler, isOrganizationSettlorWithExemptionEnabled, }: RoleAndTypeDropinProps): import("preact").JSX.Element;
2
+ export declare function RoleAndTypeDropinComponent({ existingTrustMember, navigateToFullDropinFor, navigateBack, addOrUpdateTrustMember, getLegalEntityHandler, isOrganizationSettlorWithExemptionEnabled, country, }: RoleAndTypeDropinProps): import("preact").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import type { ExistingLegalEntity } from '../../../core/models/api/legal-entity';
2
+ import type { CountryCode } from '../../../core/models/country-code';
2
3
  import type { CompanyTrustMember, RegularTrustMember, TrustMember } from '../../TrustMembers/types';
3
4
  import type { TrustRoleAndEntityTypeSchema } from '../../TrustRoleAndEntityType/types';
4
5
  export interface RoleAndTypeDropinProps {
@@ -8,6 +9,7 @@ export interface RoleAndTypeDropinProps {
8
9
  addOrUpdateTrustMember: (newOrUpdated: TrustMember) => void;
9
10
  getLegalEntityHandler?(legalEntityId: string): Promise<ExistingLegalEntity>;
10
11
  isOrganizationSettlorWithExemptionEnabled?: boolean;
12
+ country?: CountryCode;
11
13
  }
12
14
  export interface TrustMemberSchema {
13
15
  roleAndEntityType: TrustRoleAndEntityTypeSchema;
@@ -26,6 +26,7 @@ export interface TrustRoleAndEntityTypeProps extends BaseInnerFormProps<TrustRol
26
26
  existingTrustMember?: TrustMember;
27
27
  getLegalEntityHandler?(legalEntityId: string): Promise<ExistingLegalEntity>;
28
28
  isOrganizationSettlorWithExemptionEnabled?: boolean;
29
+ country?: CountryCode;
29
30
  }
30
31
  export declare const couldBeExemptSettlor: (data: TrustRoleAndEntityTypeSchema) => boolean;
31
32
  export declare const isExemptSettlor: (data: TrustRoleAndEntityTypeSchema) => data is TrustRoleAndEntityTypeSchema & {
@@ -0,0 +1,9 @@
1
+ import type { FieldMetadata } from '../../../core/models/country-config';
2
+ import type { PerCountryFieldConfig } from '../../../core/models/field-configurations';
3
+ import type { LegalCompanyNameFieldSchema } from './types';
4
+ interface FieldConfigParams {
5
+ isBusiness?: boolean;
6
+ }
7
+ export declare const defaultFieldMetadata: FieldMetadata<LegalCompanyNameFieldSchema, 'legalCompanyName'>;
8
+ export declare const defaultFieldConfig: PerCountryFieldConfig<LegalCompanyNameFieldSchema, 'legalCompanyName', FieldConfigParams>;
9
+ export {};
@@ -141,4 +141,5 @@ export interface BaseInnerFormProps<FormSchema> extends BaseFormProps<FormSchema
141
141
  id?: string;
142
142
  dataStoreId?: string;
143
143
  capabilities?: CapabilityName[];
144
+ isTopLevelEntity?: boolean;
144
145
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adyen/kyc-components",
3
- "version": "2.46.0",
3
+ "version": "2.46.1",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -1,3 +0,0 @@
1
- import type { ValidatorRules } from '../../../utils/validation/types';
2
- import type { LegalCompanyNameFieldSchema } from './types';
3
- export declare const LegalCompanyNameFieldValidation: () => ValidatorRules<LegalCompanyNameFieldSchema>;
@@ -1,3 +0,0 @@
1
- import type { ValidatorRules } from '../../../utils/validation/types';
2
- import type { StateFieldSchema } from './types';
3
- export declare const StateFieldValidation: () => ValidatorRules<StateFieldSchema>;