@gusto/embedded-react-sdk 0.0.5 → 0.0.6

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.
Files changed (36) hide show
  1. package/dist/{STCWXWCR-C2HWmWAx.js → B4MFY5CR-DoQFjw0x.js} +3 -3
  2. package/dist/B4MFY5CR-DoQFjw0x.js.map +1 -0
  3. package/dist/{Employee.Compensation-k6cvnqx0.js → Employee.Compensation-D5dhIZgh.js} +7 -6
  4. package/dist/Employee.Compensation-D5dhIZgh.js.map +1 -0
  5. package/dist/{Employee.Deductions-BKQWMJnY.js → Employee.Deductions-yskR0evJ.js} +40 -38
  6. package/dist/Employee.Deductions-yskR0evJ.js.map +1 -0
  7. package/dist/{Employee.HomeAddress-DR_603p_.js → Employee.HomeAddress-DQ-CWfZA.js} +6 -6
  8. package/dist/Employee.HomeAddress-DQ-CWfZA.js.map +1 -0
  9. package/dist/Employee.Landing-Hpn09zPP.js +22 -0
  10. package/dist/Employee.Landing-Hpn09zPP.js.map +1 -0
  11. package/dist/Employee.OnboardingSummary-BLQS8GZz.js +36 -0
  12. package/dist/Employee.OnboardingSummary-BLQS8GZz.js.map +1 -0
  13. package/dist/Employee.Profile-DTBA-TQA.js +57 -0
  14. package/dist/Employee.Profile-DTBA-TQA.js.map +1 -0
  15. package/dist/{Employee.Taxes-DnOVtPmd.js → Employee.Taxes-DQX-wk0E.js} +8 -8
  16. package/dist/Employee.Taxes-DQX-wk0E.js.map +1 -0
  17. package/dist/{BMGNQTAT-BdHbew7H.js → HO4MOOFI-ObmoeQ5Y.js} +3 -3
  18. package/dist/{BMGNQTAT-BdHbew7H.js.map → HO4MOOFI-ObmoeQ5Y.js.map} +1 -1
  19. package/dist/{UODQIBEW-3KqHTTDo.js → HUY7CZI3-DEEhMfZT.js} +3 -3
  20. package/dist/{UODQIBEW-3KqHTTDo.js.map → HUY7CZI3-DEEhMfZT.js.map} +1 -1
  21. package/dist/{index-CYu59Yku.js → index-DZ5zT4yt.js} +10943 -10336
  22. package/dist/index-DZ5zT4yt.js.map +1 -0
  23. package/dist/index.d.ts +834 -211
  24. package/dist/index.js +44 -43
  25. package/dist/style.css +1 -1
  26. package/package.json +11 -15
  27. package/dist/Employee.Compensation-k6cvnqx0.js.map +0 -1
  28. package/dist/Employee.Deductions-BKQWMJnY.js.map +0 -1
  29. package/dist/Employee.HomeAddress-DR_603p_.js.map +0 -1
  30. package/dist/Employee.OnboardingSummary-BDFFDrV6.js +0 -32
  31. package/dist/Employee.OnboardingSummary-BDFFDrV6.js.map +0 -1
  32. package/dist/Employee.Profile-D0IZW-HV.js +0 -53
  33. package/dist/Employee.Profile-D0IZW-HV.js.map +0 -1
  34. package/dist/Employee.Taxes-DnOVtPmd.js.map +0 -1
  35. package/dist/STCWXWCR-C2HWmWAx.js.map +0 -1
  36. package/dist/index-CYu59Yku.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gusto/embedded-react-sdk",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "module": "./dist/index.js",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -27,7 +27,7 @@
27
27
  "doc": "typedoc",
28
28
  "format": "prettier . --write",
29
29
  "format:check": "prettier . --check",
30
- "i18n:generate": "i18next-resources-for-ts interface -i ./src/i18n/en -o ./src/types/i18nresources.d.ts",
30
+ "i18n:generate": "node ./build/interface.js",
31
31
  "lint": "npm run lint:check -- --fix",
32
32
  "lint:check": "eslint .",
33
33
  "openapi": "npm run openapi:download && npm run openapi:generate",
@@ -36,39 +36,33 @@
36
36
  "pack": "npm run build && npm pack",
37
37
  "prepare": "husky",
38
38
  "prepublishOnly": "npm run build",
39
- "test": "jest",
40
- "test:ci": "jest --coverage",
41
- "test:watch": "npm run test -- --watchAll",
42
- "tsc": "tsc --pretty",
43
- "interface": "i18next-resources-for-ts interface -i ./src/i18n/en -o ./src/types/i18nresources.d.ts"
39
+ "test": "vitest",
40
+ "test:ci": "vitest --coverage",
41
+ "tsc": "tsc --pretty"
44
42
  },
