@gusto/embedded-react-sdk 0.36.0 → 0.37.0-rc.2
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 +58 -0
- package/README.md +6 -0
- package/dist/UNSTABLE_Hooks.d.ts +1 -1
- package/dist/UNSTABLE_Hooks.js +50 -6
- package/dist/UNSTABLE_Hooks.js.map +1 -1
- package/dist/components/Base/Base.d.ts +8 -9
- package/dist/components/Base/Base.js +123 -102
- package/dist/components/Base/Base.js.map +1 -1
- package/dist/components/Base/createCompoundContext.js.map +1 -1
- package/dist/components/Base/index.d.ts +1 -1
- package/dist/components/Base/useBase.d.ts +3 -7
- package/dist/components/Base/useBase.js.map +1 -1
- package/dist/components/Base/useBaseSubmit.d.ts +3 -5
- package/dist/components/Base/useBaseSubmit.js +27 -50
- package/dist/components/Base/useBaseSubmit.js.map +1 -1
- package/dist/components/Common/DataView/DataCards/DataCards.js +42 -36
- package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.d.ts +2 -0
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.js +22 -19
- package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.d.ts +1 -1
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js +32 -30
- package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js.map +1 -1
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.d.ts +1 -1
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js +36 -34
- package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -1
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +5 -3
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +52 -40
- package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
- package/dist/components/Common/Fields/FileInputField/FileInputField.js +24 -22
- package/dist/components/Common/Fields/FileInputField/FileInputField.js.map +1 -1
- package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js +24 -22
- package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js.map +1 -1
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.d.ts +2 -0
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.js +31 -28
- package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +3 -1
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js +30 -27
- package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
- package/dist/components/Common/Fields/SelectField/SelectField.d.ts +3 -1
- package/dist/components/Common/Fields/SelectField/SelectField.js +31 -28
- package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
- package/dist/components/Common/Fields/SwitchField/SwitchField.d.ts +2 -0
- package/dist/components/Common/Fields/SwitchField/SwitchField.js +24 -21
- package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
- package/dist/components/Common/Fields/TextAreaField/TextAreaField.js +24 -22
- package/dist/components/Common/Fields/TextAreaField/TextAreaField.js.map +1 -1
- package/dist/components/Common/Fields/TextInputField/TextInputField.d.ts +2 -0
- package/dist/components/Common/Fields/TextInputField/TextInputField.js +26 -23
- package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
- package/dist/components/Common/Fields/hooks/useField.d.ts +3 -2
- package/dist/components/Common/Fields/hooks/useField.js +37 -33
- package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
- package/dist/components/Common/ReorderableList/ReorderableList.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureForm.js +10 -15
- package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormActions.js +10 -14
- package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
- package/dist/components/Common/SignatureForm/SignatureFormFields.js +14 -19
- package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
- package/dist/components/Common/UI/Button/Button.js +33 -29
- package/dist/components/Common/UI/Button/Button.js.map +1 -1
- package/dist/components/Common/UI/Button/Button.module.scss.js +5 -3
- package/dist/components/Common/UI/Button/Button.module.scss.js.map +1 -1
- package/dist/components/Common/UI/Button/ButtonTypes.d.ts +4 -0
- package/dist/components/Common/UI/Button/ButtonTypes.js.map +1 -1
- package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +1 -1
- package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +94 -80
- package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
- package/dist/components/Common/UI/NumberInput/NumberInput.js +1 -1
- package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatory.js +7 -11
- package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +6 -10
- package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +8 -11
- package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +6 -9
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +13 -14
- package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +8 -9
- package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +6 -9
- package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +5 -8
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +13 -14
- package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +8 -9
- package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
- package/dist/components/Company/AssignSignatory/TitleSelect.js +2 -5
- package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js +10 -11
- package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -11
- package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -13
- package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountForm/context.js +8 -9
- package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js +10 -13
- package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +12 -15
- package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -8
- package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +5 -8
- package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +11 -15
- package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +8 -9
- package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
- package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +8 -9
- package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Actions.js +8 -11
- package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Company/FederalTaxes/FederalTaxes.js +15 -19
- package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
- package/dist/components/Company/FederalTaxes/Form.js +6 -8
- package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js +10 -11
- package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Company/Industry/Actions.js +8 -11
- package/dist/components/Company/Industry/Actions.js.map +1 -1
- package/dist/components/Company/Industry/Context.js +11 -12
- package/dist/components/Company/Industry/Context.js.map +1 -1
- package/dist/components/Company/Industry/Edit.js +10 -14
- package/dist/components/Company/Industry/Edit.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Actions.js +8 -11
- package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/Form.js +5 -7
- package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/LocationForm.js +15 -19
- package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js +8 -9
- package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/Actions.js +6 -9
- package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/List.js +17 -19
- package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/LocationsList.js +6 -10
- package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js +8 -9
- package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/Completed.js +12 -15
- package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js +9 -12
- package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +6 -10
- package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
- package/dist/components/Company/OnboardingOverview/context.js +8 -9
- package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
- package/dist/components/Company/PaySchedule/PaySchedule.js +60 -63
- package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Actions.js +10 -13
- package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Edit.js +15 -15
- package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/Head.js +11 -14
- package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
- package/dist/components/Company/PaySchedule/_parts/List.js +19 -21
- package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
- package/dist/components/Company/PaySchedule/usePaySchedule.js +10 -11
- package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +5 -8
- package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +8 -9
- package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +6 -9
- package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -8
- package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js +8 -9
- package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
- package/dist/components/Contractor/Address/Address.js +3 -7
- package/dist/components/Contractor/Address/Address.js.map +1 -1
- package/dist/components/Contractor/Address/Form.js +6 -8
- package/dist/components/Contractor/Address/Form.js.map +1 -1
- package/dist/components/Contractor/Address/useAddress.js +10 -11
- package/dist/components/Contractor/Address/useAddress.js.map +1 -1
- package/dist/components/Contractor/ContractorList/index.js +29 -30
- package/dist/components/Contractor/ContractorList/index.js.map +1 -1
- package/dist/components/Contractor/NewHireReport/NewHireReport.js +2 -3
- package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +10 -14
- package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
- package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -5
- package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +12 -14
- package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +10 -10
- package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +18 -21
- package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +3 -4
- package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +17 -19
- package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +6 -8
- package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +2 -4
- package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +2 -5
- package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
- package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
- package/dist/components/Contractor/Profile/useContractorProfile.js +33 -32
- package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
- package/dist/components/Contractor/Submit/Submit.js +20 -22
- package/dist/components/Contractor/Submit/Submit.js.map +1 -1
- package/dist/components/Employee/Compensation/Actions.js +12 -14
- package/dist/components/Employee/Compensation/Actions.js.map +1 -1
- package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
- package/dist/components/Employee/Compensation/Edit.js +27 -28
- package/dist/components/Employee/Compensation/Edit.js.map +1 -1
- package/dist/components/Employee/Compensation/List.js +23 -25
- package/dist/components/Employee/Compensation/List.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +61 -57
- package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +15 -16
- package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +15 -16
- package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
- package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +18 -19
- package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
- package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +6 -7
- package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -9
- package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +10 -14
- package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -6
- package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +8 -9
- package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +24 -26
- package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +9 -11
- package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
- package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +8 -9
- package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
- package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +6 -9
- package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
- package/dist/components/Employee/EmployeeList/Actions.js +6 -9
- package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
- package/dist/components/Employee/EmployeeList/EmployeeList.js +3 -7
- package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
- package/dist/components/Employee/EmployeeList/Head.js +5 -8
- package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
- package/dist/components/Employee/EmployeeList/List.js +16 -17
- package/dist/components/Employee/EmployeeList/List.js.map +1 -1
- package/dist/components/Employee/EmployeeList/useEmployeeList.js +8 -9
- package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/Actions.js +7 -10
- package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/FederalForm.js +10 -13
- package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/FederalTaxes.js +42 -42
- package/dist/components/Employee/FederalTaxes/FederalTaxes.js.map +1 -1
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +8 -9
- package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
- package/dist/components/Employee/Landing/Landing.js +14 -15
- package/dist/components/Employee/Landing/Landing.js.map +1 -1
- package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
- package/dist/components/Employee/PaymentMethod/Actions.js +8 -11
- package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -8
- package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js +9 -10
- package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -10
- package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/Split.js +9 -10
- package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +10 -11
- package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
- package/dist/components/Employee/Profile/Actions.js +8 -11
- package/dist/components/Employee/Profile/Actions.js.map +1 -1
- package/dist/components/Employee/Profile/AdminPersonalDetails.js +14 -17
- package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
- package/dist/components/Employee/Profile/HomeAddress.d.ts +3 -3
- package/dist/components/Employee/Profile/HomeAddress.js +45 -44
- package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js +10 -13
- package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
- package/dist/components/Employee/Profile/Profile.js +30 -29
- package/dist/components/Employee/Profile/Profile.js.map +1 -1
- package/dist/components/Employee/Profile/useProfile.js +8 -9
- package/dist/components/Employee/Profile/useProfile.js.map +1 -1
- package/dist/components/Employee/StateTaxes/Actions.js +8 -11
- package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
- package/dist/components/Employee/StateTaxes/StateTaxes.js +50 -50
- package/dist/components/Employee/StateTaxes/StateTaxes.js.map +1 -1
- package/dist/components/Employee/StateTaxes/useStateTaxes.js +8 -9
- package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
- package/dist/components/Employee/Taxes/Actions.js +8 -11
- package/dist/components/Employee/Taxes/Actions.js.map +1 -1
- package/dist/components/Employee/Taxes/FederalForm.js +10 -13
- package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
- package/dist/components/Employee/Taxes/Taxes.js +53 -53
- package/dist/components/Employee/Taxes/Taxes.js.map +1 -1
- package/dist/components/Employee/Taxes/useTaxes.js +8 -9
- package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.d.ts +11 -0
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +123 -0
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +11 -0
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +89 -0
- package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.d.ts +2 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js +30 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +24 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +76 -0
- package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationFlow/index.d.ts +3 -0
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.d.ts +8 -0
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js +177 -0
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.test.d.ts +1 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.d.ts +9 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +86 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.d.ts +20 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +100 -0
- package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -0
- package/dist/components/Employee/Terminations/TerminationsData.d.ts +6 -0
- package/dist/components/Employee/Terminations/index.d.ts +8 -0
- package/dist/components/Employee/Terminations/types.d.ts +1 -0
- package/dist/components/Employee/index.d.ts +7 -0
- package/dist/components/Employee/index.js +34 -28
- package/dist/components/Employee/index.js.map +1 -1
- package/dist/components/Flow/Flow.js +20 -23
- package/dist/components/Flow/Flow.js.map +1 -1
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +16 -18
- package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +18 -20
- package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
- package/dist/components/InformationRequests/InformationRequests.js +34 -35
- package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +41 -41
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +8 -10
- package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
- package/dist/components/Payroll/Dismissal/DismissalFlow.d.ts +2 -0
- package/dist/components/Payroll/Dismissal/DismissalFlow.js +32 -0
- package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -0
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.d.ts +16 -0
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +52 -0
- package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.d.ts +7 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +73 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.d.ts +9 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +50 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -0
- package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/index.d.ts +3 -0
- package/dist/components/Payroll/Dismissal/dismissalStateMachine.d.ts +6 -0
- package/dist/components/Payroll/Dismissal/dismissalStateMachine.js +51 -0
- package/dist/components/Payroll/Dismissal/dismissalStateMachine.js.map +1 -0
- package/dist/components/Payroll/Dismissal/dismissalStateMachine.test.d.ts +1 -0
- package/dist/components/Payroll/Dismissal/index.d.ts +3 -0
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.d.ts +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +89 -76
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
- package/dist/components/Payroll/GrossUpModal/GrossUpModal.module.scss.js +6 -6
- package/dist/components/Payroll/GrossUpModal/GrossUpModalTypes.d.ts +0 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlow.d.ts +1 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlow.js +25 -18
- package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +5 -0
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +31 -24
- package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +78 -75
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +75 -68
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.module.scss.js +8 -0
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +0 -1
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +18 -26
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.module.scss.js +4 -4
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +4 -4
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -1
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.d.ts +1 -0
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js +1 -0
- package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js.map +1 -1
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +6 -9
- package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
- package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +12 -14
- package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +11 -14
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
- package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +174 -148
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +3 -3
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +71 -71
- package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.d.ts +3 -2
- package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js +8 -8
- package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js.map +1 -1
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +5 -3
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +76 -70
- package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +47 -42
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +5 -3
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +256 -219
- package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +19 -21
- package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.d.ts +1 -0
- package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js +19 -0
- package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js.map +1 -0
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +3 -0
- package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.d.ts +1 -0
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +21 -0
- package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +1 -0
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +2 -0
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +95 -64
- package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +53 -47
- package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +38 -40
- package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +25 -23
- package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollList.js +55 -43
- package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +110 -95
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +12 -8
- package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +15 -15
- package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +59 -59
- package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +7 -10
- package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +2 -3
- package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +2 -4
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +11 -13
- package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
- package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +2 -5
- package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
- package/dist/components/Payroll/Transition/TransitionFlow.d.ts +2 -0
- package/dist/components/Payroll/Transition/TransitionFlow.js +38 -0
- package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -0
- package/dist/components/Payroll/Transition/TransitionFlowComponents.d.ts +19 -0
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js +54 -0
- package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -0
- package/dist/components/Payroll/Transition/index.d.ts +3 -0
- package/dist/components/Payroll/Transition/transitionStateMachine.d.ts +6 -0
- package/dist/components/Payroll/Transition/transitionStateMachine.js +58 -0
- package/dist/components/Payroll/Transition/transitionStateMachine.js.map +1 -0
- package/dist/components/Payroll/Transition/transitionStateMachine.test.d.ts +1 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.d.ts +2 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +92 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +2 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +109 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js +8 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js.map +1 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +28 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +21 -0
- package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -0
- package/dist/components/Payroll/TransitionCreation/index.d.ts +3 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +8 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +83 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +16 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +100 -0
- package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -0
- package/dist/components/Payroll/TransitionPayrollAlert/index.d.ts +2 -0
- package/dist/components/Payroll/helpers.d.ts +6 -1
- package/dist/components/Payroll/helpers.js +100 -84
- package/dist/components/Payroll/helpers.js.map +1 -1
- package/dist/components/Payroll/index.d.ts +6 -0
- package/dist/components/Payroll/index.js +32 -26
- package/dist/components/Payroll/index.js.map +1 -1
- package/dist/components/Payroll/payrollTypes.d.ts +21 -0
- package/dist/components/Payroll/payrollTypes.js +27 -0
- package/dist/components/Payroll/payrollTypes.js.map +1 -0
- package/dist/components/Payroll/usePreparedPayrollData.js +6 -8
- package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
- package/dist/components/UNSTABLE_Hooks/collectErrors.d.ts +6 -0
- package/dist/components/UNSTABLE_Hooks/collectErrors.js +9 -0
- package/dist/components/UNSTABLE_Hooks/collectErrors.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.d.ts +8 -0
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js +10 -0
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.d.ts +10 -0
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js +13 -0
- package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.d.ts +23 -0
- package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js +24 -0
- package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.d.ts +26 -0
- package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js +24 -0
- package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.d.ts +53 -0
- package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js +34 -0
- package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.test.d.ts +1 -0
- package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.d.ts +3 -0
- package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js +14 -0
- package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.test.d.ts +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.d.ts +11 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js +34 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.d.ts +11 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js +34 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.d.ts +14 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js +40 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.d.ts +12 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js +40 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.d.ts +12 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js +40 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.d.ts +11 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js +34 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.d.ts +13 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js +38 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/fields/index.d.ts +15 -0
- package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.d.ts +2 -0
- package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js +8 -0
- package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.d.ts +18 -0
- package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js +10 -0
- package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.test.d.ts +1 -0
- package/dist/components/UNSTABLE_Hooks/form/index.d.ts +16 -0
- package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.d.ts +4 -0
- package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js +13 -0
- package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.d.ts +6 -0
- package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js +14 -0
- package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/types.d.ts +27 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.d.ts +2 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js +17 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.d.ts +4 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js +8 -0
- package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.d.ts +23 -0
- package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js +11 -0
- package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/form/withOptions.d.ts +5 -0
- package/dist/components/UNSTABLE_Hooks/form/withOptions.js +7 -0
- package/dist/components/UNSTABLE_Hooks/form/withOptions.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.d.ts +5 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js +149 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.d.ts +97 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js +121 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.d.ts +34 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js +50 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/index.d.ts +7 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.d.ts +104 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js +259 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.d.ts +5 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js +112 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +39 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js +45 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.d.ts +23 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js +46 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/index.d.ts +7 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +77 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js +153 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.d.ts +5 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js +69 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.d.ts +10 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js +14 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/index.d.ts +7 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.d.ts +68 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js +129 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.d.ts +25 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js +24 -0
- package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/index.d.ts +9 -0
- package/dist/components/UNSTABLE_Hooks/types.d.ts +49 -0
- package/dist/components/UNSTABLE_Hooks/useErrorHandling.d.ts +9 -0
- package/dist/components/UNSTABLE_Hooks/useErrorHandling.js +12 -0
- package/dist/components/UNSTABLE_Hooks/useErrorHandling.js.map +1 -0
- package/dist/components/UNSTABLE_Hooks/useErrorHandling.test.d.ts +1 -0
- package/dist/contexts/ApiProvider/ApiProvider.js +11 -11
- package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +43 -50
- package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
- package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.d.ts +10 -2
- package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.js.map +1 -1
- package/dist/contexts/ObservabilityProvider/index.d.ts +1 -1
- package/dist/contexts/ObservabilityProvider/sanitization.d.ts +0 -14
- package/dist/contexts/ObservabilityProvider/sanitization.js +51 -51
- package/dist/contexts/ObservabilityProvider/sanitization.js.map +1 -1
- package/dist/contexts/ObservabilityProvider/useSanitizedObservability.d.ts +0 -3
- package/dist/contexts/ObservabilityProvider/useSanitizedObservability.js.map +1 -1
- package/dist/contexts/ThemeProvider/useTheme.js.map +1 -1
- package/dist/helpers/requiredIf.d.ts +13 -0
- package/dist/helpers/requiredIf.js +8 -0
- package/dist/helpers/requiredIf.js.map +1 -0
- package/dist/i18n/I18n.js +7 -7
- package/dist/i18n/I18n.js.map +1 -1
- package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +26 -0
- package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js.map +1 -0
- package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +24 -0
- package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +32 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js.map +1 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +52 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js.map +1 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js +21 -0
- package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js.map +1 -0
- package/dist/i18n/en/Employee.Terminations.TerminateEmployee.json.js +18 -0
- package/dist/i18n/en/Employee.Terminations.TerminateEmployee.json.js.map +1 -0
- package/dist/i18n/en/Employee.Terminations.TerminationFlow.json.js +12 -0
- package/dist/i18n/en/Employee.Terminations.TerminationFlow.json.js.map +1 -0
- package/dist/i18n/en/Employee.Terminations.TerminationSummary.json.js +20 -0
- package/dist/i18n/en/Employee.Terminations.TerminationSummary.json.js.map +1 -0
- package/dist/i18n/en/Payroll.Dismissal.json.js +22 -0
- package/dist/i18n/en/Payroll.Dismissal.json.js.map +1 -0
- package/dist/i18n/en/Payroll.GrossUpModal.json.js +16 -14
- package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
- package/dist/i18n/en/Payroll.OffCycleCreation.json.js +15 -11
- package/dist/i18n/en/Payroll.OffCycleCreation.json.js.map +1 -1
- package/dist/i18n/en/Payroll.OffCyclePayPeriodDateForm.json.js +1 -1
- package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js +5 -5
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +31 -25
- package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
- package/dist/i18n/en/Payroll.PayrollList.json.js +20 -18
- package/dist/i18n/en/Payroll.PayrollList.json.js.map +1 -1
- package/dist/i18n/en/Payroll.Transition.json.js +8 -0
- package/dist/i18n/en/Payroll.Transition.json.js.map +1 -0
- package/dist/i18n/en/Payroll.TransitionCreation.json.js +26 -0
- package/dist/i18n/en/Payroll.TransitionCreation.json.js.map +1 -0
- package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js +18 -0
- package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js.map +1 -0
- package/dist/i18n/en/UNSTABLE.CompensationForm.json.js +58 -0
- package/dist/i18n/en/UNSTABLE.CompensationForm.json.js.map +1 -0
- package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js +34 -0
- package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js.map +1 -0
- package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js +24 -0
- package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js.map +1 -0
- package/dist/i18n/en/common.json.d.ts +2 -1
- package/dist/i18n/en/common.json.js +9 -9
- package/dist/index.d.ts +3 -2
- package/dist/index.js +14 -13
- package/dist/models/WA_RISK_CODES.d.ts +5 -2866
- package/dist/models/WA_RISK_CODES.js.map +1 -1
- package/dist/shared/constants.d.ts +32 -0
- package/dist/shared/constants.js +83 -65
- package/dist/shared/constants.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/i18next.d.ts +707 -1
- package/dist/types/observability.d.ts +31 -65
- package/dist/types/sdkError.d.ts +97 -0
- package/dist/types/sdkError.js +95 -0
- package/dist/types/sdkError.js.map +1 -0
- package/dist/types/sdkError.test.d.ts +1 -0
- package/docs/reference/endpoint-inventory.json +212 -14
- package/package.json +17 -17
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.d.ts +0 -6
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js +0 -70
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.d.ts +0 -7
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js +0 -6
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.d.ts +0 -9
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js +0 -40
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/index.d.ts +0 -5
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.d.ts +0 -2
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js +0 -12
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js.map +0 -1
- package/dist/components/Payroll/UNSTABLE_PayrollHooks/index.d.ts +0 -2
- package/dist/contexts/ObservabilityProvider/observabilityUtils.d.ts +0 -5
- package/dist/contexts/ObservabilityProvider/observabilityUtils.js +0 -45
- package/dist/contexts/ObservabilityProvider/observabilityUtils.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gusto/embedded-react-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0-rc.2",
|
|
4
4
|
"homepage": "https://github.com/Gusto/embedded-react-sdk",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/Gusto/embedded-react-sdk/issues"
|
|
@@ -81,11 +81,11 @@
|
|
|
81
81
|
"@commitlint/config-conventional": "^20.5.0",
|
|
82
82
|
"@eslint/js": "^9.39.2",
|
|
83
83
|
"@playwright/test": "^1.58.2",
|
|
84
|
-
"@storybook/addon-a11y": "^10.
|
|
85
|
-
"@storybook/addon-docs": "^10.
|
|
86
|
-
"@storybook/addon-onboarding": "^10.
|
|
87
|
-
"@storybook/react-vite": "^10.
|
|
88
|
-
"@storybook/test-runner": "^0.24.
|
|
84
|
+
"@storybook/addon-a11y": "^10.3.3",
|
|
85
|
+
"@storybook/addon-docs": "^10.3.3",
|
|
86
|
+
"@storybook/addon-onboarding": "^10.3.3",
|
|
87
|
+
"@storybook/react-vite": "^10.3.3",
|
|
88
|
+
"@storybook/test-runner": "^0.24.3",
|
|
89
89
|
"@testing-library/jest-dom": "^6.9.1",
|
|
90
90
|
"@testing-library/react": "^16.3.2",
|
|
91
91
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"@types/pngjs": "^6.0.5",
|
|
96
96
|
"@types/react": "^19.2.14",
|
|
97
97
|
"@vitejs/plugin-react-swc": "^4.3.0",
|
|
98
|
-
"@vitest/coverage-v8": "^4.1.
|
|
98
|
+
"@vitest/coverage-v8": "^4.1.2",
|
|
99
99
|
"axe-core": "^4.11.1",
|
|
100
100
|
"dotenv": "^17.3.1",
|
|
101
101
|
"eslint": "^9.39.4",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"eslint-plugin-react": "^7.37.5",
|
|
105
105
|
"eslint-plugin-react-hooks": "^6.1.1",
|
|
106
106
|
"eslint-plugin-react-refresh": "^0.4.24",
|
|
107
|
-
"eslint-plugin-storybook": "^10.
|
|
107
|
+
"eslint-plugin-storybook": "^10.3.3",
|
|
108
108
|
"globals": "^17.4.0",
|
|
109
109
|
"husky": "^9.1.7",
|
|
110
110
|
"jest-axe": "^9.0.0",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"jsdom": "^26.1.0",
|
|
113
113
|
"jsdom-testing-mocks": "^1.16.0",
|
|
114
114
|
"lint-staged": "^16.4.0",
|
|
115
|
-
"msw": "^2.12.
|
|
115
|
+
"msw": "^2.12.14",
|
|
116
116
|
"npm-run-all": "^4.1.5",
|
|
117
117
|
"pixelmatch": "^7.1.0",
|
|
118
118
|
"pngjs": "^7.0.0",
|
|
@@ -120,17 +120,17 @@
|
|
|
120
120
|
"react-dnd": "^16.0.1",
|
|
121
121
|
"react-dnd-html5-backend": "^16.0.1",
|
|
122
122
|
"sass-embedded": "^1.98.0",
|
|
123
|
-
"storybook": "^10.
|
|
123
|
+
"storybook": "^10.3.1",
|
|
124
124
|
"stylelint-config-standard": "^40.0.0",
|
|
125
125
|
"ts-morph": "^27.0.2",
|
|
126
126
|
"tsx": "^4.21.0",
|
|
127
|
-
"typescript-eslint": "^8.57.
|
|
127
|
+
"typescript-eslint": "^8.57.2",
|
|
128
128
|
"vite": "^6.4.1",
|
|
129
129
|
"vite-plugin-checker": "^0.12.0",
|
|
130
130
|
"vite-plugin-circular-dependency": "^0.5.0",
|
|
131
131
|
"vite-plugin-dts": "^4.5.3",
|
|
132
132
|
"vite-plugin-externalize-deps": "^0.10.0",
|
|
133
|
-
"vite-plugin-stylelint": "^6.0
|
|
133
|
+
"vite-plugin-stylelint": "^6.1.0",
|
|
134
134
|
"vite-plugin-svgr": "^4.3.0",
|
|
135
135
|
"vitest": "^4.1.0"
|
|
136
136
|
},
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"typescript": "^5.8.3"
|
|
142
142
|
},
|
|
143
143
|
"dependencies": {
|
|
144
|
-
"@gusto/embedded-api": "
|
|
144
|
+
"@gusto/embedded-api": "0.12.4",
|
|
145
145
|
"@hookform/error-message": "^2.0.1",
|
|
146
146
|
"@hookform/resolvers": "^5.2.2",
|
|
147
147
|
"@internationalized/date": "^3.12.0",
|
|
@@ -149,13 +149,13 @@
|
|
|
149
149
|
"classnames": "^2.5.1",
|
|
150
150
|
"deepmerge": "^4.3.1",
|
|
151
151
|
"dompurify": "^3.3.3",
|
|
152
|
-
"i18next": "^25.
|
|
152
|
+
"i18next": "^25.10.10",
|
|
153
153
|
"react-aria": "^3.44.0",
|
|
154
154
|
"react-aria-components": "1.13.0",
|
|
155
155
|
"react-error-boundary": "^6.1.1",
|
|
156
|
-
"react-hook-form": "^7.
|
|
157
|
-
"react-i18next": "^16.
|
|
158
|
-
"react-robot": "^1.2.
|
|
156
|
+
"react-hook-form": "^7.72.0",
|
|
157
|
+
"react-i18next": "^16.6.6",
|
|
158
|
+
"react-robot": "^1.2.1",
|
|
159
159
|
"robot3": "^1.2.0",
|
|
160
160
|
"zod": "^4.3.6"
|
|
161
161
|
},
|
package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
interface PayrollConfigurationProps {
|
|
2
|
-
companyId: string;
|
|
3
|
-
payrollId: string;
|
|
4
|
-
}
|
|
5
|
-
declare function ComposedPayrollConfiguration({ companyId, payrollId }: PayrollConfigurationProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export { ComposedPayrollConfiguration as PayrollConfiguration };
|
package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { PayrollConfigurationProvider as c } from "./PayrollConfigurationProvider.js";
|
|
3
|
-
import { usePayrollConfiguration as s } from "./usePayrollConfiguration.js";
|
|
4
|
-
import { useDateFormatter as h } from "../../../../hooks/useDateFormatter.js";
|
|
5
|
-
import m from "../../../../hooks/useNumberFormatter.js";
|
|
6
|
-
import { useComponentContext as y } from "../../../../contexts/ComponentAdapter/useComponentContext.js";
|
|
7
|
-
function u() {
|
|
8
|
-
const { payrollData: l } = s(), a = h(), n = m("currency"), { Heading: i, Text: t } = y(), e = l.payrollShow, d = a.formatWithTime(e?.payrollDeadline);
|
|
9
|
-
return /* @__PURE__ */ o("div", { children: [
|
|
10
|
-
/* @__PURE__ */ r(i, { as: "h1", children: "Payroll Configuration (Experimental)" }),
|
|
11
|
-
e && /* @__PURE__ */ o("div", { children: [
|
|
12
|
-
/* @__PURE__ */ r(i, { as: "h2", children: "Payroll Details" }),
|
|
13
|
-
/* @__PURE__ */ o(t, { children: [
|
|
14
|
-
/* @__PURE__ */ r("strong", { children: "Check Date:" }),
|
|
15
|
-
" ",
|
|
16
|
-
a.formatShortWithWeekday(e.checkDate)
|
|
17
|
-
] }),
|
|
18
|
-
/* @__PURE__ */ o(t, { children: [
|
|
19
|
-
/* @__PURE__ */ r("strong", { children: "Pay Period:" }),
|
|
20
|
-
" ",
|
|
21
|
-
a.formatPayPeriodRange(
|
|
22
|
-
e.payPeriod?.startDate,
|
|
23
|
-
e.payPeriod?.endDate
|
|
24
|
-
)
|
|
25
|
-
] }),
|
|
26
|
-
/* @__PURE__ */ o(t, { children: [
|
|
27
|
-
/* @__PURE__ */ r("strong", { children: "Payroll Deadline:" }),
|
|
28
|
-
" ",
|
|
29
|
-
d.date,
|
|
30
|
-
" at ",
|
|
31
|
-
d.time
|
|
32
|
-
] }),
|
|
33
|
-
/* @__PURE__ */ o(t, { children: [
|
|
34
|
-
/* @__PURE__ */ r("strong", { children: "Calculated At:" }),
|
|
35
|
-
" ",
|
|
36
|
-
e.calculatedAt ? a.formatShortWithWeekday(e.calculatedAt) : "Not yet calculated"
|
|
37
|
-
] }),
|
|
38
|
-
/* @__PURE__ */ o(t, { children: [
|
|
39
|
-
/* @__PURE__ */ r("strong", { children: "Off Cycle:" }),
|
|
40
|
-
" ",
|
|
41
|
-
e.offCycle ? "Yes" : "No"
|
|
42
|
-
] }),
|
|
43
|
-
e.totals && /* @__PURE__ */ o("div", { children: [
|
|
44
|
-
/* @__PURE__ */ r(i, { as: "h3", children: "Totals" }),
|
|
45
|
-
/* @__PURE__ */ o(t, { children: [
|
|
46
|
-
/* @__PURE__ */ r("strong", { children: "Net Pay Debit:" }),
|
|
47
|
-
" ",
|
|
48
|
-
n(Number(e.totals.netPayDebit ?? 0))
|
|
49
|
-
] }),
|
|
50
|
-
/* @__PURE__ */ o(t, { children: [
|
|
51
|
-
/* @__PURE__ */ r("strong", { children: "Employee Taxes:" }),
|
|
52
|
-
" ",
|
|
53
|
-
n(Number(e.totals.employeeTaxes ?? 0))
|
|
54
|
-
] }),
|
|
55
|
-
/* @__PURE__ */ o(t, { children: [
|
|
56
|
-
/* @__PURE__ */ r("strong", { children: "Employer Taxes:" }),
|
|
57
|
-
" ",
|
|
58
|
-
n(Number(e.totals.employerTaxes ?? 0))
|
|
59
|
-
] })
|
|
60
|
-
] })
|
|
61
|
-
] })
|
|
62
|
-
] });
|
|
63
|
-
}
|
|
64
|
-
function x({ companyId: l, payrollId: a }) {
|
|
65
|
-
return /* @__PURE__ */ r(c, { companyId: l, payrollId: a, children: /* @__PURE__ */ r(u, {}) });
|
|
66
|
-
}
|
|
67
|
-
export {
|
|
68
|
-
x as PayrollConfiguration
|
|
69
|
-
};
|
|
70
|
-
//# sourceMappingURL=PayrollConfiguration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PayrollConfiguration.js","sources":["../../../../../src/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.tsx"],"sourcesContent":["import { PayrollConfigurationProvider } from './PayrollConfigurationProvider'\nimport { usePayrollConfiguration } from './usePayrollConfiguration'\nimport { useDateFormatter } from '@/hooks/useDateFormatter'\nimport useNumberFormatter from '@/hooks/useNumberFormatter'\nimport { useComponentContext } from '@/contexts/ComponentAdapter/useComponentContext'\n\ninterface PayrollConfigurationProps {\n companyId: string\n payrollId: string\n}\n\nfunction PayrollConfiguration() {\n const { payrollData } = usePayrollConfiguration()\n const dateFormatter = useDateFormatter()\n const formatCurrency = useNumberFormatter('currency')\n const { Heading, Text } = useComponentContext()\n\n const payroll = payrollData.payrollShow\n\n const payrollDeadline = dateFormatter.formatWithTime(payroll?.payrollDeadline)\n\n return (\n <div>\n <Heading as=\"h1\">Payroll Configuration (Experimental)</Heading>\n {payroll && (\n <div>\n <Heading as=\"h2\">Payroll Details</Heading>\n <Text>\n <strong>Check Date:</strong> {dateFormatter.formatShortWithWeekday(payroll.checkDate)}\n </Text>\n <Text>\n <strong>Pay Period:</strong>{' '}\n {dateFormatter.formatPayPeriodRange(\n payroll.payPeriod?.startDate,\n payroll.payPeriod?.endDate,\n )}\n </Text>\n <Text>\n <strong>Payroll Deadline:</strong> {payrollDeadline.date} at {payrollDeadline.time}\n </Text>\n <Text>\n <strong>Calculated At:</strong>{' '}\n {payroll.calculatedAt\n ? dateFormatter.formatShortWithWeekday(payroll.calculatedAt)\n : 'Not yet calculated'}\n </Text>\n <Text>\n <strong>Off Cycle:</strong> {payroll.offCycle ? 'Yes' : 'No'}\n </Text>\n {payroll.totals && (\n <div>\n <Heading as=\"h3\">Totals</Heading>\n <Text>\n <strong>Net Pay Debit:</strong>{' '}\n {formatCurrency(Number(payroll.totals.netPayDebit ?? 0))}\n </Text>\n <Text>\n <strong>Employee Taxes:</strong>{' '}\n {formatCurrency(Number(payroll.totals.employeeTaxes ?? 0))}\n </Text>\n <Text>\n <strong>Employer Taxes:</strong>{' '}\n {formatCurrency(Number(payroll.totals.employerTaxes ?? 0))}\n </Text>\n </div>\n )}\n </div>\n )}\n </div>\n )\n}\n\nfunction ComposedPayrollConfiguration({ companyId, payrollId }: PayrollConfigurationProps) {\n return (\n <PayrollConfigurationProvider companyId={companyId} payrollId={payrollId}>\n <PayrollConfiguration />\n </PayrollConfigurationProvider>\n )\n}\n\nexport { ComposedPayrollConfiguration as PayrollConfiguration }\n"],"names":["PayrollConfiguration","payrollData","usePayrollConfiguration","dateFormatter","useDateFormatter","formatCurrency","useNumberFormatter","Heading","Text","useComponentContext","payroll","payrollDeadline","jsx","jsxs","ComposedPayrollConfiguration","companyId","payrollId","PayrollConfigurationProvider"],"mappings":";;;;;;AAWA,SAASA,IAAuB;AAC9B,QAAM,EAAE,aAAAC,EAAA,IAAgBC,EAAA,GAClBC,IAAgBC,EAAA,GAChBC,IAAiBC,EAAmB,UAAU,GAC9C,EAAE,SAAAC,GAAS,MAAAC,EAAA,IAASC,EAAA,GAEpBC,IAAUT,EAAY,aAEtBU,IAAkBR,EAAc,eAAeO,GAAS,eAAe;AAE7E,2BACG,OAAA,EACC,UAAA;AAAA,IAAA,gBAAAE,EAACL,GAAA,EAAQ,IAAG,MAAK,UAAA,wCAAoC;AAAA,IACpDG,uBACE,OAAA,EACC,UAAA;AAAA,MAAA,gBAAAE,EAACL,GAAA,EAAQ,IAAG,MAAK,UAAA,mBAAe;AAAA,wBAC/BC,GAAA,EACC,UAAA;AAAA,QAAA,gBAAAI,EAAC,YAAO,UAAA,cAAA,CAAW;AAAA,QAAS;AAAA,QAAET,EAAc,uBAAuBO,EAAQ,SAAS;AAAA,MAAA,GACtF;AAAA,wBACCF,GAAA,EACC,UAAA;AAAA,QAAA,gBAAAI,EAAC,YAAO,UAAA,cAAA,CAAW;AAAA,QAAU;AAAA,QAC5BT,EAAc;AAAA,UACbO,EAAQ,WAAW;AAAA,UACnBA,EAAQ,WAAW;AAAA,QAAA;AAAA,MACrB,GACF;AAAA,wBACCF,GAAA,EACC,UAAA;AAAA,QAAA,gBAAAI,EAAC,YAAO,UAAA,oBAAA,CAAiB;AAAA,QAAS;AAAA,QAAED,EAAgB;AAAA,QAAK;AAAA,QAAKA,EAAgB;AAAA,MAAA,GAChF;AAAA,wBACCH,GAAA,EACC,UAAA;AAAA,QAAA,gBAAAI,EAAC,YAAO,UAAA,iBAAA,CAAc;AAAA,QAAU;AAAA,QAC/BF,EAAQ,eACLP,EAAc,uBAAuBO,EAAQ,YAAY,IACzD;AAAA,MAAA,GACN;AAAA,wBACCF,GAAA,EACC,UAAA;AAAA,QAAA,gBAAAI,EAAC,YAAO,UAAA,aAAA,CAAU;AAAA,QAAS;AAAA,QAAEF,EAAQ,WAAW,QAAQ;AAAA,MAAA,GAC1D;AAAA,MACCA,EAAQ,UACP,gBAAAG,EAAC,OAAA,EACC,UAAA;AAAA,QAAA,gBAAAD,EAACL,GAAA,EAAQ,IAAG,MAAK,UAAA,UAAM;AAAA,0BACtBC,GAAA,EACC,UAAA;AAAA,UAAA,gBAAAI,EAAC,YAAO,UAAA,iBAAA,CAAc;AAAA,UAAU;AAAA,UAC/BP,EAAe,OAAOK,EAAQ,OAAO,eAAe,CAAC,CAAC;AAAA,QAAA,GACzD;AAAA,0BACCF,GAAA,EACC,UAAA;AAAA,UAAA,gBAAAI,EAAC,YAAO,UAAA,kBAAA,CAAe;AAAA,UAAU;AAAA,UAChCP,EAAe,OAAOK,EAAQ,OAAO,iBAAiB,CAAC,CAAC;AAAA,QAAA,GAC3D;AAAA,0BACCF,GAAA,EACC,UAAA;AAAA,UAAA,gBAAAI,EAAC,YAAO,UAAA,kBAAA,CAAe;AAAA,UAAU;AAAA,UAChCP,EAAe,OAAOK,EAAQ,OAAO,iBAAiB,CAAC,CAAC;AAAA,QAAA,EAAA,CAC3D;AAAA,MAAA,EAAA,CACF;AAAA,IAAA,EAAA,CAEJ;AAAA,EAAA,GAEJ;AAEJ;AAEA,SAASI,EAA6B,EAAE,WAAAC,GAAW,WAAAC,KAAwC;AACzF,2BACGC,GAAA,EAA6B,WAAAF,GAAsB,WAAAC,GAClD,UAAA,gBAAAJ,EAACZ,KAAqB,GACxB;AAEJ;"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PayrollShow } from '@gusto/embedded-api/models/components/payroll';
|
|
2
|
-
export interface PayrollConfigurationContextValue {
|
|
3
|
-
payrollData: {
|
|
4
|
-
payrollShow?: PayrollShow | null;
|
|
5
|
-
};
|
|
6
|
-
}
|
|
7
|
-
export declare const PayrollConfigurationContext: import('react').Context<PayrollConfigurationContextValue | undefined>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PayrollConfigurationContext.js","sources":["../../../../../src/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.ts"],"sourcesContent":["import { createContext } from 'react'\nimport type { PayrollShow } from '@gusto/embedded-api/models/components/payroll'\n\nexport interface PayrollConfigurationContextValue {\n payrollData: {\n payrollShow?: PayrollShow | null\n }\n}\n\nexport const PayrollConfigurationContext = createContext<\n PayrollConfigurationContextValue | undefined\n>(undefined)\n"],"names":["PayrollConfigurationContext","createContext"],"mappings":";AASO,MAAMA,IAA8BC,EAEzC,MAAS;"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { BaseBoundariesProps } from '../../../Base/Base';
|
|
3
|
-
export interface PayrollConfigurationProviderProps extends BaseBoundariesProps {
|
|
4
|
-
companyId: string;
|
|
5
|
-
payrollId: string;
|
|
6
|
-
children: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
declare function ComposedPayrollConfigurationProvider({ companyId, payrollId, children, FallbackComponent, LoaderComponent, onErrorBoundaryError, }: PayrollConfigurationProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export { ComposedPayrollConfigurationProvider as PayrollConfigurationProvider };
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { usePayrollsGetSuspense as l } from "@gusto/embedded-api/react-query/payrollsGet";
|
|
3
|
-
import { PayrollConfigurationContext as u } from "./PayrollConfigurationContext.js";
|
|
4
|
-
import { BaseBoundaries as s } from "../../../Base/Base.js";
|
|
5
|
-
function d({
|
|
6
|
-
companyId: o,
|
|
7
|
-
payrollId: r,
|
|
8
|
-
children: t
|
|
9
|
-
}) {
|
|
10
|
-
const { data: e } = l({
|
|
11
|
-
companyId: o,
|
|
12
|
-
payrollId: r,
|
|
13
|
-
include: ["taxes", "benefits", "deductions"]
|
|
14
|
-
}), n = {
|
|
15
|
-
payrollData: e
|
|
16
|
-
};
|
|
17
|
-
return /* @__PURE__ */ i(u.Provider, { value: n, children: t });
|
|
18
|
-
}
|
|
19
|
-
function p({
|
|
20
|
-
companyId: o,
|
|
21
|
-
payrollId: r,
|
|
22
|
-
children: t,
|
|
23
|
-
FallbackComponent: e,
|
|
24
|
-
LoaderComponent: n,
|
|
25
|
-
onErrorBoundaryError: a
|
|
26
|
-
}) {
|
|
27
|
-
return /* @__PURE__ */ i(
|
|
28
|
-
s,
|
|
29
|
-
{
|
|
30
|
-
FallbackComponent: e,
|
|
31
|
-
LoaderComponent: n,
|
|
32
|
-
onErrorBoundaryError: a,
|
|
33
|
-
children: /* @__PURE__ */ i(d, { companyId: o, payrollId: r, children: t })
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
export {
|
|
38
|
-
p as PayrollConfigurationProvider
|
|
39
|
-
};
|
|
40
|
-
//# sourceMappingURL=PayrollConfigurationProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PayrollConfigurationProvider.js","sources":["../../../../../src/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport { usePayrollsGetSuspense } from '@gusto/embedded-api/react-query/payrollsGet'\nimport {\n PayrollConfigurationContext,\n type PayrollConfigurationContextValue,\n} from './PayrollConfigurationContext'\nimport { BaseBoundaries, type BaseBoundariesProps } from '@/components/Base/Base'\n\nexport interface PayrollConfigurationProviderProps extends BaseBoundariesProps {\n companyId: string\n payrollId: string\n children: ReactNode\n}\n\nfunction PayrollConfigurationProvider({\n companyId,\n payrollId,\n children,\n}: PayrollConfigurationProviderProps) {\n const { data: payrollData } = usePayrollsGetSuspense({\n companyId,\n payrollId,\n include: ['taxes', 'benefits', 'deductions'],\n })\n\n const contextValue: PayrollConfigurationContextValue = {\n payrollData,\n }\n\n return (\n <PayrollConfigurationContext.Provider value={contextValue}>\n {children}\n </PayrollConfigurationContext.Provider>\n )\n}\n\nfunction ComposedPayrollConfigurationProvider({\n companyId,\n payrollId,\n children,\n FallbackComponent,\n LoaderComponent,\n onErrorBoundaryError,\n}: PayrollConfigurationProviderProps) {\n return (\n <BaseBoundaries\n FallbackComponent={FallbackComponent}\n LoaderComponent={LoaderComponent}\n onErrorBoundaryError={onErrorBoundaryError}\n >\n <PayrollConfigurationProvider companyId={companyId} payrollId={payrollId}>\n {children}\n </PayrollConfigurationProvider>\n </BaseBoundaries>\n )\n}\n\nexport { ComposedPayrollConfigurationProvider as PayrollConfigurationProvider }\n"],"names":["PayrollConfigurationProvider","companyId","payrollId","children","payrollData","usePayrollsGetSuspense","contextValue","PayrollConfigurationContext","ComposedPayrollConfigurationProvider","FallbackComponent","LoaderComponent","onErrorBoundaryError","jsx","BaseBoundaries"],"mappings":";;;;AAcA,SAASA,EAA6B;AAAA,EACpC,WAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AACF,GAAsC;AACpC,QAAM,EAAE,MAAMC,EAAA,IAAgBC,EAAuB;AAAA,IACnD,WAAAJ;AAAA,IACA,WAAAC;AAAA,IACA,SAAS,CAAC,SAAS,YAAY,YAAY;AAAA,EAAA,CAC5C,GAEKI,IAAiD;AAAA,IACrD,aAAAF;AAAA,EAAA;AAGF,2BACGG,EAA4B,UAA5B,EAAqC,OAAOD,GAC1C,UAAAH,GACH;AAEJ;AAEA,SAASK,EAAqC;AAAA,EAC5C,WAAAP;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,mBAAAM;AAAA,EACA,iBAAAC;AAAA,EACA,sBAAAC;AACF,GAAsC;AACpC,SACE,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,mBAAAJ;AAAA,MACA,iBAAAC;AAAA,MACA,sBAAAC;AAAA,MAEA,UAAA,gBAAAC,EAACZ,GAAA,EAA6B,WAAAC,GAAsB,WAAAC,GACjD,UAAAC,EAAA,CACH;AAAA,IAAA;AAAA,EAAA;AAGN;"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import "./types/i18next.d.ts"
|
|
2
|
-
export { PayrollConfiguration } from './PayrollConfiguration';
|
|
3
|
-
export { PayrollConfigurationProvider } from './PayrollConfigurationProvider';
|
|
4
|
-
export { usePayrollConfiguration } from './usePayrollConfiguration';
|
|
5
|
-
export type { PayrollConfigurationContextValue } from './PayrollConfigurationContext';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { useContext as r } from "react";
|
|
2
|
-
import { PayrollConfigurationContext as t } from "./PayrollConfigurationContext.js";
|
|
3
|
-
function e() {
|
|
4
|
-
const o = r(t);
|
|
5
|
-
if (o === void 0)
|
|
6
|
-
throw new Error("usePayrollConfiguration must be used within a PayrollConfigurationProvider");
|
|
7
|
-
return o;
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
e as usePayrollConfiguration
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=usePayrollConfiguration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePayrollConfiguration.js","sources":["../../../../../src/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.ts"],"sourcesContent":["import { useContext } from 'react'\nimport {\n PayrollConfigurationContext,\n type PayrollConfigurationContextValue,\n} from './PayrollConfigurationContext'\n\nexport function usePayrollConfiguration(): PayrollConfigurationContextValue {\n const context = useContext(PayrollConfigurationContext)\n if (context === undefined) {\n throw new Error('usePayrollConfiguration must be used within a PayrollConfigurationProvider')\n }\n return context\n}\n"],"names":["usePayrollConfiguration","context","useContext","PayrollConfigurationContext"],"mappings":";;AAMO,SAASA,IAA4D;AAC1E,QAAMC,IAAUC,EAAWC,CAA2B;AACtD,MAAIF,MAAY;AACd,UAAM,IAAI,MAAM,4EAA4E;AAE9F,SAAOA;AACT;"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ObservabilityError, ObservabilityErrorType } from '../../types/observability';
|
|
2
|
-
/**
|
|
3
|
-
* Converts SDK errors into structured ObservabilityError objects
|
|
4
|
-
*/
|
|
5
|
-
export declare function createObservabilityError(error: unknown, type?: ObservabilityErrorType): ObservabilityError | null;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { APIError as r } from "@gusto/embedded-api/models/errors/apierror";
|
|
2
|
-
import { GustoEmbeddedError as s } from "@gusto/embedded-api/models/errors/gustoembeddederror";
|
|
3
|
-
import { SDKValidationError as e } from "@gusto/embedded-api/models/errors/sdkvalidationerror";
|
|
4
|
-
function u(t, n) {
|
|
5
|
-
const o = Date.now(), i = t instanceof Error ? t.message : "Unknown error", a = t instanceof Error ? t.stack : void 0;
|
|
6
|
-
return t instanceof e ? {
|
|
7
|
-
type: n || "validation_error",
|
|
8
|
-
message: i,
|
|
9
|
-
stack: a,
|
|
10
|
-
context: {
|
|
11
|
-
validationSchema: t.pretty()
|
|
12
|
-
},
|
|
13
|
-
originalError: t,
|
|
14
|
-
timestamp: o
|
|
15
|
-
} : t instanceof r ? {
|
|
16
|
-
type: n || "api_error",
|
|
17
|
-
message: i,
|
|
18
|
-
stack: a,
|
|
19
|
-
context: {
|
|
20
|
-
statusCode: t.httpMeta.response.status
|
|
21
|
-
},
|
|
22
|
-
originalError: t,
|
|
23
|
-
timestamp: o
|
|
24
|
-
} : t instanceof s ? {
|
|
25
|
-
type: n || "api_error",
|
|
26
|
-
message: i,
|
|
27
|
-
stack: a,
|
|
28
|
-
context: {
|
|
29
|
-
statusCode: t.httpMeta.response.status
|
|
30
|
-
},
|
|
31
|
-
originalError: t,
|
|
32
|
-
timestamp: o
|
|
33
|
-
} : n ? {
|
|
34
|
-
type: n,
|
|
35
|
-
message: i,
|
|
36
|
-
stack: a,
|
|
37
|
-
context: {},
|
|
38
|
-
originalError: t,
|
|
39
|
-
timestamp: o
|
|
40
|
-
} : null;
|
|
41
|
-
}
|
|
42
|
-
export {
|
|
43
|
-
u as createObservabilityError
|
|
44
|
-
};
|
|
45
|
-
//# sourceMappingURL=observabilityUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"observabilityUtils.js","sources":["../../../src/contexts/ObservabilityProvider/observabilityUtils.ts"],"sourcesContent":["import { APIError } from '@gusto/embedded-api/models/errors/apierror'\nimport { GustoEmbeddedError } from '@gusto/embedded-api/models/errors/gustoembeddederror'\nimport { SDKValidationError } from '@gusto/embedded-api/models/errors/sdkvalidationerror'\nimport type { ObservabilityError, ObservabilityErrorType } from '@/types/observability'\n\n/**\n * Converts SDK errors into structured ObservabilityError objects\n */\nexport function createObservabilityError(\n error: unknown,\n type?: ObservabilityErrorType,\n): ObservabilityError | null {\n const timestamp = Date.now()\n const message = error instanceof Error ? error.message : 'Unknown error'\n const stack = error instanceof Error ? error.stack : undefined\n\n // Auto-detect error type based on instance if not provided\n if (error instanceof SDKValidationError) {\n return {\n type: type || 'validation_error',\n message,\n stack,\n context: {\n validationSchema: error.pretty(),\n },\n originalError: error,\n timestamp,\n }\n }\n\n if (error instanceof APIError) {\n return {\n type: type || 'api_error',\n message,\n stack,\n context: {\n statusCode: error.httpMeta.response.status,\n },\n originalError: error,\n timestamp,\n }\n }\n\n if (error instanceof GustoEmbeddedError) {\n return {\n type: type || 'api_error',\n message,\n stack,\n context: {\n statusCode: error.httpMeta.response.status,\n },\n originalError: error,\n timestamp,\n }\n }\n\n // For unknown errors, only create ObservabilityError if type is explicitly provided\n if (type) {\n return {\n type,\n message,\n stack,\n context: {},\n originalError: error,\n timestamp,\n }\n }\n\n return null\n}\n"],"names":["createObservabilityError","error","type","timestamp","message","stack","SDKValidationError","APIError","GustoEmbeddedError"],"mappings":";;;AAQO,SAASA,EACdC,GACAC,GAC2B;AAC3B,QAAMC,IAAY,KAAK,IAAA,GACjBC,IAAUH,aAAiB,QAAQA,EAAM,UAAU,iBACnDI,IAAQJ,aAAiB,QAAQA,EAAM,QAAQ;AAGrD,SAAIA,aAAiBK,IACZ;AAAA,IACL,MAAMJ,KAAQ;AAAA,IACd,SAAAE;AAAA,IACA,OAAAC;AAAA,IACA,SAAS;AAAA,MACP,kBAAkBJ,EAAM,OAAA;AAAA,IAAO;AAAA,IAEjC,eAAeA;AAAA,IACf,WAAAE;AAAA,EAAA,IAIAF,aAAiBM,IACZ;AAAA,IACL,MAAML,KAAQ;AAAA,IACd,SAAAE;AAAA,IACA,OAAAC;AAAA,IACA,SAAS;AAAA,MACP,YAAYJ,EAAM,SAAS,SAAS;AAAA,IAAA;AAAA,IAEtC,eAAeA;AAAA,IACf,WAAAE;AAAA,EAAA,IAIAF,aAAiBO,IACZ;AAAA,IACL,MAAMN,KAAQ;AAAA,IACd,SAAAE;AAAA,IACA,OAAAC;AAAA,IACA,SAAS;AAAA,MACP,YAAYJ,EAAM,SAAS,SAAS;AAAA,IAAA;AAAA,IAEtC,eAAeA;AAAA,IACf,WAAAE;AAAA,EAAA,IAKAD,IACK;AAAA,IACL,MAAAA;AAAA,IACA,SAAAE;AAAA,IACA,OAAAC;AAAA,IACA,SAAS,CAAA;AAAA,IACT,eAAeJ;AAAA,IACf,WAAAE;AAAA,EAAA,IAIG;AACT;"}
|