@gusto/embedded-react-sdk 0.1.0 → 0.1.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/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ import { FetchOptions } from 'openapi-fetch';
6
6
  import { FetchResponse } from 'openapi-fetch';
7
7
  import { i18n } from 'i18next';
8
8
  import { JSX as JSX_2 } from 'react/jsx-runtime';
9
+ import { QueryClient } from '@tanstack/react-query';
9
10
  import { ReactElement } from 'react';
10
11
  import { ReactNode } from 'react';
11
12
  import { useMutation } from '@tanstack/react-query';
@@ -96,7 +97,8 @@ declare interface CommonComponentInterface {
96
97
 
97
98
  declare namespace Company {
98
99
  export {
99
-
100
+ OnboardingSummary_3 as OnboardingSummary,
101
+ OnboardingSummaryContextual_2 as OnboardingSummaryContextual
100
102
  }
101
103
  }
102
104
  export { Company }
@@ -133,6 +135,7 @@ declare type CompensationOutputs = v.InferOutput<typeof CompensationSchema>;
133
135
 
134
136
  declare interface CompensationProps extends CommonComponentInterface {
135
137
  employeeId: string;
138
+ startDate: string;
136
139
  defaultValues?: Pick<Schemas['Job'], 'rate' | 'title' | 'payment_unit'>;
137
140
  }
138
141
 
@@ -164,7 +167,7 @@ declare const CompensationSchema: v.IntersectSchema<[v.ObjectSchema<{
164
167
  readonly rate: v.SchemaWithPipe<[v.LiteralSchema<0, undefined>, v.TransformAction<any, string>]>;
165
168
  }, undefined>], undefined>], undefined>;
166
169
 
