diff --git a/CHANGELOG.md b/CHANGELOG.md index 04765f243..422115728 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,138 @@ # Changelog +## 0.12.3 + +### Features & Enhancements + +- Separate `Employee.Taxes` into separate `Employee.StateTaxes` and `Employee.FederalTaxes` components and deprecate `Employee.Taxes` (See upgrade guide below) +- Add CTA (Call to Action) functionality to ProgressBar component +- Expose Payroll components as UNSTABLE for early access +- Add Payroll Submit API call functionality + +### Fixes + +- Fix documentation links ending with .md extension + +### Chores & Maintenance + +- Upgrade various development dependencies for improved stability +- Update embedded API to latest version + +### Migrating `Employee.Taxes` to `Employee.StateTaxes` and `Employee.FederalTaxes` + +We have split the `Employee.Taxes` component into dedicated `Employee.StateTaxes` and `Employee.FederalTaxes` components. The `Employee.Taxes` component is now deprecated and will be removed in a future version. + +#### Component Usage + +**Before (using combined Employee.Taxes):** + +```tsx +import { Employee } from '@gusto/embedded-react-sdk' + +// In employee onboarding flow + { + if (eventType === componentEvents.EMPLOYEE_TAXES_DONE) { + // called when taxes is done + } + }} +/> + +// In self-onboarding flow + { + if (eventType === componentEvents.EMPLOYEE_TAXES_DONE) { + // called when taxes is done + } + }} +/> +``` + +**After (using separate components):** + +```tsx +import { Employee } from '@gusto/embedded-react-sdk' + +// In employee onboarding flow - Federal Taxes step + { + if (eventType === componentEvents.EMPLOYEE_FEDERAL_TAXES_DONE) { + // called when federal taxes is done + } + }} +/> + +// In employee onboarding flow - State Taxes step + { + if (eventType === componentEvents.EMPLOYEE_STATE_TAXES_DONE) { + // called when state taxes is done + } + }} +/> + +// In self-onboarding flow - Federal Taxes step + { + if (eventType === componentEvents.EMPLOYEE_FEDERAL_TAXES_DONE) { + // called when federal taxes is done + } + }} +/> + +// In self-onboarding flow - State Taxes step + { + if (eventType === componentEvents.EMPLOYEE_STATE_TAXES_DONE) { + // called when state taxes is done + } + }} +/> +``` + +## 0.12.2 + +### Features & Enhancements + +- Add CTA (Call to Action) functionality to ProgressBar component +- Expose Payroll components as UNSTABLE for early access +- Add Payroll Submit API call functionality + +### Fixes + +- Fix contractor payment details validation and display +- Fix contractor ID not being passed correctly from profile to submit +- Fix self onboarding switch with correct onboarding status + +### Chores & Maintenance + +- Upgrade react-i18next from 15.6.0 to 15.7.0 +- Upgrade react-hook-form from 7.60.0 to 7.62.0 +- Update embedded API to latest version + +## 0.12.1 + +### Fixes + +- Fix contractor payment details validation and display +- Fix contractor ID not being passed correctly from profile to submit + +### Chores & Maintenance + +- Upgrade react-i18next from 15.6.0 to 15.7.0 +- Upgrade react-hook-form from 7.60.0 to 7.62.0 +- Update embedded API to latest version + ## 0.12.0 ### Updated theming diff --git a/package-lock.json b/package-lock.json index 580b5b276..e489386b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gusto/embedded-react-sdk", - "version": "0.12.1", + "version": "0.12.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gusto/embedded-react-sdk", - "version": "0.12.1", + "version": "0.12.3", "license": "MIT", "dependencies": { "@gusto/embedded-api": "^0.6.8", @@ -64,7 +64,6 @@ "sass-embedded": "^1.90.0", "ts-morph": "^26.0.0", "tsx": "^4.20.4", - "typescript": "^5.9.2", "typescript-eslint": "^8.40.0", "vite": "^7.1.3", "vite-plugin-checker": "^0.9.1", @@ -19041,8 +19040,8 @@ "version": "5.9.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.2.tgz", "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", - "devOptional": true, "license": "Apache-2.0", + "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/package.json b/package.json index 5d83337f4..0e5b8ca09 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gusto/embedded-react-sdk", - "version": "0.12.1", + "version": "0.12.3", "homepage": "https://github.com/Gusto/embedded-react-sdk", "bugs": { "url": "https://github.com/Gusto/embedded-react-sdk/issues" diff --git a/src/components/Employee/OnboardingFlow/OnboardingFlow.test.tsx b/src/components/Employee/OnboardingFlow/OnboardingFlow.test.tsx index 6ca3b2e2b..33cb0ff71 100644 --- a/src/components/Employee/OnboardingFlow/OnboardingFlow.test.tsx +++ b/src/components/Employee/OnboardingFlow/OnboardingFlow.test.tsx @@ -90,7 +90,7 @@ describe('EmployeeOnboardingFlow', () => { ) }) - it('succeeds', { timeout: 50_000 }, async () => { + it('succeeds', { timeout: 60_000 }, async () => { const user = userEvent.setup() render(