@taxbit/react-sdk 0.0.7 → 0.0.10
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 +1 -1
- 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/{TaxDocumentationPathProvider.d.ts → TaxBitFormProvider.d.ts} +1 -1
- package/dist/contexts/TaxDocumentation/index.d.ts +1 -1
- package/dist/entry/index.d.ts +2 -2
- package/dist/hooks/useTaxBit/useTaxBit.d.ts +2 -2
- 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 -0
- package/dist/paths/TaxBitFormUI/AccountHolderContact/index.d.ts +1 -0
- package/dist/paths/TaxBitFormUI/AccountHolderTax/index.d.ts +1 -0
- package/dist/paths/TaxBitFormUI/AccountHolderTaxClarification/index.d.ts +1 -0
- package/dist/paths/TaxBitFormUI/Exemptions/index.d.ts +1 -0
- package/dist/paths/TaxBitFormUI/RegardedOwnerClassification/index.d.ts +1 -0
- package/dist/paths/TaxBitFormUI/RegardedOwnerContact/index.d.ts +1 -0
- package/dist/paths/TaxBitFormUI/RegardedOwnerTax/index.d.ts +1 -0
- package/dist/paths/TaxBitFormUI/Summary/index.d.ts +1 -0
- package/dist/paths/{TaxDocumentationPath/TaxDocumentationDAC7Path.d.ts → TaxBitFormUI/TaxBitDAC7FormUI.d.ts} +1 -1
- package/dist/paths/{TaxDocumentationPath/TaxDocumentationPath.d.ts → TaxBitFormUI/TaxBitFormUI.d.ts} +2 -2
- package/dist/paths/TaxBitFormUI/index.d.ts +1 -0
- package/dist/paths/VatInput/index.d.ts +1 -1
- package/dist/paths/index.d.ts +1 -1
- package/dist/services/api.d.ts +3 -0
- package/dist/taxbit-react-sdk.es.js +1466 -2984
- package/dist/taxbit-react-sdk.umd.js +10 -26
- package/dist/ui/Actions/index.d.ts +1 -1
- package/dist/ui/CheckBox/index.d.ts +1 -1
- package/dist/widgets/{TaxDocumentationWidget/TaxDocumentationDAC7Widget.d.ts → TaxBitForm/TaxBitDAC7Form.d.ts} +1 -1
- package/dist/widgets/{TaxDocumentationWidget/TaxDocumentationWidget.d.ts → TaxBitForm/TaxBitForm.d.ts} +2 -2
- package/dist/widgets/TaxBitForm/index.d.ts +2 -0
- package/dist/widgets/index.d.ts +1 -1
- package/package.json +4 -4
- package/dist/paths/TaxDocumentationPath/AccountHolderClassification/index.d.ts +0 -1
- package/dist/paths/TaxDocumentationPath/AccountHolderContact/index.d.ts +0 -1
- package/dist/paths/TaxDocumentationPath/AccountHolderTax/index.d.ts +0 -1
- package/dist/paths/TaxDocumentationPath/AccountHolderTaxClarification/index.d.ts +0 -1
- package/dist/paths/TaxDocumentationPath/Exemptions/index.d.ts +0 -1
- package/dist/paths/TaxDocumentationPath/RegardedOwnerClassification/index.d.ts +0 -1
- package/dist/paths/TaxDocumentationPath/RegardedOwnerContact/index.d.ts +0 -1
- package/dist/paths/TaxDocumentationPath/RegardedOwnerTax/index.d.ts +0 -1
- package/dist/paths/TaxDocumentationPath/Summary/index.d.ts +0 -1
- package/dist/paths/TaxDocumentationPath/index.d.ts +0 -1
- package/dist/widgets/TaxDocumentationWidget/index.d.ts +0 -2
- /package/dist/{taxbit-basic.css → basic.css} +0 -0
- /package/dist/{taxbit-basic-horizontal.css → inline.css} +0 -0
- /package/dist/paths/{TaxDocumentationPath → TaxBitFormUI}/AccountHolderClassification/AccountHolderClassification.d.ts +0 -0
- /package/dist/paths/{TaxDocumentationPath → TaxBitFormUI}/AccountHolderContact/AccountHolderContact.d.ts +0 -0
- /package/dist/paths/{TaxDocumentationPath → TaxBitFormUI}/AccountHolderTax/AccountHolderTax.d.ts +0 -0
- /package/dist/paths/{TaxDocumentationPath → TaxBitFormUI}/AccountHolderTaxClarification/AccountHolderTaxClarification.d.ts +0 -0
- /package/dist/paths/{TaxDocumentationPath → TaxBitFormUI}/Exemptions/Exemptions.d.ts +0 -0
- /package/dist/paths/{TaxDocumentationPath → TaxBitFormUI}/RegardedOwnerClassification/RegardedOwnerClassification.d.ts +0 -0
- /package/dist/paths/{TaxDocumentationPath → TaxBitFormUI}/RegardedOwnerContact/RegardedOwnerContact.d.ts +0 -0
- /package/dist/paths/{TaxDocumentationPath → TaxBitFormUI}/RegardedOwnerTax/RegardedOwnerTax.d.ts +0 -0
- /package/dist/paths/{TaxDocumentationPath → TaxBitFormUI}/Summary/Recap.d.ts +0 -0
- /package/dist/paths/{TaxDocumentationPath → TaxBitFormUI}/Summary/Summary.d.ts +0 -0
- /package/dist/paths/{TaxDocumentationPath → TaxBitFormUI}/steps.d.ts +0 -0
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ A React app, widget, and component for gathering Tax Documentation data.
|
|
|
9
9
|
`import { TaxDocumentation } from '@taxbit/taxbit-tax-documentation';`
|
|
10
10
|
|
|
11
11
|
```jsx
|
|
12
|
-
<
|
|
12
|
+
<TaxBitFormUI onSubmit={data => alert(JSON.stringify(data))} />
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Todo
|
|
@@ -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";
|
package/dist/contexts/TaxDocumentation/{TaxDocumentationPathProvider.d.ts → TaxBitFormProvider.d.ts}
RENAMED
|
@@ -9,5 +9,5 @@ type TaxDocumentationProviderProps = {
|
|
|
9
9
|
children: React.ReactNode;
|
|
10
10
|
forms?: Form[];
|
|
11
11
|
};
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const TaxBitFormProvider: ({ data, onSubmit, language, forms, children, }: TaxDocumentationProviderProps) => React.JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./useTaxDocumentationContext";
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./TaxBitFormProvider";
|
package/dist/entry/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../paths/
|
|
2
|
-
export * from "../widgets/
|
|
1
|
+
export * from "../paths/TaxBitFormUI";
|
|
2
|
+
export * from "../widgets/TaxBitForm";
|
|
3
3
|
export * from "../hooks/useTaxBit";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TaxDocumentation } from "types";
|
|
2
2
|
export declare const useTaxBit: (environment: "PRODUCTION" | "STAGING", bearerToken: string) => {
|
|
3
|
-
submitTaxDocumentation:
|
|
4
|
-
taxDocumentationStatus: string;
|
|
3
|
+
submitTaxDocumentation: (taxDocumentation: TaxDocumentation) => void;
|
|
4
|
+
taxDocumentationStatus: 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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AccountHolderClassification";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AccountHolderContact";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AccountHolderTax";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./AccountHolderTaxClarification";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Exemptions";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RegardedOwnerClassification";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RegardedOwnerContact";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./RegardedOwnerTax";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Summary";
|
|
@@ -6,5 +6,5 @@ type TaxDocumentationDAC7PathProps = {
|
|
|
6
6
|
onSubmit: (data: TaxDocumentation) => void;
|
|
7
7
|
initialLanguage?: Locale;
|
|
8
8
|
};
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const TaxBitDAC7FormUI: ({ initialData, onSubmit, initialLanguage, }: TaxDocumentationDAC7PathProps) => React.JSX.Element;
|
|
10
10
|
export {};
|
package/dist/paths/{TaxDocumentationPath/TaxDocumentationPath.d.ts → TaxBitFormUI/TaxBitFormUI.d.ts}
RENAMED
|
@@ -2,11 +2,11 @@ import React from "react";
|
|
|
2
2
|
import type { Locale } from "i18n";
|
|
3
3
|
import type { Form } from "types/Form";
|
|
4
4
|
import type { TaxDocumentation } from "types";
|
|
5
|
-
type
|
|
5
|
+
type TaxBitFormUIProps = {
|
|
6
6
|
initialData?: TaxDocumentation;
|
|
7
7
|
onSubmit: (data: TaxDocumentation) => void;
|
|
8
8
|
initialLanguage?: Locale;
|
|
9
9
|
forms?: Form[];
|
|
10
10
|
};
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const TaxBitFormUI: ({ initialData, onSubmit, initialLanguage, forms, }: TaxBitFormUIProps) => React.JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./TaxBitFormUI";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./VatInput
|
|
1
|
+
export * from "./VatInput";
|
package/dist/paths/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./TaxBitFormUI";
|