@gusto/embedded-react-sdk 0.6.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 CHANGED
@@ -1,5 +1,83 @@
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
+
3
81
  ## 0.6.0
4
82
 
5
83
  - Allow for default value for flsa_status (employment type field) in compensation
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}