@taxbit/react-sdk 0.4.0 → 0.4.1
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 +4 -4
- package/dist/src/test/utils/helpers.d.ts +13 -0
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/mergeClientTaxDocumentationData.d.ts +2 -0
- package/dist/src/widgets/TaxBitForm/TaxBitDAC7Form.d.ts +1 -1
- package/dist/src/widgets/TaxBitForm/__tests__/TaxBitDAC7Form.loaded.test.d.ts +0 -0
- package/dist/src/widgets/TaxBitForm/__tests__/TaxBitForm.loaded.test.d.ts +0 -0
- package/dist/src/widgets/TaxBitForm/__tests__/TaxBitForm.loading.test.d.ts +0 -0
- package/dist/src/widgets/TaxBitForm/useTaxBitForm.d.ts +10 -0
- package/dist/src/wizard/TaxBitFormUI/__tests__/TaxBitDAC7FormUI.test.d.ts +0 -0
- package/dist/taxbit-react-sdk.js +902 -861
- package/dist/taxbit-react-sdk.umd.cjs +9 -9
- package/package.json +1 -1
- package/dist/src/utils/mergeDeep.d.ts +0 -1
package/README.md
CHANGED
|
@@ -233,11 +233,11 @@ type Locale =
|
|
|
233
233
|
|
|
234
234
|
```typescript
|
|
235
235
|
type Progress = {
|
|
236
|
-
|
|
237
|
-
totalSteps: number;
|
|
236
|
+
language: Locale;
|
|
238
237
|
percentComplete: number;
|
|
239
|
-
stepTitle: string;
|
|
240
238
|
stepId: string;
|
|
241
|
-
|
|
239
|
+
stepNumber: number;
|
|
240
|
+
stepTitle: string;
|
|
241
|
+
totalSteps: number;
|
|
242
242
|
};
|
|
243
243
|
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const expectRowError: (prompt: string) => void;
|
|
2
|
+
export declare const expectNoRowError: (prompt: string) => void;
|
|
3
|
+
export declare const expectText: (text: string, length?: number) => void;
|
|
4
|
+
export declare const expectNullInput: (ariaLabel: string) => void;
|
|
5
|
+
export declare const expectInputValue: (ariaLabel: string, value: string) => void;
|
|
6
|
+
export declare const clickLabel: (ariaLabel: string) => void;
|
|
7
|
+
export declare const changeInput: (ariaLabel: string, value: string) => void;
|
|
8
|
+
export declare const clickInput: (ariaLabel: string) => void;
|
|
9
|
+
export declare const clickBack: () => void;
|
|
10
|
+
export declare const clickNext: () => void;
|
|
11
|
+
export declare const clickAddAdditionalResidence: () => void;
|
|
12
|
+
export declare const setBusinessNameAndAddress: () => void;
|
|
13
|
+
export declare const setIndividualNameAndAddress: () => void;
|
|
@@ -7,7 +7,7 @@ export * from './getMonthlyDayCount';
|
|
|
7
7
|
export * from './getPromptKeyMap';
|
|
8
8
|
export * from './isBlank';
|
|
9
9
|
export * from './kebabCase';
|
|
10
|
-
export * from './
|
|
10
|
+
export * from './mergeClientTaxDocumentationData';
|
|
11
11
|
export * from './snakeCaseKeys';
|
|
12
12
|
export * from './transformForClient';
|
|
13
13
|
export * from './transformInbound';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { TaxBitFormProps } from './TaxBitForm';
|
|
3
3
|
export type TaxBitDAC7FormProps = Omit<TaxBitFormProps, 'taxForms'>;
|
|
4
|
-
export declare const TaxBitDAC7Form: ({ data, staging, bearerToken, language, onSubmit, onSuccess, }: TaxBitDAC7FormProps) => React.JSX.Element;
|
|
4
|
+
export declare const TaxBitDAC7Form: ({ data, staging, bearerToken, language, onSubmit, onProgress, onSuccess, }: TaxBitDAC7FormProps) => React.JSX.Element;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClientTaxDocumentation } from '../../types/client';
|
|
2
|
+
import { TaxBitFormProps } from './TaxBitForm.tsx';
|
|
3
|
+
type UseTaxBitFormProps = Exclude<TaxBitFormProps, 'language'>;
|
|
4
|
+
export declare const useTaxBitForm: ({ bearerToken, data, onSubmit, onSuccess, staging, }: UseTaxBitFormProps) => {
|
|
5
|
+
handleOnSubmit: (data: ClientTaxDocumentation) => Promise<void>;
|
|
6
|
+
formData: ClientTaxDocumentation | undefined;
|
|
7
|
+
isComplete: boolean;
|
|
8
|
+
isLoading: boolean;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
File without changes
|