@taxbit/react-sdk 0.0.10 → 0.0.12
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/contexts/FormUI/useFormUIContext.d.ts +222 -222
- package/dist/contexts/TaxDocumentation/TaxBitFormProvider.d.ts +3 -3
- package/dist/contexts/TaxDocumentation/useTaxDocumentation.d.ts +7 -7
- package/dist/contexts/TaxDocumentation/useTaxDocumentationContext.d.ts +14 -14
- package/dist/hooks/useTaxBit/useTaxBit.d.ts +3 -3
- package/dist/i18n/i18n.d.ts +2 -2
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/locales/fr-fr.d.ts +1 -1
- package/dist/i18n/locales/index.d.ts +9 -9
- package/dist/i18n/types/Locale.d.ts +1 -0
- package/dist/i18n/types/PropertyFile.d.ts +1 -1
- package/dist/i18n/types/index.d.ts +1 -1
- package/dist/i18n/utils/getText.d.ts +1 -1
- package/dist/i18n/utils/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/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/external/index.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/getSupportedFields.d.ts +2 -2
- package/dist/utils/getVisibleQuestions.d.ts +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/dist/widgets/TaxBitForm/TaxBitDAC7Form.d.ts +4 -4
- package/dist/widgets/TaxBitForm/TaxBitForm.d.ts +5 -5
- package/package.json +2 -3
- package/dist/types/Form.d.ts +0 -1
|
@@ -5,40 +5,40 @@ export declare const useTaxDocumentationContext: () => {
|
|
|
5
5
|
isW8Ben: boolean;
|
|
6
6
|
isW8BenE: boolean;
|
|
7
7
|
isDac7: boolean;
|
|
8
|
-
onPersistAccountHolderData: (newData: import("../../types
|
|
9
|
-
onPersistCollectedData: (newData: import("../../types
|
|
10
|
-
onSubmitTaxDocumentation: (newData: import("../../types
|
|
8
|
+
onPersistAccountHolderData: (newData: import("../../types").TaxDocumentation) => void;
|
|
9
|
+
onPersistCollectedData: (newData: import("../../types").TaxDocumentation) => void;
|
|
10
|
+
onSubmitTaxDocumentation: (newData: import("../../types").TaxDocumentation) => void;
|
|
11
11
|
onResetTaxDocumentation: () => void;
|
|
12
12
|
editTo: (form: "Summary" | "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax") => void;
|
|
13
13
|
onCancel: (() => void) | undefined;
|
|
14
14
|
goTo: (form: "Summary" | "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax") => void;
|
|
15
15
|
goBack: (() => void) | undefined;
|
|
16
|
-
goToNext: (data: import("../../types
|
|
16
|
+
goToNext: (data: import("../../types").TaxDocumentation) => void;
|
|
17
17
|
stepName: "Summary" | "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax";
|
|
18
|
-
data: import("../../types
|
|
18
|
+
data: import("../../types").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[];
|
|
22
|
+
setSupportedForms: import("react").Dispatch<import("react").SetStateAction<import("../../types").TaxForm[]>>;
|
|
23
23
|
}, TaxDocumentationContextProvider: import("react").Provider<{
|
|
24
24
|
isW9: boolean;
|
|
25
25
|
isW8: boolean;
|
|
26
26
|
isW8Ben: boolean;
|
|
27
27
|
isW8BenE: boolean;
|
|
28
28
|
isDac7: boolean;
|
|
29
|
-
onPersistAccountHolderData: (newData: import("../../types
|
|
30
|
-
onPersistCollectedData: (newData: import("../../types
|
|
31
|
-
onSubmitTaxDocumentation: (newData: import("../../types
|
|
29
|
+
onPersistAccountHolderData: (newData: import("../../types").TaxDocumentation) => void;
|
|
30
|
+
onPersistCollectedData: (newData: import("../../types").TaxDocumentation) => void;
|
|
31
|
+
onSubmitTaxDocumentation: (newData: import("../../types").TaxDocumentation) => void;
|
|
32
32
|
onResetTaxDocumentation: () => void;
|
|
33
33
|
editTo: (form: "Summary" | "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax") => void;
|
|
34
34
|
onCancel: (() => void) | undefined;
|
|
35
35
|
goTo: (form: "Summary" | "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax") => void;
|
|
36
36
|
goBack: (() => void) | undefined;
|
|
37
|
-
goToNext: (data: import("../../types
|
|
37
|
+
goToNext: (data: import("../../types").TaxDocumentation) => void;
|
|
38
38
|
stepName: "Summary" | "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax";
|
|
39
|
-
data: import("../../types
|
|
39
|
+
data: import("../../types").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[];
|
|
43
|
+
setSupportedForms: import("react").Dispatch<import("react").SetStateAction<import("../../types").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
|
};
|
package/dist/i18n/i18n.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
1
|
+
import type { Locale } from "./types/Locale";
|
|
2
|
+
import type { PropertyFile } from "./types/PropertyFile";
|
|
3
3
|
type LocalizationFile = {
|
|
4
4
|
[locale in Locale]: PropertyFile;
|
|
5
5
|
};
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { getButtonText, getCaProvinceText, getCountryText, getErrorText, getHintText, getOptionText, getPromptText, getSubPromptText, getTitleText, getUsStateText, } from "./utils";
|
|
2
|
-
export type { Locale } from "./
|
|
2
|
+
export type { Locale } from "./types/Locale";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PropertyFile } from "../types/PropertyFile
|
|
1
|
+
import { PropertyFile } from "../types/PropertyFile";
|
|
2
2
|
export declare const frFr: PropertyFile;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export * from "./de-de
|
|
2
|
-
export * from "./en-gb
|
|
3
|
-
export * from "./en-us
|
|
4
|
-
export * from "./es-es
|
|
5
|
-
export * from "./fr-fr
|
|
6
|
-
export * from "./it-it
|
|
7
|
-
export * from "./nl-nl
|
|
8
|
-
export * from "./no-no
|
|
9
|
-
export * from "./sv-se
|
|
1
|
+
export * from "./de-de";
|
|
2
|
+
export * from "./en-gb";
|
|
3
|
+
export * from "./en-us";
|
|
4
|
+
export * from "./es-es";
|
|
5
|
+
export * from "./fr-fr";
|
|
6
|
+
export * from "./it-it";
|
|
7
|
+
export * from "./nl-nl";
|
|
8
|
+
export * from "./no-no";
|
|
9
|
+
export * from "./sv-se";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Locale = "en-us" | "de-de" | "en-gb" | "it-it" | "nl-nl" | "no-no" | "sv-se" | "fr-fr" | "es-es";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonKey, ErrorKey, HintKey, OptionKey, PromptKey, SubPromptKey, TextKey, TitleKey } from "./LocalizationKey
|
|
1
|
+
import { ButtonKey, ErrorKey, HintKey, OptionKey, PromptKey, SubPromptKey, TextKey, TitleKey } from "./LocalizationKey";
|
|
2
2
|
import { CountryCode } from "types/CountryCode";
|
|
3
3
|
import { UsStateCode } from "types/UsStateCode";
|
|
4
4
|
import { CaProvinceCode } from "types/CaProvinceCode";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./LocalizationKey
|
|
1
|
+
export * from "./LocalizationKey";
|
|
@@ -2,7 +2,7 @@ import { ButtonKey, ErrorKey, OptionKey, PromptKey, SubPromptKey, TextKey, Title
|
|
|
2
2
|
import { CountryCode } from "types/CountryCode";
|
|
3
3
|
import { UsStateCode } from "types/UsStateCode";
|
|
4
4
|
import { CaProvinceCode } from "types/CaProvinceCode";
|
|
5
|
-
import { Locale } from "../
|
|
5
|
+
import { Locale } from "../types/Locale";
|
|
6
6
|
export declare const getPromptText: (key: PromptKey, locale?: Locale | undefined) => string;
|
|
7
7
|
export declare const getSubPromptText: (key: SubPromptKey, locale?: Locale | undefined) => string;
|
|
8
8
|
export declare const getErrorText: (key: ErrorKey, locale?: Locale | undefined) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./getText
|
|
1
|
+
export * from "./getText";
|
|
@@ -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 {};
|