167
- declare const componentEvents: {
170
+ export declare const componentEvents: {
168
171
  readonly COMPANY_ADDRESSES: "company/addresses";
169
172
  readonly COMPANY_ADDRESSE_EDIT: "company/address/edit";
170
173
  readonly COMPANY_INDUSTRY: "company/industry";
@@ -205,6 +208,7 @@ declare const componentEvents: {
205
208
  readonly EMPLOYEE_SPLIT_PAYCHECK: "employee/bankAccount/split";
206
209
  readonly EMPLOYEE_JOB_CREATED: "employee/job/created";
207
210
  readonly EMPLOYEE_JOB_UPDATED: "employee/job/updated";
211
+ readonly EMPLOYEE_JOB_DELETED: "employee/job/deleted";
208
212
  readonly EMPLOYEE_SUMMARY_VIEW: "employee/summary";
209
213
  readonly EMPLOYEES_LIST: "company/employees";
210
214
  readonly EMPLOYEE_SELF_ONBOARDING_START: "employee/selfOnboarding/start";
@@ -4892,6 +4896,7 @@ export declare interface EmployeeOnboardingContextInterface extends FlowContextI
4892
4896
  companyId: string;
4893
4897
  employeeId?: string;
4894
4898
  isAdmin?: boolean;
4899
+ startDate?: string;
4895
4900
  paymentMethod?: Schemas['Employee-Payment-Method'];
4896
4901
  }
4897
4902
 
@@ -5136,10 +5141,11 @@ declare interface GThemeTypography {
5136
5141
  }
5137
5142
  }
5138
5143
 
5139
- export declare function GustoApiContextProvider({ children, context, }: {
5144
+ export declare function GustoApiContextProvider({ children, context, queryClient, }: {
5140
5145
  context: {
5141
5146
  GustoClient: GustoClient;
5142
5147
  };
5148
+ queryClient?: QueryClient;
5143
5149
  children: React.ReactNode;
5144
5150
  }): JSX_2.Element;
5145
5151
 
@@ -5151,6 +5157,7 @@ export declare interface GustoApiProps {
5151
5157
  currency?: string;
5152
5158
  theme?: DeepPartial<GTheme>;
5153
5159
  children?: default_3.ReactNode;
5160
+ queryClient?: QueryClient;
5154
5161
  }
5155
5162
 
5156
5163
  export declare const GustoApiProvider: default_3.FC<GustoApiProps>;
@@ -6615,7 +6622,7 @@ declare function Landing_2(props: SummaryProps_2 & BaseComponentInterface): JSX_
6615
6622
 
6616
6623
  declare type MODE = 'ADD' | 'LIST' | 'INITIAL' | 'EDIT';
6617
6624
 
6618
- declare type MODE_2 = 'LIST' | 'EDIT' | 'ADD' | 'SINGLE' | 'PROCEED';
6625
+ declare type MODE_2 = 'LIST' | 'ADD_ADDITIONAL_JOB' | 'ADD_INITIAL_JOB' | 'EDIT_ADDITIONAL_JOB' | 'EDIT_INITIAL_JOB' | 'PROCEED';
6619
6626
 
6620
6627
  declare type MODE_3 = 'ADD' | 'LIST' | 'SPLIT' | 'INITIAL';
6621
6628
 
@@ -6627,8 +6634,12 @@ export declare function OnboardingSummary(): JSX_2.Element;
6627
6634
 
6628
6635
  declare function OnboardingSummary_2(props: SummaryProps & BaseComponentInterface): JSX_2.Element;
6629
6636
 
6637
+ declare function OnboardingSummary_3(): JSX_2.Element;
6638
+
6630
6639
  declare const OnboardingSummaryContextual: () => JSX_2.Element;
6631
6640
 
6641
+ declare function OnboardingSummaryContextual_2(): JSX_2.Element;
6642
+
6632
6643
  declare type OnError = Parameters<typeof useMutation>[0]['onError'];
6633
6644
 
6634
6645
  declare type OnEventType<K, T> = (type: K, data?: T) => void;
@@ -20065,6 +20076,8 @@ export interface EmployeeCompensation{
20065
20076
  "saveNewJobCta":string;
20066
20077
  "submitCta":string;
20067
20078
  "title":string;
20079
+ "editTitle":string;
20080
+ "addTitle":string;
20068
20081
  "validations":{
20069
20082
  "classificationChangeNotification":string;
20070
20083
  "exemptThreshold":string;
@@ -20290,6 +20303,7 @@ export interface EmployeeProfile{
20290
20303
  "firstName":string;
20291
20304
  "lastName":string;
20292
20305
  "startDate":string;
20306
+ "startDateOutOfRange":string;
20293
20307
  }
20294
20308
  "workAddress":string;
20295
20309
  "workAddressDescription":string;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aV as s, aX as o, b5 as t, aW as u, a$ as m, b0 as p, W as d, b7 as l, X as y, b1 as n, b6 as r, b4 as E, b2 as i, aZ as G, aY as C, b8 as b, b3 as A, b9 as c, ba as P, aU as S, ax as U, av as x, al as D, aq as T, a7 as h, a6 as k, a1 as F, aH as g, aE as B, af as H, a2 as L, az as W, am as J, aG as O, ar as f, a_ as v, aO as w, Y as I, _ as R, a9 as M, ab as q, a4 as K, a3 as X, Z as Y, at as Z, ag as _, aw as j, as as z, aJ as N, aP as Q, aj as V, ai as $, aD as ee, aC as ae, aN as se, aA as oe, aL as te, ao as ue, an as me, a0 as pe, aS as de, ae as le, aT as ye, aR as ne, ad as re, a8 as Ee, aQ as ie, bb as Ge, aa as Ce, ac as be, a5 as Ae, au as ce, ah as Pe, ay as Se, aI as Ue, aK as xe, ak as De, aF as Te, aB as he, aM as ke, ap as Fe } from "./index-CTsjS3wh.js";
1
+ import { aW as s, aY as o, b6 as t, aX as u, b0 as m, b1 as p, W as d, b9 as l, Y as y, b2 as n, b7 as r, b5 as E, b3 as i, a_ as G, aZ as b, b8 as C, b4 as c, ba as A, bb as P, X as S, aV as U, ay as x, aw as D, am as T, ar as h, a8 as k, a7 as F, a2 as g, aI as B, aF as H, ag as L, a3 as W, aA as v, an as J, aH as O, as as f, a$ as w, aP as I, Z as R, a0 as M, aa as q, ac as K, a5 as X, a4 as Y, _ as Z, au as _, ah as j, ax as z, at as N, aK as Q, aQ as V, ak as $, aj as ee, aE as ae, aD as se, aO as oe, aB as te, aM as ue, ap as me, ao as pe, a1 as de, aT as le, af as ye, aU as ne, aS as re, ae as Ee, a9 as ie, aR as Ge, bc as be, ab as Ce, ad as ce, a6 as Ae, av as Pe, ai as Se, az as Ue, aJ as xe, aL as De, al as Te, aG as he, aC as ke, aN as Fe, aq as ge } from "./index-DifV7WRe.js";
2
2
  export {
3
3
  s as ApiError,
4
4
  o as Company,
@@ -14,72 +14,73 @@ export {
14
14
  E as PaymentMethod,
15
15
  i as Profile,
16
16
  G as ReorderableItem,
17
- C as ReorderableList,
18
- b as SDKI18next,
19
- A as Taxes,
20
- c as ThemeContext,
17
+ b as ReorderableList,
18
+ C as SDKI18next,
19
+ c as Taxes,
20
+ A as ThemeContext,
21
21
  P as ThemeProvider,
22
- S as handleResponse,
23
- U as useAddEmployeeBankAccount,
24
- x as useAddEmployeeDeduction,
25
- D as useAddEmployeeHomeAddress,
26
- T as useAddEmployeeWorkAddress,
27
- h as useCreateCompanyBankAccount,
28
- k as useCreateCompanyLocation,
29
- F as useCreateEmployee,
30
- g as useCreateEmployeeCompensation,
31
- B as useCreateEmployeeJob,
32
- H as useCreatePaySchedule,
33
- L as useDeleteEmployee,
34
- W as useDeleteEmployeeBankAccount,
22
+ S as componentEvents,
23
+ U as handleResponse,
24
+ x as useAddEmployeeBankAccount,
25
+ D as useAddEmployeeDeduction,
26
+ T as useAddEmployeeHomeAddress,
27
+ h as useAddEmployeeWorkAddress,
28
+ k as useCreateCompanyBankAccount,
29
+ F as useCreateCompanyLocation,
30
+ g as useCreateEmployee,
31
+ B as useCreateEmployeeCompensation,
32
+ H as useCreateEmployeeJob,
33
+ L as useCreatePaySchedule,
34
+ W as useDeleteEmployee,
35
+ v as useDeleteEmployeeBankAccount,
35
36
  J as useDeleteEmployeeHomeAddress,
36
37
  O as useDeleteEmployeeJob,
37
38
  f as useDeleteEmployeeWorkAddress,
38
- v as useFlow,
39
- w as useGetAllEmployeeForms,
40
- I as useGetCompany,
41
- R as useGetCompanyAddresses,
42
- M as useGetCompanyFederalTaxes,
43
- q as useGetCompanyIndustry,
44
- K as useGetCompanyLocation,
45
- X as useGetCompanyLocations,
46
- Y as useGetCompanyOnboardingStatus,
47
- Z as useGetDeduction,
48
- _ as useGetEmployee,
49
- j as useGetEmployeeBankAccounts,
50
- z as useGetEmployeeDeductions,
51
- N as useGetEmployeeFederalTaxes,
52
- Q as useGetEmployeeFormPdf,
53
- V as useGetEmployeeHomeAddress,
54
- $ as useGetEmployeeHomeAddresses,
55
- ee as useGetEmployeeJob,
56
- ae as useGetEmployeeJobs,
57
- se as useGetEmployeeOnboardingStatus,
58
- oe as useGetEmployeePaymentMethod,
59
- te as useGetEmployeeStateTaxes,
60
- ue as useGetEmployeeWorkAddress,
61
- me as useGetEmployeeWorkAddresses,
62
- pe as useGetEmployeesByCompany,
63
- de as useGetHistoricalPayrolls,
64
- le as useGetPaySchedulesByCompany,
65
- ye as useGetPayroll,
66
- ne as useGetPendingPayrolls,
67
- re as useGetStateTaxRequirements,
68
- Ee as usePaySchedulePreview,
69
- ie as useSignEmployeeForm,
70
- Ge as useTheme,
39
+ w as useFlow,
40
+ I as useGetAllEmployeeForms,
41
+ R as useGetCompany,
42
+ M as useGetCompanyAddresses,
43
+ q as useGetCompanyFederalTaxes,
44
+ K as useGetCompanyIndustry,
45
+ X as useGetCompanyLocation,
46
+ Y as useGetCompanyLocations,
47
+ Z as useGetCompanyOnboardingStatus,
48
+ _ as useGetDeduction,
49
+ j as useGetEmployee,
50
+ z as useGetEmployeeBankAccounts,
51
+ N as useGetEmployeeDeductions,
52
+ Q as useGetEmployeeFederalTaxes,
53
+ V as useGetEmployeeFormPdf,
54
+ $ as useGetEmployeeHomeAddress,
55
+ ee as useGetEmployeeHomeAddresses,
56
+ ae as useGetEmployeeJob,
57
+ se as useGetEmployeeJobs,
58
+ oe as useGetEmployeeOnboardingStatus,
59
+ te as useGetEmployeePaymentMethod,
60
+ ue as useGetEmployeeStateTaxes,
61
+ me as useGetEmployeeWorkAddress,
62
+ pe as useGetEmployeeWorkAddresses,
63
+ de as useGetEmployeesByCompany,
64
+ le as useGetHistoricalPayrolls,
65
+ ye as useGetPaySchedulesByCompany,
66
+ ne as useGetPayroll,
67
+ re as useGetPendingPayrolls,
68
+ Ee as useGetStateTaxRequirements,
69
+ ie as usePaySchedulePreview,
70
+ Ge as useSignEmployeeForm,
71
+ be as useTheme,
71
72
  Ce as useUpdateCompanyFederalTaxes,
72
- be as useUpdateCompanyIndustry,
73
+ ce as useUpdateCompanyIndustry,
73
74
  Ae as useUpdateCompanyLocation,
74
- ce as useUpdateDeduction,
75
- Pe as useUpdateEmployee,
76
- Se as useUpdateEmployeeBankAccount,
77
- Ue as useUpdateEmployeeCompensation,
78
- xe as useUpdateEmployeeFederalTaxes,
79
- De as useUpdateEmployeeHomeAddress,
80
- Te as useUpdateEmployeeJob,
81
- he as useUpdateEmployeePaymentMethod,
82
- ke as useUpdateEmployeeStateTaxes,
83
- Fe as useUpdateEmployeeWorkAddress
75
+ Pe as useUpdateDeduction,
76
+ Se as useUpdateEmployee,
77
+ Ue as useUpdateEmployeeBankAccount,
78
+ xe as useUpdateEmployeeCompensation,
79
+ De as useUpdateEmployeeFederalTaxes,
80
+ Te as useUpdateEmployeeHomeAddress,
81
+ he as useUpdateEmployeeJob,
82
+ ke as useUpdateEmployeePaymentMethod,
83
+ Fe as useUpdateEmployeeStateTaxes,
84
+ ge as useUpdateEmployeeWorkAddress
84
85
  };
85
86
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gusto/embedded-react-sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "module": "./dist/index.js",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -50,6 +50,7 @@
50
50
  "@tanstack/react-query-devtools": "^5.59.15",
51
51
  "@testing-library/jest-dom": "^6.6.3",
52
52
  "@testing-library/react": "^16.0.1",
53
+ "@testing-library/user-event": "^14.5.2",
53
54
  "@types/dompurify": "^3.0.5",
54
55
  "@types/react": "^18.3.11",
55
56
  "@vitejs/plugin-react-swc": "^3.7.1",
@@ -1 +0,0 @@
1
- {"version":3,"file":"Employee.Compensation-D5dhIZgh.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Employee.Profile-DTBA-TQA.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}