@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TaxForm = "W-9" | "W-8BEN" | "W-8BEN-E" | "DAC7";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./ComprehensiveTaxDocumentation
|
|
1
|
+
export * from "./ComprehensiveTaxDocumentation";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TaxDocumentationKey,
|
|
1
|
+
import type { TaxDocumentationKey, TaxForm } from "types";
|
|
2
2
|
type TaxDocumentationPropertyFile = {
|
|
3
3
|
[key in TaxDocumentationKey]: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare const getSupportedFields: (
|
|
5
|
+
export declare const getSupportedFields: (taxForms: TaxForm[]) => TaxDocumentationPropertyFile;
|
|
6
6
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TaxForm, TaxDocumentation, TaxDocumentationKey } from "types";
|
|
2
2
|
type TaxDocumentationPropertyFile = {
|
|
3
3
|
[key in TaxDocumentationKey]: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare const getVisibleQuestions: (fields: TaxDocumentation, supportedForms:
|
|
5
|
+
export declare const getVisibleQuestions: (fields: TaxDocumentation, supportedForms: TaxForm[]) => TaxDocumentationPropertyFile;
|
|
6
6
|
export {};
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export * from "./getFieldsState";
|
|
|
5
5
|
export * from "./getPromptKeyMap";
|
|
6
6
|
export * from "./getSupportedFields";
|
|
7
7
|
export * from "./getVisibleQuestions";
|
|
8
|
-
export * from "./transformInbound
|
|
9
|
-
export * from "./transformOutbound
|
|
8
|
+
export * from "./transformInbound";
|
|
9
|
+
export * from "./transformOutbound";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { Locale } from "i18n";
|
|
3
3
|
import { TaxDocumentation } from "types";
|
|
4
|
-
type
|
|
5
|
-
|
|
6
|
-
environment: "PRODUCTION" | "STAGING";
|
|
4
|
+
type TaxBitDAC7FormProps = {
|
|
5
|
+
data?: TaxDocumentation;
|
|
7
6
|
bearerToken: string;
|
|
8
7
|
language?: Locale;
|
|
8
|
+
staging?: true;
|
|
9
9
|
};
|
|
10
|
-
export declare const TaxBitDAC7Form: ({
|
|
10
|
+
export declare const TaxBitDAC7Form: ({ data, staging, bearerToken, language, }: TaxBitDAC7FormProps) => React.JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { Locale } from "i18n";
|
|
3
|
-
import {
|
|
3
|
+
import { TaxForm, TaxDocumentation } from "types";
|
|
4
4
|
type TaxBitFormProps = {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
data?: TaxDocumentation;
|
|
6
|
+
staging?: true;
|
|
7
7
|
bearerToken: string;
|
|
8
8
|
language?: Locale;
|
|
9
|
-
|
|
9
|
+
taxForms?: TaxForm[];
|
|
10
10
|
};
|
|
11
|
-
export declare const TaxBitForm: ({
|
|
11
|
+
export declare const TaxBitForm: ({ staging, data, bearerToken, language, taxForms, }: TaxBitFormProps) => React.JSX.Element;
|
|
12
12
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taxbit/react-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "TaxBit Tax Documentation",
|
|
5
5
|
"author": "TaxBit",
|
|
6
6
|
"type": "module",
|
|
@@ -33,8 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"react": "^18.2.0",
|
|
35
35
|
"react-dom": "^18.2.0",
|
|
36
|
-
"react-input-mask": "^2.0.4"
|
|
37
|
-
"@tanstack/react-query": "^4.32.6"
|
|
36
|
+
"react-input-mask": "^2.0.4"
|
|
38
37
|
},
|
|
39
38
|
"devDependencies": {
|
|
40
39
|
"@types/node": "^18.17.0",
|
package/dist/types/Form.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type Form = "W-9" | "W-8BEN" | "W-8BEN-E" | "DAC7";
|