@gusto/embedded-react-sdk 0.9.0 → 0.10.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/CHANGELOG.md +86 -2
- package/dist/components/Base/Base.d.ts +1 -1
- package/dist/components/Base/Base.js +39 -40
- package/dist/components/Base/Base.js.map +1 -1
- package/dist/components/Common/OnboardingStatusBadge/index.d.ts +21 -0
- package/dist/components/Common/OnboardingStatusBadge/index.js +17 -0
- package/dist/components/Common/OnboardingStatusBadge/index.js.map +1 -0
- package/dist/components/Common/TaxInputs/TaxInputs.js +42 -36
- package/dist/components/Common/TaxInputs/TaxInputs.js.map +1 -1
- package/dist/components/Contractor/Address/Form.js +4 -12
- package/dist/components/Contractor/Address/Form.js.map +1 -1
- package/dist/components/Contractor/List/index.d.ts +25 -0
- package/dist/components/Contractor/List/index.js +84 -0
- package/dist/components/Contractor/List/index.js.map +1 -0
- package/dist/components/Contractor/List/useContractorList.d.ts +20 -0
- package/dist/components/Contractor/List/useContractorList.js +31 -0
- package/dist/components/Contractor/List/useContractorList.js.map +1 -0
- package/dist/components/Contractor/NewHireReport/NewHireReport.d.ts +21 -0
- package/dist/components/Contractor/NewHireReport/NewHireReport.js +111 -0
- package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -0
- package/dist/components/Contractor/NewHireReport/types.d.ts +4 -0
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.d.ts +2 -0
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +52 -0
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -0
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.d.ts +31 -0
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +116 -0
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -0
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.d.ts +11 -0
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +35 -0
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -0
- package/dist/components/Contractor/PaymentMethod/types.d.ts +8 -0
- package/dist/components/Contractor/index.d.ts +3 -0
- package/dist/components/Contractor/index.js +8 -2
- package/dist/components/Contractor/index.js.map +1 -1
- package/dist/components/Employee/Compensation/Edit.js +59 -56
- package/dist/components/Employee/Compensation/Edit.js.map +1 -1
- package/dist/components/Employee/Compensation/useCompensation.d.ts +2 -0
- package/dist/components/Employee/Compensation/useCompensation.js +16 -14
- package/dist/components/Employee/Compensation/useCompensation.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionForm.js +11 -3
- package/dist/components/Employee/Deductions/DeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/Deductions.js +25 -25
- package/dist/components/Employee/Deductions/Deductions.js.map +1 -1
- package/dist/components/Employee/EmployeeList/List.js +56 -51
- package/dist/components/Employee/EmployeeList/List.js.map +1 -1
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +48 -43
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/PaymentMethod.js +3 -4
- package/dist/components/Employee/PaymentMethod/PaymentMethod.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +1 -1
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/Split.js +88 -76
- package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.d.ts +2 -2
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +29 -25
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
- package/dist/components/Employee/Profile/AdminPersonalDetails.d.ts +49 -20
- package/dist/components/Employee/Profile/AdminPersonalDetails.js +27 -25
- package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +1 -1
- package/dist/components/Employee/Profile/Profile.js +135 -129
- package/dist/components/Employee/Profile/Profile.js.map +1 -1
- package/dist/components/Employee/Taxes/StateForm.d.ts +1 -1
- package/dist/components/Employee/Taxes/StateForm.js +27 -25
- package/dist/components/Employee/Taxes/StateForm.js.map +1 -1
- package/dist/components/Employee/Taxes/Taxes.d.ts +1 -1
- package/dist/components/Employee/Taxes/Taxes.js +77 -73
- package/dist/components/Employee/Taxes/Taxes.js.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/i18n/I18n.js +17 -17
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Contractor.ContractorList.json.js +25 -0
- package/dist/i18n/en/Contractor.ContractorList.json.js.map +1 -0
- package/dist/i18n/en/Contractor.NewHireReport.json.js +24 -0
- package/dist/i18n/en/Contractor.NewHireReport.json.js.map +1 -0
- package/dist/i18n/en/Contractor.PaymentMethod.json.js +35 -0
- package/dist/i18n/en/Contractor.PaymentMethod.json.js.map +1 -0
- package/dist/i18n/en/Employee.Compensation.json.js +22 -20
- package/dist/i18n/en/Employee.Compensation.json.js.map +1 -1
- package/dist/i18n/en/Employee.PaymentMethod.json.js +18 -17
- package/dist/i18n/en/Employee.PaymentMethod.json.js.map +1 -1
- package/dist/i18n/en/common.json.d.ts +21 -9
- package/dist/i18n/en/common.json.js +35 -23
- package/dist/i18n/en/common.json.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/shared/constants.d.ts +18 -0
- package/dist/shared/constants.js +28 -15
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/i18next.d.ts +64 -1
- package/package.json +4 -3
- package/dist/components/Employee/PaymentMethod/Constants.d.ts +0 -8
- package/dist/components/Employee/PaymentMethod/Constants.js +0 -6
- package/dist/components/Employee/PaymentMethod/Constants.js.map +0 -1
package/dist/types/i18next.d.ts
CHANGED
|
@@ -369,6 +369,54 @@ export interface ContractorAddress{
|
|
|
369
369
|
"zip":string;
|
|
370
370
|
};
|
|
371
371
|
};
|
|
372
|
+
export interface ContractorContractorList{
|
|
373
|
+
"addContractorCTA":string;
|
|
374
|
+
"addAnotherCTA":string;
|
|
375
|
+
"contractorListLabel":string;
|
|
376
|
+
"editCTA":string;
|
|
377
|
+
"emptyTableDescription":string;
|
|
378
|
+
"emptyTableTitle":string;
|
|
379
|
+
"listHeaders":{
|
|
380
|
+
"name":string;
|
|
381
|
+
"status":string;
|
|
382
|
+
};
|
|
383
|
+
"title":string;
|
|
384
|
+
};
|
|
385
|
+
export interface ContractorNewHireReport{
|
|
386
|
+
"title":string;
|
|
387
|
+
"description":string;
|
|
388
|
+
"doFileLegend":string;
|
|
389
|
+
"yesOption":string;
|
|
390
|
+
"noOption":string;
|
|
391
|
+
"stateSelectionLabel":string;
|
|
392
|
+
"submitCta":string;
|
|
393
|
+
"validations":{
|
|
394
|
+
"state":string;
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
export interface ContractorPaymentMethod{
|
|
398
|
+
"title":string;
|
|
399
|
+
"paymentFieldsetLegend":string;
|
|
400
|
+
"directDepositLabel":string;
|
|
401
|
+
"directDepositDescription":string;
|
|
402
|
+
"checkLabel":string;
|
|
403
|
+
"checkDescription":string;
|
|
404
|
+
"continueCta":string;
|
|
405
|
+
"bankAccountForm":{
|
|
406
|
+
"nameLabel":string;
|
|
407
|
+
"routingNumberLabel":string;
|
|
408
|
+
"routingNumberDescription":string;
|
|
409
|
+
"accountNumberLabel":string;
|
|
410
|
+
"accountTypeLabel":string;
|
|
411
|
+
"accountTypeChecking":string;
|
|
412
|
+
"accountTypeSavings":string;
|
|
413
|
+
"validations":{
|
|
414
|
+
"accountName":string;
|
|
415
|
+
"routingNumber":string;
|
|
416
|
+
"accountNumber":string;
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
};
|
|
372
420
|
export interface EmployeeBankAccount{
|
|
373
421
|
"accountNumberLabel":string;
|
|
374
422
|
"accountTypeChecking":string;
|
|
@@ -437,6 +485,8 @@ export interface EmployeeCompensation{
|
|
|
437
485
|
"exemptThreshold":string;
|
|
438
486
|
"paymentUnit":string;
|
|
439
487
|
"rate":string;
|
|
488
|
+
"nonZeroRate":string;
|
|
489
|
+
"rateExemptThreshold":string;
|
|
440
490
|
"title":string;
|
|
441
491
|
"minimumWage":string;
|
|
442
492
|
"stateWcClassCode":string;
|
|
@@ -660,6 +710,7 @@ export interface EmployeePaymentMethod{
|
|
|
660
710
|
"priority_other":string;
|
|
661
711
|
"validations":{
|
|
662
712
|
"percentageError":string;
|
|
713
|
+
"percentageErrorWithTotal":string;
|
|
663
714
|
"amountError":string;
|
|
664
715
|
"accountName":string;
|
|
665
716
|
"routingNumber":string;
|
|
@@ -813,9 +864,20 @@ export interface common{
|
|
|
813
864
|
"menuLabel":string;
|
|
814
865
|
};
|
|
815
866
|
"onboardingStatus":{
|
|
867
|
+
"contractor":{
|
|
816
868
|
"undefined":string;
|
|
869
|
+
"admin_onboarding_incomplete":string;
|
|
870
|
+
"admin_onboarding_review":string;
|
|
817
871
|
"onboarding_completed":string;
|
|
872
|
+
"self_onboarding_not_invited":string;
|
|
873
|
+
"self_onboarding_invited":string;
|
|
874
|
+
"self_onboarding_started":string;
|
|
875
|
+
"self_onboarding_review":string;
|
|
876
|
+
};
|
|
877
|
+
"employee":{
|
|
878
|
+
"undefined":string;
|
|
818
879
|
"admin_onboarding_incomplete":string;
|
|
880
|
+
"onboarding_completed":string;
|
|
819
881
|
"self_onboarding_pending_invite":string;
|
|
820
882
|
"self_onboarding_invited":string;
|
|
821
883
|
"self_onboarding_invited_started":string;
|
|
@@ -823,6 +885,7 @@ export interface common{
|
|
|
823
885
|
"self_onboarding_completed_by_employee":string;
|
|
824
886
|
"self_onboarding_awaiting_admin_review":string;
|
|
825
887
|
};
|
|
888
|
+
};
|
|
826
889
|
"inputs":{
|
|
827
890
|
"ssn":{
|
|
828
891
|
"placeholder":string;
|
|
@@ -931,6 +994,6 @@ export interface common{
|
|
|
931
994
|
|
|
932
995
|
interface CustomTypeOptions {
|
|
933
996
|
defaultNS: 'common';
|
|
934
|
-
resources: { 'Company.AddBank': CompanyAddBank, 'Company.Addresses': CompanyAddresses, 'Company.AssignSignatory': CompanyAssignSignatory, 'Company.BankAccount': CompanyBankAccount, 'Company.DocumentList': CompanyDocumentList, 'Company.FederalTaxes': CompanyFederalTaxes, 'Company.Industry': CompanyIndustry, 'Company.Locations': CompanyLocations, 'Company.OnboardingOverview': CompanyOnboardingOverview, 'Company.PaySchedule': CompanyPaySchedule, 'Company.SignatureForm': CompanySignatureForm, 'Company.StateTaxes': CompanyStateTaxes, 'Contractor.Address': ContractorAddress, 'Employee.BankAccount': EmployeeBankAccount, 'Employee.Compensation': EmployeeCompensation, 'Employee.Deductions': EmployeeDeductions, 'Employee.DocumentSigner': EmployeeDocumentSigner, 'Employee.EmployeeList': EmployeeEmployeeList, 'Employee.HomeAddress': EmployeeHomeAddress, 'Employee.Landing': EmployeeLanding, 'Employee.OnboardingSummary': EmployeeOnboardingSummary, 'Employee.PaySchedules': EmployeePaySchedules, 'Employee.PaymentMethod': EmployeePaymentMethod, 'Employee.Profile': EmployeeProfile, 'Employee.SplitPaycheck': EmployeeSplitPaycheck, 'Employee.StateTaxes': EmployeeStateTaxes, 'Employee.Taxes': EmployeeTaxes, 'Payroll.PayrollHistoryList': PayrollPayrollHistoryList, 'Payroll.PayrollSchedule': PayrollPayrollSchedule, 'common': common, }
|
|
997
|
+
resources: { 'Company.AddBank': CompanyAddBank, 'Company.Addresses': CompanyAddresses, 'Company.AssignSignatory': CompanyAssignSignatory, 'Company.BankAccount': CompanyBankAccount, 'Company.DocumentList': CompanyDocumentList, 'Company.FederalTaxes': CompanyFederalTaxes, 'Company.Industry': CompanyIndustry, 'Company.Locations': CompanyLocations, 'Company.OnboardingOverview': CompanyOnboardingOverview, 'Company.PaySchedule': CompanyPaySchedule, 'Company.SignatureForm': CompanySignatureForm, 'Company.StateTaxes': CompanyStateTaxes, 'Contractor.Address': ContractorAddress, 'Contractor.ContractorList': ContractorContractorList, 'Contractor.NewHireReport': ContractorNewHireReport, 'Contractor.PaymentMethod': ContractorPaymentMethod, 'Employee.BankAccount': EmployeeBankAccount, 'Employee.Compensation': EmployeeCompensation, 'Employee.Deductions': EmployeeDeductions, 'Employee.DocumentSigner': EmployeeDocumentSigner, 'Employee.EmployeeList': EmployeeEmployeeList, 'Employee.HomeAddress': EmployeeHomeAddress, 'Employee.Landing': EmployeeLanding, 'Employee.OnboardingSummary': EmployeeOnboardingSummary, 'Employee.PaySchedules': EmployeePaySchedules, 'Employee.PaymentMethod': EmployeePaymentMethod, 'Employee.Profile': EmployeeProfile, 'Employee.SplitPaycheck': EmployeeSplitPaycheck, 'Employee.StateTaxes': EmployeeStateTaxes, 'Employee.Taxes': EmployeeTaxes, 'Payroll.PayrollHistoryList': PayrollPayrollHistoryList, 'Payroll.PayrollSchedule': PayrollPayrollSchedule, 'common': common, }
|
|
935
998
|
};
|
|
936
999
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gusto/embedded-react-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"homepage": "https://github.com/Gusto/embedded-react-sdk",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/Gusto/embedded-react-sdk/issues"
|
|
@@ -36,7 +36,8 @@
|
|
|
36
36
|
"adapter:docs:generate": "npx tsx ./build/generateAdapterPropDocs.ts",
|
|
37
37
|
"watch:vite": "vite build --watch --mode development",
|
|
38
38
|
"watch:translations": "node ./build/translationWatcher.js",
|
|
39
|
-
"dev": "node ./build/prompt.js && npm run i18n:generate && npm-run-all --parallel watch:vite watch:translations",
|
|
39
|
+
"dev": "node ./build/prompt.js && npm run i18n:generate && npm-run-all --parallel watch:vite watch:translations ladle",
|
|
40
|
+
"dev:setup": "npm link ../gws-flows/node_modules/react && (cd ../gws-flows && yarn link -r ../embedded-react-sdk)",
|
|
40
41
|
"docs": "npx tsx ./build/eventTypeDocsEmitter.ts",
|
|
41
42
|
"format": "prettier . --write --log-level error",
|
|
42
43
|
"format:check": "prettier . --check --log-level error",
|
|
@@ -102,7 +103,7 @@
|
|
|
102
103
|
"typescript": "^5.8.3"
|
|
103
104
|
},
|
|
104
105
|
"dependencies": {
|
|
105
|
-
"@gusto/embedded-api": "^0.6.
|
|
106
|
+
"@gusto/embedded-api": "^0.6.4",
|
|
106
107
|
"@hookform/error-message": "^2.0.1",
|
|
107
108
|
"@hookform/resolvers": "^3.10.0",
|
|
108
109
|
"@internationalized/date": "^3.8.0",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
var r = /* @__PURE__ */ ((e) => (e.check = "Check", e.directDeposit = "Direct Deposit", e))(r || {}), t = /* @__PURE__ */ ((e) => (e.percentage = "Percentage", e.amount = "Amount", e))(t || {});
|
|
2
|
-
export {
|
|
3
|
-
r as PAYMENT_METHODS,
|
|
4
|
-
t as SPLIT_BY
|
|
5
|
-
};
|
|
6
|
-
//# sourceMappingURL=Constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Constants.js","sources":["../../../../src/components/Employee/PaymentMethod/Constants.ts"],"sourcesContent":["export enum PAYMENT_METHODS {\n check = 'Check',\n directDeposit = 'Direct Deposit',\n}\n\nexport enum SPLIT_BY {\n percentage = 'Percentage',\n amount = 'Amount',\n}\n"],"names":["PAYMENT_METHODS","SPLIT_BY"],"mappings":"AAAY,IAAAA,sBAAAA,OACVA,EAAA,QAAQ,SACRA,EAAA,gBAAgB,kBAFNA,IAAAA,KAAA,CAAA,CAAA,GAKAC,sBAAAA,OACVA,EAAA,aAAa,cACbA,EAAA,SAAS,UAFCA,IAAAA,KAAA,CAAA,CAAA;"}
|