45
43
  "devDependencies": {
46
44
  "@commitlint/cli": "^19.5.0",
47
45
  "@commitlint/config-conventional": "^19.5.0",
48
46
  "@eslint/js": "^9.13.0",
49
47
  "@tanstack/react-query-devtools": "^5.59.15",
50
- "@testing-library/jest-dom": "^6.6.2",
48
+ "@testing-library/jest-dom": "^6.6.3",
51
49
  "@testing-library/react": "^16.0.1",
52
50
  "@types/dompurify": "^3.0.5",
53
- "@types/jest": "^29.5.13",
54
51
  "@types/react": "^18.3.11",
55
52
  "@vitejs/plugin-react-swc": "^3.7.1",
53
+ "@vitest/coverage-v8": "^2.1.8",
56
54
  "eslint": "^9.13.0",
57
55
  "eslint-plugin-jsx-a11y": "^6.10.1",
58
56
  "eslint-plugin-react": "^7.37.2",
57
+ "eslint-plugin-react-hooks": "^5.0.0",
59
58
  "globals": "^15.11.0",
60
59
  "husky": "^9.1.6",
61
60
  "i18next-resources-for-ts": "^1.5.0",
62
- "jest": "^29.7.0",
63
- "jest-environment-jsdom": "^29.7.0",
64
- "jest-fixed-jsdom": "^0.0.6",
65
- "jest-transformer-svg": "^2.0.2",
66
61
  "jsdom": "^25.0.1",
67
62
  "msw": "^2.4.3",
68
63
  "openapi-typescript": "^7.4.1",
69
64
  "prettier": "^3.3.3",
70
65
  "sass-embedded": "^1.80.2",
71
- "ts-jest": "^29.2.5",
72
66
  "ts-node": "^10.9.2",
73
67
  "typedoc": "^0.26.10",
74
68
  "typescript-eslint": "^8.11.0",
@@ -76,7 +70,8 @@
76
70
  "vite-plugin-dts": "^4.3.0",
77
71
  "vite-plugin-sass-dts": "^1.3.29",
78
72
  "vite-plugin-stylelint": "^5.3.1",
79
- "vite-plugin-svgr": "^4.2.0"
73
+ "vite-plugin-svgr": "^4.2.0",
74
+ "vitest": "^2.1.8"
80
75
  },
81
76
  "peerDependencies": {
82
77
  "react": "^18.2.0",
@@ -90,6 +85,7 @@
90
85
  "@internationalized/number": "^3.5.4",
91
86
  "@tanstack/react-query": "^5.59.15",
92
87
  "classnames": "^2.5.1",
88
+ "deepmerge": "^4.3.1",
93
89
  "dompurify": "^3.1.7",
94
90
  "i18next": "^23.11.2",
95
91
  "openapi-fetch": "^0.12.2",
@@ -1 +0,0 @@
1
- {"version":3,"file":"Employee.Compensation-k6cvnqx0.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Employee.Deductions-BKQWMJnY.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Employee.HomeAddress-DR_603p_.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,32 +0,0 @@
1
- const e = "Missing Requirements", t = "Please complete the following steps in order to continue.", o = "That's it! {{name}} is ready to get paid!", s = "We'll begin withholding and reporting their taxes", r = "Return to employees list", n = "Add another employee", i = "New Hire report", d = {
2
- personal_details: "Personal Details",
3
- compensation_details: "Enter compensation details",
4
- add_work_address: "Add work address",
5
- add_home_address: "Add home address",
6
- federal_tax_setup: "Enter federal tax withholdings",
7
- state_tax_setup: "Enter state tax information",
8
- direct_deposit_setup: "Direct deposit setup",
9
- employee_form_signing: "Employee form signing",
10
- file_new_hire_report: "File new hire report"
11
- }, a = {
12
- subTitle: e,
13
- description: t,
14
- onboardedSubtitle: o,
15
- onboardedDescription: s,
16
- returnToEmployeeListCta: r,
17
- addAnotherCta: n,
18
- newHireReportCta: i,
19
- steps: d
20
- };
21
- export {
22
- n as addAnotherCta,
23
- a as default,
24
- t as description,
25
- i as newHireReportCta,
26
- s as onboardedDescription,
27
- o as onboardedSubtitle,
28
- r as returnToEmployeeListCta,
29
- d as steps,
30
- e as subTitle
31
- };
32
- //# sourceMappingURL=Employee.OnboardingSummary-BDFFDrV6.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Employee.OnboardingSummary-BDFFDrV6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
@@ -1,53 +0,0 @@
1
- const e = "Cancel", t = "This information will be used for payroll and taxes, so double-check that it's accurate.", s = "Date of birth", a = "Personal email", i = "Use an email that's not associated with your company.", r = "Legal first name", o = "Employee Form", n = "Legal last name", l = "Middle initial", c = "Preferred first name", d = "Invite this employee to enter their own details online.", m = "Social Security Number (9 digit)", p = "***-**-****", b = "Your employee’s first day of work at your company.", f = "Start date", u = "Continue", w = "Basics", h = {
2
- email: "Valid email is required",
3
- firstName: "First name is required",
4
- lastName: "First name is required",
5
- startDate: "Please select valid start date"
6
- }, k = "Work address", y = "The primary location where the employee will be working.", D = "Select work address...", L = {
7
- cancelCta: e,
8
- description: t,
9
- dobLabel: s,
10
- email: a,
11
- emailDescription: i,
12
- firstName: r,
13
- formTitle: o,
14
- lastName: n,
15
- middleInitial: l,
16
- preferredFirstName: c,
17
- selfOnboardingLabel: d,
18
- ssnLabel: m,
19
- ssnMask: p,
20
- startDateDescription: b,
21
- startDateLabel: f,
22
- submitCta: u,
23
- title: w,
24
- validations: h,
25
- workAddress: k,
26
- workAddressDescription: y,
27
- workAddressPlaceholder: D
28
- };
29
- export {
30
- e as cancelCta,
31
- L as default,
32
- t as description,
33
- s as dobLabel,
34
- a as email,
35
- i as emailDescription,
36
- r as firstName,
37
- o as formTitle,
38
- n as lastName,
39
- l as middleInitial,
40
- c as preferredFirstName,
41
- d as selfOnboardingLabel,
42
- m as ssnLabel,
43
- p as ssnMask,
44
- b as startDateDescription,
45
- f as startDateLabel,
46
- u as submitCta,
47
- w as title,
48
- h as validations,
49
- k as workAddress,
50
- y as workAddressDescription,
51
- D as workAddressPlaceholder
52
- };
53
- //# sourceMappingURL=Employee.Profile-D0IZW-HV.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Employee.Profile-D0IZW-HV.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Employee.Taxes-DnOVtPmd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}