@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/{B4MFY5CR-D8isFb6C.js → B4MFY5CR-DbAkgRf2.js} +2 -2
- package/dist/{B4MFY5CR-D8isFb6C.js.map → B4MFY5CR-DbAkgRf2.js.map} +1 -1
- package/dist/{Employee.Compensation-D5dhIZgh.js → Employee.Compensation-OoWTM-1y.js} +15 -11
- package/dist/Employee.Compensation-OoWTM-1y.js.map +1 -0
- package/dist/{Employee.Profile-DTBA-TQA.js → Employee.Profile-u_Zt7QkR.js} +15 -14
- package/dist/Employee.Profile-u_Zt7QkR.js.map +1 -0
- package/dist/{HO4MOOFI-MKtO51Gd.js → HO4MOOFI-DC9xJXAO.js} +3 -3
- package/dist/{HO4MOOFI-MKtO51Gd.js.map → HO4MOOFI-DC9xJXAO.js.map} +1 -1
- package/dist/{HUY7CZI3-REAOJEds.js → HUY7CZI3-_EKhPi75.js} +3 -3
- package/dist/{HUY7CZI3-REAOJEds.js.map → HUY7CZI3-_EKhPi75.js.map} +1 -1
- package/dist/{index-CTsjS3wh.js → index-DifV7WRe.js} +8248 -8148
- package/dist/index-DifV7WRe.js.map +1 -0
- package/dist/index.d.ts +18 -4
- package/dist/index.js +63 -62
- package/package.json +2 -1
- package/dist/Employee.Compensation-D5dhIZgh.js.map +0 -1
- package/dist/Employee.Profile-DTBA-TQA.js.map +0 -1
- package/dist/index-CTsjS3wh.js.map +0 -1
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' | '
|
|
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 {
|
|
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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
b as ReorderableList,
|
|
18
|
+
C as SDKI18next,
|
|
19
|
+
c as Taxes,
|
|
20
|
+
A as ThemeContext,
|
|
21
21
|
P as ThemeProvider,
|
|
22
|
-
S as
|
|
23
|
-
U as
|
|
24
|
-
x as
|
|
25
|
-
D as
|
|
26
|
-
T as
|
|
27
|
-
h as
|
|
28
|
-
k as
|
|
29
|
-
F as
|
|
30
|
-
g as
|
|
31
|
-
B as
|
|
32
|
-
H as
|
|
33
|
-
L as
|
|
34
|
-
W as
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
73
|
+
ce as useUpdateCompanyIndustry,
|
|
73
74
|
Ae as useUpdateCompanyLocation,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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.
|
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|