@remoteoss/remote-flows 0.27.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/dist/{ZendeskTriggerButton-DIV8pCPo.d.ts → ZendeskTriggerButton-Dditzyfj.d.ts} +15 -0
  2. package/dist/{chunk-DZ67OJVF.js → chunk-25U3HC77.js} +2 -2
  3. package/dist/{chunk-PFT7KJ65.js → chunk-2FZWM6RV.js} +2 -2
  4. package/dist/{chunk-RAHCZTQ3.js → chunk-2RBD2MJR.js} +2 -2
  5. package/dist/{chunk-UFBTCHEI.js → chunk-3PTV5YSQ.js} +2 -2
  6. package/dist/{chunk-HFI2MD3H.js → chunk-3WE5QB4I.js} +2 -2
  7. package/dist/chunk-43IIMISK.js +2 -0
  8. package/dist/chunk-43IIMISK.js.map +1 -0
  9. package/dist/chunk-5Y2RV54X.js +2 -0
  10. package/dist/chunk-5Y2RV54X.js.map +1 -0
  11. package/dist/{chunk-SA74WAVS.js → chunk-6IKJCDQU.js} +2 -2
  12. package/dist/{chunk-R64X3EJF.js → chunk-7JPHJ7SQ.js} +2 -2
  13. package/dist/{chunk-LRGEEPGK.js → chunk-AWJUS6JD.js} +1 -1
  14. package/dist/{chunk-LRGEEPGK.js.map → chunk-AWJUS6JD.js.map} +1 -1
  15. package/dist/{chunk-UTBVLDKY.js → chunk-BSUVUGJG.js} +2 -2
  16. package/dist/{chunk-QLNFHOLH.js → chunk-CCL5LNHC.js} +2 -2
  17. package/dist/{chunk-ANQ4HVVK.js → chunk-CDRDLO4A.js} +1 -1
  18. package/dist/{chunk-ANQ4HVVK.js.map → chunk-CDRDLO4A.js.map} +1 -1
  19. package/dist/{chunk-LRNSFLHR.js → chunk-CEJ24TSW.js} +2 -2
  20. package/dist/{chunk-WNTOQYRY.js → chunk-CHAHQRMM.js} +2 -2
  21. package/dist/{chunk-BMDZJNJV.js → chunk-E5VV7WAZ.js} +2 -2
  22. package/dist/chunk-EHS4ERDW.js +2 -0
  23. package/dist/chunk-EHS4ERDW.js.map +1 -0
  24. package/dist/{chunk-WLBRCGTG.js → chunk-FHQWEM5E.js} +2 -2
  25. package/dist/{chunk-VLLLNIMN.js → chunk-FTCLM4RE.js} +2 -2
  26. package/dist/{chunk-VM2DQCZO.js → chunk-GEHM46QD.js} +2 -2
  27. package/dist/{chunk-SB3IYODL.js → chunk-GWJZTMF4.js} +2 -2
  28. package/dist/{chunk-E3JFQ7PH.js → chunk-I4XJ764Y.js} +2 -2
  29. package/dist/{chunk-BO6OKTIG.js → chunk-I5XGKYJR.js} +2 -2
  30. package/dist/chunk-ID3ZF7QT.js +2 -0
  31. package/dist/chunk-ID3ZF7QT.js.map +1 -0
  32. package/dist/{chunk-R645TMO5.js → chunk-IJQDK7KG.js} +2 -2
  33. package/dist/{chunk-L6FZRTSN.js → chunk-K2I7ZL3Z.js} +2 -2
  34. package/dist/{chunk-7Y46DL2U.js → chunk-LA6ZJLTB.js} +2 -2
  35. package/dist/{chunk-RINDVT6U.js → chunk-LAYZ6XET.js} +2 -2
  36. package/dist/chunk-LWZIOOPO.js +2 -0
  37. package/dist/chunk-LWZIOOPO.js.map +1 -0
  38. package/dist/{chunk-NRW33IP5.js → chunk-M22INAKM.js} +2 -2
  39. package/dist/{chunk-YXWBSRKS.js → chunk-MAVVGCUM.js} +2 -2
  40. package/dist/{chunk-A2SWQS2N.js → chunk-MB6ZGX2O.js} +2 -2
  41. package/dist/{chunk-XP7UEI56.js → chunk-NW5EBNKN.js} +2 -2
  42. package/dist/chunk-NX7MM6XR.js +2 -0
  43. package/dist/chunk-NX7MM6XR.js.map +1 -0
  44. package/dist/{chunk-746ELT2W.js → chunk-NZHJMUIX.js} +2 -2
  45. package/dist/chunk-NZHJMUIX.js.map +1 -0
  46. package/dist/{chunk-CVIWZYO3.js → chunk-PJY4TN7I.js} +2 -2
  47. package/dist/{chunk-W55MUSAS.js → chunk-PXX2JSFI.js} +2 -2
  48. package/dist/{chunk-GD5556B2.js → chunk-QFK2SD24.js} +2 -2
  49. package/dist/chunk-QM7J43SC.js +2 -0
  50. package/dist/chunk-QM7J43SC.js.map +1 -0
  51. package/dist/{chunk-5NPET4ZO.js → chunk-QU4ZTSMT.js} +2 -2
  52. package/dist/{chunk-N6G4VZXF.js → chunk-RR55GUDT.js} +2 -2
  53. package/dist/{chunk-N6G4VZXF.js.map → chunk-RR55GUDT.js.map} +1 -1
  54. package/dist/{chunk-AYLYOLVG.js → chunk-S3KOROEZ.js} +2 -2
  55. package/dist/{chunk-FEHSJUZJ.js → chunk-SRYUZSIK.js} +2 -2
  56. package/dist/{chunk-LDJT7TII.js → chunk-T2UJOEUA.js} +2 -2
  57. package/dist/chunk-TKAZTT3M.js +2 -0
  58. package/dist/chunk-TKAZTT3M.js.map +1 -0
  59. package/dist/chunk-UXVCNSHK.js +2 -0
  60. package/dist/chunk-UXVCNSHK.js.map +1 -0
  61. package/dist/{chunk-TUFTB5UD.js → chunk-UYHBV7QJ.js} +2 -2
  62. package/dist/chunk-VDRNNOVA.js +2 -0
  63. package/dist/chunk-VDRNNOVA.js.map +1 -0
  64. package/dist/{chunk-4ZGIL6OE.js → chunk-WHVPDECD.js} +2 -2
  65. package/dist/chunk-XOA7GG4P.js +2 -0
  66. package/dist/{chunk-E6OBNWMU.js → chunk-ZJ7524CZ.js} +2 -2
  67. package/dist/chunk-ZPBKMAKR.js +2 -0
  68. package/dist/chunk-ZPBKMAKR.js.map +1 -0
  69. package/dist/chunk-ZXGAFQXW.js +2 -0
  70. package/dist/chunk-ZXGAFQXW.js.map +1 -0
  71. package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
  72. package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
  73. package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
  74. package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
  75. package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
  76. package/dist/flows/ContractAmendment/context.d.ts +3 -3
  77. package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
  78. package/dist/flows/ContractAmendment/index.d.ts +3 -3
  79. package/dist/flows/ContractAmendment/index.js +1 -1
  80. package/dist/flows/ContractAmendment/utils.d.ts +1 -1
  81. package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +5 -5
  82. package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
  83. package/dist/flows/ContractorOnboarding/api.d.ts +2 -2
  84. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
  85. package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
  86. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +5 -5
  87. package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
  88. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +5 -5
  89. package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
  90. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +5 -5
  91. package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
  92. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
  93. package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
  94. package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +5 -5
  95. package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
  96. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
  97. package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
  98. package/dist/flows/ContractorOnboarding/context.d.ts +5 -5
  99. package/dist/flows/ContractorOnboarding/hooks.d.ts +5 -5
  100. package/dist/flows/ContractorOnboarding/hooks.js +1 -1
  101. package/dist/flows/ContractorOnboarding/index.d.ts +5 -5
  102. package/dist/flows/ContractorOnboarding/index.js +1 -1
  103. package/dist/flows/ContractorOnboarding/types.d.ts +5 -5
  104. package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
  105. package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
  106. package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
  107. package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
  108. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +1 -1
  109. package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
  110. package/dist/flows/CostCalculator/Results/CostCalculatorBenefitsBreakdown.js +1 -1
  111. package/dist/flows/CostCalculator/Results/CostCalculatorContributionsBreakdown.js +1 -1
  112. package/dist/flows/CostCalculator/Results/CostCalculatorExtraStatutoryPaymentsBreakdown.js +1 -1
  113. package/dist/flows/CostCalculator/Results/CostCalculatorGrossSalary.js +1 -1
  114. package/dist/flows/CostCalculator/Results/CostCalculatorResults.d.ts +1 -1
  115. package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
  116. package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +1 -1
  117. package/dist/flows/CostCalculator/api.d.ts +1 -1
  118. package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
  119. package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
  120. package/dist/flows/CostCalculator/context.d.ts +3 -3
  121. package/dist/flows/CostCalculator/hooks.d.ts +3 -3
  122. package/dist/flows/CostCalculator/hooks.js +1 -1
  123. package/dist/flows/CostCalculator/index.d.ts +3 -3
  124. package/dist/flows/CostCalculator/index.js +1 -1
  125. package/dist/flows/CostCalculator/types.d.ts +1 -1
  126. package/dist/flows/CostCalculator/utils.d.ts +3 -3
  127. package/dist/flows/CostCalculator/utils.js +1 -1
  128. package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
  129. package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
  130. package/dist/flows/Onboarding/api.d.ts +7 -7
  131. package/dist/flows/Onboarding/api.js +1 -1
  132. package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
  133. package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
  134. package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
  135. package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
  136. package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
  137. package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
  138. package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
  139. package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
  140. package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
  141. package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
  142. package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
  143. package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
  144. package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
  145. package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
  146. package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
  147. package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
  148. package/dist/flows/Onboarding/context.d.ts +4 -4
  149. package/dist/flows/Onboarding/hooks.d.ts +4 -4
  150. package/dist/flows/Onboarding/hooks.js +1 -1
  151. package/dist/flows/Onboarding/index.d.ts +4 -4
  152. package/dist/flows/Onboarding/index.js +1 -1
  153. package/dist/flows/Onboarding/types.d.ts +4 -4
  154. package/dist/flows/Onboarding/utils.d.ts +5 -5
  155. package/dist/flows/Onboarding/utils.js +1 -1
  156. package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
  157. package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
  158. package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
  159. package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
  160. package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
  161. package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
  162. package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
  163. package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
  164. package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
  165. package/dist/flows/Termination/TerminationFlow.js +1 -1
  166. package/dist/flows/Termination/TerminationForm.d.ts +4 -4
  167. package/dist/flows/Termination/TerminationForm.js +1 -1
  168. package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
  169. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +5 -5
  170. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
  171. package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +5 -5
  172. package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +5 -5
  173. package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
  174. package/dist/flows/Termination/context.d.ts +6 -6
  175. package/dist/flows/Termination/hooks.d.ts +5 -5
  176. package/dist/flows/Termination/hooks.js +1 -1
  177. package/dist/flows/Termination/index.d.ts +6 -6
  178. package/dist/flows/Termination/index.js +1 -1
  179. package/dist/flows/Termination/json-schemas/employeeComunication.js +1 -1
  180. package/dist/flows/Termination/json-schemas/jsonSchema.d.ts +2 -0
  181. package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
  182. package/dist/flows/Termination/json-schemas/paidTimeOff.d.ts +1 -0
  183. package/dist/flows/Termination/json-schemas/paidTimeOff.js +1 -1
  184. package/dist/flows/Termination/json-schemas/schema.js +1 -1
  185. package/dist/flows/Termination/json-schemas/terminationDetails.d.ts +1 -0
  186. package/dist/flows/Termination/json-schemas/terminationDetails.js +1 -1
  187. package/dist/flows/Termination/types.d.ts +4 -4
  188. package/dist/flows/api.d.ts +4 -4
  189. package/dist/flows/api.js +1 -1
  190. package/dist/index.d.ts +9 -9
  191. package/dist/index.js +1 -1
  192. package/dist/index.js.map +1 -1
  193. package/dist/internals.d.ts +1 -1
  194. package/dist/internals.js +1 -1
  195. package/dist/{mutations-C0KsEf83.d.ts → mutations-B3zY0Z8j.d.ts} +1 -1
  196. package/dist/{remoteFlows-DJcvCgN2.d.ts → remoteFlows-C6LQCoUj.d.ts} +1 -1
  197. package/dist/{types-CwUhT-vz.d.ts → types-CXFW77uu.d.ts} +2 -2
  198. package/dist/{types-1tGveWWg.d.ts → types-C_aEj_4p.d.ts} +6 -5
  199. package/dist/{types-Dad_rgYV.d.ts → types-D0Gtn_LU.d.ts} +23 -16
  200. package/dist/{types-DegHPy8Q.d.ts → types-DRI6kPSl.d.ts} +4 -4
  201. package/dist/{types.gen-B73oMrmZ.d.ts → types.gen-B1wPsyg7.d.ts} +1 -1
  202. package/package.json +1 -1
  203. package/dist/chunk-4T6PRR6R.js +0 -2
  204. package/dist/chunk-4T6PRR6R.js.map +0 -1
  205. package/dist/chunk-746ELT2W.js.map +0 -1
  206. package/dist/chunk-FB2QGVI2.js +0 -2
  207. package/dist/chunk-FB2QGVI2.js.map +0 -1
  208. package/dist/chunk-GC23RRCI.js +0 -2
  209. package/dist/chunk-GC23RRCI.js.map +0 -1
  210. package/dist/chunk-KOIHMAAP.js +0 -2
  211. package/dist/chunk-L3C4AHZJ.js +0 -2
  212. package/dist/chunk-L3C4AHZJ.js.map +0 -1
  213. package/dist/chunk-N3EIN72T.js +0 -2
  214. package/dist/chunk-N3EIN72T.js.map +0 -1
  215. package/dist/chunk-OXCEJQFC.js +0 -2
  216. package/dist/chunk-OXCEJQFC.js.map +0 -1
  217. package/dist/chunk-R3LY6TV5.js +0 -2
  218. package/dist/chunk-R3LY6TV5.js.map +0 -1
  219. package/dist/chunk-SLMJEZJ7.js +0 -2
  220. package/dist/chunk-SLMJEZJ7.js.map +0 -1
  221. package/dist/chunk-WZAWPSKS.js +0 -2
  222. package/dist/chunk-WZAWPSKS.js.map +0 -1
  223. package/dist/chunk-ZIPHLBX4.js +0 -2
  224. package/dist/chunk-ZIPHLBX4.js.map +0 -1
  225. package/dist/chunk-ZY5U2UNT.js +0 -2
  226. package/dist/chunk-ZY5U2UNT.js.map +0 -1
  227. /package/dist/{chunk-DZ67OJVF.js.map → chunk-25U3HC77.js.map} +0 -0
  228. /package/dist/{chunk-PFT7KJ65.js.map → chunk-2FZWM6RV.js.map} +0 -0
  229. /package/dist/{chunk-RAHCZTQ3.js.map → chunk-2RBD2MJR.js.map} +0 -0
  230. /package/dist/{chunk-UFBTCHEI.js.map → chunk-3PTV5YSQ.js.map} +0 -0
  231. /package/dist/{chunk-HFI2MD3H.js.map → chunk-3WE5QB4I.js.map} +0 -0
  232. /package/dist/{chunk-SA74WAVS.js.map → chunk-6IKJCDQU.js.map} +0 -0
  233. /package/dist/{chunk-R64X3EJF.js.map → chunk-7JPHJ7SQ.js.map} +0 -0
  234. /package/dist/{chunk-UTBVLDKY.js.map → chunk-BSUVUGJG.js.map} +0 -0
  235. /package/dist/{chunk-QLNFHOLH.js.map → chunk-CCL5LNHC.js.map} +0 -0
  236. /package/dist/{chunk-LRNSFLHR.js.map → chunk-CEJ24TSW.js.map} +0 -0
  237. /package/dist/{chunk-WNTOQYRY.js.map → chunk-CHAHQRMM.js.map} +0 -0
  238. /package/dist/{chunk-BMDZJNJV.js.map → chunk-E5VV7WAZ.js.map} +0 -0
  239. /package/dist/{chunk-WLBRCGTG.js.map → chunk-FHQWEM5E.js.map} +0 -0
  240. /package/dist/{chunk-VLLLNIMN.js.map → chunk-FTCLM4RE.js.map} +0 -0
  241. /package/dist/{chunk-VM2DQCZO.js.map → chunk-GEHM46QD.js.map} +0 -0
  242. /package/dist/{chunk-SB3IYODL.js.map → chunk-GWJZTMF4.js.map} +0 -0
  243. /package/dist/{chunk-E3JFQ7PH.js.map → chunk-I4XJ764Y.js.map} +0 -0
  244. /package/dist/{chunk-BO6OKTIG.js.map → chunk-I5XGKYJR.js.map} +0 -0
  245. /package/dist/{chunk-R645TMO5.js.map → chunk-IJQDK7KG.js.map} +0 -0
  246. /package/dist/{chunk-L6FZRTSN.js.map → chunk-K2I7ZL3Z.js.map} +0 -0
  247. /package/dist/{chunk-7Y46DL2U.js.map → chunk-LA6ZJLTB.js.map} +0 -0
  248. /package/dist/{chunk-RINDVT6U.js.map → chunk-LAYZ6XET.js.map} +0 -0
  249. /package/dist/{chunk-NRW33IP5.js.map → chunk-M22INAKM.js.map} +0 -0
  250. /package/dist/{chunk-YXWBSRKS.js.map → chunk-MAVVGCUM.js.map} +0 -0
  251. /package/dist/{chunk-A2SWQS2N.js.map → chunk-MB6ZGX2O.js.map} +0 -0
  252. /package/dist/{chunk-XP7UEI56.js.map → chunk-NW5EBNKN.js.map} +0 -0
  253. /package/dist/{chunk-CVIWZYO3.js.map → chunk-PJY4TN7I.js.map} +0 -0
  254. /package/dist/{chunk-W55MUSAS.js.map → chunk-PXX2JSFI.js.map} +0 -0
  255. /package/dist/{chunk-GD5556B2.js.map → chunk-QFK2SD24.js.map} +0 -0
  256. /package/dist/{chunk-5NPET4ZO.js.map → chunk-QU4ZTSMT.js.map} +0 -0
  257. /package/dist/{chunk-AYLYOLVG.js.map → chunk-S3KOROEZ.js.map} +0 -0
  258. /package/dist/{chunk-FEHSJUZJ.js.map → chunk-SRYUZSIK.js.map} +0 -0
  259. /package/dist/{chunk-LDJT7TII.js.map → chunk-T2UJOEUA.js.map} +0 -0
  260. /package/dist/{chunk-TUFTB5UD.js.map → chunk-UYHBV7QJ.js.map} +0 -0
  261. /package/dist/{chunk-4ZGIL6OE.js.map → chunk-WHVPDECD.js.map} +0 -0
  262. /package/dist/{chunk-KOIHMAAP.js.map → chunk-XOA7GG4P.js.map} +0 -0
  263. /package/dist/{chunk-E6OBNWMU.js.map → chunk-ZJ7524CZ.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import"../../chunk-FZ7FWFJX.js";import{a as c}from"../../chunk-WLBRCGTG.js";import{a as b}from"../../chunk-QIQTM4HB.js";import{a}from"../../chunk-BO6OKTIG.js";import"../../chunk-R3LY6TV5.js";import"../../chunk-P5WUODPR.js";import"../../chunk-746ELT2W.js";import"../../chunk-6IL4TB7S.js";import"../../chunk-IWA5B4U6.js";import"../../chunk-7VOQAVM4.js";import"../../chunk-VM2DQCZO.js";import"../../chunk-EHAZWZ3O.js";import"../../chunk-SLMJEZJ7.js";import"../../chunk-E3JFQ7PH.js";import"../../chunk-S4XU4SE7.js";import"../../chunk-WZAWPSKS.js";import"../../chunk-N3EIN72T.js";import"../../chunk-ZIPHLBX4.js";import"../../chunk-7Y46DL2U.js";import"../../chunk-6VRUYYUV.js";import"../../chunk-MRYRNB7Y.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-QLNFHOLH.js";import"../../chunk-OXCEJQFC.js";import"../../chunk-BV3PGYSH.js";import"../../chunk-KDUM4EZJ.js";import"../../chunk-SGE4DLC3.js";import"../../chunk-2YTBWEC7.js";import"../../chunk-JBUNDNKJ.js";import"../../chunk-7R347KBY.js";import"../../chunk-AFRA4BIW.js";import"../../chunk-3A47R5RQ.js";import"../../chunk-D6X2WCEG.js";import"../../chunk-HPHWQU34.js";import"../../chunk-ANQ4HVVK.js";import"../../chunk-PD24XKD6.js";import"../../chunk-TWIUL2P3.js";import"../../chunk-ZX5OIIJX.js";import"../../chunk-DZ67OJVF.js";import"../../chunk-KOIHMAAP.js";import"../../chunk-XFD3ULUF.js";import"../../chunk-GC23RRCI.js";import"../../chunk-LMYJ6V44.js";import"../../chunk-N6G4VZXF.js";import"../../chunk-4T6PRR6R.js";import"../../chunk-3O3Q24JL.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-WVDTHFGS.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-CNDSIADP.js";import"../../chunk-PAQW5BFW.js";import"../../chunk-MQ6F5LE4.js";import"../../chunk-43WMZDDH.js";import"../../chunk-P37U34EQ.js";export{c as TerminationDialogInfoContent,a as TerminationFlow,b as TerminationReasonsDetailContent};
1
+ import"../../chunk-FZ7FWFJX.js";import{a as c}from"../../chunk-FHQWEM5E.js";import{a as b}from"../../chunk-QIQTM4HB.js";import{a}from"../../chunk-I5XGKYJR.js";import"../../chunk-43IIMISK.js";import"../../chunk-P5WUODPR.js";import"../../chunk-NZHJMUIX.js";import"../../chunk-6IL4TB7S.js";import"../../chunk-IWA5B4U6.js";import"../../chunk-7VOQAVM4.js";import"../../chunk-GEHM46QD.js";import"../../chunk-EHAZWZ3O.js";import"../../chunk-ID3ZF7QT.js";import"../../chunk-I4XJ764Y.js";import"../../chunk-S4XU4SE7.js";import"../../chunk-LWZIOOPO.js";import"../../chunk-5Y2RV54X.js";import"../../chunk-QM7J43SC.js";import"../../chunk-LA6ZJLTB.js";import"../../chunk-6VRUYYUV.js";import"../../chunk-MRYRNB7Y.js";import"../../chunk-CCL5LNHC.js";import"../../chunk-CFIJKJXD.js";import"../../chunk-TKAZTT3M.js";import"../../chunk-BV3PGYSH.js";import"../../chunk-KDUM4EZJ.js";import"../../chunk-SGE4DLC3.js";import"../../chunk-2YTBWEC7.js";import"../../chunk-JBUNDNKJ.js";import"../../chunk-7R347KBY.js";import"../../chunk-AFRA4BIW.js";import"../../chunk-3A47R5RQ.js";import"../../chunk-D6X2WCEG.js";import"../../chunk-HPHWQU34.js";import"../../chunk-CDRDLO4A.js";import"../../chunk-PD24XKD6.js";import"../../chunk-TWIUL2P3.js";import"../../chunk-ZX5OIIJX.js";import"../../chunk-25U3HC77.js";import"../../chunk-XOA7GG4P.js";import"../../chunk-XFD3ULUF.js";import"../../chunk-ZXGAFQXW.js";import"../../chunk-LMYJ6V44.js";import"../../chunk-RR55GUDT.js";import"../../chunk-NX7MM6XR.js";import"../../chunk-VDRNNOVA.js";import"../../chunk-3O3Q24JL.js";import"../../chunk-PJBAQZ6G.js";import"../../chunk-Z5WMKCRJ.js";import"../../chunk-WVDTHFGS.js";import"../../chunk-3ZWDIEEM.js";import"../../chunk-CNDSIADP.js";import"../../chunk-PAQW5BFW.js";import"../../chunk-MQ6F5LE4.js";import"../../chunk-43WMZDDH.js";import"../../chunk-P37U34EQ.js";export{c as TerminationDialogInfoContent,a as TerminationFlow,b as TerminationReasonsDetailContent};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-N6G4VZXF.js";import"../../../chunk-P37U34EQ.js";export{a as employeeComunicationSchema};
1
+ import{a}from"../../../chunk-RR55GUDT.js";import"../../../chunk-P37U34EQ.js";export{a as employeeComunicationSchema};
2
2
  //# sourceMappingURL=employeeComunication.js.map
@@ -187,6 +187,7 @@ declare const jsonSchema: {
187
187
  'x-jsf-presentation': {
188
188
  inputType: string;
189
189
  accept: string;
190
+ maxSize: number;
190
191
  };
191
192
  };
192
193
  termination_reason: {
@@ -227,6 +228,7 @@ declare const jsonSchema: {
227
228
  inputType: string;
228
229
  accept: string;
229
230
  multiple: boolean;
231
+ maxSize: number;
230
232
  };
231
233
  };
232
234
  risk_assesment_info: {
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-E3JFQ7PH.js";import"../../../chunk-GC23RRCI.js";import"../../../chunk-LMYJ6V44.js";import"../../../chunk-N6G4VZXF.js";import"../../../chunk-4T6PRR6R.js";import"../../../chunk-P37U34EQ.js";export{a as jsonSchema};
1
+ import{a}from"../../../chunk-I4XJ764Y.js";import"../../../chunk-ZXGAFQXW.js";import"../../../chunk-LMYJ6V44.js";import"../../../chunk-RR55GUDT.js";import"../../../chunk-NX7MM6XR.js";import"../../../chunk-VDRNNOVA.js";import"../../../chunk-P37U34EQ.js";export{a as jsonSchema};
2
2
  //# sourceMappingURL=jsonSchema.js.map
@@ -84,6 +84,7 @@ declare const paidTimeOffSchema: {
84
84
  'x-jsf-presentation': {
85
85
  inputType: string;
86
86
  accept: string;
87
+ maxSize: number;
87
88
  };
88
89
  };
89
90
  };
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-4T6PRR6R.js";import"../../../chunk-P37U34EQ.js";export{a as paidTimeOffSchema};
1
+ import{a}from"../../../chunk-NX7MM6XR.js";import"../../../chunk-VDRNNOVA.js";import"../../../chunk-P37U34EQ.js";export{a as paidTimeOffSchema};
2
2
  //# sourceMappingURL=paidTimeOff.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-KOIHMAAP.js";import"../../../chunk-GC23RRCI.js";import"../../../chunk-LMYJ6V44.js";import"../../../chunk-N6G4VZXF.js";import"../../../chunk-4T6PRR6R.js";import"../../../chunk-P37U34EQ.js";export{a as schema};
1
+ import{a}from"../../../chunk-XOA7GG4P.js";import"../../../chunk-ZXGAFQXW.js";import"../../../chunk-LMYJ6V44.js";import"../../../chunk-RR55GUDT.js";import"../../../chunk-NX7MM6XR.js";import"../../../chunk-VDRNNOVA.js";import"../../../chunk-P37U34EQ.js";export{a as schema};
2
2
  //# sourceMappingURL=schema.js.map
@@ -65,6 +65,7 @@ declare const terminationDetailsSchema: {
65
65
  inputType: string;
66
66
  accept: string;
67
67
  multiple: boolean;
68
+ maxSize: number;
68
69
  };
69
70
  };
