@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.
@@ -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/TaxDocumentation.ts").TaxDocumentation) => void;
9
- onPersistCollectedData: (newData: import("../../types/TaxDocumentation.ts").TaxDocumentation) => void;
10
- onSubmitTaxDocumentation: (newData: import("../../types/TaxDocumentation.ts").TaxDocumentation) => void;
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/TaxDocumentation.ts").TaxDocumentation) => void;
16
+ goToNext: (data: import("../../types").TaxDocumentation) => void;
17
17
  stepName: "Summary" | "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax";
18
- data: import("../../types/TaxDocumentation.ts").TaxDocumentation;
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/Form.ts").Form[];
22
- setSupportedForms: import("react").Dispatch<import("react").SetStateAction<import("../../types/Form.ts").Form[]>>;
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/TaxDocumentation.ts").TaxDocumentation) => void;
30
- onPersistCollectedData: (newData: import("../../types/TaxDocumentation.ts").TaxDocumentation) => void;
31
- onSubmitTaxDocumentation: (newData: import("../../types/TaxDocumentation.ts").TaxDocumentation) => void;
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/TaxDocumentation.ts").TaxDocumentation) => void;
37
+ goToNext: (data: import("../../types").TaxDocumentation) => void;
38
38
  stepName: "Summary" | "AccountHolderClassification" | "AccountHolderContact" | "AccountHolderTax" | "AccountHolderTaxClarification" | "Exemptions" | "RegardedOwnerClassification" | "RegardedOwnerContact" | "RegardedOwnerTax";
39
- data: import("../../types/TaxDocumentation.ts").TaxDocumentation;
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/Form.ts").Form[];
43
- setSupportedForms: import("react").Dispatch<import("react").SetStateAction<import("../../types/Form.ts").Form[]>>;
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: (environment: "PRODUCTION" | "STAGING", bearerToken: string) => {
3
- submitTaxDocumentation: (taxDocumentation: TaxDocumentation) => void;
4
- taxDocumentationStatus: string | undefined;
2
+ export declare const useTaxBit: (bearerToken: string, staging?: true) => {
3
+ submitForm: (taxDocumentation: TaxDocumentation) => void;
4
+ formStatus: string | undefined;
5
5
  };
@@ -1,5 +1,5 @@
1
- import type { PropertyFile } from "./types/PropertyFile.ts";
2
- export type Locale = "en-us" | "de-de" | "en-gb" | "it-it" | "nl-nl" | "no-no" | "sv-se" | "fr-fr" | "es-es";
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
  };
@@ -1,2 +1,2 @@
1
1
  export { getButtonText, getCaProvinceText, getCountryText, getErrorText, getHintText, getOptionText, getPromptText, getSubPromptText, getTitleText, getUsStateText, } from "./utils";
2
- export type { Locale } from "./i18n.ts";
2
+ export type { Locale } from "./types/Locale";
@@ -1,2 +1,2 @@
1
- import { PropertyFile } from "../types/PropertyFile.ts";
1
+ import { PropertyFile } from "../types/PropertyFile";
2
2
  export declare const frFr: PropertyFile;
@@ -1,9 +1,9 @@
1
- export * from "./de-de.ts";
2
- export * from "./en-gb.ts";
3
- export * from "./en-us.ts";
4
- export * from "./es-es.ts";
5
- export * from "./fr-fr.ts";
6
- export * from "./it-it.ts";
7
- export * from "./nl-nl.ts";
8
- export * from "./no-no.ts";
9
- export * from "./sv-se.ts";
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.ts";
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.ts";
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 "../i18n.ts";
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.ts";
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
- initialData?: TaxDocumentation;
5
+ data?: TaxDocumentation;
6
6
  onSubmit: (data: TaxDocumentation) => void;
7
- initialLanguage?: Locale;
7
+ language?: Locale;
8
8
  };
9
- export declare const TaxBitDAC7FormUI: ({ initialData, onSubmit, initialLanguage, }: TaxDocumentationDAC7PathProps) => React.JSX.Element;
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 { Form } from "types/Form";
3
+ import type { TaxForm } from "types/TaxForm";
4
4
  import type { TaxDocumentation } from "types";
5
5
  type TaxBitFormUIProps = {
6
- initialData?: TaxDocumentation;
6
+ data?: TaxDocumentation;
7
7
  onSubmit: (data: TaxDocumentation) => void;
8
- initialLanguage?: Locale;
9
- forms?: Form[];
8
+ language?: Locale;
9
+ taxForms?: TaxForm[];
10
10
  };
11
- export declare const TaxBitFormUI: ({ initialData, onSubmit, initialLanguage, forms, }: TaxBitFormUIProps) => React.JSX.Element;
11
+ export declare const TaxBitFormUI: ({ data, onSubmit, language, taxForms, }: TaxBitFormUIProps) => React.JSX.Element;
12
12
  export {};