@taxbit/react-sdk 1.0.0-beta.7 → 1.1.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 +19 -3
- package/dist/index.d.ts +1 -1
- package/dist/src/App.d.ts +2 -1
- package/dist/src/components/Address/Address.d.ts +2 -1
- package/dist/src/components/Address/index.d.ts +1 -1
- package/dist/src/components/ErrorAlert/ErrorAlert.d.ts +3 -2
- package/dist/src/components/ErrorBoundary/ErrorBoundary.d.ts +2 -1
- package/dist/src/components/ErrorMessage/ErrorMessage.d.ts +2 -1
- package/dist/src/components/ErrorMessage/index.d.ts +1 -1
- package/dist/src/components/Form/Form.d.ts +2 -1
- package/dist/src/components/InputStatus/InputStatus.d.ts +3 -2
- package/dist/src/components/InputStatus/index.d.ts +1 -1
- package/dist/src/components/JsxFromString/JsxFromString.d.ts +5 -0
- package/dist/src/components/JsxFromString/index.d.ts +1 -0
- package/dist/src/components/ProgressStatus/ProgressStatus.d.ts +3 -2
- package/dist/src/components/Row/Row.d.ts +2 -1
- package/dist/src/components/Row/index.d.ts +1 -1
- package/dist/src/components/Section/Section.d.ts +2 -1
- package/dist/src/components/Section/index.d.ts +1 -1
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/contexts/QuestionnaireStep/QuestionnaireStepProvider.d.ts +7 -0
- package/dist/src/contexts/{QuestionnaireUI → QuestionnaireStep}/getLocal.d.ts +1 -0
- package/dist/src/contexts/QuestionnaireStep/index.d.ts +5 -0
- package/dist/src/contexts/{QuestionnaireUI → QuestionnaireStep}/shiftResidence.d.ts +2 -1
- package/dist/src/contexts/{QuestionnaireUI/useQuestionnaireUI.d.ts → QuestionnaireStep/useQuestionnaireStep.d.ts} +11 -16
- package/dist/src/contexts/QuestionnaireStep/useQuestionnaireStepContext.d.ts +63 -0
- package/dist/src/contexts/TaxDocumentation/TaxbitQuestionnaireProvider.d.ts +4 -2
- package/dist/src/contexts/TaxDocumentation/useTaxDocumentation.d.ts +8 -9
- package/dist/src/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +29 -34
- package/dist/src/contexts/createCtx.d.ts +1 -2
- package/dist/src/contexts/index.d.ts +1 -1
- package/dist/src/entry/TaxbitQuestionnaire/TaxbitQuestionnaire.d.ts +5 -3
- package/dist/src/hooks/useHandleError.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/__tests__/clientTaxDocumentation.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/__tests__/serverTaxDocumentation.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/types/comprehensive.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/types/w8.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/types/w9.d.ts +1 -0
- package/dist/src/hooks/useTaxbit/useTaxbit.d.ts +3 -2
- package/dist/src/hooks/useTaxbit/useTaxbitStatus.d.ts +3 -2
- package/dist/src/i18n/__tests__/JsxFromString.test.d.ts +1 -0
- package/dist/src/i18n/locales/bg.d.ts +1 -1
- package/dist/src/i18n/locales/cs.d.ts +1 -1
- package/dist/src/i18n/locales/da.d.ts +1 -1
- package/dist/src/i18n/locales/de-at.d.ts +1 -1
- package/dist/src/i18n/locales/de.d.ts +2 -1
- package/dist/src/i18n/locales/el-cy.d.ts +2 -1
- package/dist/src/i18n/locales/el.d.ts +2 -1
- package/dist/src/i18n/locales/en-gb.d.ts +1 -0
- package/dist/src/i18n/locales/en-nz.d.ts +1 -0
- package/dist/src/i18n/locales/en-us.d.ts +1 -0
- package/dist/src/i18n/locales/en.d.ts +1 -0
- package/dist/src/i18n/locales/es.d.ts +1 -0
- package/dist/src/i18n/locales/et.d.ts +1 -1
- package/dist/src/i18n/locales/fi.d.ts +1 -1
- package/dist/src/i18n/locales/fr-ca.d.ts +1 -0
- package/dist/src/i18n/locales/fr-lu.d.ts +1 -1
- package/dist/src/i18n/locales/fr.d.ts +1 -0
- package/dist/src/i18n/locales/ga.d.ts +1 -0
- package/dist/src/i18n/locales/hr.d.ts +1 -1
- package/dist/src/i18n/locales/hu.d.ts +1 -1
- package/dist/src/i18n/locales/it.d.ts +1 -1
- package/dist/src/i18n/locales/lt.d.ts +2 -1
- package/dist/src/i18n/locales/lv.d.ts +1 -1
- package/dist/src/i18n/locales/mergePropertyFiles.d.ts +1 -0
- package/dist/src/i18n/locales/mt.d.ts +1 -1
- package/dist/src/i18n/locales/nl-be.d.ts +2 -1
- package/dist/src/i18n/locales/nl.d.ts +1 -1
- package/dist/src/i18n/locales/no.d.ts +1 -1
- package/dist/src/i18n/locales/pl.d.ts +2 -1
- package/dist/src/i18n/locales/pt.d.ts +1 -1
- package/dist/src/i18n/locales/ro.d.ts +1 -1
- package/dist/src/i18n/locales/sk.d.ts +1 -1
- package/dist/src/i18n/locales/sl.d.ts +1 -1
- package/dist/src/i18n/locales/sv.d.ts +1 -1
- package/dist/src/i18n/locales/translation-missing.d.ts +1 -0
- package/dist/src/i18n/localizationFileMap.d.ts +3 -2
- package/dist/src/i18n/types/LocalizationKey.d.ts +10 -6
- package/dist/src/i18n/types/PropertyFile.d.ts +1 -0
- package/dist/src/i18n/types/index.d.ts +1 -1
- package/dist/src/i18n/utils/getText.d.ts +1 -0
- package/dist/src/i18n/utils/index.d.ts +1 -1
- package/dist/src/index.d.ts +9 -0
- package/dist/src/lookups/countryOptions.d.ts +4 -0
- package/dist/src/lookups/dayOptions.d.ts +1 -1
- package/dist/src/lookups/fatcaCodeOptions.d.ts +1 -1
- package/dist/src/lookups/foreignAccountHolderAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/foreignOtherClassificationOptions.d.ts +1 -1
- package/dist/src/lookups/foreignRegardedOwnerAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/foreignTrustClassificationOptions.d.ts +1 -1
- package/dist/src/lookups/index.d.ts +1 -0
- package/dist/src/lookups/localeOptions.d.ts +1 -0
- package/dist/src/lookups/payeeCodeOptions.d.ts +2 -2
- package/dist/src/lookups/toOptions.d.ts +1 -1
- package/dist/src/lookups/treatyCountries.json.d.ts +2195 -0
- package/dist/src/lookups/typeOfIncomeOptions.d.ts +8 -0
- package/dist/src/lookups/usAccountHolderAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/usLlcAccountTypeOptions.d.ts +1 -1
- package/dist/src/lookups/usRegardedOwnerAccountTypeOptions.d.ts +1 -1
- package/dist/src/services/api.d.ts +6 -5
- package/dist/src/test/Wrapper.d.ts +2 -1
- package/dist/src/test/getWrapper.d.ts +2 -1
- package/dist/src/test/utils/helpers.d.ts +2 -0
- package/dist/src/types/InputStep.d.ts +2 -2
- package/dist/src/types/Progress.d.ts +1 -0
- package/dist/src/types/StepId.d.ts +1 -1
- package/dist/src/types/TaxDocumentation.d.ts +29 -4
- package/dist/src/ui/ActionButton/ActionButton.d.ts +2 -1
- package/dist/src/ui/Actions/Actions.d.ts +3 -3
- package/dist/src/ui/Actions/index.d.ts +1 -1
- package/dist/src/ui/CheckBox/CheckBox.d.ts +4 -2
- package/dist/src/ui/CheckBox/index.d.ts +1 -1
- package/dist/src/ui/DateOfBirthInput/DateOfBirthInput.d.ts +2 -1
- package/dist/src/ui/DateOfBirthInput/useDateOfBirthInput.d.ts +3 -2
- package/dist/src/ui/FormattedInput/FormattedInput.d.ts +2 -1
- package/dist/src/ui/HideShowButton/HideShowButton.d.ts +2 -1
- package/dist/src/ui/HideShowButton/index.d.ts +1 -1
- package/dist/src/ui/InputValue/InputValue.d.ts +2 -1
- package/dist/src/ui/MaskedContent/MaskedContent.d.ts +2 -1
- package/dist/src/ui/MaskedContent/index.d.ts +1 -1
- package/dist/src/ui/PasswordInput/PasswordInput.d.ts +2 -1
- package/dist/src/ui/RadioButtons/RadioButtons.d.ts +8 -5
- package/dist/src/ui/RadioButtons/__tests__/RadioButtons.test.d.ts +1 -0
- package/dist/src/ui/Select/Select.d.ts +2 -1
- package/dist/src/ui/ShowHideInput/ShowHideInput.d.ts +2 -1
- package/dist/src/ui/TextArea/TextArea.d.ts +12 -0
- package/dist/src/ui/TextArea/__tests__/TextInput.test.d.ts +1 -0
- package/dist/src/ui/TextArea/index.d.ts +1 -0
- package/dist/src/ui/TextInput/TextInput.d.ts +2 -1
- package/dist/src/ui/TextInput/__tests__/TextInput.test.d.ts +1 -0
- package/dist/src/ui/ToggleButton/ToggleButton.d.ts +2 -1
- package/dist/src/ui/ToggleButton/index.d.ts +1 -1
- package/dist/src/ui/WithholdingInput/WithholdingInput.d.ts +9 -0
- package/dist/src/ui/WithholdingInput/index.d.ts +1 -0
- package/dist/src/ui/index.d.ts +2 -0
- package/dist/src/utils/camelCaseKeys.d.ts +3 -1
- package/dist/src/utils/getFieldsState.d.ts +3 -0
- package/dist/src/utils/getFormStatus.d.ts +1 -0
- package/dist/src/utils/getLanguage.d.ts +1 -0
- package/dist/src/utils/getPromptKeyMap.d.ts +2 -111
- package/dist/src/utils/getTreatyClaimDetails.d.ts +2 -0
- package/dist/src/utils/getTreatyCountry.d.ts +38 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/isBlank.d.ts +2 -1
- package/dist/src/utils/mergeClientTaxDocumentationData.d.ts +1 -0
- package/dist/src/utils/transformForClient/convertYesNoToBoolean.d.ts +1 -0
- package/dist/src/utils/transformForClient/convertYesNoToBooleanOrUndefined.d.ts +1 -0
- package/dist/src/utils/transformForClient/transformForClient.d.ts +1 -0
- package/dist/src/utils/transformForClient/transformForClientAccountHolder.d.ts +4 -0
- package/dist/src/utils/transformForClient/transformForClientAddress.d.ts +25 -24
- package/dist/src/utils/transformForClient/transformForClientRegardedOwner.d.ts +3 -1
- package/dist/src/utils/transformForClient/transformForClientTaxResidenceFields.d.ts +4 -3
- package/dist/src/utils/transformInbound/getForeignAccountType.d.ts +2 -1
- package/dist/src/utils/transformInbound/getForeignOtherClassification.d.ts +2 -1
- package/dist/src/utils/transformInbound/getForeignTrustClassification.d.ts +2 -1
- package/dist/src/utils/transformInbound/getLLCClassification.d.ts +2 -1
- package/dist/src/utils/transformInbound/getUsAccountType.d.ts +2 -1
- package/dist/src/utils/transformInbound/transformInbound.d.ts +2 -1
- package/dist/src/validations/getInvalidFields.d.ts +1 -0
- package/dist/src/validations/getRequiredFields.d.ts +2 -1
- package/dist/src/validations/getSteps.d.ts +3 -0
- package/dist/src/validations/getSupportedFields.d.ts +3 -2
- package/dist/src/validations/getVisibleFields.d.ts +3 -2
- package/dist/src/validations/index.d.ts +1 -0
- package/dist/src/validations/invalidFieldRules.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/TaxbitQuestionnairePersist.d.ts +5 -3
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.complete.test.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.error.test.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loaded.test.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.loading.test.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/__tests__/TaxbitQuestionnairePersist.missingBearerToken.test.d.ts +1 -0
- package/dist/src/widgets/TaxbitQuestionnairePersist/useTaxbitPersist.d.ts +1 -0
- package/dist/src/wizard/AddressInput/AddressInput.d.ts +2 -1
- package/dist/src/wizard/AddressInput/index.d.ts +1 -1
- package/dist/src/wizard/LanguageSelector/LanguageSelector.d.ts +3 -2
- package/dist/src/wizard/LanguageSelector/index.d.ts +1 -1
- package/dist/src/wizard/ResidenceInput/ResidenceInput.d.ts +2 -1
- package/dist/src/wizard/ResidenceInput/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/AddressRow/AddressRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/CheckBoxRow/CheckBoxRow.d.ts +4 -2
- package/dist/src/wizard/RowInput/CheckBoxRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/DateOfBirthRow/DateOfBirthRow.d.ts +4 -3
- package/dist/src/wizard/RowInput/ErrorRow/ErrorRow.d.ts +4 -3
- package/dist/src/wizard/RowInput/HiddenInputRow/HiddenInputRow.d.ts +6 -0
- package/dist/src/wizard/RowInput/HiddenInputRow/index.d.ts +1 -0
- package/dist/src/wizard/RowInput/RadioButtonRow/RadioButtonRow.d.ts +4 -2
- package/dist/src/wizard/RowInput/RadioButtonRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/SelectRow/SelectRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/SelectRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/ShowHideInputRow/ShowHideInputRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/TextAreaRow/TextAreaRow.d.ts +10 -0
- package/dist/src/wizard/RowInput/TextAreaRow/index.d.ts +1 -0
- package/dist/src/wizard/RowInput/TextInputRow/TextInputRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/TextInputRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/ToggleButtonRow/ToggleButtonRow.d.ts +2 -1
- package/dist/src/wizard/RowInput/ToggleButtonRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/VisibleRow/VisibleRow.d.ts +7 -5
- package/dist/src/wizard/RowInput/VisibleRow/index.d.ts +1 -1
- package/dist/src/wizard/RowInput/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderClassification/AccountHolderClassification.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderContact/AccountHolderContact.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTax/AccountHolderTax.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTreatyClaims/AccountHolderTreatyClaims.d.ts +3 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AccountHolderTreatyClaims/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/AppError/AppError.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Exemptions/Exemptions.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerContact/RegardedOwnerContact.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTax/RegardedOwnerTax.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTreatyClaims/RegardedOwnerTreatyClaims.d.ts +3 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/RegardedOwnerTreatyClaims/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Recap.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/Summary/Summary.d.ts +2 -1
- package/dist/src/wizard/TaxbitQuestionnaireUI/TaxbitQuestionnaireUI.d.ts +4 -2
- package/dist/src/wizard/TaxbitQuestionnaireUI/W8imyInstructions/W8imyInstructions.d.ts +3 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/W8imyInstructions/index.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitDPSQuestionnaireUI.test.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitQuestionnaireUI.test.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.test.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.treatyClaims.test.d.ts +1 -0
- package/dist/src/wizard/TaxbitQuestionnaireUI/steps.d.ts +3 -0
- package/dist/taxbit-react-sdk.js +7979 -5307
- package/dist/taxbit-react-sdk.umd.cjs +14 -11
- package/package.json +8 -7
- package/style/basic.css +26 -10
- package/style/inline.css +26 -10
- package/style/minimal.css +4 -0
- package/dist/src/contexts/QuestionnaireUI/QuestionnaireUIProvider.d.ts +0 -6
- package/dist/src/contexts/QuestionnaireUI/index.d.ts +0 -4
- package/dist/src/contexts/QuestionnaireUI/useQuestionnaireUIContext.d.ts +0 -74
- package/dist/src/entry/index.d.ts +0 -8
- package/dist/src/utils/transformForClient/transformForClientAccoutHolder.d.ts +0 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ClientTaxDocumentation, SignedClientTaxDocumentation } from '@taxbit/utilities';
|
|
2
2
|
import { Questionnaire, TaxDocumentation } from '../../types';
|
|
3
|
+
|
|
3
4
|
export declare const transformForClient: (data: TaxDocumentation) => ClientTaxDocumentation;
|
|
4
5
|
export declare const transformForSignedClient: (data: TaxDocumentation, questionnaire: Questionnaire) => SignedClientTaxDocumentation;
|
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
import { TaxDocumentation } from 'types';
|
|
2
|
+
|
|
2
3
|
export declare const transformForClientAccountHolderAddress: (data: TaxDocumentation) => {
|
|
3
|
-
city?: string
|
|
4
|
-
country?: string
|
|
5
|
-
stateOrProvince?: string
|
|
6
|
-
firstLine?: string
|
|
7
|
-
secondLine?: string
|
|
8
|
-
postalCode?: string
|
|
4
|
+
city?: string;
|
|
5
|
+
country?: string;
|
|
6
|
+
stateOrProvince?: string;
|
|
7
|
+
firstLine?: string;
|
|
8
|
+
secondLine?: string;
|
|
9
|
+
postalCode?: string;
|
|
9
10
|
} | undefined;
|
|
10
11
|
export declare const transformForClientRegardedOwnerAddress: (data: TaxDocumentation) => {
|
|
11
|
-
city?: string
|
|
12
|
-
country?: string
|
|
13
|
-
stateOrProvince?: string
|
|
14
|
-
firstLine?: string
|
|
15
|
-
secondLine?: string
|
|
16
|
-
postalCode?: string
|
|
12
|
+
city?: string;
|
|
13
|
+
country?: string;
|
|
14
|
+
stateOrProvince?: string;
|
|
15
|
+
firstLine?: string;
|
|
16
|
+
secondLine?: string;
|
|
17
|
+
postalCode?: string;
|
|
17
18
|
} | undefined;
|
|
18
19
|
export declare const transformForClientAccountHolderMailingAddress: (data: TaxDocumentation) => {
|
|
19
|
-
city?: string
|
|
20
|
-
country?: string
|
|
21
|
-
stateOrProvince?: string
|
|
22
|
-
firstLine?: string
|
|
23
|
-
secondLine?: string
|
|
24
|
-
postalCode?: string
|
|
20
|
+
city?: string;
|
|
21
|
+
country?: string;
|
|
22
|
+
stateOrProvince?: string;
|
|
23
|
+
firstLine?: string;
|
|
24
|
+
secondLine?: string;
|
|
25
|
+
postalCode?: string;
|
|
25
26
|
} | undefined;
|
|
26
27
|
export declare const transformForClientRegardedOwnerMailingAddress: (data: TaxDocumentation) => {
|
|
27
|
-
city?: string
|
|
28
|
-
country?: string
|
|
29
|
-
stateOrProvince?: string
|
|
30
|
-
firstLine?: string
|
|
31
|
-
secondLine?: string
|
|
32
|
-
postalCode?: string
|
|
28
|
+
city?: string;
|
|
29
|
+
country?: string;
|
|
30
|
+
stateOrProvince?: string;
|
|
31
|
+
firstLine?: string;
|
|
32
|
+
secondLine?: string;
|
|
33
|
+
postalCode?: string;
|
|
33
34
|
} | undefined;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import { ClientRegardedOwnerTaxDocumentation } from '@taxbit/utilities';
|
|
1
2
|
import { TaxDocumentation } from 'types';
|
|
2
|
-
|
|
3
|
+
|
|
4
|
+
export declare const transformForClientRegardedOwner: (data: TaxDocumentation) => ClientRegardedOwnerTaxDocumentation | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TaxDocumentation } from 'types';
|
|
2
|
+
|
|
2
3
|
export declare const transformForClientAccountHolderTaxResidences: (data: TaxDocumentation) => {
|
|
3
|
-
country?: string
|
|
4
|
-
tin?: string
|
|
5
|
-
tinNotRequired?: boolean
|
|
4
|
+
country?: string;
|
|
5
|
+
tin?: string;
|
|
6
|
+
tinNotRequired?: boolean;
|
|
6
7
|
}[] | undefined;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ForeignAccountHolderAccountType } from '@taxbit/utilities';
|
|
2
|
+
|
|
2
3
|
export declare const getForeignAccountType: (accountType: string | undefined) => ForeignAccountHolderAccountType | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { Questionnaire, TaxDocumentation } from 'types';
|
|
2
2
|
import { ClientTaxDocumentation } from '@taxbit/utilities';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
export declare const transformInbound: (data: ClientTaxDocumentation, questionnaire: Questionnaire, treatyClaims?: boolean) => TaxDocumentation;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TaxDocumentationErrorFile } from '../contexts';
|
|
2
2
|
import { Questionnaire, TaxDocumentation } from '../types';
|
|
3
3
|
import { ExternalValidations } from '../types/client';
|
|
4
|
+
|
|
4
5
|
export declare const getInvalidFields: (fields: TaxDocumentation, questionnaire: Questionnaire, externalValidations?: ExternalValidations) => TaxDocumentationErrorFile;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { TaxDocumentationPropertyFile } from '../contexts';
|
|
2
2
|
import { Questionnaire, TaxDocumentation } from '../types';
|
|
3
|
+
|
|
3
4
|
export declare const getRequiredFields: (fields: TaxDocumentation, questionnaire: Questionnaire) => TaxDocumentationPropertyFile;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TaxDocumentation } from '../types';
|
|
2
|
+
|
|
3
|
+
export declare const getSteps: (data: TaxDocumentation, treatyClaims?: boolean) => ("AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "AccountHolderTreatyClaims" | "Exemptions" | "RegardedOwnerContact" | "RegardedOwnerTax" | "RegardedOwnerTreatyClaims" | "Summary" | "W8imyInstructions")[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Questionnaire, TaxDocumentationKey } from 'types';
|
|
2
|
+
|
|
2
3
|
type TaxDocumentationPropertyFile = {
|
|
3
4
|
[key in TaxDocumentationKey]: boolean;
|
|
4
5
|
};
|
|
5
|
-
export declare const getSupportedFields: (questionnaire: Questionnaire) => TaxDocumentationPropertyFile;
|
|
6
|
+
export declare const getSupportedFields: (questionnaire: Questionnaire, treatyClaims?: boolean) => TaxDocumentationPropertyFile;
|
|
6
7
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Questionnaire, TaxDocumentation } from 'types';
|
|
2
2
|
import { TaxDocumentationPropertyFile } from '../contexts';
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
export declare const getVisibleFields: (fields: TaxDocumentation | undefined, questionnaire: Questionnaire, treatyClaims?: boolean) => TaxDocumentationPropertyFile;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ErrorKey } from 'i18n/types';
|
|
2
2
|
import { TaxDocumentation, TaxDocumentationKey } from 'types/TaxDocumentation';
|
|
3
3
|
import { ExternalValidations } from '../types/client';
|
|
4
|
+
|
|
4
5
|
export type FormUIValidation = (fields: TaxDocumentation, externalValidations?: ExternalValidations) => ErrorKey[] | undefined;
|
|
5
6
|
export type FormUIValidations = {
|
|
6
7
|
[key in TaxDocumentationKey]?: FormUIValidation;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { UseTaxDocumentationProps } from '../../contexts';
|
|
3
3
|
import { UseTaxbitPersistProps } from './useTaxbitPersist';
|
|
4
|
+
|
|
4
5
|
export type TaxbitQuestionnairePersistProps = UseTaxDocumentationProps & UseTaxbitPersistProps & {
|
|
5
6
|
loadingComponent?: React.ReactNode;
|
|
7
|
+
treatyClaims?: boolean;
|
|
6
8
|
};
|
|
7
|
-
export declare const TaxbitQuestionnairePersist: ({ staging, data, bearerToken, language, questionnaire, loadingComponent, onProgress, onSubmit, onSettled, onSuccess, onError, }: TaxbitQuestionnairePersistProps) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element;
|
|
9
|
+
export declare const TaxbitQuestionnairePersist: ({ staging, data, bearerToken, language, questionnaire, loadingComponent, onProgress, onSubmit, onSettled, onSuccess, onError, treatyClaims, }: TaxbitQuestionnairePersistProps) => string | number | true | Iterable<React.ReactNode> | React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ClientTaxDocumentation, SignedClientTaxDocumentation } from '@taxbit/utilities';
|
|
2
2
|
import { Questionnaire } from 'types';
|
|
3
3
|
import { ExternalValidations } from 'types/client';
|
|
4
|
+
|
|
4
5
|
export type UseTaxbitPersistProps = {
|
|
5
6
|
data?: ClientTaxDocumentation;
|
|
6
7
|
staging?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './AddressInput';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Questionnaire } from 'types';
|
|
3
|
+
|
|
3
4
|
export declare const LanguageSelector: ({ questionnaire, }: {
|
|
4
5
|
questionnaire: Questionnaire;
|
|
5
6
|
}) => React.JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './LanguageSelector';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './ResidenceInput';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
import { CheckBoxProps } from 'ui';
|
|
3
|
+
|
|
3
4
|
type CheckBoxRowProps = {
|
|
4
5
|
label?: boolean;
|
|
5
6
|
subLabel?: boolean;
|
|
6
7
|
disabled?: boolean;
|
|
8
|
+
header?: string;
|
|
7
9
|
};
|
|
8
|
-
export declare const CheckBoxRow: ({ name, label, subLabel, onClick, disabled, }: CheckBoxProps & CheckBoxRowProps) => React.JSX.Element;
|
|
10
|
+
export declare const CheckBoxRow: ({ name, label, header, subLabel, onClick, disabled, }: CheckBoxProps & CheckBoxRowProps) => React.JSX.Element;
|
|
9
11
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './CheckBoxRow';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import { DateOfBirthInputProps } from
|
|
3
|
-
import { TaxDocumentationKey } from
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { DateOfBirthInputProps } from 'ui';
|
|
3
|
+
import { TaxDocumentationKey } from 'types';
|
|
4
|
+
|
|
4
5
|
type DateOfBirthRowProps = {
|
|
5
6
|
name: TaxDocumentationKey;
|
|
6
7
|
label?: true;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
import { TaxDocumentationKey } from 'types';
|
|
3
|
+
|
|
3
4
|
export declare const ErrorRow: ({ label, subLabel, name, }: {
|
|
4
|
-
label?: boolean
|
|
5
|
-
subLabel?: boolean
|
|
5
|
+
label?: boolean;
|
|
6
|
+
subLabel?: boolean;
|
|
6
7
|
name: TaxDocumentationKey;
|
|
7
8
|
}) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HiddenInputRow.tsx';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
import { RadioButtonsProps } from 'ui';
|
|
3
|
+
|
|
3
4
|
type RadioButtonRowProps = {
|
|
4
5
|
label?: true;
|
|
5
6
|
subLabel?: true;
|
|
7
|
+
retainErrors?: boolean;
|
|
6
8
|
};
|
|
7
|
-
export declare const RadioButtonRow: ({ name, label, subLabel, options, }: RadioButtonsProps & RadioButtonRowProps) => React.JSX.Element;
|
|
9
|
+
export declare const RadioButtonRow: ({ name, label, subLabel, options, retainErrors, }: RadioButtonsProps & RadioButtonRowProps) => React.JSX.Element;
|
|
8
10
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './RadioButtonRow';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './SelectRow';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TextInputProps } from 'ui';
|
|
3
|
+
|
|
4
|
+
type TextInputRowProps = {
|
|
5
|
+
label?: boolean;
|
|
6
|
+
subLabel?: boolean;
|
|
7
|
+
onChange?: (val: string) => string;
|
|
8
|
+
};
|
|
9
|
+
export declare const TextAreaRow: ({ name, label, subLabel, onChange, disabled, defaultValue, }: TextInputProps & TextInputRowProps) => React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TextAreaRow.tsx';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './TextInputRow';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './ToggleButtonRow';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import { default as React } from 'react';
|
|
2
2
|
import { TaxDocumentationKey } from 'types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
|
|
4
|
+
export declare const VisibleRow: ({ label, subLabel, name, header, children, onEdit, }: {
|
|
5
|
+
label?: boolean;
|
|
6
|
+
subLabel?: boolean;
|
|
7
|
+
header?: string;
|
|
6
8
|
name: TaxDocumentationKey;
|
|
7
9
|
children: React.ReactNode;
|
|
8
|
-
onEdit?: (
|
|
10
|
+
onEdit?: () => void;
|
|
9
11
|
}) => React.JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from './VisibleRow';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AccountHolderTreatyClaims';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './RegardedOwnerTreatyClaims.tsx';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { UseTaxDocumentationProps } from 'contexts';
|
|
2
|
-
import React from 'react';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
3
4
|
export type TaxbitQuestionnaireUIProps = Omit<UseTaxDocumentationProps, 'step' | 'config'> & {
|
|
4
5
|
isComplete?: boolean;
|
|
6
|
+
treatyClaims?: boolean;
|
|
5
7
|
};
|
|
6
|
-
export declare const TaxbitQuestionnaireUI: ({ data, onSubmit, language, questionnaire, isComplete, onProgress, externalValidations, }: TaxbitQuestionnaireUIProps) => React.JSX.Element;
|
|
8
|
+
export declare const TaxbitQuestionnaireUI: ({ data, onSubmit, language, questionnaire, isComplete, onProgress, externalValidations, treatyClaims, }: TaxbitQuestionnaireUIProps) => React.JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './W8imyInstructions';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/dist/src/wizard/TaxbitQuestionnaireUI/__tests__/TaxbitWFormQuestionnaireUI.test.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -2,7 +2,10 @@ export * from './AccountHolderClassification';
|
|
|
2
2
|
export * from './AccountHolderContact';
|
|
3
3
|
export * from './AccountHolderTax';
|
|
4
4
|
export * from './AccountHolderTaxClarification';
|
|
5
|
+
export * from './AccountHolderTreatyClaims';
|
|
5
6
|
export * from './Exemptions';
|
|
6
7
|
export * from './RegardedOwnerContact';
|
|
7
8
|
export * from './RegardedOwnerTax';
|
|
9
|
+
export * from './RegardedOwnerTreatyClaims';
|
|
8
10
|
export * from './Summary';
|
|
11
|
+
export * from './W8imyInstructions';
|