70
71
  risk_assesment_info: {
@@ -1,2 +1,2 @@
1
- import{a}from"../../../chunk-GC23RRCI.js";import"../../../chunk-P37U34EQ.js";export{a as terminationDetailsSchema};
1
+ import{a}from"../../../chunk-ZXGAFQXW.js";import"../../../chunk-VDRNNOVA.js";import"../../../chunk-P37U34EQ.js";export{a as terminationDetailsSchema};
2
2
  //# sourceMappingURL=terminationDetails.js.map
@@ -1,11 +1,11 @@
1
- import '../../types.gen-B73oMrmZ.js';
2
- export { a as TerminationFlowProps, T as TerminationFormValues, b as TerminationRenderProps } from '../../types-Dad_rgYV.js';
1
+ import '../../types.gen-B1wPsyg7.js';
2
+ export { A as AdditionalDetailsFormValues, E as EmployeeCommunicationFormValues, P as PaidTimeOffFormValues, c as TerminationDetailsFormValues, a as TerminationFlowProps, T as TerminationFormValues, b as TerminationRenderProps } from '../../types-D0Gtn_LU.js';
3
3
  import './TerminationBack.js';
4
4
  import './TerminationSubmit.js';
5
5
  import '../types.js';
6
6
  import 'react/jsx-runtime';
7
- import '../../mutations-C0KsEf83.js';
8
- import '../../remoteFlows-DJcvCgN2.js';
7
+ import '../../mutations-B3zY0Z8j.js';
8
+ import '../../remoteFlows-C6LQCoUj.js';
9
9
  import 'react-hook-form';
10
10
  import 'react';
11
11
  import 'yup';
@@ -1,11 +1,11 @@
1
1
  import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
2
2
  import * as _tanstack_react_query from '@tanstack/react-query';
3
- import { O as OffboardingResponse, P as PostCreateOffboardingError, C as CreateOffboardingParams } from '../types.gen-B73oMrmZ.js';
4
- import { T as TerminationFormValues } from '../types-Dad_rgYV.js';
3
+ import { O as OffboardingResponse, P as PostCreateOffboardingError, C as CreateOffboardingParams } from '../types.gen-B1wPsyg7.js';
4
+ import { T as TerminationFormValues } from '../types-D0Gtn_LU.js';
5
5
  import { JSFModify } from './types.js';
6
6
  import 'react/jsx-runtime';
7
- import '../mutations-C0KsEf83.js';
8
- import '../remoteFlows-DJcvCgN2.js';
7
+ import '../mutations-B3zY0Z8j.js';
8
+ import '../remoteFlows-C6LQCoUj.js';
9
9
  import 'react-hook-form';
10
10
  import 'react';
11
11
  import 'yup';
package/dist/flows/api.js CHANGED
@@ -1,2 +1,2 @@
1
- import{a,b}from"../chunk-DZ67OJVF.js";import"../chunk-KOIHMAAP.js";import"../chunk-XFD3ULUF.js";import"../chunk-GC23RRCI.js";import"../chunk-LMYJ6V44.js";import"../chunk-N6G4VZXF.js";import"../chunk-4T6PRR6R.js";import"../chunk-3O3Q24JL.js";import"../chunk-3ZWDIEEM.js";import"../chunk-P37U34EQ.js";export{a as useCreateTermination,b as useTerminationSchema};
1
+ import{a,b}from"../chunk-25U3HC77.js";import"../chunk-XOA7GG4P.js";import"../chunk-XFD3ULUF.js";import"../chunk-ZXGAFQXW.js";import"../chunk-LMYJ6V44.js";import"../chunk-RR55GUDT.js";import"../chunk-NX7MM6XR.js";import"../chunk-VDRNNOVA.js";import"../chunk-3O3Q24JL.js";import"../chunk-3ZWDIEEM.js";import"../chunk-P37U34EQ.js";export{a as useCreateTermination,b as useTerminationSchema};
2
2
  //# sourceMappingURL=api.js.map
package/dist/index.d.ts CHANGED
@@ -19,23 +19,23 @@ export { useContractAmendment } from './flows/ContractAmendment/hooks.js';
19
19
  export { TerminationFlow } from './flows/Termination/TerminationFlow.js';
20
20
  export { TerminationReasonsDetailContent } from './flows/Termination/components/TerminationReasonsDetailContent/TerminationReasonsDetailContent.js';
21
21
  export { TerminationDialogInfoContent } from './flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js';
22
- export { a as TerminationFlowProps, T as TerminationFormValues, b as TerminationRenderProps } from './types-Dad_rgYV.js';
22
+ export { A as AdditionalDetailsFormValues, E as EmployeeCommunicationFormValues, P as PaidTimeOffFormValues, c as TerminationDetailsFormValues, a as TerminationFlowProps, T as TerminationFormValues, b as TerminationRenderProps } from './types-D0Gtn_LU.js';
23
23
  export { PaidTimeOffProps } from './flows/Termination/components/PaidTimeOff/PaidTimeOff.js';
24
24
  export { AcknowledgeInformationFeesProps } from './flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js';
25
25
  export { AcknowledgeInformationProps } from './flows/Termination/components/AcknowledgeInformation/AcknowledgeInformation.js';
26
26
  export { OnboardingFlow } from './flows/Onboarding/OnboardingFlow.js';
27
27
  export { OnboardingInviteProps } from './flows/Onboarding/components/OnboardingInvite.js';
28
- export { B as BasicInformationFormPayload, c as BenefitsFormPayload, C as ContractDetailsFormPayload, e as CreditRiskState, d as CreditRiskStatus, E as Employment, f as OnboardingRenderProps, a as SelectCountryFormPayload, b as SelectCountrySuccess } from './types-1tGveWWg.js';
28
+ export { B as BasicInformationFormPayload, c as BenefitsFormPayload, C as ContractDetailsFormPayload, e as CreditRiskState, d as CreditRiskStatus, E as Employment, f as OnboardingRenderProps, a as SelectCountryFormPayload, b as SelectCountrySuccess } from './types-C_aEj_4p.js';
29
29
  export { ContractorOnboardingFlow } from './flows/ContractorOnboarding/ContractorOnboarding.js';
30
- export { e as ContractPreviewFormPayload, f as ContractPreviewResponse, C as ContractorOnboardingContractDetailsFormPayload, d as ContractorOnboardingContractDetailsResponse, a as ContractorOnboardingFlowProps, b as ContractorOnboardingRenderProps, P as PricingPlanFormPayload, c as PricingPlanResponse } from './types-DegHPy8Q.js';
31
- export { B as BookedTimeoffBeforeDateResponse, c as PaidTimeoffBreakdownResponse, S as SummaryTimeOffDataResponse, e as useBookedTimeoffBeforeAndAfterTerminationQuery, u as useEmploymentQuery, d as usePaidTimeoffBreakdownQuery, f as useSummaryTimeOffDataQuery, g as useTimeOffLeavePoliciesSummaryQuery, b as useTimeOffQuery } from './types-CwUhT-vz.js';
32
- export { Z as ZendeskTriggerButton, t as transformYupErrorsIntoObject } from './ZendeskTriggerButton-DIV8pCPo.js';
30
+ export { e as ContractPreviewFormPayload, f as ContractPreviewResponse, C as ContractorOnboardingContractDetailsFormPayload, d as ContractorOnboardingContractDetailsResponse, a as ContractorOnboardingFlowProps, b as ContractorOnboardingRenderProps, P as PricingPlanFormPayload, c as PricingPlanResponse } from './types-DRI6kPSl.js';
31
+ export { B as BookedTimeoffBeforeDateResponse, c as PaidTimeoffBreakdownResponse, S as SummaryTimeOffDataResponse, e as useBookedTimeoffBeforeAndAfterTerminationQuery, u as useEmploymentQuery, d as usePaidTimeoffBreakdownQuery, f as useSummaryTimeOffDataQuery, g as useTimeOffLeavePoliciesSummaryQuery, b as useTimeOffQuery } from './types-CXFW77uu.js';
32
+ export { Z as ZendeskTriggerButton, t as transformYupErrorsIntoObject } from './ZendeskTriggerButton-Dditzyfj.js';
33
33
  import * as react_jsx_runtime from 'react/jsx-runtime';
34
34
  import { PropsWithChildren } from 'react';
35
- import { R as RemoteFlowsSDKProps } from './remoteFlows-DJcvCgN2.js';
36
- export { $ as $TSFixMe, B as ButtonComponentProps, C as Components, D as DrawerComponentProps, F as FieldComponentProps, b as FieldSetToggleComponentProps, M as Meta, S as StatementComponentProps, Z as ZendeskDrawerComponentProps } from './remoteFlows-DJcvCgN2.js';
37
- export { u as Company, a as ContractAmendmentAutomatableResponse, s as CostCalculatorEmployment, j as CostCalculatorEstimateResponse, R as Currency, t as EmploymentCreationResponse, z as EmploymentResponse, O as OffboardingResponse, S as SuccessResponse } from './types.gen-B73oMrmZ.js';
38
- export { F as FieldError, N as NormalizedFieldError } from './mutations-C0KsEf83.js';
35
+ import { R as RemoteFlowsSDKProps } from './remoteFlows-C6LQCoUj.js';
36
+ export { $ as $TSFixMe, B as ButtonComponentProps, C as Components, D as DrawerComponentProps, F as FieldComponentProps, b as FieldSetToggleComponentProps, M as Meta, S as StatementComponentProps, Z as ZendeskDrawerComponentProps } from './remoteFlows-C6LQCoUj.js';
37
+ export { j as Company, a as ContractAmendmentAutomatableResponse, Q as CostCalculatorEmployment, A as CostCalculatorEstimateResponse, R as Currency, m as EmploymentCreationResponse, p as EmploymentResponse, O as OffboardingResponse, S as SuccessResponse } from './types.gen-B1wPsyg7.js';
38
+ export { F as FieldError, N as NormalizedFieldError } from './mutations-B3zY0Z8j.js';
39
39
  import 'react-hook-form';
40
40
  import 'yup';
41
41
  import './types-Zg1n_9wh.js';
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import"./chunk-FZ7FWFJX.js";import{a as ft}from"./chunk-WLBRCGTG.js";import{a as mt}from"./chunk-QIQTM4HB.js";import{a as ht}from"./chunk-BO6OKTIG.js";import"./chunk-R3LY6TV5.js";import"./chunk-P5WUODPR.js";import"./chunk-746ELT2W.js";import"./chunk-6IL4TB7S.js";import"./chunk-IWA5B4U6.js";import"./chunk-7VOQAVM4.js";import"./chunk-VM2DQCZO.js";import"./chunk-EHAZWZ3O.js";import"./chunk-SLMJEZJ7.js";import"./chunk-E3JFQ7PH.js";import"./chunk-S4XU4SE7.js";import"./chunk-GULCZWSK.js";import"./chunk-WZAWPSKS.js";import"./chunk-N3EIN72T.js";import"./chunk-ZIPHLBX4.js";import"./chunk-7Y46DL2U.js";import"./chunk-6VRUYYUV.js";import"./chunk-MRYRNB7Y.js";import"./chunk-Z3BMF4BO.js";import{a as O}from"./chunk-RAHCZTQ3.js";import"./chunk-BCXRPHWY.js";import"./chunk-MQWVZSGH.js";import{a as I}from"./chunk-H425RKFI.js";import{a as D}from"./chunk-W55MUSAS.js";import"./chunk-DTHBG6BD.js";import"./chunk-CVIWZYO3.js";import"./chunk-E6OBNWMU.js";import"./chunk-5NPET4ZO.js";import"./chunk-R645TMO5.js";import"./chunk-ZSCKSEAA.js";import"./chunk-ZE3YT3Q6.js";import{a as wt}from"./chunk-GD5556B2.js";import"./chunk-5KHLOGTR.js";import"./chunk-TUFTB5UD.js";import"./chunk-AYLYOLVG.js";import"./chunk-A2SWQS2N.js";import"./chunk-ZQ6MG635.js";import"./chunk-RINDVT6U.js";import"./chunk-OIN3HGOQ.js";import"./chunk-Z7WBY27D.js";import"./chunk-SB3IYODL.js";import"./chunk-XP7UEI56.js";import"./chunk-L3C4AHZJ.js";import"./chunk-VAIBLWOY.js";import"./chunk-UTBVLDKY.js";import"./chunk-PGWKJ6FK.js";import{a as R}from"./chunk-PFT7KJ65.js";import{b as L,d as P}from"./chunk-WNTOQYRY.js";import"./chunk-UFBTCHEI.js";import"./chunk-VFRHMNLJ.js";import"./chunk-HFI2MD3H.js";import{a as W}from"./chunk-SA74WAVS.js";import{a as E}from"./chunk-ANGJCT4I.js";import{a as _}from"./chunk-UPXJJBXZ.js";import{d as A,e as z}from"./chunk-RC3XP5WU.js";import"./chunk-HN5HLFTB.js";import"./chunk-KSHK3ZPX.js";import"./chunk-DKFUZO5P.js";import{a as bt}from"./chunk-YXWBSRKS.js";import"./chunk-L6FZRTSN.js";import"./chunk-LDJT7TII.js";import"./chunk-LRNSFLHR.js";import"./chunk-FEHSJUZJ.js";import"./chunk-R64X3EJF.js";import"./chunk-NRW33IP5.js";import"./chunk-5ZR7EFPY.js";import"./chunk-BMDZJNJV.js";import"./chunk-DPY77ASH.js";import"./chunk-TOA3JILU.js";import"./chunk-ZY5U2UNT.js";import"./chunk-FB2QGVI2.js";import"./chunk-LRGEEPGK.js";import"./chunk-WVJDCDGZ.js";import"./chunk-BDPCUDJB.js";import"./chunk-R2MHAPWD.js";import"./chunk-U6RM2N4A.js";import{a as j}from"./chunk-Q4BKFSTW.js";import{a as S}from"./chunk-DYB3RWP7.js";import"./chunk-A7ZJQCNU.js";import{a as ut}from"./chunk-VLLLNIMN.js";import{a as nt}from"./chunk-4ZGIL6OE.js";import"./chunk-CFIJKJXD.js";import"./chunk-QLNFHOLH.js";import"./chunk-OXCEJQFC.js";import"./chunk-BV3PGYSH.js";import{a as it}from"./chunk-OW5QGJD4.js";import{a as vt}from"./chunk-CYPGWEOO.js";import{a as ct,b as st,c as lt,d as dt,e as pt,f as gt}from"./chunk-KDUM4EZJ.js";import"./chunk-SGE4DLC3.js";import"./chunk-2YTBWEC7.js";import"./chunk-JTOLQCOG.js";import"./chunk-JBUNDNKJ.js";import"./chunk-7R347KBY.js";import"./chunk-AFRA4BIW.js";import"./chunk-3A47R5RQ.js";import"./chunk-D6X2WCEG.js";import"./chunk-HPHWQU34.js";import{a as F,b as T}from"./chunk-ANQ4HVVK.js";import"./chunk-PD24XKD6.js";import"./chunk-TWIUL2P3.js";import"./chunk-ZX5OIIJX.js";import"./chunk-DZ67OJVF.js";import"./chunk-KOIHMAAP.js";import"./chunk-XFD3ULUF.js";import"./chunk-GC23RRCI.js";import"./chunk-LMYJ6V44.js";import"./chunk-N6G4VZXF.js";import"./chunk-4T6PRR6R.js";import{a as v}from"./chunk-3O3Q24JL.js";import"./chunk-PJBAQZ6G.js";import"./chunk-Z5WMKCRJ.js";import"./chunk-EKKRQI6B.js";import"./chunk-WVDTHFGS.js";import{a as u,c as h}from"./chunk-3ZWDIEEM.js";import{a as ot}from"./chunk-LWGVLLBH.js";import"./chunk-CNDSIADP.js";import{b as C}from"./chunk-PAQW5BFW.js";import"./chunk-MQ6F5LE4.js";import"./chunk-TVZAFTPT.js";import{c as B,d as m}from"./chunk-43WMZDDH.js";import{a as r}from"./chunk-P37U34EQ.js";import{QueryClient as $,QueryClientProvider as J}from"@tanstack/react-query";function d(t){let a=document.documentElement;Object.keys(t).forEach(e=>{let o=t[e];o&&a.style.setProperty(e,o)})}r(d,"setCssProperties");function N(t){let a={};return Object.keys(t).forEach(e=>{a[`--${e}`]=t[e]}),a}r(N,"mapThemeColors");function q(t){return{"--spacing":t}}r(q,"mapThemeSpacing");function K(t){return{"--radius":t}}r(K,"mapThemeBorderRadius");function U(t){return{"--fontSizeBase":t.fontSizeBase}}r(U,"mapThemeFont");function f(t){t?.colors&&d(N(t.colors)),t?.spacing&&d(q(t.spacing)),t?.borderRadius&&d(K(t.borderRadius)),t?.font&&d(U(t.font))}r(f,"applyTheme");import{createContext as V,useEffect as M,useMemo as Y}from"react";import{jsx as Q}from"react/jsx-runtime";var H=V({theme:{}});function w(t){M(()=>{t.theme&&Object.keys(t.theme).length>0&&f(t.theme)},[t.theme]);let a=Y(()=>({theme:t.theme}),[t.theme]);return Q(H.Provider,{value:a,children:t.children})}r(w,"ThemeProvider");var b={local:"http://localhost:4000/api/eor",partners:"https://gateway.partners.remote-sandbox.com",production:"https://gateway.remote.com",sandbox:"https://gateway.remote-sandbox.com",staging:"https://gateway.niceremote.com"};import{createClient as X}from"@hey-api/client-fetch";import{useQuery as Z}from"@tanstack/react-query";import{useRef as x}from"react";function G(t){try{return new URL(t),!0}catch{return!1}}r(G,"isValidUrl");var y=r(({auth:t,options:a,authId:e="default"})=>{let o=x(null),{refetch:c}=Z({queryKey:["auth",e],queryFn:t,enabled:!1}),s=a?.environment?b[a?.environment]:"https://gateway.remote.com",l=v.getConfig(),g="0.27.0";a?.environment&&a?.environment!=="production"&&m(g);let p=!!a?.proxy&&G(a.proxy.url);return a?.proxy&&!p&&console.error("Invalid proxy URL provided. Using default base URL."),x(X({...l,headers:{...l.headers,...p?a?.proxy?.headers:{},"X-Client-Name":"remote-flows-sdk","X-Client-Version":g},baseUrl:p?a.proxy?.url:s,auth:r(async()=>{function k(n){return!n||Date.now()+6e4>n}if(r(k,"hasTokenExpired"),!o.current||k(o.current.expiresAt)){let{data:n}=await c();n&&(o.current={accessToken:n.accessToken,expiresAt:Date.now()+n.expiresIn*1e3})}return o.current?.accessToken},"auth")}))},"useAuth");import{jsx as i}from"react/jsx-runtime";var tt=new $;function at({children:t,auth:a,authId:e,proxy:o,environment:c}){let s=y({auth:a,authId:e,options:{proxy:o,environment:c}});return i(h.Provider,{value:{client:s.current},children:t})}r(at,"RemoteFlowContextWrapper");function rt({children:t,components:a}){return i(u.Provider,{value:a?{components:a}:{components:{}},children:t})}r(rt,"FormFieldsProvider");function et({auth:t,authId:a,children:e,components:o,theme:c,proxy:s,environment:l}){return i(J,{client:tt,children:i(rt,{components:o,children:i(at,{auth:t,authId:a,proxy:s,environment:l,children:i(w,{theme:c,children:e})})})})}r(et,"RemoteFlows");export{ot as ContractAmendmentConfirmationForm,ut as ContractAmendmentFlow,nt as ContractAmendmentForm,it as ContractAmendmentSubmit,bt as ContractorOnboardingFlow,j as CostCalculatorDisclaimer,R as CostCalculatorFlow,W as CostCalculatorForm,E as CostCalculatorResetButton,O as CostCalculatorResults,_ as CostCalculatorSubmitButton,D as EstimationResults,wt as OnboardingFlow,et as RemoteFlows,I as SummaryResults,ft as TerminationDialogInfoContent,ht as TerminationFlow,mt as TerminationReasonsDetailContent,T as ZendeskTriggerButton,L as buildCostCalculatorEstimationPayload,C as convertFromCents,S as disclaimerData,B as transformYupErrorsIntoObject,dt as useBookedTimeoffBeforeAndAfterTerminationQuery,vt as useContractAmendment,P as useCostCalculator,z as useCostCalculatorEstimationCsv,A as useCostCalculatorEstimationPdf,ct as useEmploymentQuery,lt as usePaidTimeoffBreakdownQuery,pt as useSummaryTimeOffDataQuery,gt as useTimeOffLeavePoliciesSummaryQuery,st as useTimeOffQuery,F as zendeskArticles};
1
+ import"./chunk-FZ7FWFJX.js";import{a as ft}from"./chunk-FHQWEM5E.js";import{a as mt}from"./chunk-QIQTM4HB.js";import{a as ht}from"./chunk-I5XGKYJR.js";import"./chunk-43IIMISK.js";import"./chunk-P5WUODPR.js";import"./chunk-NZHJMUIX.js";import"./chunk-6IL4TB7S.js";import"./chunk-IWA5B4U6.js";import"./chunk-7VOQAVM4.js";import"./chunk-GEHM46QD.js";import"./chunk-EHAZWZ3O.js";import"./chunk-ID3ZF7QT.js";import"./chunk-I4XJ764Y.js";import"./chunk-S4XU4SE7.js";import"./chunk-Z3BMF4BO.js";import{a as I}from"./chunk-H425RKFI.js";import{a as D}from"./chunk-PXX2JSFI.js";import"./chunk-DTHBG6BD.js";import{a as O}from"./chunk-2RBD2MJR.js";import"./chunk-MQWVZSGH.js";import"./chunk-PJY4TN7I.js";import"./chunk-ZJ7524CZ.js";import"./chunk-QU4ZTSMT.js";import"./chunk-IJQDK7KG.js";import"./chunk-ZE3YT3Q6.js";import"./chunk-BCXRPHWY.js";import"./chunk-ZSCKSEAA.js";import"./chunk-LWZIOOPO.js";import"./chunk-5Y2RV54X.js";import"./chunk-QM7J43SC.js";import"./chunk-LA6ZJLTB.js";import"./chunk-6VRUYYUV.js";import"./chunk-MRYRNB7Y.js";import{a as W}from"./chunk-6IKJCDQU.js";import{a as E}from"./chunk-ANGJCT4I.js";import{a as _}from"./chunk-UPXJJBXZ.js";import"./chunk-GULCZWSK.js";import{a as j}from"./chunk-Q4BKFSTW.js";import{a as S}from"./chunk-DYB3RWP7.js";import{a as R}from"./chunk-2FZWM6RV.js";import"./chunk-KSHK3ZPX.js";import{b as L,d as P}from"./chunk-CHAHQRMM.js";import"./chunk-3PTV5YSQ.js";import"./chunk-VFRHMNLJ.js";import{d as A,e as z}from"./chunk-RC3XP5WU.js";import"./chunk-HN5HLFTB.js";import"./chunk-DKFUZO5P.js";import{a as bt}from"./chunk-MAVVGCUM.js";import"./chunk-K2I7ZL3Z.js";import"./chunk-T2UJOEUA.js";import"./chunk-CEJ24TSW.js";import"./chunk-SRYUZSIK.js";import"./chunk-7JPHJ7SQ.js";import"./chunk-M22INAKM.js";import"./chunk-5ZR7EFPY.js";import"./chunk-E5VV7WAZ.js";import"./chunk-DPY77ASH.js";import"./chunk-TOA3JILU.js";import"./chunk-ZPBKMAKR.js";import"./chunk-BDPCUDJB.js";import"./chunk-R2MHAPWD.js";import"./chunk-U6RM2N4A.js";import{a as wt}from"./chunk-QFK2SD24.js";import"./chunk-ZQ6MG635.js";import"./chunk-LAYZ6XET.js";import"./chunk-OIN3HGOQ.js";import"./chunk-Z7WBY27D.js";import"./chunk-5KHLOGTR.js";import"./chunk-UYHBV7QJ.js";import"./chunk-GWJZTMF4.js";import"./chunk-S3KOROEZ.js";import"./chunk-MB6ZGX2O.js";import"./chunk-NW5EBNKN.js";import"./chunk-PGWKJ6FK.js";import"./chunk-UXVCNSHK.js";import"./chunk-BSUVUGJG.js";import"./chunk-VAIBLWOY.js";import"./chunk-3WE5QB4I.js";import"./chunk-EHS4ERDW.js";import"./chunk-AWJUS6JD.js";import"./chunk-WVJDCDGZ.js";import"./chunk-A7ZJQCNU.js";import{a as ut}from"./chunk-FTCLM4RE.js";import{a as nt}from"./chunk-WHVPDECD.js";import"./chunk-CCL5LNHC.js";import"./chunk-CFIJKJXD.js";import"./chunk-TKAZTT3M.js";import"./chunk-BV3PGYSH.js";import{a as it}from"./chunk-OW5QGJD4.js";import{a as vt}from"./chunk-CYPGWEOO.js";import{a as ct,b as st,c as lt,d as dt,e as pt,f as gt}from"./chunk-KDUM4EZJ.js";import"./chunk-SGE4DLC3.js";import"./chunk-2YTBWEC7.js";import"./chunk-JTOLQCOG.js";import"./chunk-JBUNDNKJ.js";import"./chunk-7R347KBY.js";import"./chunk-AFRA4BIW.js";import"./chunk-3A47R5RQ.js";import"./chunk-D6X2WCEG.js";import"./chunk-HPHWQU34.js";import{a as F,b as T}from"./chunk-CDRDLO4A.js";import"./chunk-PD24XKD6.js";import"./chunk-TWIUL2P3.js";import"./chunk-ZX5OIIJX.js";import"./chunk-25U3HC77.js";import"./chunk-XOA7GG4P.js";import"./chunk-XFD3ULUF.js";import"./chunk-ZXGAFQXW.js";import"./chunk-LMYJ6V44.js";import"./chunk-RR55GUDT.js";import"./chunk-NX7MM6XR.js";import"./chunk-VDRNNOVA.js";import{a as v}from"./chunk-3O3Q24JL.js";import"./chunk-PJBAQZ6G.js";import"./chunk-Z5WMKCRJ.js";import"./chunk-EKKRQI6B.js";import"./chunk-WVDTHFGS.js";import{a as u,c as h}from"./chunk-3ZWDIEEM.js";import{a as ot}from"./chunk-LWGVLLBH.js";import"./chunk-CNDSIADP.js";import{b as C}from"./chunk-PAQW5BFW.js";import"./chunk-MQ6F5LE4.js";import"./chunk-TVZAFTPT.js";import{c as B,d as m}from"./chunk-43WMZDDH.js";import{a as r}from"./chunk-P37U34EQ.js";import{QueryClient as $,QueryClientProvider as J}from"@tanstack/react-query";function d(t){let a=document.documentElement;Object.keys(t).forEach(e=>{let o=t[e];o&&a.style.setProperty(e,o)})}r(d,"setCssProperties");function N(t){let a={};return Object.keys(t).forEach(e=>{a[`--${e}`]=t[e]}),a}r(N,"mapThemeColors");function q(t){return{"--spacing":t}}r(q,"mapThemeSpacing");function K(t){return{"--radius":t}}r(K,"mapThemeBorderRadius");function U(t){return{"--fontSizeBase":t.fontSizeBase}}r(U,"mapThemeFont");function f(t){t?.colors&&d(N(t.colors)),t?.spacing&&d(q(t.spacing)),t?.borderRadius&&d(K(t.borderRadius)),t?.font&&d(U(t.font))}r(f,"applyTheme");import{createContext as V,useEffect as M,useMemo as Y}from"react";import{jsx as Q}from"react/jsx-runtime";var H=V({theme:{}});function w(t){M(()=>{t.theme&&Object.keys(t.theme).length>0&&f(t.theme)},[t.theme]);let a=Y(()=>({theme:t.theme}),[t.theme]);return Q(H.Provider,{value:a,children:t.children})}r(w,"ThemeProvider");var b={local:"http://localhost:4000/api/eor",partners:"https://gateway.partners.remote-sandbox.com",production:"https://gateway.remote.com",sandbox:"https://gateway.remote-sandbox.com",staging:"https://gateway.niceremote.com"};import{createClient as X}from"@hey-api/client-fetch";import{useQuery as Z}from"@tanstack/react-query";import{useRef as x}from"react";function G(t){try{return new URL(t),!0}catch{return!1}}r(G,"isValidUrl");var y=r(({auth:t,options:a,authId:e="default"})=>{let o=x(null),{refetch:c}=Z({queryKey:["auth",e],queryFn:t,enabled:!1}),s=a?.environment?b[a?.environment]:"https://gateway.remote.com",l=v.getConfig(),g="0.29.0";a?.environment&&a?.environment!=="production"&&m(g);let p=!!a?.proxy&&G(a.proxy.url);return a?.proxy&&!p&&console.error("Invalid proxy URL provided. Using default base URL."),x(X({...l,headers:{...l.headers,...p?a?.proxy?.headers:{},"X-Client-Name":"remote-flows-sdk","X-Client-Version":g},baseUrl:p?a.proxy?.url:s,auth:r(async()=>{function k(n){return!n||Date.now()+6e4>n}if(r(k,"hasTokenExpired"),!o.current||k(o.current.expiresAt)){let{data:n}=await c();n&&(o.current={accessToken:n.accessToken,expiresAt:Date.now()+n.expiresIn*1e3})}return o.current?.accessToken},"auth")}))},"useAuth");import{jsx as i}from"react/jsx-runtime";var tt=new $;function at({children:t,auth:a,authId:e,proxy:o,environment:c}){let s=y({auth:a,authId:e,options:{proxy:o,environment:c}});return i(h.Provider,{value:{client:s.current},children:t})}r(at,"RemoteFlowContextWrapper");function rt({children:t,components:a}){return i(u.Provider,{value:a?{components:a}:{components:{}},children:t})}r(rt,"FormFieldsProvider");function et({auth:t,authId:a,children:e,components:o,theme:c,proxy:s,environment:l}){return i(J,{client:tt,children:i(rt,{components:o,children:i(at,{auth:t,authId:a,proxy:s,environment:l,children:i(w,{theme:c,children:e})})})})}r(et,"RemoteFlows");export{ot as ContractAmendmentConfirmationForm,ut as ContractAmendmentFlow,nt as ContractAmendmentForm,it as ContractAmendmentSubmit,bt as ContractorOnboardingFlow,j as CostCalculatorDisclaimer,R as CostCalculatorFlow,W as CostCalculatorForm,E as CostCalculatorResetButton,O as CostCalculatorResults,_ as CostCalculatorSubmitButton,D as EstimationResults,wt as OnboardingFlow,et as RemoteFlows,I as SummaryResults,ft as TerminationDialogInfoContent,ht as TerminationFlow,mt as TerminationReasonsDetailContent,T as ZendeskTriggerButton,L as buildCostCalculatorEstimationPayload,C as convertFromCents,S as disclaimerData,B as transformYupErrorsIntoObject,dt as useBookedTimeoffBeforeAndAfterTerminationQuery,vt as useContractAmendment,P as useCostCalculator,z as useCostCalculatorEstimationCsv,A as useCostCalculatorEstimationPdf,ct as useEmploymentQuery,lt as usePaidTimeoffBreakdownQuery,pt as useSummaryTimeOffDataQuery,gt as useTimeOffLeavePoliciesSummaryQuery,st as useTimeOffQuery,F as zendeskArticles};
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/RemoteFlowsProvider.tsx","../src/lib/applyTheme.ts","../src/theme.tsx","../src/environments.ts","../src/useAuth.ts"],"sourcesContent":["import { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport type { PropsWithChildren } from 'react';\nimport React from 'react';\n\nimport { ThemeProvider } from '@/src/theme';\nimport { FormFieldsContext, RemoteFlowContext } from './context';\nimport { Components, RemoteFlowsSDKProps } from './types/remoteFlows';\nimport { useAuth } from './useAuth';\n\nconst queryClient = new QueryClient();\n\ntype RemoteFlowContextWrapperProps = {\n auth: RemoteFlowsSDKProps['auth'];\n children: React.ReactNode;\n environment?: RemoteFlowsSDKProps['environment'];\n proxy?: RemoteFlowsSDKProps['proxy'];\n authId?: RemoteFlowsSDKProps['authId'];\n};\n\nfunction RemoteFlowContextWrapper({\n children,\n auth,\n authId,\n proxy,\n environment,\n}: RemoteFlowContextWrapperProps) {\n const remoteApiClient = useAuth({\n auth,\n authId,\n options: {\n proxy,\n environment,\n },\n });\n return (\n <RemoteFlowContext.Provider value={{ client: remoteApiClient.current }}>\n {children}\n </RemoteFlowContext.Provider>\n );\n}\n\nexport function FormFieldsProvider({\n children,\n components,\n}: PropsWithChildren<{\n components?: Components;\n}>) {\n return (\n <FormFieldsContext.Provider\n value={components ? { components } : { components: {} }}\n >\n {children}\n </FormFieldsContext.Provider>\n );\n}\n\nexport function RemoteFlows({\n auth,\n authId,\n children,\n components,\n theme,\n proxy,\n environment,\n}: PropsWithChildren<RemoteFlowsSDKProps>) {\n return (\n <QueryClientProvider client={queryClient}>\n <FormFieldsProvider components={components}>\n <RemoteFlowContextWrapper\n auth={auth}\n authId={authId}\n proxy={proxy}\n environment={environment}\n >\n <ThemeProvider theme={theme}>{children}</ThemeProvider>\n </RemoteFlowContextWrapper>\n </FormFieldsProvider>\n </QueryClientProvider>\n );\n}\n","import {\n CssThemeBorder,\n CssThemeColors,\n CssThemeFont,\n CssThemeSpacing,\n ThemeColors,\n ThemeFont,\n ThemeProviderProps,\n} from '@/src/types/theme';\n\nfunction setCssProperties(variables: Record<string, string>) {\n const root = document.documentElement;\n Object.keys(variables).forEach((v) => {\n const propertyVal = variables[v];\n if (propertyVal) {\n root.style.setProperty(v, propertyVal);\n }\n });\n}\n\nfunction mapThemeColors(colors: ThemeColors): CssThemeColors {\n const result: CssThemeColors = {};\n Object.keys(colors).forEach((key) => {\n result[`--${key}` as keyof CssThemeColors] =\n colors[key as keyof ThemeColors];\n });\n return result;\n}\n\nfunction mapThemeSpacing(spacing: string): CssThemeSpacing {\n return {\n '--spacing': spacing,\n };\n}\n\nfunction mapThemeBorderRadius(borderRadius: string): CssThemeBorder {\n return {\n '--radius': borderRadius,\n };\n}\n\nfunction mapThemeFont(font: ThemeFont): CssThemeFont {\n return {\n '--fontSizeBase': font.fontSizeBase,\n };\n}\n\nexport function applyTheme(theme: ThemeProviderProps['theme']) {\n if (theme?.colors) {\n setCssProperties(mapThemeColors(theme.colors));\n }\n\n if (theme?.spacing) {\n setCssProperties(mapThemeSpacing(theme.spacing));\n }\n\n if (theme?.borderRadius) {\n setCssProperties(mapThemeBorderRadius(theme.borderRadius));\n }\n\n if (theme?.font) {\n setCssProperties(mapThemeFont(theme.font));\n }\n}\n","import { applyTheme } from '@/src/lib/applyTheme';\nimport { createContext, useEffect, useMemo } from 'react';\nimport { ThemeProviderProps } from './types/theme';\n\nconst ThemeContext = createContext<Omit<ThemeProviderProps, 'children'>>({\n theme: {},\n});\n\nexport function ThemeProvider(props: ThemeProviderProps) {\n useEffect(() => {\n if (props.theme && Object.keys(props.theme).length > 0) {\n applyTheme(props.theme);\n }\n }, [props.theme]);\n\n const value = useMemo(() => {\n return { theme: props.theme };\n }, [props.theme]);\n\n return (\n <ThemeContext.Provider value={value}>\n {props.children}\n </ThemeContext.Provider>\n );\n}\n","export const ENVIRONMENTS = {\n local: 'http://localhost:4000/api/eor',\n partners: 'https://gateway.partners.remote-sandbox.com',\n production: 'https://gateway.remote.com',\n sandbox: 'https://gateway.remote-sandbox.com',\n staging: 'https://gateway.niceremote.com',\n};\n","import { client } from '@/src/client/client.gen';\nimport { ENVIRONMENTS } from '@/src/environments';\nimport { createClient } from '@hey-api/client-fetch';\nimport { useQuery } from '@tanstack/react-query';\nimport { useRef } from 'react';\nimport { RemoteFlowsSDKProps } from './types/remoteFlows';\nimport { debug } from './lib/utils';\n\ntype AuthResponse = {\n accessToken: string;\n expiresIn: number;\n};\n\ntype Options = Partial<{\n environment: keyof typeof ENVIRONMENTS;\n proxy: RemoteFlowsSDKProps['proxy'];\n}>;\n\nfunction isValidUrl(url: string) {\n try {\n new URL(url);\n return true;\n } catch {\n return false;\n }\n}\n\nexport const useAuth = ({\n auth,\n options,\n authId = 'default',\n}: {\n auth: () => Promise<AuthResponse>;\n options?: Options;\n authId?: 'default' | 'client';\n}) => {\n const session = useRef<{ accessToken: string; expiresAt: number } | null>(\n null,\n );\n const { refetch } = useQuery({\n queryKey: ['auth', authId],\n queryFn: auth,\n enabled: false,\n });\n\n const baseUrl = options?.environment\n ? ENVIRONMENTS[options?.environment]\n : process.env.REMOTE_GATEWAY_URL;\n\n const clientConfig = client.getConfig();\n const npmPackageVersion = process.env.VERSION || 'unknown';\n\n if (options?.environment && options?.environment !== 'production') {\n debug(npmPackageVersion);\n }\n\n const isValidProxy = !!options?.proxy && isValidUrl(options.proxy.url);\n\n if (options?.proxy && !isValidProxy) {\n console.error('Invalid proxy URL provided. Using default base URL.');\n }\n\n return useRef(\n createClient({\n ...clientConfig,\n headers: {\n ...clientConfig.headers,\n ...(isValidProxy ? options?.proxy?.headers : {}),\n 'X-Client-Name': 'remote-flows-sdk',\n 'X-Client-Version': npmPackageVersion,\n },\n baseUrl: isValidProxy ? options.proxy?.url : baseUrl,\n auth: async () => {\n function hasTokenExpired(expiresAt: number | undefined) {\n return !expiresAt || Date.now() + 60000 > expiresAt;\n }\n if (!session.current || hasTokenExpired(session.current.expiresAt)) {\n const { data } = await refetch();\n if (data) {\n session.current = {\n accessToken: data.accessToken,\n expiresAt: Date.now() + data.expiresIn * 1000,\n };\n }\n }\n return session.current?.accessToken;\n },\n }),\n );\n};\n"],"mappings":"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","names":["QueryClient","QueryClientProvider","setCssProperties","variables","root","v","propertyVal","__name","mapThemeColors","colors","result","key","mapThemeSpacing","spacing","mapThemeBorderRadius","borderRadius","mapThemeFont","font","applyTheme","theme","createContext","useEffect","useMemo","jsx","ThemeContext","createContext","ThemeProvider","props","useEffect","applyTheme","value","useMemo","__name","ENVIRONMENTS","createClient","useQuery","useRef","isValidUrl","url","__name","useAuth","auth","options","authId","session","useRef","refetch","useQuery","baseUrl","ENVIRONMENTS","clientConfig","client","npmPackageVersion","debug","isValidProxy","createClient","hasTokenExpired","expiresAt","data","jsx","queryClient","QueryClient","RemoteFlowContextWrapper","children","auth","authId","proxy","environment","remoteApiClient","useAuth","RemoteFlowContext","__name","FormFieldsProvider","components","FormFieldsContext","RemoteFlows","theme","QueryClientProvider","ThemeProvider"]}
1
+ {"version":3,"sources":["../src/RemoteFlowsProvider.tsx","../src/lib/applyTheme.ts","../src/theme.tsx","../src/environments.ts","../src/useAuth.ts"],"sourcesContent":["import { QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport type { PropsWithChildren } from 'react';\nimport React from 'react';\n\nimport { ThemeProvider } from '@/src/theme';\nimport { FormFieldsContext, RemoteFlowContext } from './context';\nimport { Components, RemoteFlowsSDKProps } from './types/remoteFlows';\nimport { useAuth } from './useAuth';\n\nconst queryClient = new QueryClient();\n\ntype RemoteFlowContextWrapperProps = {\n auth: RemoteFlowsSDKProps['auth'];\n children: React.ReactNode;\n environment?: RemoteFlowsSDKProps['environment'];\n proxy?: RemoteFlowsSDKProps['proxy'];\n authId?: RemoteFlowsSDKProps['authId'];\n};\n\nfunction RemoteFlowContextWrapper({\n children,\n auth,\n authId,\n proxy,\n environment,\n}: RemoteFlowContextWrapperProps) {\n const remoteApiClient = useAuth({\n auth,\n authId,\n options: {\n proxy,\n environment,\n },\n });\n return (\n <RemoteFlowContext.Provider value={{ client: remoteApiClient.current }}>\n {children}\n </RemoteFlowContext.Provider>\n );\n}\n\nexport function FormFieldsProvider({\n children,\n components,\n}: PropsWithChildren<{\n components?: Components;\n}>) {\n return (\n <FormFieldsContext.Provider\n value={components ? { components } : { components: {} }}\n >\n {children}\n </FormFieldsContext.Provider>\n );\n}\n\nexport function RemoteFlows({\n auth,\n authId,\n children,\n components,\n theme,\n proxy,\n environment,\n}: PropsWithChildren<RemoteFlowsSDKProps>) {\n return (\n <QueryClientProvider client={queryClient}>\n <FormFieldsProvider components={components}>\n <RemoteFlowContextWrapper\n auth={auth}\n authId={authId}\n proxy={proxy}\n environment={environment}\n >\n <ThemeProvider theme={theme}>{children}</ThemeProvider>\n </RemoteFlowContextWrapper>\n </FormFieldsProvider>\n </QueryClientProvider>\n );\n}\n","import {\n CssThemeBorder,\n CssThemeColors,\n CssThemeFont,\n CssThemeSpacing,\n ThemeColors,\n ThemeFont,\n ThemeProviderProps,\n} from '@/src/types/theme';\n\nfunction setCssProperties(variables: Record<string, string>) {\n const root = document.documentElement;\n Object.keys(variables).forEach((v) => {\n const propertyVal = variables[v];\n if (propertyVal) {\n root.style.setProperty(v, propertyVal);\n }\n });\n}\n\nfunction mapThemeColors(colors: ThemeColors): CssThemeColors {\n const result: CssThemeColors = {};\n Object.keys(colors).forEach((key) => {\n result[`--${key}` as keyof CssThemeColors] =\n colors[key as keyof ThemeColors];\n });\n return result;\n}\n\nfunction mapThemeSpacing(spacing: string): CssThemeSpacing {\n return {\n '--spacing': spacing,\n };\n}\n\nfunction mapThemeBorderRadius(borderRadius: string): CssThemeBorder {\n return {\n '--radius': borderRadius,\n };\n}\n\nfunction mapThemeFont(font: ThemeFont): CssThemeFont {\n return {\n '--fontSizeBase': font.fontSizeBase,\n };\n}\n\nexport function applyTheme(theme: ThemeProviderProps['theme']) {\n if (theme?.colors) {\n setCssProperties(mapThemeColors(theme.colors));\n }\n\n if (theme?.spacing) {\n setCssProperties(mapThemeSpacing(theme.spacing));\n }\n\n if (theme?.borderRadius) {\n setCssProperties(mapThemeBorderRadius(theme.borderRadius));\n }\n\n if (theme?.font) {\n setCssProperties(mapThemeFont(theme.font));\n }\n}\n","import { applyTheme } from '@/src/lib/applyTheme';\nimport { createContext, useEffect, useMemo } from 'react';\nimport { ThemeProviderProps } from './types/theme';\n\nconst ThemeContext = createContext<Omit<ThemeProviderProps, 'children'>>({\n theme: {},\n});\n\nexport function ThemeProvider(props: ThemeProviderProps) {\n useEffect(() => {\n if (props.theme && Object.keys(props.theme).length > 0) {\n applyTheme(props.theme);\n }\n }, [props.theme]);\n\n const value = useMemo(() => {\n return { theme: props.theme };\n }, [props.theme]);\n\n return (\n <ThemeContext.Provider value={value}>\n {props.children}\n </ThemeContext.Provider>\n );\n}\n","export const ENVIRONMENTS = {\n local: 'http://localhost:4000/api/eor',\n partners: 'https://gateway.partners.remote-sandbox.com',\n production: 'https://gateway.remote.com',\n sandbox: 'https://gateway.remote-sandbox.com',\n staging: 'https://gateway.niceremote.com',\n};\n","import { client } from '@/src/client/client.gen';\nimport { ENVIRONMENTS } from '@/src/environments';\nimport { createClient } from '@hey-api/client-fetch';\nimport { useQuery } from '@tanstack/react-query';\nimport { useRef } from 'react';\nimport { RemoteFlowsSDKProps } from './types/remoteFlows';\nimport { debug } from './lib/utils';\n\ntype AuthResponse = {\n accessToken: string;\n expiresIn: number;\n};\n\ntype Options = Partial<{\n environment: keyof typeof ENVIRONMENTS;\n proxy: RemoteFlowsSDKProps['proxy'];\n}>;\n\nfunction isValidUrl(url: string) {\n try {\n new URL(url);\n return true;\n } catch {\n return false;\n }\n}\n\nexport const useAuth = ({\n auth,\n options,\n authId = 'default',\n}: {\n auth: () => Promise<AuthResponse>;\n options?: Options;\n authId?: 'default' | 'client';\n}) => {\n const session = useRef<{ accessToken: string; expiresAt: number } | null>(\n null,\n );\n const { refetch } = useQuery({\n queryKey: ['auth', authId],\n queryFn: auth,\n enabled: false,\n });\n\n const baseUrl = options?.environment\n ? ENVIRONMENTS[options?.environment]\n : process.env.REMOTE_GATEWAY_URL;\n\n const clientConfig = client.getConfig();\n const npmPackageVersion = process.env.VERSION || 'unknown';\n\n if (options?.environment && options?.environment !== 'production') {\n debug(npmPackageVersion);\n }\n\n const isValidProxy = !!options?.proxy && isValidUrl(options.proxy.url);\n\n if (options?.proxy && !isValidProxy) {\n console.error('Invalid proxy URL provided. Using default base URL.');\n }\n\n return useRef(\n createClient({\n ...clientConfig,\n headers: {\n ...clientConfig.headers,\n ...(isValidProxy ? options?.proxy?.headers : {}),\n 'X-Client-Name': 'remote-flows-sdk',\n 'X-Client-Version': npmPackageVersion,\n },\n baseUrl: isValidProxy ? options.proxy?.url : baseUrl,\n auth: async () => {\n function hasTokenExpired(expiresAt: number | undefined) {\n return !expiresAt || Date.now() + 60000 > expiresAt;\n }\n if (!session.current || hasTokenExpired(session.current.expiresAt)) {\n const { data } = await refetch();\n if (data) {\n session.current = {\n accessToken: data.accessToken,\n expiresAt: Date.now() + data.expiresIn * 1000,\n };\n }\n }\n return session.current?.accessToken;\n },\n }),\n );\n};\n"],"mappings":"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","names":["QueryClient","QueryClientProvider","setCssProperties","variables","root","v","propertyVal","__name","mapThemeColors","colors","result","key","mapThemeSpacing","spacing","mapThemeBorderRadius","borderRadius","mapThemeFont","font","applyTheme","theme","createContext","useEffect","useMemo","jsx","ThemeContext","createContext","ThemeProvider","props","useEffect","applyTheme","value","useMemo","__name","ENVIRONMENTS","createClient","useQuery","useRef","isValidUrl","url","__name","useAuth","auth","options","authId","session","useRef","refetch","useQuery","baseUrl","ENVIRONMENTS","clientConfig","client","npmPackageVersion","debug","isValidProxy","createClient","hasTokenExpired","expiresAt","data","jsx","queryClient","QueryClient","RemoteFlowContextWrapper","children","auth","authId","proxy","environment","remoteApiClient","useAuth","RemoteFlowContext","__name","FormFieldsProvider","components","FormFieldsContext","RemoteFlows","theme","QueryClientProvider","ThemeProvider"]}
@@ -1,4 +1,4 @@
1
- export { Z as ZendeskTriggerButton, c as cn } from './ZendeskTriggerButton-DIV8pCPo.js';
1
+ export { Z as ZendeskTriggerButton, c as cn } from './ZendeskTriggerButton-Dditzyfj.js';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import { VariantProps } from 'class-variance-authority';
package/dist/internals.js CHANGED
@@ -1,2 +1,2 @@
1
- import{a as Q,b as R,c as S}from"./chunk-JBUNDNKJ.js";import{a as M,b as N,c as O,d as P}from"./chunk-7R347KBY.js";import{a as G,b as H,c as I,d as J,e as K,f as L}from"./chunk-AFRA4BIW.js";import{a as F}from"./chunk-3A47R5RQ.js";import{a as j,b as m,c as n,d as o,f as p,g as q,h as r,i as s,j as v,k as w,l as x,m as y,n as z,o as A,p as B,q as C,r as D,s as E}from"./chunk-D6X2WCEG.js";import{a as t,b as u}from"./chunk-HPHWQU34.js";import{b as i}from"./chunk-ANQ4HVVK.js";import{a as c}from"./chunk-PD24XKD6.js";import{a as d,b as e,d as f,e as g,f as h}from"./chunk-TWIUL2P3.js";import"./chunk-ZX5OIIJX.js";import"./chunk-3O3Q24JL.js";import{a as k,b as l}from"./chunk-WVDTHFGS.js";import"./chunk-3ZWDIEEM.js";import{a as b}from"./chunk-MQ6F5LE4.js";import{a}from"./chunk-43WMZDDH.js";import"./chunk-P37U34EQ.js";export{C as Alert,E as AlertDescription,D as AlertTitle,u as Badge,l as Button,G as Card,K as CardContent,J as CardDescription,L as CardFooter,H as CardHeader,I as CardTitle,j as Checkbox,Q as Collapsible,S as CollapsibleContent,R as CollapsibleTrigger,v as Dialog,x as DialogContent,B as DialogDescription,z as DialogFooter,y as DialogHeader,A as DialogTitle,w as DialogTrigger,d as Drawer,f as DrawerContent,g as DrawerHeader,h as DrawerTitle,e as DrawerTrigger,c as Input,b as Label,m as RadioGroup,n as RadioGroupItem,F as ScrollArea,o as Select,r as SelectContent,s as SelectItem,q as SelectTrigger,p as SelectValue,M as Tabs,P as TabsContent,N as TabsList,O as TabsTrigger,i as ZendeskTriggerButton,t as badgeVariants,k as buttonVariants,a as cn};
1
+ import{a as Q,b as R,c as S}from"./chunk-JBUNDNKJ.js";import{a as M,b as N,c as O,d as P}from"./chunk-7R347KBY.js";import{a as G,b as H,c as I,d as J,e as K,f as L}from"./chunk-AFRA4BIW.js";import{a as F}from"./chunk-3A47R5RQ.js";import{a as j,b as m,c as n,d as o,f as p,g as q,h as r,i as s,j as v,k as w,l as x,m as y,n as z,o as A,p as B,q as C,r as D,s as E}from"./chunk-D6X2WCEG.js";import{a as t,b as u}from"./chunk-HPHWQU34.js";import{b as i}from"./chunk-CDRDLO4A.js";import{a as c}from"./chunk-PD24XKD6.js";import{a as d,b as e,d as f,e as g,f as h}from"./chunk-TWIUL2P3.js";import"./chunk-ZX5OIIJX.js";import"./chunk-3O3Q24JL.js";import{a as k,b as l}from"./chunk-WVDTHFGS.js";import"./chunk-3ZWDIEEM.js";import{a as b}from"./chunk-MQ6F5LE4.js";import{a}from"./chunk-43WMZDDH.js";import"./chunk-P37U34EQ.js";export{C as Alert,E as AlertDescription,D as AlertTitle,u as Badge,l as Button,G as Card,K as CardContent,J as CardDescription,L as CardFooter,H as CardHeader,I as CardTitle,j as Checkbox,Q as Collapsible,S as CollapsibleContent,R as CollapsibleTrigger,v as Dialog,x as DialogContent,B as DialogDescription,z as DialogFooter,y as DialogHeader,A as DialogTitle,w as DialogTrigger,d as Drawer,f as DrawerContent,g as DrawerHeader,h as DrawerTitle,e as DrawerTrigger,c as Input,b as Label,m as RadioGroup,n as RadioGroupItem,F as ScrollArea,o as Select,r as SelectContent,s as SelectItem,q as SelectTrigger,p as SelectValue,M as Tabs,P as TabsContent,N as TabsList,O as TabsTrigger,i as ZendeskTriggerButton,t as badgeVariants,k as buttonVariants,a as cn};
2
2
  //# sourceMappingURL=internals.js.map
@@ -1,4 +1,4 @@
1
- import './remoteFlows-DJcvCgN2.js';
1
+ import './remoteFlows-C6LQCoUj.js';
2
2
 
3
3
  interface SuccessResponse<D> {
4
4
  data: D;
@@ -1,7 +1,7 @@
1
1
  import { ControllerRenderProps, FieldValues, ControllerFieldState } from 'react-hook-form';
2
2
  import React__default, { PropsWithChildren, ReactNode } from 'react';
3
3
  import { AnySchema } from 'yup';
4
- import { Z as HelpCenterArticle } from './types.gen-B73oMrmZ.js';
4
+ import { Z as HelpCenterArticle } from './types.gen-B1wPsyg7.js';
5
5
  import { S as SupportedTypes } from './types-Zg1n_9wh.js';
6
6
 
7
7
  type ThemeProviderProps = PropsWithChildren<{
@@ -1,8 +1,8 @@
1
- import { E as Employment, T as ListTimeoffResponse, W as TimeoffStatus, X as TimeoffType, Y as ListLeavePoliciesSummaryResponse } from './types.gen-B73oMrmZ.js';
1
+ import { E as Employment, T as ListTimeoffResponse, W as TimeoffStatus, X as TimeoffType, Y as ListLeavePoliciesSummaryResponse } from './types.gen-B1wPsyg7.js';
2
2
  import * as _tanstack_react_query from '@tanstack/react-query';
3
3
  import { UseQueryResult } from '@tanstack/react-query';
4
4
  import { ContractAmendmentParams } from './flows/ContractAmendment/types.js';
5
- import { E as Employment$1 } from './types-1tGveWWg.js';
5
+ import { E as Employment$1 } from './types-C_aEj_4p.js';
6
6
 
7
7
  type DaysAndHours = {
8
8
  hours: number;
@@ -1,17 +1,17 @@
1
- import { t as EmploymentCreationResponse, z as EmploymentResponse, S as SuccessResponse, x as PostCreateEmployment2Error, A as PatchUpdateEmployment2Error, D as PutUpdateBenefitOfferError, E as Employment$1, y as EmploymentCreateParams } from './types.gen-B73oMrmZ.js';
1
+ import { m as EmploymentCreationResponse, p as EmploymentResponse, S as SuccessResponse, n as PostCreateEmployment2Error, q as PatchUpdateEmployment2Error, s as PutUpdateBenefitOfferError, E as Employment$1, o as EmploymentCreateParams } from './types.gen-B1wPsyg7.js';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
3
  import { OnboardingBack } from './flows/Onboarding/components/OnboardingBack.js';
4
4
  import { OnboardingInvite } from './flows/Onboarding/components/OnboardingInvite.js';
5
- import { N as NormalizedFieldError, S as SuccessResponse$1, E as ErrorResponse } from './mutations-C0KsEf83.js';
5
+ import { N as NormalizedFieldError, S as SuccessResponse$1, E as ErrorResponse } from './mutations-B3zY0Z8j.js';
6
6
  import { OnboardingSubmit } from './flows/Onboarding/components/OnboardingSubmit.js';
7
- import { C as Components, M as Meta, J as JSFFieldset } from './remoteFlows-DJcvCgN2.js';
7
+ import { C as Components, M as Meta, J as JSFFieldset } from './remoteFlows-C6LQCoUj.js';
8
8
  import * as _tanstack_query_core from '@tanstack/query-core';
9
9
  import * as React$1 from 'react';
10
10
  import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
11
11
  import { Fields } from '@remoteoss/json-schema-form';
12
12
  import { Step } from './flows/useStepState.js';
13
- import { FieldValues } from 'react-hook-form';
14
13
  import { FlowOptions, JSFModify } from './flows/types.js';
14
+ import { FieldValues } from 'react-hook-form';
15
15
  import { SaveDraftButton } from './flows/Onboarding/components/SaveDraftButton.js';
16
16
 
17
17
  type BasicInformationStepProps = {
@@ -77,6 +77,7 @@ declare const STEPS_WITHOUT_SELECT_COUNTRY: Record<Exclude<StepKeys, 'select_cou
77
77
  */
78
78
  declare const reviewStepAllowedEmploymentStatus: Employment['status'][];
79
79
  declare const disabledInviteButtonEmploymentStatus: Employment['status'][];
80
+ declare const getContractDetailsSchemaVersion: (countryCode: string | null, jsonSchemaVersion: FlowOptions["jsonSchemaVersion"]) => FlowOptions["jsonSchemaVersion"] | undefined;
80
81
 
81
82
  type OnboardingHookProps = Omit<OnboardingFlowProps, 'render'>;
82
83
  declare const useOnboarding: ({ employmentId, companyId, countryCode, type, options, skipSteps, externalId, initialValues: onboardingInitialValues, }: OnboardingHookProps) => {
@@ -407,4 +408,4 @@ type Employment = Employment$1 & {
407
408
  };
408
409
  type CreditRiskState = 'deposit_required' | 'deposit_required_successful' | 'invite' | 'invite_successful' | 'referred' | null;
409
410
 
410
- export { type BasicInformationFormPayload as B, type ContractDetailsFormPayload as C, type Employment as E, type OnboardingFlowProps as O, ReviewStep as R, STEPS as S, type SelectCountryFormPayload as a, type SelectCountrySuccess as b, type BenefitsFormPayload as c, type CreditRiskStatus as d, type CreditRiskState as e, type OnboardingRenderProps as f, SelectCountryStep as g, BasicInformationStep as h, ContractDetailsStep as i, BenefitsStep as j, STEPS_WITHOUT_SELECT_COUNTRY as k, disabledInviteButtonEmploymentStatus as l, reviewStepAllowedEmploymentStatus as r, useOnboarding as u };
411
+ export { type BasicInformationFormPayload as B, type ContractDetailsFormPayload as C, type Employment as E, type OnboardingFlowProps as O, ReviewStep as R, STEPS as S, type SelectCountryFormPayload as a, type SelectCountrySuccess as b, type BenefitsFormPayload as c, type CreditRiskStatus as d, type CreditRiskState as e, type OnboardingRenderProps as f, SelectCountryStep as g, BasicInformationStep as h, ContractDetailsStep as i, BenefitsStep as j, STEPS_WITHOUT_SELECT_COUNTRY as k, disabledInviteButtonEmploymentStatus as l, getContractDetailsSchemaVersion as m, reviewStepAllowedEmploymentStatus as r, useOnboarding as u };
@@ -1,6 +1,7 @@
1
- import { O as OffboardingResponse, P as PostCreateOffboardingError, _ as TerminationDetailsParams } from './types.gen-B73oMrmZ.js';
1
+ import { O as OffboardingResponse, P as PostCreateOffboardingError, _ as TerminationDetailsParams } from './types.gen-B1wPsyg7.js';
2
2
  import * as react_jsx_runtime from 'react/jsx-runtime';
3
- import { E as ErrorResponse, S as SuccessResponse } from './mutations-C0KsEf83.js';
3
+ import { E as ErrorResponse, S as SuccessResponse } from './mutations-B3zY0Z8j.js';
4
+ import * as React$1 from 'react';
4
5
  import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
5
6
  import { $TSFixMe } from '@remoteoss/json-schema-form';
6
7
  import { Step } from './flows/useStepState.js';
@@ -10,15 +11,14 @@ import { TerminationSubmit } from './flows/Termination/TerminationSubmit.js';
10
11
  import { JSFModify } from './flows/types.js';
11
12
 
12
13
  type AdditionalDetailsFormProps = {
13
- requesterName: string;
14
14
  onSubmit?: (payload: TerminationFormValues) => void | Promise<void>;
15
15
  onError?: (error: Error) => void;
16
16
  onSuccess?: (data: OffboardingResponse) => void | Promise<void>;
17
17
  };
18
- declare function AdditionalDetailsForm({ requesterName, onSubmit, onSuccess, onError, }: AdditionalDetailsFormProps): react_jsx_runtime.JSX.Element;
18
+ declare function AdditionalDetailsForm({ onSubmit, onSuccess, onError, }: AdditionalDetailsFormProps): react_jsx_runtime.JSX.Element;
19
19
 
20
20
  type EmployeeComunicationProps = {
21
- onSubmit?: (payload: TerminationFormValues) => void | Promise<void>;
21
+ onSubmit?: (payload: EmployeeCommunicationFormValues) => void | Promise<void>;
22
22
  };
23
23
  declare function EmployeeCommunicationForm({ onSubmit, }: EmployeeComunicationProps): react_jsx_runtime.JSX.Element;
24
24
 
@@ -70,13 +70,13 @@ declare const useTermination: ({ employmentId, options, initialValues: terminati
70
70
  * Function to update the current form field values
71
71
  * @param values - New form values to set
72
72
  */
73
- checkFieldUpdates: (values: Partial<TerminationFormValues>) => void;
73
+ checkFieldUpdates: React$1.Dispatch<React$1.SetStateAction<TerminationFormValues>>;
74
74
  /**
75
75
  * Function to parse form values before submission
76
76
  * @param values - Form values to parse
77
77
  * @returns Parsed form values
78
78
  */
79
- parseFormValues: (values: TerminationFormValues) => Record<string, any>;
79
+ parseFormValues: (values: TerminationFormValues, includeAllFields?: boolean) => EmployeeCommunicationFormValues | TerminationDetailsFormValues | PaidTimeOffFormValues | TerminationFormValues;
80
80
  /**
81
81
  * Function to handle form submission
82
82
  * @param values - Form values to submit
@@ -105,34 +105,41 @@ declare const useTermination: ({ employmentId, options, initialValues: terminati
105
105
  };
106
106
 
107
107
  type PaidTimeOffFormProps = {
108
- onSubmit?: (payload: TerminationFormValues) => void | Promise<void>;
108
+ onSubmit?: (payload: PaidTimeOffFormValues) => void | Promise<void>;
109
109
  };
110
110
  declare function PaidTimeOffForm({ onSubmit }: PaidTimeOffFormProps): react_jsx_runtime.JSX.Element;
111
111
 
112
112
  type TerminationDetailsFormProps = {
113
- onSubmit?: (payload: TerminationFormValues) => void | Promise<void>;
113
+ onSubmit?: (payload: TerminationDetailsFormValues) => void | Promise<void>;
114
114
  };
115
115
  declare function TerminationDetailsForm({ onSubmit, }: TerminationDetailsFormProps): react_jsx_runtime.JSX.Element;
116
116
 
117
- type TerminationFormValues = {
118
- acknowledge_termination_procedure: boolean;
119
- additional_comments: string;
120
- agrees_to_pto_amount: string;
121
- agrees_to_pto_amount_notes: string | null;
117
+ type EmployeeCommunicationFormValues = {
122
118
  confidential: string;
123
119
  customer_informed_employee: string;
124
120
  customer_informed_employee_date: string | null;
125
121
  customer_informed_employee_description: string | null;
126
122
  personal_email: string;
123
+ };
124
+ type TerminationDetailsFormValues = {
127
125
  proposed_termination_date: string;
128
126
  reason_description: string;
129
127
  risk_assessment_reasons: TerminationDetailsParams['risk_assessment_reasons'];
130
128
  termination_reason: TerminationDetailsParams['termination_reason'] | undefined;
131
129
  termination_reason_files: TerminationDetailsParams['termination_reason_files'];
132
- timesheet_file: TerminationDetailsParams['timesheet_file'];
130
+ additional_comments: string | null;
133
131
  will_challenge_termination: string;
134
132
  will_challenge_termination_description: string | null;
135
133
  };
134
+ type PaidTimeOffFormValues = {
135
+ agrees_to_pto_amount: string;
136
+ agrees_to_pto_amount_notes: string | null;
137
+ timesheet_file: TerminationDetailsParams['timesheet_file'];
138
+ };
139
+ type AdditionalDetailsFormValues = {
140
+ acknowledge_termination_procedure: boolean;
141
+ };
142
+ type TerminationFormValues = EmployeeCommunicationFormValues & TerminationDetailsFormValues & PaidTimeOffFormValues & AdditionalDetailsFormValues;
136
143
  type TerminationRenderProps = {
137
144
  /**
138
145
  * The termination bag returned by the useTermination hook.
@@ -168,4 +175,4 @@ type TerminationFlowProps = {
168
175
  initialValues?: Record<string, unknown>;
169
176
  };
170
177
 
171
- export { AdditionalDetailsForm as A, EmployeeCommunicationForm as E, PaidTimeOffForm as P, type TerminationFormValues as T, type TerminationFlowProps as a, type TerminationRenderProps as b, TerminationDetailsForm as c, useTermination as u };
178
+ export { type AdditionalDetailsFormValues as A, type EmployeeCommunicationFormValues as E, type PaidTimeOffFormValues as P, type TerminationFormValues as T, type TerminationFlowProps as a, type TerminationRenderProps as b, type TerminationDetailsFormValues as c, AdditionalDetailsForm as d, EmployeeCommunicationForm as e, PaidTimeOffForm as f, TerminationDetailsForm as g, useTermination as u };
@@ -1,18 +1,18 @@
1
- import { E as Employment, F as File, g as CreateContractDocumentResponse, f as SignContractDocument, S as SuccessResponse } from './types.gen-B73oMrmZ.js';
1
+ import { E as Employment, F as File, g as CreateContractDocumentResponse, f as SignContractDocument, S as SuccessResponse } from './types.gen-B1wPsyg7.js';
2
2
  import { OnboardingBack } from './flows/ContractorOnboarding/components/OnboardingBack.js';
3
3
  import { OnboardingSubmit } from './flows/ContractorOnboarding/components/OnboardingSubmit.js';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
- import { N as NormalizedFieldError } from './mutations-C0KsEf83.js';
5
+ import { N as NormalizedFieldError } from './mutations-B3zY0Z8j.js';
6
6
  import * as _tanstack_query_core from '@tanstack/query-core';
7
7
  import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
8
8
  import { Fields } from '@remoteoss/json-schema-form';
9
9
  import * as React$1 from 'react';
10
10
  import { STEPS } from './flows/ContractorOnboarding/utils.js';
11
11
  import { Step } from './flows/useStepState.js';
12
- import { M as Meta, J as JSFFieldset, $ as $TSFixMe } from './remoteFlows-DJcvCgN2.js';
12
+ import { M as Meta, J as JSFFieldset, $ as $TSFixMe } from './remoteFlows-C6LQCoUj.js';
13
13
  import { FieldValues } from 'react-hook-form';
14
14
  import { BasicInformationStep } from './flows/ContractorOnboarding/components/BasicInformationStep.js';
15
- import { g as SelectCountryStep } from './types-1tGveWWg.js';
15
+ import { g as SelectCountryStep } from './types-C_aEj_4p.js';
16
16
  import { FlowOptions, JSFModify } from './flows/types.js';
17
17
  import { OnboardingInvite } from './flows/Onboarding/components/OnboardingInvite.js';
18
18
 
@@ -1576,4 +1576,4 @@ type PostSignContractDocumentErrors = {
1576
1576
  };
1577
1577
  type PostSignContractDocumentError = PostSignContractDocumentErrors[keyof PostSignContractDocumentErrors];
1578
1578
 
1579
- export type { PatchUpdateEmployment2Error as A, EmploymentFullParams as B, CreateOffboardingParams as C, PutUpdateBenefitOfferError as D, Employment as E, File as F, MagicLinkResponse as G, UnprocessableEntityResponse as H, MagicLinkParams as I, ConvertCurrencyResponse as J, PostConvertRawCurrencyConverterError as K, ConvertCurrencyParams as L, MinimalRegion as M, PostCreateContractEligibilityError as N, OffboardingResponse as O, PostCreateOffboardingError as P, CreateContractEligibilityParams as Q, Currency as R, SuccessResponse as S, ListTimeoffResponse as T, UnifiedEmploymentUpsertBenefitOffersRequest as U, ValidationError as V, TimeoffStatus as W, TimeoffType as X, ListLeavePoliciesSummaryResponse as Y, HelpCenterArticle as Z, TerminationDetailsParams as _, ContractAmendmentAutomatableResponse as a, PostAutomatableContractAmendmentError as b, ContractAmendmentResponse as c, PostCreateContractAmendmentError as d, PostSignContractDocumentError as e, SignContractDocument as f, CreateContractDocumentResponse as g, PostCreateContractDocumentError as h, CreateContractDocument as i, CostCalculatorEstimateResponse as j, PostCreateEstimationError as k, CostCalculatorEstimatePdfResponse as l, PostCreateEstimationPdfError as m, CostCalculatorEstimateParams as n, CostCalculatorEstimateCsvResponse as o, PostCreateEstimationCsvError as p, MinimalCountry as q, EmploymentTermType as r, CostCalculatorEmployment as s, EmploymentCreationResponse as t, Company as u, PostInviteEmploymentInvitationError as v, PostCreateRiskReserveError as w, PostCreateEmployment2Error as x, EmploymentCreateParams as y, EmploymentResponse as z };
1579
+ export type { CostCalculatorEstimateResponse as A, PostCreateEstimationError as B, CreateOffboardingParams as C, CostCalculatorEstimatePdfResponse as D, Employment as E, File as F, PostCreateEstimationPdfError as G, CostCalculatorEstimateParams as H, CostCalculatorEstimateCsvResponse as I, PostCreateEstimationCsvError as J, MinimalRegion as K, MinimalCountry as L, MagicLinkResponse as M, EmploymentTermType as N, OffboardingResponse as O, PostCreateOffboardingError as P, CostCalculatorEmployment as Q, Currency as R, SuccessResponse as S, ListTimeoffResponse as T, UnifiedEmploymentUpsertBenefitOffersRequest as U, ValidationError as V, TimeoffStatus as W, TimeoffType as X, ListLeavePoliciesSummaryResponse as Y, HelpCenterArticle as Z, TerminationDetailsParams as _, ContractAmendmentAutomatableResponse as a, PostAutomatableContractAmendmentError as b, ContractAmendmentResponse as c, PostCreateContractAmendmentError as d, PostSignContractDocumentError as e, SignContractDocument as f, CreateContractDocumentResponse as g, PostCreateContractDocumentError as h, CreateContractDocument as i, Company as j, PostInviteEmploymentInvitationError as k, PostCreateRiskReserveError as l, EmploymentCreationResponse as m, PostCreateEmployment2Error as n, EmploymentCreateParams as o, EmploymentResponse as p, PatchUpdateEmployment2Error as q, EmploymentFullParams as r, PutUpdateBenefitOfferError as s, UnprocessableEntityResponse as t, MagicLinkParams as u, ConvertCurrencyResponse as v, PostConvertRawCurrencyConverterError as w, ConvertCurrencyParams as x, PostCreateContractEligibilityError as y, CreateContractEligibilityParams as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remoteoss/remote-flows",
3
- "version": "0.27.0",
3
+ "version": "0.29.0",
4
4
  "scripts": {
5
5
  "build": "NODE_ENV=production tsup",
6
6
  "ci": "npm run build && npm run check-format && npm run check-exports && npm run lint && npm run type-check && npm run test",
@@ -1,2 +0,0 @@
1
- var e={data:{version:7,schema:{additionalProperties:!1,allOf:[{if:{properties:{agrees_to_pto_amount:{const:"no"}},required:["agrees_to_pto_amount"]},then:{properties:{agrees_to_pto_amount_notes:{type:"string"}},required:["agrees_to_pto_amount_notes"]},else:{properties:{agrees_to_pto_amount_notes:!1,timesheet_file:!1}}}],properties:{timeoff_statement:{type:"null",title:"Timeoff statement","x-jsf-presentation":{inputType:"hidden",statement:{title:"Make sure these paid time off records are correct",description:"You must pay the employee for any unused accrued paid time off, so please check these records carefully.",inputType:"statement",severity:"warning"},meta:{ignoreValue:!0}}},paid_time_off_info:{type:"null",title:"Paid time off info","x-jsf-presentation":{inputType:"hidden"},meta:{ignoreValue:!0}},agrees_to_pto_amount:{description:"",oneOf:[{const:"yes",description:"",title:"Yes"},{const:"no",description:"",title:"No"}],title:"Are these paid time off records correct?",type:"string","x-jsf-presentation":{direction:"column",inputType:"radio"}},agrees_to_pto_amount_notes:{description:"Please provide details regarding any additional days taken, including specific dates, or any other inaccuracy in the time off data.",maxLength:1e3,title:"Provide time off details",type:["string","null"],"x-jsf-presentation":{inputType:"textarea"}},timesheet_file:{description:"Upload a timesheet exported from your HR software. This way we can compare and confirm the total number of Paid time off.",title:"Timesheet document",type:["string","null"],"x-jsf-presentation":{inputType:"file",accept:".pdf"}}},required:["agrees_to_pto_amount"],type:"object","x-jsf-order":["timeoff_statement","paid_time_off_info","agrees_to_pto_amount","agrees_to_pto_amount_notes","timesheet_file"]}}};export{e as a};
2
- //# sourceMappingURL=chunk-4T6PRR6R.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/flows/Termination/json-schemas/paidTimeOff.ts"],"sourcesContent":["export const paidTimeOffSchema = {\n data: {\n version: 7,\n schema: {\n additionalProperties: false,\n allOf: [\n {\n if: {\n properties: {\n agrees_to_pto_amount: {\n const: 'no',\n },\n },\n required: ['agrees_to_pto_amount'],\n },\n then: {\n properties: {\n agrees_to_pto_amount_notes: {\n type: 'string',\n },\n },\n required: ['agrees_to_pto_amount_notes'],\n },\n else: {\n properties: {\n agrees_to_pto_amount_notes: false,\n timesheet_file: false,\n },\n },\n },\n ],\n properties: {\n timeoff_statement: {\n type: 'null',\n title: 'Timeoff statement',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n statement: {\n title: 'Make sure these paid time off records are correct',\n description:\n 'You must pay the employee for any unused accrued paid time off, so please check these records carefully.',\n inputType: 'statement',\n severity: 'warning',\n },\n meta: {\n ignoreValue: true,\n },\n },\n },\n paid_time_off_info: {\n type: 'null',\n title: 'Paid time off info',\n 'x-jsf-presentation': {\n inputType: 'hidden',\n },\n meta: {\n ignoreValue: true,\n },\n },\n agrees_to_pto_amount: {\n description: '',\n oneOf: [\n {\n const: 'yes',\n description: '',\n title: 'Yes',\n },\n {\n const: 'no',\n description: '',\n title: 'No',\n },\n ],\n title: 'Are these paid time off records correct?',\n type: 'string',\n 'x-jsf-presentation': {\n direction: 'column',\n inputType: 'radio',\n },\n },\n agrees_to_pto_amount_notes: {\n description:\n 'Please provide details regarding any additional days taken, including specific dates, or any other inaccuracy in the time off data.',\n maxLength: 1000,\n title: 'Provide time off details',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'textarea',\n },\n },\n timesheet_file: {\n description:\n 'Upload a timesheet exported from your HR software. This way we can compare and confirm the total number of Paid time off.',\n title: 'Timesheet document',\n type: ['string', 'null'],\n 'x-jsf-presentation': {\n inputType: 'file',\n accept: '.pdf',\n },\n },\n },\n required: ['agrees_to_pto_amount'],\n type: 'object',\n 'x-jsf-order': [\n 'timeoff_statement',\n 'paid_time_off_info',\n 'agrees_to_pto_amount',\n 'agrees_to_pto_amount_notes',\n 'timesheet_file',\n ],\n },\n },\n};\n"],"mappings":"AAAO,IAAMA,EAAoB,CAC/B,KAAM,CACJ,QAAS,EACT,OAAQ,CACN,qBAAsB,GACtB,MAAO,CACL,CACE,GAAI,CACF,WAAY,CACV,qBAAsB,CACpB,MAAO,IACT,CACF,EACA,SAAU,CAAC,sBAAsB,CACnC,EACA,KAAM,CACJ,WAAY,CACV,2BAA4B,CAC1B,KAAM,QACR,CACF,EACA,SAAU,CAAC,4BAA4B,CACzC,EACA,KAAM,CACJ,WAAY,CACV,2BAA4B,GAC5B,eAAgB,EAClB,CACF,CACF,CACF,EACA,WAAY,CACV,kBAAmB,CACjB,KAAM,OACN,MAAO,oBACP,qBAAsB,CACpB,UAAW,SACX,UAAW,CACT,MAAO,oDACP,YACE,2GACF,UAAW,YACX,SAAU,SACZ,EACA,KAAM,CACJ,YAAa,EACf,CACF,CACF,EACA,mBAAoB,CAClB,KAAM,OACN,MAAO,qBACP,qBAAsB,CACpB,UAAW,QACb,EACA,KAAM,CACJ,YAAa,EACf,CACF,EACA,qBAAsB,CACpB,YAAa,GACb,MAAO,CACL,CACE,MAAO,MACP,YAAa,GACb,MAAO,KACT,EACA,CACE,MAAO,KACP,YAAa,GACb,MAAO,IACT,CACF,EACA,MAAO,2CACP,KAAM,SACN,qBAAsB,CACpB,UAAW,SACX,UAAW,OACb,CACF,EACA,2BAA4B,CAC1B,YACE,sIACF,UAAW,IACX,MAAO,2BACP,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,UACb,CACF,EACA,eAAgB,CACd,YACE,4HACF,MAAO,qBACP,KAAM,CAAC,SAAU,MAAM,EACvB,qBAAsB,CACpB,UAAW,OACX,OAAQ,MACV,CACF,CACF,EACA,SAAU,CAAC,sBAAsB,EACjC,KAAM,SACN,cAAe,CACb,oBACA,qBACA,uBACA,6BACA,gBACF,CACF,CACF,CACF","names":["paidTimeOffSchema"]}