@adyen/kyc-components 2.25.3 → 2.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/es/adyen-kyc-components.es.js +7006 -6799
  2. package/dist/style.css +4949 -3257
  3. package/dist/types/components/Company/rules.d.ts +0 -3
  4. package/dist/types/components/CompanyBasics/component/CompanyBasicsComponent.d.ts +1 -1
  5. package/dist/types/components/CompanyBasics/types.d.ts +3 -1
  6. package/dist/types/components/CompanyLookup/LookupResult.d.ts +1 -0
  7. package/dist/types/components/CompanyLookup/component/CompanyLookupComponent.d.ts +1 -1
  8. package/dist/types/components/CompanyLookup/types.d.ts +1 -0
  9. package/dist/types/components/CompanyOtherDetails/validate.d.ts +4 -3
  10. package/dist/types/components/Dropins/ServiceAgreementDropinComponent/components/useServiceAgreement.d.ts +2 -2
  11. package/dist/types/components/IdentityNumber/formats.d.ts +2 -2
  12. package/dist/types/components/Individual/rules.d.ts +0 -1
  13. package/dist/types/components/PayoutVerificationMethod/component/AccountHolderDescriptionFragment.d.ts +7 -0
  14. package/dist/types/components/PayoutVerificationMethod/types.d.ts +2 -2
  15. package/dist/types/components/PersonalDetails/component/IdentityComponent/identityUS/component/IdentityUSComponent.d.ts +1 -1
  16. package/dist/types/components/PersonalDetails/component/labels.d.ts +1 -1
  17. package/dist/types/components/RegistrationAddress/types.d.ts +1 -0
  18. package/dist/types/components/internal/Address/components/SearchAddress.d.ts +1 -1
  19. package/dist/types/components/internal/Address/types.d.ts +2 -0
  20. package/dist/types/components/internal/Address/utils.d.ts +1 -1
  21. package/dist/types/components/internal/BusinessRegistrationNumber/fieldConfig.d.ts +12 -0
  22. package/dist/types/components/internal/BusinessRegistrationNumber/types.d.ts +5 -5
  23. package/dist/types/components/internal/ContractViewer/ContractViewer.d.ts +1 -0
  24. package/dist/types/components/internal/ContractViewer/types.d.ts +4 -90
  25. package/dist/types/components/internal/FormFields/InputBase.d.ts +1 -1
  26. package/dist/types/components/internal/FormFields/InputText.d.ts +1 -1
  27. package/dist/types/components/internal/FormFields/MaskedInputText/MaskedInputText.d.ts +22 -0
  28. package/dist/types/components/internal/FormFields/RadioGroup/types.d.ts +1 -1
  29. package/dist/types/components/internal/IdFieldTypeSelector/CompanyRegistrationNumberTypeSelector.d.ts +11 -0
  30. package/dist/types/components/internal/IdFieldTypeSelector/IndividualIdNumberTypeSelector.d.ts +9 -0
  31. package/dist/types/components/internal/IdFieldTypeSelector/VatNumberTypeSelector.d.ts +9 -0
  32. package/dist/types/components/internal/IdFieldTypeSelector/countryIdNumberTypes.d.ts +90 -5
  33. package/dist/types/components/internal/VatNumber/types.d.ts +1 -6
  34. package/dist/types/components/internal/VatNumber/vatNumberValidation.d.ts +2 -3
  35. package/dist/types/core/Context/StateContext/types.d.ts +6 -6
  36. package/dist/types/core/Context/StateContext/useGlobalData.d.ts +4 -4
  37. package/dist/types/core/hooks/useCompanySearch/types.d.ts +2 -7
  38. package/dist/types/core/hooks/useForm/types.d.ts +5 -4
  39. package/dist/types/core/models/country-config.d.ts +7 -5
  40. package/dist/types/core/models/field-configurations.d.ts +5 -3
  41. package/dist/types/language/config.d.ts +27 -26
  42. package/dist/types/utils/entity-status-util.d.ts +1 -1
  43. package/dist/types/utils/formUtils.d.ts +6 -7
  44. package/dist/types/utils/makeArrayOfRepeatedObjects.d.ts +1 -0
  45. package/dist/types/utils/mapping/documentGuidanceMap.d.ts +1 -1
  46. package/dist/types/utils/masking/displayValueToPureValue.d.ts +10 -0
  47. package/dist/types/utils/masking/maskHelpers.d.ts +6 -0
  48. package/dist/types/utils/masking/masks/businessRegistrationNumberMasks.d.ts +256 -0
  49. package/dist/types/utils/masking/masks/vatNumberMasks.d.ts +4 -0
  50. package/dist/types/utils/masking/matchAgainstMask.d.ts +28 -0
  51. package/dist/types/utils/masking/transformers/types.d.ts +1 -0
  52. package/dist/types/utils/masking/transformers/uppercase.d.ts +2 -0
  53. package/dist/types/utils/perCountry.d.ts +5 -0
  54. package/dist/types/utils/regex/basePatterns.d.ts +1 -2
  55. package/dist/types/utils/regex/businessRegistrationNumberPatterns.d.ts +160 -2
  56. package/dist/types/utils/regex/countryIdNumberPatterns.d.ts +3 -2
  57. package/dist/types/utils/regex/index.d.ts +0 -3
  58. package/dist/types/utils/regex/patternValidators.d.ts +3 -0
  59. package/dist/types/utils/regex/vatNumberPatterns.d.ts +5 -4
  60. package/dist/types/utils/sanitizeHtml.d.ts +3 -0
  61. package/package.json +6 -4
  62. package/dist/types/components/internal/BusinessRegistrationNumber/formatters.d.ts +0 -4
  63. package/dist/types/components/internal/BusinessRegistrationNumber/validate.d.ts +0 -21
  64. package/dist/types/components/internal/BusinessRegistrationNumberField/validate.d.ts +0 -21
  65. package/dist/types/components/internal/ContractViewer/ReferenceContext/ReferenceContext.d.ts +0 -10
  66. package/dist/types/components/internal/ContractViewer/ReferenceContext/ReferenceContextProvider.d.ts +0 -6
  67. package/dist/types/components/internal/ContractViewer/ReferenceContext/useReferenceContext.d.ts +0 -1
  68. package/dist/types/components/internal/ContractViewer/components/Chapter/Chapter.d.ts +0 -2
  69. package/dist/types/components/internal/ContractViewer/components/ContentElements/ContentElements.d.ts +0 -2
  70. package/dist/types/components/internal/ContractViewer/components/InternalReference/InternalReference.d.ts +0 -2
  71. package/dist/types/components/internal/ContractViewer/components/List/List.d.ts +0 -2
  72. package/dist/types/components/internal/ContractViewer/components/Paragraph/Paragraph.d.ts +0 -3
  73. package/dist/types/components/internal/ContractViewer/components/Section/Section.d.ts +0 -3
  74. package/dist/types/components/internal/ContractViewer/components/Table/Table.d.ts +0 -3
  75. package/dist/types/components/internal/ContractViewer/components/Text/Text.d.ts +0 -3
  76. package/dist/types/components/internal/ContractViewer/components/Weblink/Weblink.d.ts +0 -3
  77. package/dist/types/components/internal/ContractViewer/utils/format-id.d.ts +0 -1
  78. package/dist/types/components/internal/IdFieldTypeSelector/IdFieldTypeSelector.d.ts +0 -2
  79. package/dist/types/components/internal/IdFieldTypeSelector/types.d.ts +0 -20
  80. package/dist/types/utils/delay.d.ts +0 -1
  81. package/dist/types/utils/escapeHtml.d.ts +0 -3
  82. package/dist/types/utils/regex/customRegistrationNumberPatterns.d.ts +0 -2
  83. package/dist/types/utils/regex/trustRegistrationNumberPatterns.d.ts +0 -2
  84. package/dist/types/utils/regex/types.d.ts +0 -39
