@gusto/embedded-react-sdk 0.5.0 → 0.7.0
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/CHANGELOG.md +157 -0
- package/dist/Company.FederalTaxes-BuTN_7W0.js +50 -0
- package/dist/Company.FederalTaxes-BuTN_7W0.js.map +1 -0
- package/dist/Company.Locations-Cp9h8ZGu.js +74 -0
- package/dist/Company.Locations-Cp9h8ZGu.js.map +1 -0
- package/dist/Company.PaySchedule-CxoupNmN.js +74 -0
- package/dist/Company.PaySchedule-CxoupNmN.js.map +1 -0
- package/dist/index.d.ts +306 -20919
- package/dist/index.js +49644 -90
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +44 -48
- package/dist/B4MFY5CR-CqyfsoVo.js +0 -8837
- package/dist/B4MFY5CR-CqyfsoVo.js.map +0 -1
- package/dist/Company.FederalTaxes-BdJHqgfQ.js +0 -56
- package/dist/Company.FederalTaxes-BdJHqgfQ.js.map +0 -1
- package/dist/Company.PaySchedule-CMS2f4fy.js +0 -12
- package/dist/Company.PaySchedule-CMS2f4fy.js.map +0 -1
- package/dist/HO4MOOFI-2frVA61F.js +0 -34
- package/dist/HO4MOOFI-2frVA61F.js.map +0 -1
- package/dist/HUY7CZI3-sPAWPtuq.js +0 -43
- package/dist/HUY7CZI3-sPAWPtuq.js.map +0 -1
- package/dist/index-CqZomo0U.js +0 -41722
- package/dist/index-CqZomo0U.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,162 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
- Add company federal taxes component
|
|
6
|
+
- Refactor existing components to use generated speakeasy hooks and infrastructure
|
|
7
|
+
- Implement separation of form inputs from react hook form
|
|
8
|
+
|
|
9
|
+
### Breaking changes
|
|
10
|
+
|
|
11
|
+
> Note: We are pre alpha and are regularly iterating on the SDK as we learn more about our consumers and their needs which sometimes involves breaking changes. [Read more about our current versioning strategy here](./docs/04/01/versioning.md).
|
|
12
|
+
|
|
13
|
+
#### Update default values from snake case to camel case
|
|
14
|
+
|
|
15
|
+
For internal consistency in our codebase, we updated the `defaultValues` props for all Employee components from snake case values (ex. `first_name`) to be camel cased instead (ex. `firstName`). For example, where before you would do:
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
<Employee.Profile
|
|
19
|
+
defaultValues={{
|
|
20
|
+
employee: {
|
|
21
|
+
first_name: 'Angela',
|
|
22
|
+
last_name: 'Martin'
|
|
23
|
+
},
|
|
24
|
+
homeAddress: {
|
|
25
|
+
street_1: '123 Fake St'
|
|
26
|
+
}
|
|
27
|
+
}}
|
|
28
|
+
...
|
|
29
|
+
/>
|
|
30
|
+
|
|
31
|
+
// or
|
|
32
|
+
|
|
33
|
+
<Employee.Compensation
|
|
34
|
+
defaultValues={{
|
|
35
|
+
flsa_status: 'Exempt'
|
|
36
|
+
}}
|
|
37
|
+
...
|
|
38
|
+
>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
You would do the following instead::
|
|
42
|
+
|
|
43
|
+
```tsx
|
|
44
|
+
<Employee.Profile
|
|
45
|
+
defaultValues={{
|
|
46
|
+
employee: {
|
|
47
|
+
firstName: 'Angela',
|
|
48
|
+
lastName: 'Martin'
|
|
49
|
+
},
|
|
50
|
+
homeAddress: {
|
|
51
|
+
street1: '123 Fake St'
|
|
52
|
+
}
|
|
53
|
+
}}
|
|
54
|
+
...
|
|
55
|
+
/>
|
|
56
|
+
|
|
57
|
+
// or
|
|
58
|
+
|
|
59
|
+
<Employee.Compensation
|
|
60
|
+
defaultValues={{
|
|
61
|
+
flsaStatus: 'Exempt'
|
|
62
|
+
}}
|
|
63
|
+
...
|
|
64
|
+
>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
#### DocumentSigner has been renamed to DocumentSignerFlow
|
|
68
|
+
|
|
69
|
+
Where you would previously do
|
|
70
|
+
|
|
71
|
+
```tsx
|
|
72
|
+
<Employee.DocumentSigner employeeId="some-id" onEvent={() => {}} />
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
You should update the naming as follows:
|
|
76
|
+
|
|
77
|
+
```tsx
|
|
78
|
+
<Employee.DocumentSignerFlow employeeId="some-id" onEvent={() => {}} />
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## 0.6.0
|
|
82
|
+
|
|
83
|
+
- Allow for default value for flsa_status (employment type field) in compensation
|
|
84
|
+
- The default font that ships with the SDK has been updated to 'Geist' so that will update if you do not have a default font specified in your theme
|
|
85
|
+
- Update company Industry component to use speakeasy
|
|
86
|
+
- Update Employee List component to use speakeasy
|
|
87
|
+
- Add a CalendarDisplay component and introduce it to Company PaySchedule component
|
|
88
|
+
- Add `isSelfOnboardingEnabled` prop to Employee profile components to disallow self onboarding
|
|
89
|
+
- Add company PaySchedule component
|
|
90
|
+
- Add styling to SDK internal error component
|
|
91
|
+
|
|
92
|
+
### Breaking changes
|
|
93
|
+
|
|
94
|
+
> Note: We are pre alpha and are regularly iterating on the SDK as we learn more about our consumers and their needs which sometimes involves breaking changes. [Read more about our current versioning strategy here](./docs/04/01/versioning.md).
|
|
95
|
+
|
|
96
|
+
#### Update GustoApiProvider `baseUrl` property to use an absolute URL
|
|
97
|
+
|
|
98
|
+
Ex. previously you could set a `baseUrl` to a relative URL as follows
|
|
99
|
+
|
|
100
|
+
```ts
|
|
101
|
+
<GustoApiProvider
|
|
102
|
+
config={{
|
|
103
|
+
baseUrl: `some/url/path/`,
|
|
104
|
+
}}
|
|
105
|
+
...
|
|
106
|
+
>
|
|
107
|
+
...
|
|
108
|
+
</GustoApiProvider>
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Moving forward, we require setting an absolute URL. Ex updating to be:
|
|
112
|
+
|
|
113
|
+
```ts
|
|
114
|
+
<GustoApiProvider
|
|
115
|
+
config={{
|
|
116
|
+
baseUrl: `https://api.example.com/some/url/path/`,
|
|
117
|
+
}}
|
|
118
|
+
...
|
|
119
|
+
>
|
|
120
|
+
...
|
|
121
|
+
</GustoApiProvider>
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
#### fontWeight override for typography theme has been changed from `book` to `regular`
|
|
125
|
+
|
|
126
|
+
Ex. so if you were overriding the `fontWeight` property before using `book`
|
|
127
|
+
|
|
128
|
+
```ts
|
|
129
|
+
<GustoApiProvider
|
|
130
|
+
theme={{
|
|
131
|
+
typography: {
|
|
132
|
+
fontWeight: {
|
|
133
|
+
book: 400,
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
}}
|
|
137
|
+
...
|
|
138
|
+
>
|
|
139
|
+
...
|
|
140
|
+
</GustoApiProvider>
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
You will want to update to use `regular` instead as follows
|
|
144
|
+
|
|
145
|
+
```ts
|
|
146
|
+
<GustoApiProvider
|
|
147
|
+
theme={{
|
|
148
|
+
typography: {
|
|
149
|
+
fontWeight: {
|
|
150
|
+
regular: 400,
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
}}
|
|
154
|
+
...
|
|
155
|
+
>
|
|
156
|
+
...
|
|
157
|
+
</GustoApiProvider>
|
|
158
|
+
```
|
|
159
|
+
|
|
3
160
|
## 0.5.0
|
|
4
161
|
|
|
5
162
|
- Update to require proxy to add IP address via `x-gusto-client-ip` header
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const e = "Federal Tax Information", n = "Enter your entity type and the legal name of your company. You can find this info on your <einLink>FEIN assignment form (Form CP575)</einLink>. We need this to file and pay your taxes correctly.", t = "Federal EIN", r = "Your company's Federal Employer Identification Number (EIN). If you don't have one, please <applyLink>apply online.</applyLink>", a = "Taxpayer type", o = "Some common types are Sole Prop, LLC, and S-Corp.", i = "Federal filing form", l = "To learn more about the different Federal Tax Form filings for payroll, please review the <irsLink>IRS website.</irsLink>", p = "Legal entity name", s = "Make sure this is the legal name of the company, not your DBA.", _ = "Legal entity name is required", y = {
|
|
2
|
+
"C-Corporation": "C-Corporation",
|
|
3
|
+
"S-Corporation": "S-Corporation",
|
|
4
|
+
"Sole proprietor": "Sole proprietor",
|
|
5
|
+
LLC: "LLC",
|
|
6
|
+
LLP: "LLP",
|
|
7
|
+
"Limited partnership": "Limited partnership",
|
|
8
|
+
"Co-ownership": "Co-ownership",
|
|
9
|
+
Association: "Association",
|
|
10
|
+
Trusteeship: "Trusteeship",
|
|
11
|
+
"General partnership": "General partnership",
|
|
12
|
+
"Joint venture": "Joint venture",
|
|
13
|
+
"Non-Profit": "Non-Profit"
|
|
14
|
+
}, d = {
|
|
15
|
+
941: "941 - Employer's Quarterly Federal Tax Return",
|
|
16
|
+
944: "944 - Employer's Annual Federal Tax Return"
|
|
17
|
+
}, m = "Continue", f = {
|
|
18
|
+
pageTitle: e,
|
|
19
|
+
entity_type_and_legal_name_intro: n,
|
|
20
|
+
federal_ein_label: t,
|
|
21
|
+
federal_ein_description: r,
|
|
22
|
+
taxpayer_type_label: a,
|
|
23
|
+
taxpayer_type_description: o,
|
|
24
|
+
federal_filing_form_label: i,
|
|
25
|
+
federal_filing_form_description: l,
|
|
26
|
+
legal_entity_name_label: p,
|
|
27
|
+
legal_entity_name_description: s,
|
|
28
|
+
legal_entity_name_error: _,
|
|
29
|
+
taxPayerType: y,
|
|
30
|
+
filingForm: d,
|
|
31
|
+
continueCta: m
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
m as continueCta,
|
|
35
|
+
f as default,
|
|
36
|
+
n as entity_type_and_legal_name_intro,
|
|
37
|
+
r as federal_ein_description,
|
|
38
|
+
t as federal_ein_label,
|
|
39
|
+
l as federal_filing_form_description,
|
|
40
|
+
i as federal_filing_form_label,
|
|
41
|
+
d as filingForm,
|
|
42
|
+
s as legal_entity_name_description,
|
|
43
|
+
_ as legal_entity_name_error,
|
|
44
|
+
p as legal_entity_name_label,
|
|
45
|
+
e as pageTitle,
|
|
46
|
+
y as taxPayerType,
|
|
47
|
+
o as taxpayer_type_description,
|
|
48
|
+
a as taxpayer_type_label
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=Company.FederalTaxes-BuTN_7W0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Company.FederalTaxes-BuTN_7W0.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
const e = "Company addresses", s = "To automate your payroll filings, we need to have your company's accurate addresses. Please enter your mailing and filing addresses and all addresses where you have employees physically working in the United States.", t = "List of company addresses", a = "Addresses", i = "Address status", o = "Filing Address", n = "Mailing Address", l = "Location actions", d = "Edit", r = "No addresses", c = "Once you’ve added addresses they will appear here", p = "+ Add another address", m = "+ Add an address", y = "Add company address", L = "We will need to collect and add any employee’s physical working address in the US including remote employees and employees who work from home", h = "Street 1", b = "Street 2", u = "City", g = "State", C = "Select state...", f = "Zip", A = "Phone number", T = "Address types", v = "Mailing address", w = "This is where you'd like to receive mail. It's usually the same as your filing address.", D = "Filing address", P = "This is your primary physical place of business. It can't be a P.O. Box. The filing address should match the address you have on file with the IRS, which you can find on your federal EIN assignment form (Form CP575). We'll use it for all local, state, and federal filings.", F = "Save", S = "Cancel", k = "Continue", z = {
|
|
2
|
+
street1: "Street address is required",
|
|
3
|
+
city: "Please provide valid city name",
|
|
4
|
+
state: "Please select a state",
|
|
5
|
+
zip: "Please provide valid zip code",
|
|
6
|
+
phone: "Please provide valid phone number"
|
|
7
|
+
}, I = {
|
|
8
|
+
locationsListTitle: e,
|
|
9
|
+
locationsListDescription: s,
|
|
10
|
+
locationListLabel: t,
|
|
11
|
+
locationListCol1: a,
|
|
12
|
+
locationListCol2: i,
|
|
13
|
+
filingAddress: o,
|
|
14
|
+
mailingAddress: n,
|
|
15
|
+
hamburgerTitle: l,
|
|
16
|
+
editCta: d,
|
|
17
|
+
emptyTableTitle: r,
|
|
18
|
+
emptyTableDescription: c,
|
|
19
|
+
addLocationCta: p,
|
|
20
|
+
addFirstLicationCta: m,
|
|
21
|
+
locationFormTitle: y,
|
|
22
|
+
locationFormDescription: L,
|
|
23
|
+
street1Label: h,
|
|
24
|
+
street2Label: b,
|
|
25
|
+
cityLabel: u,
|
|
26
|
+
stateLabel: g,
|
|
27
|
+
statePlaceholder: C,
|
|
28
|
+
zipLabel: f,
|
|
29
|
+
phoneNumberLabel: A,
|
|
30
|
+
addressTypeLabel: T,
|
|
31
|
+
mailingAddressLabel: v,
|
|
32
|
+
mailingAddressDescription: w,
|
|
33
|
+
filingAddressLabel: D,
|
|
34
|
+
filingAddressDescription: P,
|
|
35
|
+
saveCta: F,
|
|
36
|
+
cancelCta: S,
|
|
37
|
+
continueCta: k,
|
|
38
|
+
validations: z
|
|
39
|
+
};
|
|
40
|
+
export {
|
|
41
|
+
m as addFirstLicationCta,
|
|
42
|
+
p as addLocationCta,
|
|
43
|
+
T as addressTypeLabel,
|
|
44
|
+
S as cancelCta,
|
|
45
|
+
u as cityLabel,
|
|
46
|
+
k as continueCta,
|
|
47
|
+
I as default,
|
|
48
|
+
d as editCta,
|
|
49
|
+
c as emptyTableDescription,
|
|
50
|
+
r as emptyTableTitle,
|
|
51
|
+
o as filingAddress,
|
|
52
|
+
P as filingAddressDescription,
|
|
53
|
+
D as filingAddressLabel,
|
|
54
|
+
l as hamburgerTitle,
|
|
55
|
+
L as locationFormDescription,
|
|
56
|
+
y as locationFormTitle,
|
|
57
|
+
a as locationListCol1,
|
|
58
|
+
i as locationListCol2,
|
|
59
|
+
t as locationListLabel,
|
|
60
|
+
s as locationsListDescription,
|
|
61
|
+
e as locationsListTitle,
|
|
62
|
+
n as mailingAddress,
|
|
63
|
+
w as mailingAddressDescription,
|
|
64
|
+
v as mailingAddressLabel,
|
|
65
|
+
A as phoneNumberLabel,
|
|
66
|
+
F as saveCta,
|
|
67
|
+
g as stateLabel,
|
|
68
|
+
C as statePlaceholder,
|
|
69
|
+
h as street1Label,
|
|
70
|
+
b as street2Label,
|
|
71
|
+
z as validations,
|
|
72
|
+
f as zipLabel
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=Company.Locations-Cp9h8ZGu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Company.Locations-Cp9h8ZGu.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
const e = 'Pick what frequency you’d like to run payroll. If you need help, you can read more about <how_to_choose_schedule href="https://gusto.com/resources/articles/payroll/best-payroll-schedule-small-business" target="_blank">how to choose a pay schedule.</how_to_choose_schedule>', t = 'Why do we need to ask for this? We need to know when to pay your employees. Some states have <payment_law_doc href="https://www.dol.gov/agencies/whd/state/payday" target="_blank">laws around when you must pay your employees.</payment_law_doc> Please choose pay schedules that are legal for your employees.', a = "+ Add another pay schedule", o = "Save & continue", s = "Please make sure to verify this information is accurate. If this information isn't correct, it can delay when your team will be paid.", n = {
|
|
2
|
+
name: "Name",
|
|
3
|
+
actions: "Actions",
|
|
4
|
+
active: "Active",
|
|
5
|
+
inactive: "Inactive",
|
|
6
|
+
edit: "Edit"
|
|
7
|
+
}, i = {
|
|
8
|
+
addPaySchedule: "Add pay schedule",
|
|
9
|
+
editPaySchedule: "Edit pay schedule",
|
|
10
|
+
pageTitle: "Set up pay schedule"
|
|
11
|
+
}, c = {
|
|
12
|
+
payfrequency: "Pay frequency",
|
|
13
|
+
frequency: "Frequency",
|
|
14
|
+
deadline: "Deadline to run payroll",
|
|
15
|
+
frequencyOptions: "Frequency Options",
|
|
16
|
+
firstPayDate: "First pay date",
|
|
17
|
+
firstPayPeriodEndDate: "First pay period end date",
|
|
18
|
+
firstPayDayOfTheMonth: "First pay day of the month",
|
|
19
|
+
lastPayDayOfTheMonth: "Last pay day of the month",
|
|
20
|
+
preview: "Preview",
|
|
21
|
+
legend: "Legend"
|
|
22
|
+
}, r = "Loading...", y = {
|
|
23
|
+
frequencyOptionsDescription: "Select the pay days for the month.",
|
|
24
|
+
anchorPayDateDescription: "lease account for the 2 days it will take to process payroll.",
|
|
25
|
+
anchorEndOfPayPeriodDescription: "The last date of the first pay period to help calculate future pay periods. This can be the same date as the first pay date."
|
|
26
|
+
}, d = {
|
|
27
|
+
payPeriod: "Pay period",
|
|
28
|
+
payday: "Payday",
|
|
29
|
+
payrollDeadline: "Run payroll by 1:00PM (PDT) on "
|
|
30
|
+
}, l = {
|
|
31
|
+
cancel: "Cancel",
|
|
32
|
+
save: "Save"
|
|
33
|
+
}, h = {
|
|
34
|
+
everyWeek: "Every week",
|
|
35
|
+
everyOtherWeek: "Every other week",
|
|
36
|
+
twicePerMonth: "Twice per month",
|
|
37
|
+
monthly: "Monthly"
|
|
38
|
+
}, p = {
|
|
39
|
+
"15thAndLast": "15th and Last day of the month",
|
|
40
|
+
custom: "Custom"
|
|
41
|
+
}, u = {
|
|
42
|
+
listDescription: e,
|
|
43
|
+
listDescription2: t,
|
|
44
|
+
addAnotherPayScheduleCta: a,
|
|
45
|
+
saveAndContinueCta: o,
|
|
46
|
+
pleaseVerify: s,
|
|
47
|
+
payScheduleList: n,
|
|
48
|
+
headings: i,
|
|
49
|
+
labels: c,
|
|
50
|
+
loading: r,
|
|
51
|
+
descriptions: y,
|
|
52
|
+
payPreview: d,
|
|
53
|
+
actions: l,
|
|
54
|
+
frequencies: h,
|
|
55
|
+
frequencyOptions: p
|
|
56
|
+
};
|
|
57
|
+
export {
|
|
58
|
+
l as actions,
|
|
59
|
+
a as addAnotherPayScheduleCta,
|
|
60
|
+
u as default,
|
|
61
|
+
y as descriptions,
|
|
62
|
+
h as frequencies,
|
|
63
|
+
p as frequencyOptions,
|
|
64
|
+
i as headings,
|
|
65
|
+
c as labels,
|
|
66
|
+
e as listDescription,
|
|
67
|
+
t as listDescription2,
|
|
68
|
+
r as loading,
|
|
69
|
+
d as payPreview,
|
|
70
|
+
n as payScheduleList,
|
|
71
|
+
s as pleaseVerify,
|
|
72
|
+
o as saveAndContinueCta
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=Company.PaySchedule-CxoupNmN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Company.PaySchedule-CxoupNmN.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|