@taxbit/react-sdk 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Address/index.d.ts +1 -1
- package/dist/components/ErrorMessage/index.d.ts +1 -1
- package/dist/components/Page/index.d.ts +1 -1
- package/dist/components/Row/index.d.ts +1 -1
- package/dist/components/Section/index.d.ts +1 -1
- package/dist/contexts/FormUI/index.d.ts +3 -3
- package/dist/contexts/TaxDocumentation/TaxBitFormProvider.d.ts +3 -3
- package/dist/contexts/TaxDocumentation/index.d.ts +1 -1
- package/dist/contexts/TaxDocumentation/useTaxDocumentation.d.ts +7 -7
- package/dist/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +4 -4
- package/dist/hooks/useTaxBit/useTaxBit.d.ts +3 -3
- package/dist/paths/AddressInput/index.d.ts +1 -1
- package/dist/paths/FinancialAccountInput/index.d.ts +1 -1
- package/dist/paths/PlaceOfBirthInput/index.d.ts +1 -1
- package/dist/paths/ResidenceInput/index.d.ts +1 -1
- package/dist/paths/RowInput/CheckBoxRow/index.d.ts +1 -1
- package/dist/paths/RowInput/ErrorRow/index.d.ts +1 -1
- package/dist/paths/RowInput/RadioButtonRow/index.d.ts +1 -1
- package/dist/paths/RowInput/SelectRow/index.d.ts +1 -1
- package/dist/paths/RowInput/TextInputRow/index.d.ts +1 -1
- package/dist/paths/RowInput/VisibleRow/index.d.ts +1 -1
- package/dist/paths/TaxBitFormUI/AccountHolderClassification/index.d.ts +1 -1
- package/dist/paths/TaxBitFormUI/AccountHolderContact/index.d.ts +1 -1
- package/dist/paths/TaxBitFormUI/AccountHolderTax/index.d.ts +1 -1
- package/dist/paths/TaxBitFormUI/AccountHolderTaxClarification/index.d.ts +1 -1
- package/dist/paths/TaxBitFormUI/Exemptions/index.d.ts +1 -1
- package/dist/paths/TaxBitFormUI/RegardedOwnerClassification/index.d.ts +1 -1
- package/dist/paths/TaxBitFormUI/RegardedOwnerContact/index.d.ts +1 -1
- package/dist/paths/TaxBitFormUI/RegardedOwnerTax/index.d.ts +1 -1
- package/dist/paths/TaxBitFormUI/Summary/index.d.ts +1 -1
- package/dist/paths/TaxBitFormUI/TaxBitDAC7FormUI.d.ts +3 -3
- package/dist/paths/TaxBitFormUI/TaxBitFormUI.d.ts +5 -5
- package/dist/paths/TaxBitFormUI/index.d.ts +1 -1
- package/dist/paths/VatInput/index.d.ts +1 -1
- package/dist/taxbit-react-sdk.es.js +570 -573
- package/dist/taxbit-react-sdk.umd.js +8 -8
- package/dist/types/TaxForm.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/ui/Actions/index.d.ts +1 -1
- package/dist/ui/CheckBox/index.d.ts +1 -1
- package/dist/utils/getSupportedFields.d.ts +2 -2
- package/dist/utils/getVisibleQuestions.d.ts +2 -2
- package/dist/widgets/TaxBitForm/TaxBitDAC7Form.d.ts +4 -4
- package/dist/widgets/TaxBitForm/TaxBitForm.d.ts +5 -5
- package/dist/widgets/TaxBitForm/index.d.ts +2 -2
- package/package.json +2 -3
- package/dist/types/Form.d.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Address
|
|
1
|
+
export * from "./Address";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./ErrorMessage
|
|
1
|
+
export * from "./ErrorMessage";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Page
|
|
1
|
+
export * from "./Page";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Row
|
|
1
|
+
export * from "./Row";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Section
|
|
1
|
+
export * from "./Section";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "./useFormUIContext
|
|
2
|
-
export * from "./FormUIProvider
|
|
3
|
-
export { type FormUIFields } from "./useFormUI
|
|
1
|
+
export * from "./useFormUIContext";
|
|
2
|
+
export * from "./FormUIProvider";
|
|
3
|
+
export { type FormUIFields } from "./useFormUI";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { Locale } from "i18n";
|
|
3
|
-
import type {
|
|
3
|
+
import type { TaxForm } from "types/TaxForm";
|
|
4
4
|
import type { TaxDocumentation } from "types";
|
|
5
5
|
type TaxDocumentationProviderProps = {
|
|
6
6
|
data?: TaxDocumentation;
|
|
7
7
|
onSubmit: (data: TaxDocumentation) => void;
|
|
8
8
|
language?: Locale;
|
|
9
9
|
children: React.ReactNode;
|
|
10
|
-
|
|
10
|
+
taxForms?: TaxForm[];
|
|
11
11
|
};
|
|
12
|
-
export declare const TaxBitFormProvider: ({ data, onSubmit, language,
|
|
12
|
+
export declare const TaxBitFormProvider: ({ data, onSubmit, language, taxForms, children, }: TaxDocumentationProviderProps) => React.JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./useTaxDocumentationContext";
|
|
2
|
-
export * from "./TaxBitFormProvider
|
|
2
|
+
export * from "./TaxBitFormProvider";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type {
|
|
2
|
+
import type { TaxForm, TaxDocumentation } from "types";
|
|
3
3
|
import { Locale } from "i18n";
|
|
4
4
|
type InputStep = "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax" | "Summary";
|
|
5
5
|
type UseTaxDocumentationProps = {
|
|
6
|
-
|
|
6
|
+
data: TaxDocumentation;
|
|
7
7
|
onSubmit: (transformedData: TaxDocumentation) => void;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
language?: Locale;
|
|
9
|
+
taxForms?: TaxForm[];
|
|
10
10
|
};
|
|
11
|
-
export declare const useTaxDocumentation: ({ initialData, onSubmit, initialLanguage, supportedForms, }: UseTaxDocumentationProps) => {
|
|
11
|
+
export declare const useTaxDocumentation: ({ data: initialData, onSubmit, language: initialLanguage, taxForms: supportedForms, }: UseTaxDocumentationProps) => {
|
|
12
12
|
isW9: boolean;
|
|
13
13
|
isW8: boolean;
|
|
14
14
|
isW8Ben: boolean;
|
|
@@ -27,7 +27,7 @@ export declare const useTaxDocumentation: ({ initialData, onSubmit, initialLangu
|
|
|
27
27
|
data: TaxDocumentation;
|
|
28
28
|
setLanguage: import("react").Dispatch<import("react").SetStateAction<"en-us" | "de-de" | "en-gb" | "it-it" | "nl-nl" | "no-no" | "sv-se" | "fr-fr" | "es-es">>;
|
|
29
29
|
language: "en-us" | "de-de" | "en-gb" | "it-it" | "nl-nl" | "no-no" | "sv-se" | "fr-fr" | "es-es";
|
|
30
|
-
supportedForms:
|
|
31
|
-
setSupportedForms: import("react").Dispatch<import("react").SetStateAction<
|
|
30
|
+
supportedForms: TaxForm[];
|
|
31
|
+
setSupportedForms: import("react").Dispatch<import("react").SetStateAction<TaxForm[]>>;
|
|
32
32
|
};
|
|
33
33
|
export {};
|
|
@@ -18,8 +18,8 @@ export declare const useTaxDocumentationContext: () => {
|
|
|
18
18
|
data: import("../../types/TaxDocumentation.ts").TaxDocumentation;
|
|
19
19
|
setLanguage: import("react").Dispatch<import("react").SetStateAction<"en-us" | "de-de" | "en-gb" | "it-it" | "nl-nl" | "no-no" | "sv-se" | "fr-fr" | "es-es">>;
|
|
20
20
|
language: "en-us" | "de-de" | "en-gb" | "it-it" | "nl-nl" | "no-no" | "sv-se" | "fr-fr" | "es-es";
|
|
21
|
-
supportedForms: import("../../types/
|
|
22
|
-
setSupportedForms: import("react").Dispatch<import("react").SetStateAction<import("../../types/
|
|
21
|
+
supportedForms: import("../../types/TaxForm.ts").TaxForm[];
|
|
22
|
+
setSupportedForms: import("react").Dispatch<import("react").SetStateAction<import("../../types/TaxForm.ts").TaxForm[]>>;
|
|
23
23
|
}, TaxDocumentationContextProvider: import("react").Provider<{
|
|
24
24
|
isW9: boolean;
|
|
25
25
|
isW8: boolean;
|
|
@@ -39,6 +39,6 @@ export declare const useTaxDocumentationContext: () => {
|
|
|
39
39
|
data: import("../../types/TaxDocumentation.ts").TaxDocumentation;
|
|
40
40
|
setLanguage: import("react").Dispatch<import("react").SetStateAction<"en-us" | "de-de" | "en-gb" | "it-it" | "nl-nl" | "no-no" | "sv-se" | "fr-fr" | "es-es">>;
|
|
41
41
|
language: "en-us" | "de-de" | "en-gb" | "it-it" | "nl-nl" | "no-no" | "sv-se" | "fr-fr" | "es-es";
|
|
42
|
-
supportedForms: import("../../types/
|
|
43
|
-
setSupportedForms: import("react").Dispatch<import("react").SetStateAction<import("../../types/
|
|
42
|
+
supportedForms: import("../../types/TaxForm.ts").TaxForm[];
|
|
43
|
+
setSupportedForms: import("react").Dispatch<import("react").SetStateAction<import("../../types/TaxForm.ts").TaxForm[]>>;
|
|
44
44
|
} | undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TaxDocumentation } from "types";
|
|
2
|
-
export declare const useTaxBit: (
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export declare const useTaxBit: (bearerToken: string, staging?: true) => {
|
|
3
|
+
submitForm: (taxDocumentation: TaxDocumentation) => void;
|
|
4
|
+
formStatus: string | undefined;
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./AddressInput
|
|
1
|
+
export * from "./AddressInput";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./FinancialAccountInput
|
|
1
|
+
export * from "./FinancialAccountInput";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./PlaceOfBirthInput
|
|
1
|
+
export * from "./PlaceOfBirthInput";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./ResidenceInput
|
|
1
|
+
export * from "./ResidenceInput";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./CheckBoxRow
|
|
1
|
+
export * from "./CheckBoxRow";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./ErrorRow
|
|
1
|
+
export * from "./ErrorRow";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./RadioButtonRow
|
|
1
|
+
export * from "./RadioButtonRow";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./SelectRow
|
|
1
|
+
export * from "./SelectRow";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./TextInputRow
|
|
1
|
+
export * from "./TextInputRow";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./VisibleRow
|
|
1
|
+
export * from "./VisibleRow";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./AccountHolderClassification
|
|
1
|
+
export * from "./AccountHolderClassification";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./AccountHolderContact
|
|
1
|
+
export * from "./AccountHolderContact";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./AccountHolderTax
|
|
1
|
+
export * from "./AccountHolderTax";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./AccountHolderTaxClarification
|
|
1
|
+
export * from "./AccountHolderTaxClarification";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Exemptions
|
|
1
|
+
export * from "./Exemptions";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./RegardedOwnerClassification
|
|
1
|
+
export * from "./RegardedOwnerClassification";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./RegardedOwnerContact
|
|
1
|
+
export * from "./RegardedOwnerContact";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./RegardedOwnerTax
|
|
1
|
+
export * from "./RegardedOwnerTax";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Summary
|
|
1
|
+
export * from "./Summary";
|
|
@@ -2,9 +2,9 @@ import React from "react";
|
|
|
2
2
|
import type { Locale } from "i18n";
|
|
3
3
|
import type { TaxDocumentation } from "types";
|
|
4
4
|
type TaxDocumentationDAC7PathProps = {
|
|
5
|
-
|
|
5
|
+
data?: TaxDocumentation;
|
|
6
6
|
onSubmit: (data: TaxDocumentation) => void;
|
|
7
|
-
|
|
7
|
+
language?: Locale;
|
|
8
8
|
};
|
|
9
|
-
export declare const TaxBitDAC7FormUI: ({
|
|
9
|
+
export declare const TaxBitDAC7FormUI: ({ data, onSubmit, language, }: TaxDocumentationDAC7PathProps) => React.JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { Locale } from "i18n";
|
|
3
|
-
import type {
|
|
3
|
+
import type { TaxForm } from "types/TaxForm";
|
|
4
4
|
import type { TaxDocumentation } from "types";
|
|
5
5
|
type TaxBitFormUIProps = {
|
|
6
|
-
|
|
6
|
+
data?: TaxDocumentation;
|
|
7
7
|
onSubmit: (data: TaxDocumentation) => void;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
language?: Locale;
|
|
9
|
+
taxForms?: TaxForm[];
|
|
10
10
|
};
|
|
11
|
-
export declare const TaxBitFormUI: ({
|
|
11
|
+
export declare const TaxBitFormUI: ({ data, onSubmit, language, taxForms, }: TaxBitFormUIProps) => React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./TaxBitFormUI
|
|
1
|
+
export * from "./TaxBitFormUI";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./VatInput
|
|
1
|
+
export * from "./VatInput";
|