@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.
Files changed (712) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +6 -0
  3. package/dist/UNSTABLE_Hooks.d.ts +1 -1
  4. package/dist/UNSTABLE_Hooks.js +50 -6
  5. package/dist/UNSTABLE_Hooks.js.map +1 -1
  6. package/dist/components/Base/Base.d.ts +8 -9
  7. package/dist/components/Base/Base.js +123 -102
  8. package/dist/components/Base/Base.js.map +1 -1
  9. package/dist/components/Base/createCompoundContext.js.map +1 -1
  10. package/dist/components/Base/index.d.ts +1 -1
  11. package/dist/components/Base/useBase.d.ts +3 -7
  12. package/dist/components/Base/useBase.js.map +1 -1
  13. package/dist/components/Base/useBaseSubmit.d.ts +3 -5
  14. package/dist/components/Base/useBaseSubmit.js +27 -50
  15. package/dist/components/Base/useBaseSubmit.js.map +1 -1
  16. package/dist/components/Common/DataView/DataCards/DataCards.js +42 -36
  17. package/dist/components/Common/DataView/DataCards/DataCards.js.map +1 -1
  18. package/dist/components/Common/Fields/CheckboxField/CheckboxField.d.ts +2 -0
  19. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js +22 -19
  20. package/dist/components/Common/Fields/CheckboxField/CheckboxField.js.map +1 -1
  21. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.d.ts +1 -1
  22. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js +32 -30
  23. package/dist/components/Common/Fields/CheckboxGroupField/CheckboxGroupField.js.map +1 -1
  24. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.d.ts +1 -1
  25. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js +36 -34
  26. package/dist/components/Common/Fields/ComboBoxField/ComboBoxField.js.map +1 -1
  27. package/dist/components/Common/Fields/DatePickerField/DatePickerField.d.ts +5 -3
  28. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js +52 -40
  29. package/dist/components/Common/Fields/DatePickerField/DatePickerField.js.map +1 -1
  30. package/dist/components/Common/Fields/FileInputField/FileInputField.js +24 -22
  31. package/dist/components/Common/Fields/FileInputField/FileInputField.js.map +1 -1
  32. package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js +24 -22
  33. package/dist/components/Common/Fields/MultiSelectComboBoxField/MultiSelectComboBoxField.js.map +1 -1
  34. package/dist/components/Common/Fields/NumberInputField/NumberInputField.d.ts +2 -0
  35. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js +31 -28
  36. package/dist/components/Common/Fields/NumberInputField/NumberInputField.js.map +1 -1
  37. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.d.ts +3 -1
  38. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js +30 -27
  39. package/dist/components/Common/Fields/RadioGroupField/RadioGroupField.js.map +1 -1
  40. package/dist/components/Common/Fields/SelectField/SelectField.d.ts +3 -1
  41. package/dist/components/Common/Fields/SelectField/SelectField.js +31 -28
  42. package/dist/components/Common/Fields/SelectField/SelectField.js.map +1 -1
  43. package/dist/components/Common/Fields/SwitchField/SwitchField.d.ts +2 -0
  44. package/dist/components/Common/Fields/SwitchField/SwitchField.js +24 -21
  45. package/dist/components/Common/Fields/SwitchField/SwitchField.js.map +1 -1
  46. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js +24 -22
  47. package/dist/components/Common/Fields/TextAreaField/TextAreaField.js.map +1 -1
  48. package/dist/components/Common/Fields/TextInputField/TextInputField.d.ts +2 -0
  49. package/dist/components/Common/Fields/TextInputField/TextInputField.js +26 -23
  50. package/dist/components/Common/Fields/TextInputField/TextInputField.js.map +1 -1
  51. package/dist/components/Common/Fields/hooks/useField.d.ts +3 -2
  52. package/dist/components/Common/Fields/hooks/useField.js +37 -33
  53. package/dist/components/Common/Fields/hooks/useField.js.map +1 -1
  54. package/dist/components/Common/ReorderableList/ReorderableList.js.map +1 -1
  55. package/dist/components/Common/SignatureForm/SignatureForm.js +10 -15
  56. package/dist/components/Common/SignatureForm/SignatureForm.js.map +1 -1
  57. package/dist/components/Common/SignatureForm/SignatureFormActions.js +10 -14
  58. package/dist/components/Common/SignatureForm/SignatureFormActions.js.map +1 -1
  59. package/dist/components/Common/SignatureForm/SignatureFormFields.js +14 -19
  60. package/dist/components/Common/SignatureForm/SignatureFormFields.js.map +1 -1
  61. package/dist/components/Common/UI/Button/Button.js +33 -29
  62. package/dist/components/Common/UI/Button/Button.js.map +1 -1
  63. package/dist/components/Common/UI/Button/Button.module.scss.js +5 -3
  64. package/dist/components/Common/UI/Button/Button.module.scss.js.map +1 -1
  65. package/dist/components/Common/UI/Button/ButtonTypes.d.ts +4 -0
  66. package/dist/components/Common/UI/Button/ButtonTypes.js.map +1 -1
  67. package/dist/components/Common/UI/DescriptionList/DescriptionList.module.scss.js +1 -1
  68. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js +94 -80
  69. package/dist/components/Common/UI/MultiSelectComboBox/MultiSelectComboBox.js.map +1 -1
  70. package/dist/components/Common/UI/NumberInput/NumberInput.js +1 -1
  71. package/dist/components/Common/UI/NumberInput/NumberInput.js.map +1 -1
  72. package/dist/components/Company/AssignSignatory/AssignSignatory.js +7 -11
  73. package/dist/components/Company/AssignSignatory/AssignSignatory.js.map +1 -1
  74. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js +6 -10
  75. package/dist/components/Company/AssignSignatory/AssignSignatorySelection.js.map +1 -1
  76. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js +8 -11
  77. package/dist/components/Company/AssignSignatory/CreateSignatory/Actions.js.map +1 -1
  78. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js +6 -9
  79. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatory.js.map +1 -1
  80. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js +13 -14
  81. package/dist/components/Company/AssignSignatory/CreateSignatory/CreateSignatoryForm.js.map +1 -1
  82. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js +8 -9
  83. package/dist/components/Company/AssignSignatory/CreateSignatory/useCreateSignatory.js.map +1 -1
  84. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js +6 -9
  85. package/dist/components/Company/AssignSignatory/InviteSignatory/Actions.js.map +1 -1
  86. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js +5 -8
  87. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatory.js.map +1 -1
  88. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js +13 -14
  89. package/dist/components/Company/AssignSignatory/InviteSignatory/InviteSignatoryForm.js.map +1 -1
  90. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js +8 -9
  91. package/dist/components/Company/AssignSignatory/InviteSignatory/useInviteSignatory.js.map +1 -1
  92. package/dist/components/Company/AssignSignatory/TitleSelect.js +2 -5
  93. package/dist/components/Company/AssignSignatory/TitleSelect.js.map +1 -1
  94. package/dist/components/Company/AssignSignatory/useAssignSignatory.js +10 -11
  95. package/dist/components/Company/AssignSignatory/useAssignSignatory.js.map +1 -1
  96. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js +9 -11
  97. package/dist/components/Company/BankAccount/BankAccountForm/Actions.js.map +1 -1
  98. package/dist/components/Company/BankAccount/BankAccountForm/Form.js +9 -13
  99. package/dist/components/Company/BankAccount/BankAccountForm/Form.js.map +1 -1
  100. package/dist/components/Company/BankAccount/BankAccountForm/context.js +8 -9
  101. package/dist/components/Company/BankAccount/BankAccountForm/context.js.map +1 -1
  102. package/dist/components/Company/BankAccount/BankAccountList/Actions.js +10 -13
  103. package/dist/components/Company/BankAccount/BankAccountList/Actions.js.map +1 -1
  104. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js +12 -15
  105. package/dist/components/Company/BankAccount/BankAccountVerify/Actions.js.map +1 -1
  106. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js +4 -8
  107. package/dist/components/Company/BankAccount/BankAccountVerify/Form.js.map +1 -1
  108. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js +5 -8
  109. package/dist/components/Company/DocumentSigner/DocumentList/Actions.js.map +1 -1
  110. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js +11 -15
  111. package/dist/components/Company/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  112. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js +8 -9
  113. package/dist/components/Company/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  114. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
  115. package/dist/components/Company/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  116. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js +8 -9
  117. package/dist/components/Company/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  118. package/dist/components/Company/FederalTaxes/Actions.js +8 -11
  119. package/dist/components/Company/FederalTaxes/Actions.js.map +1 -1
  120. package/dist/components/Company/FederalTaxes/FederalTaxes.js +15 -19
  121. package/dist/components/Company/FederalTaxes/FederalTaxes.js.map +1 -1
  122. package/dist/components/Company/FederalTaxes/Form.js +6 -8
  123. package/dist/components/Company/FederalTaxes/Form.js.map +1 -1
  124. package/dist/components/Company/FederalTaxes/useFederalTaxes.js +10 -11
  125. package/dist/components/Company/FederalTaxes/useFederalTaxes.js.map +1 -1
  126. package/dist/components/Company/Industry/Actions.js +8 -11
  127. package/dist/components/Company/Industry/Actions.js.map +1 -1
  128. package/dist/components/Company/Industry/Context.js +11 -12
  129. package/dist/components/Company/Industry/Context.js.map +1 -1
  130. package/dist/components/Company/Industry/Edit.js +10 -14
  131. package/dist/components/Company/Industry/Edit.js.map +1 -1
  132. package/dist/components/Company/Locations/LocationForm/Actions.js +8 -11
  133. package/dist/components/Company/Locations/LocationForm/Actions.js.map +1 -1
  134. package/dist/components/Company/Locations/LocationForm/Form.js +5 -7
  135. package/dist/components/Company/Locations/LocationForm/Form.js.map +1 -1
  136. package/dist/components/Company/Locations/LocationForm/LocationForm.js +15 -19
  137. package/dist/components/Company/Locations/LocationForm/LocationForm.js.map +1 -1
  138. package/dist/components/Company/Locations/LocationForm/useLocationForm.js +8 -9
  139. package/dist/components/Company/Locations/LocationForm/useLocationForm.js.map +1 -1
  140. package/dist/components/Company/Locations/LocationsList/Actions.js +6 -9
  141. package/dist/components/Company/Locations/LocationsList/Actions.js.map +1 -1
  142. package/dist/components/Company/Locations/LocationsList/List.js +17 -19
  143. package/dist/components/Company/Locations/LocationsList/List.js.map +1 -1
  144. package/dist/components/Company/Locations/LocationsList/LocationsList.js +6 -10
  145. package/dist/components/Company/Locations/LocationsList/LocationsList.js.map +1 -1
  146. package/dist/components/Company/Locations/LocationsList/useLocationsList.js +8 -9
  147. package/dist/components/Company/Locations/LocationsList/useLocationsList.js.map +1 -1
  148. package/dist/components/Company/OnboardingOverview/Completed.js +12 -15
  149. package/dist/components/Company/OnboardingOverview/Completed.js.map +1 -1
  150. package/dist/components/Company/OnboardingOverview/MissingRequirements.js +9 -12
  151. package/dist/components/Company/OnboardingOverview/MissingRequirements.js.map +1 -1
  152. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js +6 -10
  153. package/dist/components/Company/OnboardingOverview/OnboardingOverview.js.map +1 -1
  154. package/dist/components/Company/OnboardingOverview/context.js +8 -9
  155. package/dist/components/Company/OnboardingOverview/context.js.map +1 -1
  156. package/dist/components/Company/PaySchedule/PaySchedule.js +60 -63
  157. package/dist/components/Company/PaySchedule/PaySchedule.js.map +1 -1
  158. package/dist/components/Company/PaySchedule/_parts/Actions.js +10 -13
  159. package/dist/components/Company/PaySchedule/_parts/Actions.js.map +1 -1
  160. package/dist/components/Company/PaySchedule/_parts/Edit.js +15 -15
  161. package/dist/components/Company/PaySchedule/_parts/Edit.js.map +1 -1
  162. package/dist/components/Company/PaySchedule/_parts/Head.js +11 -14
  163. package/dist/components/Company/PaySchedule/_parts/Head.js.map +1 -1
  164. package/dist/components/Company/PaySchedule/_parts/List.js +19 -21
  165. package/dist/components/Company/PaySchedule/_parts/List.js.map +1 -1
  166. package/dist/components/Company/PaySchedule/usePaySchedule.js +10 -11
  167. package/dist/components/Company/PaySchedule/usePaySchedule.js.map +1 -1
  168. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js +5 -8
  169. package/dist/components/Company/StateTaxes/StateTaxesForm/Actions.js.map +1 -1
  170. package/dist/components/Company/StateTaxes/StateTaxesForm/StateTaxesForm.js.map +1 -1
  171. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js +8 -9
  172. package/dist/components/Company/StateTaxes/StateTaxesForm/context.js.map +1 -1
  173. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js +6 -9
  174. package/dist/components/Company/StateTaxes/StateTaxesList/Actions.js.map +1 -1
  175. package/dist/components/Company/StateTaxes/StateTaxesList/List.js +5 -8
  176. package/dist/components/Company/StateTaxes/StateTaxesList/List.js.map +1 -1
  177. package/dist/components/Company/StateTaxes/StateTaxesList/context.js +8 -9
  178. package/dist/components/Company/StateTaxes/StateTaxesList/context.js.map +1 -1
  179. package/dist/components/Contractor/Address/Address.js +3 -7
  180. package/dist/components/Contractor/Address/Address.js.map +1 -1
  181. package/dist/components/Contractor/Address/Form.js +6 -8
  182. package/dist/components/Contractor/Address/Form.js.map +1 -1
  183. package/dist/components/Contractor/Address/useAddress.js +10 -11
  184. package/dist/components/Contractor/Address/useAddress.js.map +1 -1
  185. package/dist/components/Contractor/ContractorList/index.js +29 -30
  186. package/dist/components/Contractor/ContractorList/index.js.map +1 -1
  187. package/dist/components/Contractor/NewHireReport/NewHireReport.js +2 -3
  188. package/dist/components/Contractor/NewHireReport/NewHireReport.js.map +1 -1
  189. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js +10 -14
  190. package/dist/components/Contractor/PaymentMethod/BankAccountForm.js.map +1 -1
  191. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js +2 -3
  192. package/dist/components/Contractor/PaymentMethod/PaymentMethod.js.map +1 -1
  193. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js +2 -5
  194. package/dist/components/Contractor/PaymentMethod/PaymentTypeForm.js.map +1 -1
  195. package/dist/components/Contractor/Payments/CreatePayment/CreatePayment.js.map +1 -1
  196. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js +12 -14
  197. package/dist/components/Contractor/Payments/CreatePayment/CreatePaymentPresentation.js.map +1 -1
  198. package/dist/components/Contractor/Payments/CreatePayment/EditContractorPaymentPresentation.js +10 -10
  199. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js +18 -21
  200. package/dist/components/Contractor/Payments/CreatePayment/FastAchSubmissionBlockerBanner.js.map +1 -1
  201. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js +3 -4
  202. package/dist/components/Contractor/Payments/CreatePayment/PreviewPresentation.js.map +1 -1
  203. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js +17 -19
  204. package/dist/components/Contractor/Payments/PaymentHistory/PaymentHistoryPresentation.js.map +1 -1
  205. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js +6 -8
  206. package/dist/components/Contractor/Payments/PaymentStatement/PaymentStatementPresentation.js.map +1 -1
  207. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js +2 -4
  208. package/dist/components/Contractor/Payments/PaymentSummary/PaymentSummaryPresentation.js.map +1 -1
  209. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js +2 -5
  210. package/dist/components/Contractor/Payments/PaymentsList/PaymentsListPresentation.js.map +1 -1
  211. package/dist/components/Contractor/Profile/ContractorProfileForm.js +15 -15
  212. package/dist/components/Contractor/Profile/useContractorProfile.js +33 -32
  213. package/dist/components/Contractor/Profile/useContractorProfile.js.map +1 -1
  214. package/dist/components/Contractor/Submit/Submit.js +20 -22
  215. package/dist/components/Contractor/Submit/Submit.js.map +1 -1
  216. package/dist/components/Employee/Compensation/Actions.js +12 -14
  217. package/dist/components/Employee/Compensation/Actions.js.map +1 -1
  218. package/dist/components/Employee/Compensation/Compensation.js.map +1 -1
  219. package/dist/components/Employee/Compensation/Edit.js +27 -28
  220. package/dist/components/Employee/Compensation/Edit.js.map +1 -1
  221. package/dist/components/Employee/Compensation/List.js +23 -25
  222. package/dist/components/Employee/Compensation/List.js.map +1 -1
  223. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js +61 -57
  224. package/dist/components/Employee/Deductions/DeductionsForm/ChildSupportForm.js.map +1 -1
  225. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js +15 -16
  226. package/dist/components/Employee/Deductions/DeductionsForm/CustomDeductionForm.js.map +1 -1
  227. package/dist/components/Employee/Deductions/DeductionsForm/DeductionsForm.js.map +1 -1
  228. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js +15 -16
  229. package/dist/components/Employee/Deductions/DeductionsForm/GarnishmentForm.js.map +1 -1
  230. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js +18 -19
  231. package/dist/components/Employee/Deductions/DeductionsList/DeductionsList.js.map +1 -1
  232. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js +6 -7
  233. package/dist/components/Employee/Deductions/IncludeDeductions/IncludeDeductions.js.map +1 -1
  234. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js +6 -9
  235. package/dist/components/Employee/DocumentSigner/DocumentList/Actions.js.map +1 -1
  236. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js +10 -14
  237. package/dist/components/Employee/DocumentSigner/DocumentList/DocumentList.js.map +1 -1
  238. package/dist/components/Employee/DocumentSigner/DocumentList/List.js +2 -6
  239. package/dist/components/Employee/DocumentSigner/DocumentList/List.js.map +1 -1
  240. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js +8 -9
  241. package/dist/components/Employee/DocumentSigner/DocumentList/useDocumentList.js.map +1 -1
  242. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js +24 -26
  243. package/dist/components/Employee/DocumentSigner/EmploymentEligibility/EmploymentEligibilityPresentation.js.map +1 -1
  244. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js +9 -11
  245. package/dist/components/Employee/DocumentSigner/I9SignatureForm/I9SignatureForm.js.map +1 -1
  246. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js +11 -15
  247. package/dist/components/Employee/DocumentSigner/SignatureForm/SignatureForm.js.map +1 -1
  248. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js +8 -9
  249. package/dist/components/Employee/DocumentSigner/SignatureForm/useSignatureForm.js.map +1 -1
  250. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js +6 -9
  251. package/dist/components/Employee/EmployeeDocuments/EmployeeDocumentsPresentation.js.map +1 -1
  252. package/dist/components/Employee/EmployeeList/Actions.js +6 -9
  253. package/dist/components/Employee/EmployeeList/Actions.js.map +1 -1
  254. package/dist/components/Employee/EmployeeList/EmployeeList.js +3 -7
  255. package/dist/components/Employee/EmployeeList/EmployeeList.js.map +1 -1
  256. package/dist/components/Employee/EmployeeList/Head.js +5 -8
  257. package/dist/components/Employee/EmployeeList/Head.js.map +1 -1
  258. package/dist/components/Employee/EmployeeList/List.js +16 -17
  259. package/dist/components/Employee/EmployeeList/List.js.map +1 -1
  260. package/dist/components/Employee/EmployeeList/useEmployeeList.js +8 -9
  261. package/dist/components/Employee/EmployeeList/useEmployeeList.js.map +1 -1
  262. package/dist/components/Employee/FederalTaxes/Actions.js +7 -10
  263. package/dist/components/Employee/FederalTaxes/Actions.js.map +1 -1
  264. package/dist/components/Employee/FederalTaxes/FederalForm.js +10 -13
  265. package/dist/components/Employee/FederalTaxes/FederalForm.js.map +1 -1
  266. package/dist/components/Employee/FederalTaxes/FederalTaxes.js +42 -42
  267. package/dist/components/Employee/FederalTaxes/FederalTaxes.js.map +1 -1
  268. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js +8 -9
  269. package/dist/components/Employee/FederalTaxes/useFederalTaxes.js.map +1 -1
  270. package/dist/components/Employee/Landing/Landing.js +14 -15
  271. package/dist/components/Employee/Landing/Landing.js.map +1 -1
  272. package/dist/components/Employee/OnboardingSummary/OnboardingSummary.js +7 -7
  273. package/dist/components/Employee/PaymentMethod/Actions.js +8 -11
  274. package/dist/components/Employee/PaymentMethod/Actions.js.map +1 -1
  275. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js +5 -8
  276. package/dist/components/Employee/PaymentMethod/BankAccountEdit.js.map +1 -1
  277. package/dist/components/Employee/PaymentMethod/BankAccountsList.js +9 -10
  278. package/dist/components/Employee/PaymentMethod/BankAccountsList.js.map +1 -1
  279. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js +7 -10
  280. package/dist/components/Employee/PaymentMethod/PaymentTypeForm.js.map +1 -1
  281. package/dist/components/Employee/PaymentMethod/Split.js +9 -10
  282. package/dist/components/Employee/PaymentMethod/Split.js.map +1 -1
  283. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js +10 -11
  284. package/dist/components/Employee/PaymentMethod/usePaymentMethod.js.map +1 -1
  285. package/dist/components/Employee/Profile/Actions.js +8 -11
  286. package/dist/components/Employee/Profile/Actions.js.map +1 -1
  287. package/dist/components/Employee/Profile/AdminPersonalDetails.js +14 -17
  288. package/dist/components/Employee/Profile/AdminPersonalDetails.js.map +1 -1
  289. package/dist/components/Employee/Profile/HomeAddress.d.ts +3 -3
  290. package/dist/components/Employee/Profile/HomeAddress.js +45 -44
  291. package/dist/components/Employee/Profile/HomeAddress.js.map +1 -1
  292. package/dist/components/Employee/Profile/PersonalDetailsInputs.js +10 -13
  293. package/dist/components/Employee/Profile/PersonalDetailsInputs.js.map +1 -1
  294. package/dist/components/Employee/Profile/Profile.js +30 -29
  295. package/dist/components/Employee/Profile/Profile.js.map +1 -1
  296. package/dist/components/Employee/Profile/useProfile.js +8 -9
  297. package/dist/components/Employee/Profile/useProfile.js.map +1 -1
  298. package/dist/components/Employee/StateTaxes/Actions.js +8 -11
  299. package/dist/components/Employee/StateTaxes/Actions.js.map +1 -1
  300. package/dist/components/Employee/StateTaxes/StateTaxes.js +50 -50
  301. package/dist/components/Employee/StateTaxes/StateTaxes.js.map +1 -1
  302. package/dist/components/Employee/StateTaxes/useStateTaxes.js +8 -9
  303. package/dist/components/Employee/StateTaxes/useStateTaxes.js.map +1 -1
  304. package/dist/components/Employee/Taxes/Actions.js +8 -11
  305. package/dist/components/Employee/Taxes/Actions.js.map +1 -1
  306. package/dist/components/Employee/Taxes/FederalForm.js +10 -13
  307. package/dist/components/Employee/Taxes/FederalForm.js.map +1 -1
  308. package/dist/components/Employee/Taxes/Taxes.js +53 -53
  309. package/dist/components/Employee/Taxes/Taxes.js.map +1 -1
  310. package/dist/components/Employee/Taxes/useTaxes.js +8 -9
  311. package/dist/components/Employee/Taxes/useTaxes.js.map +1 -1
  312. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.d.ts +11 -0
  313. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js +123 -0
  314. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployee.js.map +1 -0
  315. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.d.ts +11 -0
  316. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js +89 -0
  317. package/dist/components/Employee/Terminations/TerminateEmployee/TerminateEmployeePresentation.js.map +1 -0
  318. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.d.ts +2 -0
  319. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js +30 -0
  320. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlow.js.map +1 -0
  321. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.d.ts +24 -0
  322. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js +76 -0
  323. package/dist/components/Employee/Terminations/TerminationFlow/TerminationFlowComponents.js.map +1 -0
  324. package/dist/components/Employee/Terminations/TerminationFlow/index.d.ts +3 -0
  325. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.d.ts +8 -0
  326. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js +177 -0
  327. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.js.map +1 -0
  328. package/dist/components/Employee/Terminations/TerminationFlow/terminationStateMachine.test.d.ts +1 -0
  329. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.d.ts +9 -0
  330. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js +86 -0
  331. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummary.js.map +1 -0
  332. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.d.ts +20 -0
  333. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js +100 -0
  334. package/dist/components/Employee/Terminations/TerminationSummary/TerminationSummaryPresentation.js.map +1 -0
  335. package/dist/components/Employee/Terminations/TerminationsData.d.ts +6 -0
  336. package/dist/components/Employee/Terminations/index.d.ts +8 -0
  337. package/dist/components/Employee/Terminations/types.d.ts +1 -0
  338. package/dist/components/Employee/index.d.ts +7 -0
  339. package/dist/components/Employee/index.js +34 -28
  340. package/dist/components/Employee/index.js.map +1 -1
  341. package/dist/components/Flow/Flow.js +20 -23
  342. package/dist/components/Flow/Flow.js.map +1 -1
  343. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js +16 -18
  344. package/dist/components/InformationRequests/InformationRequestForm/InformationRequestForm.js.map +1 -1
  345. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js +18 -20
  346. package/dist/components/InformationRequests/InformationRequestList/InformationRequestList.js.map +1 -1
  347. package/dist/components/InformationRequests/InformationRequests.js +34 -35
  348. package/dist/components/InformationRequests/InformationRequests.js.map +1 -1
  349. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js +41 -41
  350. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetails.js.map +1 -1
  351. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsBanner/ConfirmWireDetailsBanner.js.map +1 -1
  352. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js +8 -10
  353. package/dist/components/Payroll/ConfirmWireDetails/ConfirmWireDetailsForm/ConfirmWireDetailsForm.js.map +1 -1
  354. package/dist/components/Payroll/Dismissal/DismissalFlow.d.ts +2 -0
  355. package/dist/components/Payroll/Dismissal/DismissalFlow.js +32 -0
  356. package/dist/components/Payroll/Dismissal/DismissalFlow.js.map +1 -0
  357. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.d.ts +16 -0
  358. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js +52 -0
  359. package/dist/components/Payroll/Dismissal/DismissalFlowComponents.js.map +1 -0
  360. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.d.ts +7 -0
  361. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js +73 -0
  362. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelection.js.map +1 -0
  363. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.d.ts +9 -0
  364. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js +50 -0
  365. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/DismissalPayPeriodSelectionPresentation.js.map +1 -0
  366. package/dist/components/Payroll/Dismissal/DismissalPayPeriodSelection/index.d.ts +3 -0
  367. package/dist/components/Payroll/Dismissal/dismissalStateMachine.d.ts +6 -0
  368. package/dist/components/Payroll/Dismissal/dismissalStateMachine.js +51 -0
  369. package/dist/components/Payroll/Dismissal/dismissalStateMachine.js.map +1 -0
  370. package/dist/components/Payroll/Dismissal/dismissalStateMachine.test.d.ts +1 -0
  371. package/dist/components/Payroll/Dismissal/index.d.ts +3 -0
  372. package/dist/components/Payroll/GrossUpModal/GrossUpModal.d.ts +1 -1
  373. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js +89 -76
  374. package/dist/components/Payroll/GrossUpModal/GrossUpModal.js.map +1 -1
  375. package/dist/components/Payroll/GrossUpModal/GrossUpModal.module.scss.js +6 -6
  376. package/dist/components/Payroll/GrossUpModal/GrossUpModalTypes.d.ts +0 -1
  377. package/dist/components/Payroll/OffCycle/OffCycleFlow.d.ts +1 -1
  378. package/dist/components/Payroll/OffCycle/OffCycleFlow.js +25 -18
  379. package/dist/components/Payroll/OffCycle/OffCycleFlow.js.map +1 -1
  380. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.d.ts +5 -0
  381. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js +31 -24
  382. package/dist/components/Payroll/OffCycle/OffCycleFlowComponents.js.map +1 -1
  383. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js +78 -75
  384. package/dist/components/Payroll/OffCycleCreation/OffCycleCreation.js.map +1 -1
  385. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.d.ts +1 -1
  386. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js +75 -68
  387. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.js.map +1 -1
  388. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.module.scss.js +8 -0
  389. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationPresentation.module.scss.js.map +1 -0
  390. package/dist/components/Payroll/OffCycleCreation/OffCycleCreationTypes.d.ts +0 -1
  391. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js +18 -26
  392. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.js.map +1 -1
  393. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormPresentation.module.scss.js +4 -4
  394. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js +4 -4
  395. package/dist/components/Payroll/OffCyclePayPeriodDateForm/OffCyclePayPeriodDateFormTypes.js.map +1 -1
  396. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.d.ts +1 -0
  397. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js +1 -0
  398. package/dist/components/Payroll/OffCyclePayPeriodDateForm/useOffCyclePayPeriodDateValidation.js.map +1 -1
  399. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js +6 -9
  400. package/dist/components/Payroll/OffCycleReasonSelection/OffCycleReasonSelectionPresentation.js.map +1 -1
  401. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js +12 -14
  402. package/dist/components/Payroll/OffCycleTaxWithholdingModal/OffCycleTaxWithholdingModal.js.map +1 -1
  403. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js +11 -14
  404. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerAlerts.js.map +1 -1
  405. package/dist/components/Payroll/PayrollBlocker/components/PayrollBlockerList.js +12 -12
  406. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js +174 -148
  407. package/dist/components/Payroll/PayrollConfiguration/PayrollConfiguration.js.map +1 -1
  408. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.d.ts +3 -3
  409. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js +71 -71
  410. package/dist/components/Payroll/PayrollConfiguration/PayrollConfigurationPresentation.js.map +1 -1
  411. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.d.ts +3 -2
  412. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js +8 -8
  413. package/dist/components/Payroll/PayrollConfiguration/grossUpHelpers.js.map +1 -1
  414. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.d.ts +5 -3
  415. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js +76 -70
  416. package/dist/components/Payroll/PayrollConfiguration/usePayrollConfigurationData.js.map +1 -1
  417. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js +47 -42
  418. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployee.js.map +1 -1
  419. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.d.ts +5 -3
  420. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js +256 -219
  421. package/dist/components/Payroll/PayrollEditEmployee/PayrollEditEmployeePresentation.js.map +1 -1
  422. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js +19 -21
  423. package/dist/components/Payroll/PayrollEditEmployee/TimeOffField.js.map +1 -1
  424. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.d.ts +1 -0
  425. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js +19 -0
  426. package/dist/components/Payroll/PayrollFlow/OffCycleFlowContextual.js.map +1 -0
  427. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.d.ts +3 -0
  428. package/dist/components/Payroll/PayrollFlow/PayrollFlowComponents.js.map +1 -1
  429. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.d.ts +1 -0
  430. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js +21 -0
  431. package/dist/components/Payroll/PayrollFlow/TransitionFlowContextual.js.map +1 -0
  432. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.d.ts +2 -0
  433. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js +95 -64
  434. package/dist/components/Payroll/PayrollFlow/payrollStateMachine.js.map +1 -1
  435. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js +53 -47
  436. package/dist/components/Payroll/PayrollHistory/PayrollHistory.js.map +1 -1
  437. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js +38 -40
  438. package/dist/components/Payroll/PayrollHistory/PayrollHistoryPresentation.js.map +1 -1
  439. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js +25 -23
  440. package/dist/components/Payroll/PayrollLanding/PayrollLandingFlowComponents.js.map +1 -1
  441. package/dist/components/Payroll/PayrollList/PayrollList.js +55 -43
  442. package/dist/components/Payroll/PayrollList/PayrollList.js.map +1 -1
  443. package/dist/components/Payroll/PayrollList/PayrollListPresentation.d.ts +2 -1
  444. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js +110 -95
  445. package/dist/components/Payroll/PayrollList/PayrollListPresentation.js.map +1 -1
  446. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js +12 -8
  447. package/dist/components/Payroll/PayrollList/PayrollListPresentation.module.scss.js.map +1 -1
  448. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js +15 -15
  449. package/dist/components/Payroll/PayrollOverview/PayrollOverview.js.map +1 -1
  450. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js +59 -59
  451. package/dist/components/Payroll/PayrollOverview/PayrollOverviewPresentation.js.map +1 -1
  452. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js +7 -10
  453. package/dist/components/Payroll/PayrollOverview/SubmissionBlockers/FastAchSubmissionBlockerBanner.js.map +1 -1
  454. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js +2 -3
  455. package/dist/components/Payroll/PayrollReceipts/PayrollReceiptsPresentation.js.map +1 -1
  456. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js +2 -4
  457. package/dist/components/Payroll/RecoveryCases/RecoveryCasesList/RecoveryCasesList.js.map +1 -1
  458. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js +11 -13
  459. package/dist/components/Payroll/RecoveryCases/RecoveryCasesResubmit/RecoveryCasesResubmit.js.map +1 -1
  460. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js +2 -5
  461. package/dist/components/Payroll/RecoveryCases/useRecoveryCaseErrorCode.js.map +1 -1
  462. package/dist/components/Payroll/Transition/TransitionFlow.d.ts +2 -0
  463. package/dist/components/Payroll/Transition/TransitionFlow.js +38 -0
  464. package/dist/components/Payroll/Transition/TransitionFlow.js.map +1 -0
  465. package/dist/components/Payroll/Transition/TransitionFlowComponents.d.ts +19 -0
  466. package/dist/components/Payroll/Transition/TransitionFlowComponents.js +54 -0
  467. package/dist/components/Payroll/Transition/TransitionFlowComponents.js.map +1 -0
  468. package/dist/components/Payroll/Transition/index.d.ts +3 -0
  469. package/dist/components/Payroll/Transition/transitionStateMachine.d.ts +6 -0
  470. package/dist/components/Payroll/Transition/transitionStateMachine.js +58 -0
  471. package/dist/components/Payroll/Transition/transitionStateMachine.js.map +1 -0
  472. package/dist/components/Payroll/Transition/transitionStateMachine.test.d.ts +1 -0
  473. package/dist/components/Payroll/TransitionCreation/TransitionCreation.d.ts +2 -0
  474. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js +92 -0
  475. package/dist/components/Payroll/TransitionCreation/TransitionCreation.js.map +1 -0
  476. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.d.ts +2 -0
  477. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js +109 -0
  478. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.js.map +1 -0
  479. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js +8 -0
  480. package/dist/components/Payroll/TransitionCreation/TransitionCreationPresentation.module.scss.js.map +1 -0
  481. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.d.ts +28 -0
  482. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js +21 -0
  483. package/dist/components/Payroll/TransitionCreation/TransitionCreationTypes.js.map +1 -0
  484. package/dist/components/Payroll/TransitionCreation/index.d.ts +3 -0
  485. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.d.ts +8 -0
  486. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js +83 -0
  487. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlert.js.map +1 -0
  488. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.d.ts +16 -0
  489. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js +100 -0
  490. package/dist/components/Payroll/TransitionPayrollAlert/TransitionPayrollAlertPresentation.js.map +1 -0
  491. package/dist/components/Payroll/TransitionPayrollAlert/index.d.ts +2 -0
  492. package/dist/components/Payroll/helpers.d.ts +6 -1
  493. package/dist/components/Payroll/helpers.js +100 -84
  494. package/dist/components/Payroll/helpers.js.map +1 -1
  495. package/dist/components/Payroll/index.d.ts +6 -0
  496. package/dist/components/Payroll/index.js +32 -26
  497. package/dist/components/Payroll/index.js.map +1 -1
  498. package/dist/components/Payroll/payrollTypes.d.ts +21 -0
  499. package/dist/components/Payroll/payrollTypes.js +27 -0
  500. package/dist/components/Payroll/payrollTypes.js.map +1 -0
  501. package/dist/components/Payroll/usePreparedPayrollData.js +6 -8
  502. package/dist/components/Payroll/usePreparedPayrollData.js.map +1 -1
  503. package/dist/components/UNSTABLE_Hooks/collectErrors.d.ts +6 -0
  504. package/dist/components/UNSTABLE_Hooks/collectErrors.js +9 -0
  505. package/dist/components/UNSTABLE_Hooks/collectErrors.js.map +1 -0
  506. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.d.ts +8 -0
  507. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js +10 -0
  508. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataContext.js.map +1 -0
  509. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.d.ts +10 -0
  510. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js +13 -0
  511. package/dist/components/UNSTABLE_Hooks/form/FormFieldsMetadataProvider.js.map +1 -0
  512. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.d.ts +23 -0
  513. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js +24 -0
  514. package/dist/components/UNSTABLE_Hooks/form/SDKFormProvider.js.map +1 -0
  515. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.d.ts +26 -0
  516. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js +24 -0
  517. package/dist/components/UNSTABLE_Hooks/form/composeFormSchema.js.map +1 -0
  518. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.d.ts +53 -0
  519. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js +34 -0
  520. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.js.map +1 -0
  521. package/dist/components/UNSTABLE_Hooks/form/composeSubmitHandler.test.d.ts +1 -0
  522. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.d.ts +3 -0
  523. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js +14 -0
  524. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.js.map +1 -0
  525. package/dist/components/UNSTABLE_Hooks/form/deriveFieldsMetadata.test.d.ts +1 -0
  526. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.d.ts +11 -0
  527. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js +34 -0
  528. package/dist/components/UNSTABLE_Hooks/form/fields/CheckboxHookField.js.map +1 -0
  529. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.d.ts +11 -0
  530. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js +34 -0
  531. package/dist/components/UNSTABLE_Hooks/form/fields/DatePickerHookField.js.map +1 -0
  532. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.d.ts +14 -0
  533. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js +40 -0
  534. package/dist/components/UNSTABLE_Hooks/form/fields/NumberInputHookField.js.map +1 -0
  535. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.d.ts +12 -0
  536. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js +40 -0
  537. package/dist/components/UNSTABLE_Hooks/form/fields/RadioGroupHookField.js.map +1 -0
  538. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.d.ts +12 -0
  539. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js +40 -0
  540. package/dist/components/UNSTABLE_Hooks/form/fields/SelectHookField.js.map +1 -0
  541. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.d.ts +11 -0
  542. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js +34 -0
  543. package/dist/components/UNSTABLE_Hooks/form/fields/SwitchHookField.js.map +1 -0
  544. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.d.ts +13 -0
  545. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js +38 -0
  546. package/dist/components/UNSTABLE_Hooks/form/fields/TextInputHookField.js.map +1 -0
  547. package/dist/components/UNSTABLE_Hooks/form/fields/index.d.ts +15 -0
  548. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.d.ts +2 -0
  549. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js +8 -0
  550. package/dist/components/UNSTABLE_Hooks/form/getFieldWithOptions.js.map +1 -0
  551. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.d.ts +18 -0
  552. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js +10 -0
  553. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.js.map +1 -0
  554. package/dist/components/UNSTABLE_Hooks/form/getFormSubmissionValues.test.d.ts +1 -0
  555. package/dist/components/UNSTABLE_Hooks/form/index.d.ts +16 -0
  556. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.d.ts +4 -0
  557. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js +13 -0
  558. package/dist/components/UNSTABLE_Hooks/form/resolveFieldError.js.map +1 -0
  559. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.d.ts +6 -0
  560. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js +14 -0
  561. package/dist/components/UNSTABLE_Hooks/form/resolveRequiredFields.js.map +1 -0
  562. package/dist/components/UNSTABLE_Hooks/form/types.d.ts +27 -0
  563. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.d.ts +2 -0
  564. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js +17 -0
  565. package/dist/components/UNSTABLE_Hooks/form/useFieldErrorMessage.js.map +1 -0
  566. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.d.ts +4 -0
  567. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js +8 -0
  568. package/dist/components/UNSTABLE_Hooks/form/useFieldsMetadata.js.map +1 -0
  569. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.d.ts +23 -0
  570. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js +11 -0
  571. package/dist/components/UNSTABLE_Hooks/form/useHookFieldResolution.js.map +1 -0
  572. package/dist/components/UNSTABLE_Hooks/form/withOptions.d.ts +5 -0
  573. package/dist/components/UNSTABLE_Hooks/form/withOptions.js +7 -0
  574. package/dist/components/UNSTABLE_Hooks/form/withOptions.js.map +1 -0
  575. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.d.ts +5 -0
  576. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js +149 -0
  577. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/CompensationForm.js.map +1 -0
  578. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.d.ts +97 -0
  579. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js +121 -0
  580. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/compensationSchema.js.map +1 -0
  581. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.d.ts +34 -0
  582. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js +50 -0
  583. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/fields.js.map +1 -0
  584. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/index.d.ts +7 -0
  585. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.d.ts +104 -0
  586. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js +259 -0
  587. package/dist/components/UNSTABLE_Hooks/hooks/useCompensationForm/useCompensationForm.js.map +1 -0
  588. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.d.ts +5 -0
  589. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js +112 -0
  590. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/EmployeeDetailsForm.js.map +1 -0
  591. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.d.ts +39 -0
  592. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js +45 -0
  593. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/employeeDetailsSchema.js.map +1 -0
  594. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.d.ts +23 -0
  595. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js +46 -0
  596. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/fields.js.map +1 -0
  597. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/index.d.ts +7 -0
  598. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.d.ts +77 -0
  599. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js +153 -0
  600. package/dist/components/UNSTABLE_Hooks/hooks/useEmployeeDetailsForm/useEmployeeDetailsForm.js.map +1 -0
  601. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.d.ts +5 -0
  602. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js +69 -0
  603. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/WorkAddressForm.js.map +1 -0
  604. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.d.ts +10 -0
  605. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js +14 -0
  606. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/fields.js.map +1 -0
  607. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/index.d.ts +7 -0
  608. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.d.ts +68 -0
  609. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js +129 -0
  610. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/useWorkAddressForm.js.map +1 -0
  611. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.d.ts +25 -0
  612. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js +24 -0
  613. package/dist/components/UNSTABLE_Hooks/hooks/useWorkAddressForm/workAddressSchema.js.map +1 -0
  614. package/dist/components/UNSTABLE_Hooks/index.d.ts +9 -0
  615. package/dist/components/UNSTABLE_Hooks/types.d.ts +49 -0
  616. package/dist/components/UNSTABLE_Hooks/useErrorHandling.d.ts +9 -0
  617. package/dist/components/UNSTABLE_Hooks/useErrorHandling.js +12 -0
  618. package/dist/components/UNSTABLE_Hooks/useErrorHandling.js.map +1 -0
  619. package/dist/components/UNSTABLE_Hooks/useErrorHandling.test.d.ts +1 -0
  620. package/dist/contexts/ApiProvider/ApiProvider.js +11 -11
  621. package/dist/contexts/ApiProvider/ApiProvider.js.map +1 -1
  622. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js +43 -50
  623. package/dist/contexts/GustoProvider/GustoProviderCustomUIAdapter.js.map +1 -1
  624. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.d.ts +10 -2
  625. package/dist/contexts/LoadingIndicatorProvider/useLoadingIndicator.js.map +1 -1
  626. package/dist/contexts/ObservabilityProvider/index.d.ts +1 -1
  627. package/dist/contexts/ObservabilityProvider/sanitization.d.ts +0 -14
  628. package/dist/contexts/ObservabilityProvider/sanitization.js +51 -51
  629. package/dist/contexts/ObservabilityProvider/sanitization.js.map +1 -1
  630. package/dist/contexts/ObservabilityProvider/useSanitizedObservability.d.ts +0 -3
  631. package/dist/contexts/ObservabilityProvider/useSanitizedObservability.js.map +1 -1
  632. package/dist/contexts/ThemeProvider/useTheme.js.map +1 -1
  633. package/dist/helpers/requiredIf.d.ts +13 -0
  634. package/dist/helpers/requiredIf.js +8 -0
  635. package/dist/helpers/requiredIf.js.map +1 -0
  636. package/dist/i18n/I18n.js +7 -7
  637. package/dist/i18n/I18n.js.map +1 -1
  638. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js +26 -0
  639. package/dist/i18n/en/Company.TimeOff.CreateTimeOffPolicy.json.js.map +1 -0
  640. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js +24 -0
  641. package/dist/i18n/en/Company.TimeOff.HolidayPolicy.json.js.map +1 -0
  642. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js +32 -0
  643. package/dist/i18n/en/Company.TimeOff.TimeOffPolicies.json.js.map +1 -0
  644. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js +52 -0
  645. package/dist/i18n/en/Company.TimeOff.TimeOffPolicyDetails.json.js.map +1 -0
  646. package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js +21 -0
  647. package/dist/i18n/en/Company.TimeOff.TimeOffRequests.json.js.map +1 -0
  648. package/dist/i18n/en/Employee.Terminations.TerminateEmployee.json.js +18 -0
  649. package/dist/i18n/en/Employee.Terminations.TerminateEmployee.json.js.map +1 -0
  650. package/dist/i18n/en/Employee.Terminations.TerminationFlow.json.js +12 -0
  651. package/dist/i18n/en/Employee.Terminations.TerminationFlow.json.js.map +1 -0
  652. package/dist/i18n/en/Employee.Terminations.TerminationSummary.json.js +20 -0
  653. package/dist/i18n/en/Employee.Terminations.TerminationSummary.json.js.map +1 -0
  654. package/dist/i18n/en/Payroll.Dismissal.json.js +22 -0
  655. package/dist/i18n/en/Payroll.Dismissal.json.js.map +1 -0
  656. package/dist/i18n/en/Payroll.GrossUpModal.json.js +16 -14
  657. package/dist/i18n/en/Payroll.GrossUpModal.json.js.map +1 -1
  658. package/dist/i18n/en/Payroll.OffCycleCreation.json.js +15 -11
  659. package/dist/i18n/en/Payroll.OffCycleCreation.json.js.map +1 -1
  660. package/dist/i18n/en/Payroll.OffCyclePayPeriodDateForm.json.js +1 -1
  661. package/dist/i18n/en/Payroll.OffCycleTaxWithholding.json.js +5 -5
  662. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js +31 -25
  663. package/dist/i18n/en/Payroll.PayrollEditEmployee.json.js.map +1 -1
  664. package/dist/i18n/en/Payroll.PayrollList.json.js +20 -18
  665. package/dist/i18n/en/Payroll.PayrollList.json.js.map +1 -1
  666. package/dist/i18n/en/Payroll.Transition.json.js +8 -0
  667. package/dist/i18n/en/Payroll.Transition.json.js.map +1 -0
  668. package/dist/i18n/en/Payroll.TransitionCreation.json.js +26 -0
  669. package/dist/i18n/en/Payroll.TransitionCreation.json.js.map +1 -0
  670. package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js +18 -0
  671. package/dist/i18n/en/Payroll.TransitionPayrollAlert.json.js.map +1 -0
  672. package/dist/i18n/en/UNSTABLE.CompensationForm.json.js +58 -0
  673. package/dist/i18n/en/UNSTABLE.CompensationForm.json.js.map +1 -0
  674. package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js +34 -0
  675. package/dist/i18n/en/UNSTABLE.EmployeeDetailsForm.json.js.map +1 -0
  676. package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js +24 -0
  677. package/dist/i18n/en/UNSTABLE.WorkAddressForm.json.js.map +1 -0
  678. package/dist/i18n/en/common.json.d.ts +2 -1
  679. package/dist/i18n/en/common.json.js +9 -9
  680. package/dist/index.d.ts +3 -2
  681. package/dist/index.js +14 -13
  682. package/dist/models/WA_RISK_CODES.d.ts +5 -2866
  683. package/dist/models/WA_RISK_CODES.js.map +1 -1
  684. package/dist/shared/constants.d.ts +32 -0
  685. package/dist/shared/constants.js +83 -65
  686. package/dist/shared/constants.js.map +1 -1
  687. package/dist/style.css +1 -1
  688. package/dist/types/i18next.d.ts +707 -1
  689. package/dist/types/observability.d.ts +31 -65
  690. package/dist/types/sdkError.d.ts +97 -0
  691. package/dist/types/sdkError.js +95 -0
  692. package/dist/types/sdkError.js.map +1 -0
  693. package/dist/types/sdkError.test.d.ts +1 -0
  694. package/docs/reference/endpoint-inventory.json +212 -14
  695. package/package.json +17 -17
  696. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.d.ts +0 -6
  697. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js +0 -70
  698. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfiguration.js.map +0 -1
  699. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.d.ts +0 -7
  700. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js +0 -6
  701. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationContext.js.map +0 -1
  702. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.d.ts +0 -9
  703. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js +0 -40
  704. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/PayrollConfigurationProvider.js.map +0 -1
  705. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/index.d.ts +0 -5
  706. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.d.ts +0 -2
  707. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js +0 -12
  708. package/dist/components/Payroll/UNSTABLE_PayrollHooks/PayrollConfiguration/usePayrollConfiguration.js.map +0 -1
  709. package/dist/components/Payroll/UNSTABLE_PayrollHooks/index.d.ts +0 -2
  710. package/dist/contexts/ObservabilityProvider/observabilityUtils.d.ts +0 -5
  711. package/dist/contexts/ObservabilityProvider/observabilityUtils.js +0 -45
  712. 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.36.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.2.19",
85
- "@storybook/addon-docs": "^10.2.19",
86
- "@storybook/addon-onboarding": "^10.2.19",
87
- "@storybook/react-vite": "^10.2.19",
88
- "@storybook/test-runner": "^0.24.2",
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.0",
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.2.19",
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.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.2.19",
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.1",
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.4",
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": "^0.12.4",
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.8.18",
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.71.2",
157
- "react-i18next": "^16.5.8",
158
- "react-robot": "^1.2.0",
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
  },
@@ -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 };
@@ -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,6 +0,0 @@
1
- import { createContext as o } from "react";
2
- const r = o(void 0);
3
- export {
4
- r as PayrollConfigurationContext
5
- };
6
- //# sourceMappingURL=PayrollConfigurationContext.js.map
@@ -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,2 +0,0 @@
1
- import { PayrollConfigurationContextValue } from './PayrollConfigurationContext';
2
- export declare function usePayrollConfiguration(): PayrollConfigurationContextValue;
@@ -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,2 +0,0 @@
1
- import "./types/i18next.d.ts"
2
- export { PayrollConfiguration, PayrollConfigurationProvider, usePayrollConfiguration, type PayrollConfigurationContextValue, } from './PayrollConfiguration';
@@ -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;"}