@@ -1,3 +0,0 @@
1
- import './Text.scss';
2
- import { TextProps } from '../../types';
3
- export default function Text({ content, styles }: TextProps): import("preact").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { WeblinkProps } from '../../types';
2
- declare const Weblink: ({ url, displayText }: WeblinkProps) => import("preact").JSX.Element;
3
- export default Weblink;
@@ -1 +0,0 @@
1
- export declare const formatId: (id: string) => string;
@@ -1,2 +0,0 @@
1
- import { IdNumberTypeProps } from './types';
2
- export declare function IdFieldTypeSelector(props: IdNumberTypeProps): import("preact").JSX.Element;
@@ -1,20 +0,0 @@
1
- import { CompanyTypesValue } from '../../../core/models/api/company-types-value';
2
- import { CountryCode } from '../../../core/models/country-code';
3
- import { TranslationKey } from '../../../language/types';
4
- import { TaskTypes } from '../../TaskList/types';
5
- export interface IdNumberTypes {
6
- id: TranslationKey;
7
- name: TranslationKey;
8
- }
9
- export type IdFieldType = 'registrationNumber' | 'vatNumber' | undefined;
10
- export interface CountryIdNumberTypes {
11
- idNumberTypes: IdNumberTypes[];
12
- }
13
- export interface IdNumberTypeProps {
14
- handleIdNumberTypeChange: (idNumberTypes: TranslationKey) => void;
15
- country: CountryCode;
16
- companyType?: CompanyTypesValue;
17
- fieldType?: 'registrationNumber' | 'vatNumber';
18
- idNumberType: TranslationKey;
19
- taskType?: TaskTypes;
20
- }
@@ -1 +0,0 @@
1
- export declare const delay: (time: number) => Promise<void>;
@@ -1,3 +0,0 @@
1
- type AllowedTag = 'strong' | 'a';
2
- export declare const escapeHtml: (unsafeInput: string, allowedTags?: AllowedTag[]) => string;
3
- export {};
@@ -1,2 +0,0 @@
1
- import { CountryAndCustomRegexValidation } from './types';
2
- export declare const customRegistrationNumberPatterns: CountryAndCustomRegexValidation;
@@ -1,2 +0,0 @@
1
- import type { CountryAndTrustTypesRegexValidation } from './types';
2
- export declare const trustRegistrationNumberPatterns: CountryAndTrustTypesRegexValidation;
@@ -1,39 +0,0 @@
1
- import { CompanyTypesValue } from '../../core/models/api/company-types-value';
2
- import type { TrustTypes } from '../../core/models/api/trust-types-value';
3
- import type { CountryCode } from '../../core/models/country-code';
4
- import { TranslationKey } from '../../language/types';
5
- /**
6
- * @property (regex)- The expression that will trigger the feedback message
7
- * @property (format) - The translation key associated to the regex, defaults to using the string entered in this field if no translation exists
8
- * @property (message) - The messagekey that will be triggered to the user
9
- * @property (replaceChars) - The chars to be removed/replaced if provided
10
- * @property (values) - A record of values provided for specific variable validation
11
- *
12
- * @example
13
- * // Example use of values field
14
- * { regex: /^[a-zA-Z0-9]{1,9}$/, format: 'XtoYcharacters', values: { x: 1, y: 9 } }
15
- */
16
- export interface RegexValidationOptions {
17
- format?: string;
18
- message?: string;
19
- regex: RegExp;
20
- replaceChars?: string;
21
- values?: Record<string, string | number>;
22
- }
23
- export type DefaultValidation = {
24
- default: RegexValidationOptions;
25
- };
26
- export type CustomValidation = Partial<Record<TranslationKey | 'default', RegexValidationOptions>>;
27
- export type CountryRegexValidation = Partial<Record<CountryCode, RegexValidationOptions | RegexValidationOptions[]>>;
28
- export type CountryRegexValidationPerType = Partial<Record<CountryCode, Partial<Record<TranslationKey, RegexValidationOptions | RegexValidationOptions[]>>>>;
29
- export type CompanyTypeValidation = Partial<Record<CompanyTypesValue, RegexValidationOptions | RegexValidationOptions[]>> & {
30
- default: RegexValidationOptions;
31
- };
32
- export type CustomCompanyTypeValidation = Partial<Record<CompanyTypesValue, CustomValidation>>;
33
- export type TrustTypeValidation = Partial<Record<TrustTypes, RegexValidationOptions | RegexValidationOptions[]>> & {
34
- default: RegexValidationOptions;
35
- };
36
- export type CountryAndCompanyRegexValidation = Partial<Record<CountryCode, CompanyTypeValidation>>;
37
- export type CountryAndTrustTypesRegexValidation = Partial<Record<CountryCode, TrustTypeValidation>>;
38
- export type CountryAndCustomRegexValidation = Partial<Record<CountryCode, CustomValidation & CustomCompanyTypeValidation>>;
39
- export type CountryCustomIdNumberValidation = Partial<Record<CountryCode, Partial<Record<TranslationKey, RegExp>>>>;