@taxbit/react-sdk 3.2.0-beta.0 → 3.3.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/src/contexts/TaxDocumentation/TaxbitQuestionnaireProvider.d.ts +1 -1
- package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +3 -2
- package/dist/src/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +2 -2
- package/dist/src/hooks/useTaxbit/useTaxbit.d.ts +5 -2
- package/dist/src/hooks/useTaxbit/useTaxbitStatus.d.ts +2 -1
- package/dist/src/hooks/useUsTinVerification/useUsTinValidation.d.ts +2 -1
- package/dist/src/i18n/json/de.json.d.ts +26 -26
- package/dist/src/i18n/json/en.json.d.ts +26 -26
- package/dist/src/i18n/json/enDPS.d.ts +1 -0
- package/dist/src/i18n/json/es.json.d.ts +26 -26
- package/dist/src/i18n/json/fr.json.d.ts +26 -26
- package/dist/src/i18n/json/id.json.d.ts +26 -26
- package/dist/src/i18n/json/it.json.d.ts +26 -26
- package/dist/src/i18n/json/ja.json.d.ts +26 -26
- package/dist/src/i18n/json/ko.json.d.ts +26 -26
- package/dist/src/i18n/json/ms.json.d.ts +26 -26
- package/dist/src/i18n/json/nl.json.d.ts +26 -26
- package/dist/src/i18n/json/pl.json.d.ts +26 -26
- package/dist/src/i18n/json/pt.json.d.ts +26 -26
- package/dist/src/i18n/json/ro.json.d.ts +26 -26
- package/dist/src/i18n/json/ru.json.d.ts +26 -26
- package/dist/src/i18n/json/th.json.d.ts +26 -26
- package/dist/src/i18n/json/tr.json.d.ts +26 -26
- package/dist/src/i18n/json/vi.json.d.ts +26 -26
- package/dist/src/i18n/json/zh-TW.json.d.ts +26 -26
- package/dist/src/i18n/json/zh.json.d.ts +26 -26
- package/dist/src/i18n/locales/bg.d.ts +2 -1
- package/dist/src/i18n/locales/cs.d.ts +2 -1
- package/dist/src/i18n/locales/da.d.ts +2 -1
- package/dist/src/i18n/locales/de-at.d.ts +2 -1
- package/dist/src/i18n/locales/de-de.d.ts +2 -2
- package/dist/src/i18n/locales/de.d.ts +2 -2
- package/dist/src/i18n/locales/el-cy.d.ts +2 -1
- package/dist/src/i18n/locales/el-el.d.ts +2 -1
- package/dist/src/i18n/locales/el.d.ts +2 -1
- package/dist/src/i18n/locales/en-dps.d.ts +2 -2
- package/dist/src/i18n/locales/en-gb.d.ts +2 -1
- package/dist/src/i18n/locales/en-nz.d.ts +2 -1
- package/dist/src/i18n/locales/en-us.d.ts +2 -1
- package/dist/src/i18n/locales/en.d.ts +2 -2
- package/dist/src/i18n/locales/es-es.d.ts +2 -496
- package/dist/src/i18n/locales/es-mx.d.ts +2 -1
- package/dist/src/i18n/locales/es.d.ts +2 -2
- package/dist/src/i18n/locales/et.d.ts +2 -1
- package/dist/src/i18n/locales/fi.d.ts +2 -1
- package/dist/src/i18n/locales/fr-ca.d.ts +2 -1
- package/dist/src/i18n/locales/fr-fr.d.ts +2 -496
- package/dist/src/i18n/locales/fr-lu.d.ts +2 -1
- package/dist/src/i18n/locales/fr.d.ts +2 -2
- package/dist/src/i18n/locales/ga.d.ts +2 -1
- package/dist/src/i18n/locales/hr.d.ts +2 -1
- package/dist/src/i18n/locales/hu.d.ts +2 -1
- package/dist/src/i18n/locales/id.d.ts +2 -2
- package/dist/src/i18n/locales/it.d.ts +2 -2
- package/dist/src/i18n/locales/ja.d.ts +2 -2
- package/dist/src/i18n/locales/ko.d.ts +2 -2
- package/dist/src/i18n/locales/lt.d.ts +2 -1
- package/dist/src/i18n/locales/lv.d.ts +2 -1
- package/dist/src/i18n/locales/mergeLanguages.d.ts +7 -0
- package/dist/src/i18n/locales/ms.d.ts +2 -2
- package/dist/src/i18n/locales/mt.d.ts +2 -1
- package/dist/src/i18n/locales/nl-be.d.ts +2 -1
- package/dist/src/i18n/locales/nl-nl.d.ts +2 -1
- package/dist/src/i18n/locales/nl.d.ts +2 -2
- package/dist/src/i18n/locales/no.d.ts +2 -1
- package/dist/src/i18n/locales/pl.d.ts +2 -2
- package/dist/src/i18n/locales/pt-br.d.ts +2 -1
- package/dist/src/i18n/locales/pt-pt.d.ts +2 -496
- package/dist/src/i18n/locales/pt.d.ts +2 -2
- package/dist/src/i18n/locales/ro.d.ts +2 -2
- package/dist/src/i18n/locales/ru.d.ts +2 -2
- package/dist/src/i18n/locales/sk.d.ts +2 -1
- package/dist/src/i18n/locales/sl.d.ts +2 -1
- package/dist/src/i18n/locales/sv.d.ts +2 -1
- package/dist/src/i18n/locales/th.d.ts +2 -2
- package/dist/src/i18n/locales/tr.d.ts +2 -2
- package/dist/src/i18n/locales/translation-missing.d.ts +2 -2
- package/dist/src/i18n/locales/uk.d.ts +2 -1
- package/dist/src/i18n/locales/vi.d.ts +2 -496
- package/dist/src/i18n/locales/zh-cn.d.ts +2 -496
- package/dist/src/i18n/locales/zh-tw.d.ts +2 -496
- package/dist/src/i18n/locales/zh.d.ts +2 -496
- package/dist/src/i18n/localizationFileMap.d.ts +2 -2
- package/dist/src/i18n/types/Language.d.ts +60 -0
- package/dist/src/types/TaxDocumentation.d.ts +1 -1
- package/dist/src/types/props.d.ts +5 -0
- package/dist/src/utils/getDataFields.d.ts +1 -1
- package/dist/src/utils/getHeaders.d.ts +3 -1
- package/dist/src/utils/normalizeHeaders.d.ts +1 -0
- package/dist/src/utils/transformInbound/transformInboundControllingPersons.d.ts +1 -1
- package/dist/src/validations/invalidFields/invalidFieldRules.d.ts +2 -2
- package/dist/src/widgets/TaxbitQuestionnaire/TaxbitQuestionnaire.d.ts +7 -3
- package/dist/src/widgets/TaxbitQuestionnairePersist/TaxbitQuestionnairePersist.d.ts +1 -1
- package/dist/src/widgets/TaxbitQuestionnairePersist/useTaxbitPersist.d.ts +2 -1
- package/dist/src/wizard/LanguageSelector/LanguageSelector.d.ts +1 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/TaxbitQuestionnaireUI.d.ts +1 -1
- package/dist/taxbit-react-sdk.js +5753 -5582
- package/dist/taxbit-react-sdk.umd.cjs +1 -1
- package/package.json +2 -2
- package/style/basic.css +5 -5
- package/style/inline.css +6 -6
- package/dist/src/i18n/locales/mergePropertyFiles.d.ts +0 -7
- package/dist/src/i18n/types/PropertyFile.d.ts +0 -63
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taxbit/react-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0-beta.0",
|
|
4
4
|
"description": "Taxbit Tax Documentation",
|
|
5
5
|
"author": "Taxbit",
|
|
6
6
|
"type": "module",
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
"react-dom": "^19.0.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@taxbit/utilities": "4.0.
|
|
52
|
+
"@taxbit/utilities": "4.0.4"
|
|
53
53
|
}
|
|
54
54
|
}
|
package/style/basic.css
CHANGED
|
@@ -70,7 +70,7 @@ button.taxbit-button:focus-visible {
|
|
|
70
70
|
line-height: 1.4em;
|
|
71
71
|
}
|
|
72
72
|
.taxbit-section-header-action {
|
|
73
|
-
margin-
|
|
73
|
+
margin-inline-start: auto;
|
|
74
74
|
}
|
|
75
75
|
.taxbit-form-text {
|
|
76
76
|
margin-block-start: 8px;
|
|
@@ -313,15 +313,15 @@ button.taxbit-hide-button {
|
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
.taxbit-primary-actions {
|
|
316
|
-
text-align:
|
|
316
|
+
text-align: end;
|
|
317
317
|
> button:nth-child(2) {
|
|
318
|
-
margin-
|
|
318
|
+
margin-inline-start: 10px;
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
.taxbit-secondary-actions {
|
|
322
|
-
text-align:
|
|
322
|
+
text-align: start;
|
|
323
323
|
> button:nth-child(2) {
|
|
324
|
-
margin-
|
|
324
|
+
margin-inline-start: 10px;
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
.taxbit-primary-actions,
|
package/style/inline.css
CHANGED
|
@@ -79,7 +79,7 @@ button.taxbit-button:focus-visible {
|
|
|
79
79
|
line-height: 1.4em;
|
|
80
80
|
}
|
|
81
81
|
.taxbit-section-header-action {
|
|
82
|
-
margin-
|
|
82
|
+
margin-inline-start: auto;
|
|
83
83
|
}
|
|
84
84
|
.taxbit-form-text {
|
|
85
85
|
margin-block-start: 8px;
|
|
@@ -268,7 +268,7 @@ button.taxbit-hide-button {
|
|
|
268
268
|
}
|
|
269
269
|
.taxbit-postal-code {
|
|
270
270
|
flex: 0 0 40%;
|
|
271
|
-
margin-
|
|
271
|
+
margin-inline-end: 50%;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
.taxbit-footer {
|
|
@@ -311,15 +311,15 @@ button.taxbit-hide-button {
|
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
.taxbit-primary-actions {
|
|
314
|
-
text-align:
|
|
314
|
+
text-align: end;
|
|
315
315
|
> button:nth-child(2) {
|
|
316
|
-
margin-
|
|
316
|
+
margin-inline-start: 10px;
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
.taxbit-secondary-actions {
|
|
320
|
-
text-align:
|
|
320
|
+
text-align: start;
|
|
321
321
|
> button:nth-child(2) {
|
|
322
|
-
margin-
|
|
322
|
+
margin-inline-start: 10px;
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
.taxbit-primary-actions,
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ForeignPropertyFile, PropertyFile } from '../types/PropertyFile';
|
|
2
|
-
type DeepPartial<T> = T extends object ? {
|
|
3
|
-
[P in keyof T]?: DeepPartial<T[P]>;
|
|
4
|
-
} : T;
|
|
5
|
-
export declare const mergePropertyFiles: (a: PropertyFile, b: DeepPartial<PropertyFile> | Array<DeepPartial<PropertyFile>>) => PropertyFile;
|
|
6
|
-
export declare const mergeForeignPropertyFiles: (a: ForeignPropertyFile, b: DeepPartial<ForeignPropertyFile> | Array<DeepPartial<ForeignPropertyFile>>) => ForeignPropertyFile;
|
|
7
|
-
export {};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { BadgeKey, ButtonKey, OptionKey, PromptKey, StatusKey, SubOptionKey, SubPromptKey, SubTitleKey, TextKey, TitleKey } from './LocalizationKey';
|
|
2
|
-
export type PropertyFile = {
|
|
3
|
-
button: {
|
|
4
|
-
[key in ButtonKey]: string;
|
|
5
|
-
};
|
|
6
|
-
badge: {
|
|
7
|
-
[key in BadgeKey]: string;
|
|
8
|
-
};
|
|
9
|
-
status: {
|
|
10
|
-
[key in StatusKey]: string;
|
|
11
|
-
};
|
|
12
|
-
prompt: {
|
|
13
|
-
[key in PromptKey]: string;
|
|
14
|
-
};
|
|
15
|
-
subPrompt: {
|
|
16
|
-
[key in SubPromptKey]: string;
|
|
17
|
-
};
|
|
18
|
-
title: {
|
|
19
|
-
[key in TitleKey]: string;
|
|
20
|
-
};
|
|
21
|
-
subTitle: {
|
|
22
|
-
[key in SubTitleKey]: string;
|
|
23
|
-
};
|
|
24
|
-
option: {
|
|
25
|
-
[key in OptionKey]: string;
|
|
26
|
-
};
|
|
27
|
-
subOption: {
|
|
28
|
-
[key in SubOptionKey]: string;
|
|
29
|
-
};
|
|
30
|
-
text: {
|
|
31
|
-
[key in TextKey]: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
type Index = 1 | 2 | 3 | 4 | 5;
|
|
35
|
-
type ExpandedStatusKey = `controllingPerson${Index}ResidencesMustIncludeAddressCountry` | 'accountHolderResidencesMustIncludeAddressCountry' | 'accountHolderResidencesMustIncludeVatCountry' | 'accountHolderResidencesMustIncludeBusinessRegistrationCountry';
|
|
36
|
-
type ExpandedPropertyFileFields = {
|
|
37
|
-
status: PropertyFile['status'] & {
|
|
38
|
-
[key in ExpandedStatusKey]: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export type ExpandedPropertyFile = PropertyFile & ExpandedPropertyFileFields;
|
|
42
|
-
export type ForeignPropertyFile = {
|
|
43
|
-
button: PropertyFile['button'];
|
|
44
|
-
prompt: Pick<PropertyFile['prompt'], 'addAdditionalResidence' | 'addControllingPerson' | 'foreignAccountType' | 'financialInstitutionType' | 'activeNonFinancialEntityType' | 'passiveEntityType' | 'managedEntityType' | 'investmentEntityManaged' | 'iUnderstandTheInformationIsCovered' | 'iAcknowledgeTheInformationMayBeProvided' | 'iCertifyIAmAccountHolder' | 'iCertifyIAmAuthorizedToSignForAccountHolder' | 'iConfirmNoOtherResidencies' | 'iDeclareStatementsAreCorrect' | 'iWillNotifyChangeInCircumstance' | 'otherRole' | 'otherEquivalentRole' | 'ownershipPercentage' | 'relatedCorporation' | 'removeControllingPerson' | 'role' | 'securitiesMarket' | 'taxIdNumberIsNotRequiredReason' | 'taxIdNumberIsNotRequiredReasonOther' | 'address' | 'mailingAddressIsDifferent' | 'businessRegistrationCountry' | 'businessRegistrationNumber' | 'city' | 'cityOfBirth' | 'country' | 'countryOfBirth' | 'dateOfBirth' | 'day' | 'emailAddress' | 'isIndividual' | 'month' | 'name' | 'nameOfEntity' | 'nameOfIndividual' | 'phoneNumber' | 'phoneNumberCode' | 'phoneNumberNumber' | 'province' | 'removeResidence' | 'countyRegion' | 'stateProvince' | 'street' | 'street2' | 'signature' | 'signatureCapacity' | 'signatureCapacityOther' | 'residenceByInvestmentConfirmed' | 'giin' | 'taxIdNumber' | 'taxIdNumberIsNotRequired' | 'tin' | 'tinUkEntity' | 'tinUkIndividual' | 'type' | 'usTin' | 'vatCountry' | 'vatIdentificationNumber' | 'vatIsNotRequired' | 'year' | 'zip'>;
|
|
45
|
-
subPrompt: Pick<PropertyFile['subPrompt'], 'financialInstitutionType' | 'isIndividual' | 'placeOfBirth' | 'relatedCorporation' | 'role' | 'securitiesMarket' | 'signatureCapacityOther' | 'streetIsPermanent' | 'vatIdentificationNumber' | 'residenceByInvestmentConfirmed'>;
|
|
46
|
-
subTitle: Pick<PropertyFile['subTitle'], 'taxResidences' | 'controllingPersonDetails' | 'permanentAddress'>;
|
|
47
|
-
title: Pick<PropertyFile['title'], 'certify' | 'carfClassificationDetails' | 'controllingPersonDetails' | 'controllingPersons' | 'controllingPerson1' | 'controllingPerson2' | 'controllingPerson3' | 'controllingPerson4' | 'controllingPerson5' | 'accountHolder' | 'accountHolderClassification' | 'accountHolderContactInformation' | 'accountHolderTaxInformation' | 'accountHolderAdditionalInfo' | 'address' | 'confirmation' | 'countryOfCitizenship' | 'countryOfIncorporation' | 'placeOfBirth' | 'mailingAddress' | 'permanentAddress' | 'primaryAddress' | 'summary' | 'taxResidences' | 'taxResidence1' | 'taxResidence2' | 'taxResidence3' | 'taxResidence4' | 'taxResidence5' | 'accountHolderTaxResidenciesConfirmation' | 'controllingPerson1TaxResidenciesConfirmation' | 'controllingPerson2TaxResidenciesConfirmation' | 'controllingPerson3TaxResidenciesConfirmation' | 'controllingPerson4TaxResidenciesConfirmation' | 'controllingPerson5TaxResidenciesConfirmation'>;
|
|
48
|
-
text: Pick<PropertyFile['text'], 'interviewIsComplete' | 'notRequired' | 'notRequiredOrNotIssued' | 'retrievingInterviewStatus' | 'taxDocumentationSaved' | 'iCertifyIsCorrect' | 'iCertifyHaveCapacity'>;
|
|
49
|
-
status: Pick<PropertyFile['status'], 'countryDoesNotRestrictTinDisclosure' | 'countryDoesNotRequireTinDisclosure' | 'countryDoesNotIssueTin' | 'countryMustBeAResidenceCountry' | 'formHasErrors' | 'invalid' | 'invalidDate' | 'invalidVat' | 'mustBeABNFormat' | 'mustBeAtLeast18' | 'mustBeFiveOrNineDigits' | 'mustBeInDateFormat' | 'mustBeInVatinFormat' | 'mustBeNineDigits' | 'mustBeNinoFormat' | 'mustBeCaPostalCodeFormat' | 'mustBeValidBirthDate' | 'required' | 'residencesMustIncludeAddressCountry' | 'residencesMustIncludeAnEUCountry' | 'residencesMustIncludeVatCountry' | 'residencesMustIncludeBusinessRegistrationCountry' | 'tooLong' | 'tooShort'>;
|
|
50
|
-
option: Pick<PropertyFile['option'], 'no' | 'yes' | 'isIndividual_yes' | 'isIndividual_no' | 'investmentEntityManaged_yes' | 'investmentEntityManaged_no' | 'ACTIVE_NON_FINANCIAL_ENTITY' | 'PASSIVE_NON_FINANCIAL_ENTITY' | 'CUSTODIAL_INSTITUTION' | 'accountHolderActiveNonFinancialEntityType_GOVERNMENT_ENTITY' | 'INSURANCE_COMPANY' | 'INVESTMENT_ENTITY' | 'entityType_TRUST' | 'entityType_SIMILAR_TO_TRUST' | 'entityType_OTHER' | 'accountHolderActiveNonFinancialEntityType_PUBLIC_CORPORATION' | 'accountHolderActiveNonFinancialEntityType_OTHER' | 'accountHolderActiveNonFinancialEntityType_INTERNATIONAL_ORGANIZATION' | 'signatureCapacity_EXECUTOR' | 'signatureCapacity_OFFICER' | 'signatureCapacity_OTHER_CAPACITY' | 'DEPOSITORY_INSTITUTION' | 'NON_REPORTING_FINANCIAL_INSTITUTION' | 'FINANCIAL_INSTITUTION' | 'controllingPersonRole_SETTLOR' | 'controllingPersonRole_TRUSTEE' | 'controllingPersonRole_PROTECTOR' | 'controllingPersonRole_BENEFICIARY' | 'controllingPersonRole_OTHER' | 'controllingPersonRole_SETTLOR_EQUIVALENT' | 'controllingPersonRole_TRUSTEE_EQUIVALENT' | 'controllingPersonRole_PROTECTOR_EQUIVALENT' | 'controllingPersonRole_BENEFICIARY_EQUIVALENT' | 'controllingPersonRole_OTHER_EQUIVALENT' | 'controllingPersonRole_OWNER' | 'controllingPersonRole_OTHER_MEANS' | 'controllingPersonRole_SENIOR_MANAGING_OFFICIAL' | 'missingTinNotRequiredReason_NOT_ISSUED' | 'missingTinNotRequiredReason_NOT_REQUIRED' | 'missingTinNotRequiredReason_OTHER'>;
|
|
51
|
-
subOption: Pick<PropertyFile['subOption'], 'accountHolderActiveNonFinancialEntityType_PUBLIC_CORPORATION' | 'accountHolderActiveNonFinancialEntityType_OTHER' | 'accountHolderSelfCertificationAccountType_FINANCIAL_INSTITUTION' | 'accountHolderSelfCertificationAccountType_ACTIVE_NON_FINANCIAL_ENTITY' | 'accountHolderSelfCertificationAccountType_PASSIVE_NON_FINANCIAL_ENTITY'>;
|
|
52
|
-
};
|
|
53
|
-
export type PartialForeignPropertyFile = {
|
|
54
|
-
button?: Partial<ForeignPropertyFile['button']>;
|
|
55
|
-
prompt?: Partial<ForeignPropertyFile['prompt']>;
|
|
56
|
-
subPrompt?: Partial<ForeignPropertyFile['subPrompt']>;
|
|
57
|
-
subTitle?: Partial<ForeignPropertyFile['subTitle']>;
|
|
58
|
-
title?: Partial<ForeignPropertyFile['title']>;
|
|
59
|
-
text?: Partial<ForeignPropertyFile['text']>;
|
|
60
|
-
status?: Partial<ForeignPropertyFile['status']>;
|
|
61
|
-
option?: Partial<ForeignPropertyFile['option']>;
|
|
62
|
-
};
|
|
63
|
-
export {};
|