@gusto/embedded-react-sdk 0.0.5 → 0.1.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/dist/{STCWXWCR-C2HWmWAx.js → B4MFY5CR-D8isFb6C.js} +3 -3
- package/dist/B4MFY5CR-D8isFb6C.js.map +1 -0
- package/dist/{Employee.Compensation-k6cvnqx0.js → Employee.Compensation-D5dhIZgh.js} +7 -6
- package/dist/Employee.Compensation-D5dhIZgh.js.map +1 -0
- package/dist/{Employee.Deductions-BKQWMJnY.js → Employee.Deductions-yskR0evJ.js} +40 -38
- package/dist/Employee.Deductions-yskR0evJ.js.map +1 -0
- package/dist/Employee.DocumentSigner-D8JKEl0C.js +42 -0
- package/dist/Employee.DocumentSigner-D8JKEl0C.js.map +1 -0
- package/dist/{Employee.HomeAddress-DR_603p_.js → Employee.HomeAddress-DQ-CWfZA.js} +6 -6
- package/dist/Employee.HomeAddress-DQ-CWfZA.js.map +1 -0
- package/dist/Employee.Landing-Hpn09zPP.js +22 -0
- package/dist/Employee.Landing-Hpn09zPP.js.map +1 -0
- package/dist/Employee.OnboardingSummary-BLQS8GZz.js +36 -0
- package/dist/Employee.OnboardingSummary-BLQS8GZz.js.map +1 -0
- package/dist/Employee.Profile-DTBA-TQA.js +57 -0
- package/dist/Employee.Profile-DTBA-TQA.js.map +1 -0
- package/dist/{Employee.Taxes-DnOVtPmd.js → Employee.Taxes-DQX-wk0E.js} +8 -8
- package/dist/Employee.Taxes-DQX-wk0E.js.map +1 -0
- package/dist/{BMGNQTAT-BdHbew7H.js → HO4MOOFI-MKtO51Gd.js} +3 -3
- package/dist/{BMGNQTAT-BdHbew7H.js.map → HO4MOOFI-MKtO51Gd.js.map} +1 -1
- package/dist/{UODQIBEW-3KqHTTDo.js → HUY7CZI3-REAOJEds.js} +3 -3
- package/dist/{UODQIBEW-3KqHTTDo.js.map → HUY7CZI3-REAOJEds.js.map} +1 -1
- package/dist/{index-CYu59Yku.js → index-CTsjS3wh.js} +12908 -11479
- package/dist/index-CTsjS3wh.js.map +1 -0
- package/dist/index.d.ts +2316 -510
- package/dist/index.js +80 -67
- package/dist/style.css +1 -1
- package/package.json +15 -16
- package/dist/Employee.Compensation-k6cvnqx0.js.map +0 -1
- package/dist/Employee.Deductions-BKQWMJnY.js.map +0 -1
- package/dist/Employee.HomeAddress-DR_603p_.js.map +0 -1
- package/dist/Employee.OnboardingSummary-BDFFDrV6.js +0 -32
- package/dist/Employee.OnboardingSummary-BDFFDrV6.js.map +0 -1
- package/dist/Employee.Profile-D0IZW-HV.js +0 -53
- package/dist/Employee.Profile-D0IZW-HV.js.map +0 -1
- package/dist/Employee.Taxes-DnOVtPmd.js.map +0 -1
- package/dist/STCWXWCR-C2HWmWAx.js.map +0 -1
- 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
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"module": "./dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,55 +20,52 @@
|
|
|
20
20
|
"./CHANGELOG.md"
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
|
-
"build": "npm run build:clean && npm run
|
|
23
|
+
"build": "npm run build:clean && npm run generate && vite build",
|
|
24
24
|
"build:clean": "rm -rf ./dist && mkdir ./dist",
|
|
25
25
|
"commitlint": "commitlint --edit",
|
|
26
26
|
"dev": "npm run build && vite build --watch",
|
|
27
27
|
"doc": "typedoc",
|
|
28
28
|
"format": "prettier . --write",
|
|
29
29
|
"format:check": "prettier . --check",
|
|
30
|
-
"
|
|
30
|
+
"generate": "npm run openapi:generate && npm run i18n:generate",
|
|
31
|
+
"i18n:generate": "node ./build/interface.js",
|
|
31
32
|
"lint": "npm run lint:check -- --fix",
|
|
32
33
|
"lint:check": "eslint .",
|
|
33
34
|
"openapi": "npm run openapi:download && npm run openapi:generate",
|
|
34
35
|
"openapi:download": "node build/getTargetSpecFromReadme.js",
|
|
35
36
|
"openapi:generate": "node build/generateOpenApiFiles.js",
|
|
36
37
|
"pack": "npm run build && npm pack",
|
|
38
|
+
"postversion": "git push",
|
|
37
39
|
"prepare": "husky",
|
|
38
40
|
"prepublishOnly": "npm run build",
|
|
39
|
-
"
|
|
40
|
-
"test
|
|
41
|
-
"test:
|
|
42
|
-
"tsc": "tsc --pretty"
|
|
43
|
-
"interface": "i18next-resources-for-ts interface -i ./src/i18n/en -o ./src/types/i18nresources.d.ts"
|
|
41
|
+
"preversion": "npm test",
|
|
42
|
+
"test": "vitest",
|
|
43
|
+
"test:ci": "vitest --coverage",
|
|
44
|
+
"tsc": "tsc --pretty"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@commitlint/cli": "^19.5.0",
|
|
47
48
|
"@commitlint/config-conventional": "^19.5.0",
|
|
48
49
|
"@eslint/js": "^9.13.0",
|
|
49
50
|
"@tanstack/react-query-devtools": "^5.59.15",
|
|
50
|
-
"@testing-library/jest-dom": "^6.6.
|
|
51
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
51
52
|
"@testing-library/react": "^16.0.1",
|
|
52
53
|
"@types/dompurify": "^3.0.5",
|
|
53
|
-
"@types/jest": "^29.5.13",
|
|
54
54
|
"@types/react": "^18.3.11",
|
|
55
55
|
"@vitejs/plugin-react-swc": "^3.7.1",
|
|
56
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
56
57
|
"eslint": "^9.13.0",
|
|
57
58
|
"eslint-plugin-jsx-a11y": "^6.10.1",
|
|
58
59
|
"eslint-plugin-react": "^7.37.2",
|
|
60
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
59
61
|
"globals": "^15.11.0",
|
|
60
62
|
"husky": "^9.1.6",
|
|
61
63
|
"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
64
|
"jsdom": "^25.0.1",
|
|
67
65
|
"msw": "^2.4.3",
|
|
68
66
|
"openapi-typescript": "^7.4.1",
|
|
69
67
|
"prettier": "^3.3.3",
|
|
70
68
|
"sass-embedded": "^1.80.2",
|
|
71
|
-
"ts-jest": "^29.2.5",
|
|
72
69
|
"ts-node": "^10.9.2",
|
|
73
70
|
"typedoc": "^0.26.10",
|
|
74
71
|
"typescript-eslint": "^8.11.0",
|
|
@@ -76,7 +73,8 @@
|
|
|
76
73
|
"vite-plugin-dts": "^4.3.0",
|
|
77
74
|
"vite-plugin-sass-dts": "^1.3.29",
|
|
78
75
|
"vite-plugin-stylelint": "^5.3.1",
|
|
79
|
-
"vite-plugin-svgr": "^4.2.0"
|
|
76
|
+
"vite-plugin-svgr": "^4.2.0",
|
|
77
|
+
"vitest": "^2.1.8"
|
|
80
78
|
},
|
|
81
79
|
"peerDependencies": {
|
|
82
80
|
"react": "^18.2.0",
|
|
@@ -90,6 +88,7 @@
|
|
|
90
88
|
"@internationalized/number": "^3.5.4",
|
|
91
89
|
"@tanstack/react-query": "^5.59.15",
|
|
92
90
|
"classnames": "^2.5.1",
|
|
91
|
+
"deepmerge": "^4.3.1",
|
|
93
92
|
"dompurify": "^3.1.7",
|
|
94
93
|
"i18next": "^23.11.2",
|
|
95
94
|
"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":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|