@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 CHANGED
@@ -233,11 +233,11 @@ type Locale =
233
233
 
234
234
  ```typescript
235
235
  type Progress = {
236
- stepNumber: number;
237
- totalSteps: number;
236
+ language: Locale;
238
237
  percentComplete: number;
239
- stepTitle: string;
240
238
  stepId: string;
241
- language: Locale;
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 './mergeDeep';
10
+ export * from './mergeClientTaxDocumentationData';
11
11
  export * from './snakeCaseKeys';
12
12
  export * from './transformForClient';
13
13
  export * from './transformInbound';
@@ -0,0 +1,2 @@
1
+ import { ClientTaxDocumentation } from '../types/client';
2
+ export declare const mergeClientTaxDocumentationData: (serverData: ClientTaxDocumentation | undefined, clientData: ClientTaxDocumentation | undefined) => ClientTaxDocumentation;
@@ -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;
@@ -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 {};