@remoteoss/remote-flows 0.28.0 → 0.30.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.
- package/dist/{ZendeskTriggerButton-DIV8pCPo.d.ts → ZendeskTriggerButton-Dditzyfj.d.ts} +15 -0
- package/dist/chunk-2CDCTUVY.js +2 -0
- package/dist/{chunk-3O3Q24JL.js.map → chunk-2CDCTUVY.js.map} +1 -1
- package/dist/{chunk-UPXJJBXZ.js → chunk-2N5A6EGD.js} +2 -2
- package/dist/chunk-3UDG4IJO.js +2 -0
- package/dist/chunk-3UDG4IJO.js.map +1 -0
- package/dist/{chunk-WLBRCGTG.js → chunk-4CIYPTKM.js} +2 -2
- package/dist/{chunk-DZ7FZ4L2.js → chunk-56LJAMZC.js} +2 -2
- package/dist/{chunk-EKKRQI6B.js → chunk-5NARH23N.js} +2 -2
- package/dist/{chunk-RINDVT6U.js → chunk-5ORIDYIK.js} +2 -2
- package/dist/{chunk-AWDGLK2T.js → chunk-664GOQG3.js} +2 -2
- package/dist/{chunk-R645TMO5.js → chunk-67V3DFV4.js} +2 -2
- package/dist/chunk-6GQZCUUR.js +2 -0
- package/dist/chunk-6GQZCUUR.js.map +1 -0
- package/dist/{chunk-OU4Y73FX.js → chunk-6GUXV7XA.js} +2 -2
- package/dist/{chunk-HMNHKZGD.js → chunk-7JUP5JEY.js} +2 -2
- package/dist/{chunk-ZWZJ4XOY.js → chunk-7OL54VKA.js} +2 -2
- package/dist/chunk-7RFJWDXS.js +2 -0
- package/dist/chunk-7RFJWDXS.js.map +1 -0
- package/dist/{chunk-TM7Q7RHH.js → chunk-7TX2YY4K.js} +2 -2
- package/dist/chunk-A6GJNXUZ.js +2 -0
- package/dist/chunk-A6GJNXUZ.js.map +1 -0
- package/dist/chunk-AP56UUME.js +2 -0
- package/dist/chunk-AP56UUME.js.map +1 -0
- package/dist/{chunk-6IL4TB7S.js → chunk-BB3WWKGA.js} +2 -2
- package/dist/{chunk-QPTO4XXU.js → chunk-BKWNJMNJ.js} +2 -2
- package/dist/{chunk-RC3XP5WU.js → chunk-CHDWFMD3.js} +2 -2
- package/dist/{chunk-JO4722R7.js → chunk-D64MAPTD.js} +2 -2
- package/dist/chunk-D7WCSZGW.js +2 -0
- package/dist/chunk-D7WCSZGW.js.map +1 -0
- package/dist/{chunk-MGVP76ZI.js → chunk-DTZ23AE6.js} +2 -2
- package/dist/{chunk-MRPXDND2.js → chunk-DXTLNOCG.js} +2 -2
- package/dist/{chunk-5KHLOGTR.js → chunk-DYXTJBSK.js} +2 -2
- package/dist/chunk-EHS4ERDW.js +2 -0
- package/dist/chunk-EHS4ERDW.js.map +1 -0
- package/dist/chunk-EL5QIDYZ.js +2 -0
- package/dist/chunk-EL5QIDYZ.js.map +1 -0
- package/dist/{chunk-ZQ6MG635.js → chunk-EVSDVI2G.js} +2 -2
- package/dist/{chunk-HFI2MD3H.js → chunk-FDBUFHR3.js} +2 -2
- package/dist/{chunk-OIN3HGOQ.js → chunk-GTWY3JK3.js} +2 -2
- package/dist/{chunk-P5WUODPR.js → chunk-HBRO74FQ.js} +2 -2
- package/dist/chunk-HJYHCWGX.js +2 -0
- package/dist/chunk-HJYHCWGX.js.map +1 -0
- package/dist/chunk-HMUIT2NU.js +2 -0
- package/dist/chunk-HMUIT2NU.js.map +1 -0
- package/dist/{chunk-FFMKAMWP.js → chunk-HTJZUAVS.js} +2 -2
- package/dist/chunk-HX34JCPL.js +2 -0
- package/dist/chunk-HX34JCPL.js.map +1 -0
- package/dist/{chunk-ANGJCT4I.js → chunk-HYOJP6J5.js} +2 -2
- package/dist/{chunk-AUZWLETL.js → chunk-JK5K2S7N.js} +2 -2
- package/dist/{chunk-5ZR7EFPY.js → chunk-K2L2NSOM.js} +2 -2
- package/dist/{chunk-Z42H2QEW.js → chunk-KFJJXMAH.js} +2 -2
- package/dist/{chunk-GWLOE7WJ.js → chunk-KVAGMBSU.js} +2 -2
- package/dist/chunk-LJYCBMDS.js +2 -0
- package/dist/chunk-LJYCBMDS.js.map +1 -0
- package/dist/{chunk-6VRUYYUV.js → chunk-LLM6MDNY.js} +2 -2
- package/dist/chunk-NX7MM6XR.js +2 -0
- package/dist/chunk-NX7MM6XR.js.map +1 -0
- package/dist/{chunk-DPY77ASH.js → chunk-OHAAAVNB.js} +2 -2
- package/dist/{chunk-E6OBNWMU.js → chunk-OIIALEVF.js} +2 -2
- package/dist/chunk-OKM7DRCF.js +2 -0
- package/dist/{chunk-UTBVLDKY.js → chunk-PEHALKVU.js} +2 -2
- package/dist/{chunk-AODV6HT2.js → chunk-PEOWIEYM.js} +2 -2
- package/dist/{chunk-W55MUSAS.js → chunk-PFKNQGOD.js} +2 -2
- package/dist/{chunk-PYKEYPGA.js → chunk-QAOGIYQL.js} +2 -2
- package/dist/chunk-QGWCUGLN.js +2 -0
- package/dist/chunk-QGWCUGLN.js.map +1 -0
- package/dist/{chunk-BOTWQMOJ.js → chunk-QIVDIOJG.js} +2 -2
- package/dist/chunk-QRD43QJA.js +2 -0
- package/dist/chunk-QRD43QJA.js.map +1 -0
- package/dist/{chunk-CYPGWEOO.js → chunk-RCWBOOZF.js} +2 -2
- package/dist/{chunk-IQKZWU7I.js → chunk-RGGU6BNB.js} +2 -2
- package/dist/{chunk-N6G4VZXF.js → chunk-RR55GUDT.js} +2 -2
- package/dist/{chunk-N6G4VZXF.js.map → chunk-RR55GUDT.js.map} +1 -1
- package/dist/{chunk-BV3PGYSH.js → chunk-RYXRWMF4.js} +2 -2
- package/dist/{chunk-QTYDDIVO.js → chunk-SOYN4LOZ.js} +2 -2
- package/dist/{chunk-UFBTCHEI.js → chunk-TW7Z6G37.js} +2 -2
- package/dist/{chunk-6KIQIVKA.js → chunk-U24UNO6X.js} +2 -2
- package/dist/{chunk-ANQ4HVVK.js → chunk-UOOM7V2D.js} +2 -2
- package/dist/{chunk-ANQ4HVVK.js.map → chunk-UOOM7V2D.js.map} +1 -1
- package/dist/{chunk-VM2DQCZO.js → chunk-WMICWLC3.js} +2 -2
- package/dist/{chunk-5NPET4ZO.js → chunk-WNGPZXEX.js} +2 -2
- package/dist/chunk-XFJPUKYR.js +2 -0
- package/dist/chunk-XFJPUKYR.js.map +1 -0
- package/dist/{chunk-5MYWJJBQ.js → chunk-XLAKJHGV.js} +2 -2
- package/dist/{chunk-RAHCZTQ3.js → chunk-YBB6BOW7.js} +2 -2
- package/dist/{chunk-CVIWZYO3.js → chunk-YP2JBYAK.js} +2 -2
- package/dist/{chunk-WCIJHQMP.js → chunk-YP7Q47E2.js} +2 -2
- package/dist/{chunk-OW5QGJD4.js → chunk-Z47JQN3R.js} +2 -2
- package/dist/chunk-ZF4BLPXL.js +2 -0
- package/dist/chunk-ZF4BLPXL.js.map +1 -0
- package/dist/{chunk-QDYWPG2R.js → chunk-ZF6MZYBK.js} +2 -2
- package/dist/chunk-ZOTFS35J.js +2 -0
- package/dist/{chunk-U6RM2N4A.js.map → chunk-ZOTFS35J.js.map} +1 -1
- package/dist/{chunk-R3DJNVHR.js → chunk-ZXGAFQXW.js} +2 -2
- package/dist/{chunk-R3DJNVHR.js.map → chunk-ZXGAFQXW.js.map} +1 -1
- package/dist/{chunk-BMDZJNJV.js → chunk-ZZWX3C6V.js} +2 -2
- package/dist/flows/ContractAmendment/ContractAmendmentBack.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentConfirmationForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.d.ts +3 -3
- package/dist/flows/ContractAmendment/ContractAmendmentFlow.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.d.ts +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentForm.js +1 -1
- package/dist/flows/ContractAmendment/ContractAmendmentSubmit.js +1 -1
- package/dist/flows/ContractAmendment/context.d.ts +3 -3
- package/dist/flows/ContractAmendment/hooks.d.ts +3 -3
- package/dist/flows/ContractAmendment/hooks.js +1 -1
- package/dist/flows/ContractAmendment/index.d.ts +3 -3
- package/dist/flows/ContractAmendment/index.js +1 -1
- package/dist/flows/ContractAmendment/utils.d.ts +1 -1
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/ContractorOnboarding.js +1 -1
- package/dist/flows/ContractorOnboarding/api.d.ts +40 -3
- package/dist/flows/ContractorOnboarding/api.js +1 -1
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/ContractPreviewStep.js +1 -1
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/ContractorOnboardingForm.js +1 -1
- package/dist/flows/ContractorOnboarding/components/OnboardingBack.js +1 -1
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.d.ts +3 -3
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/ContractorOnboarding/components/OnboardingSubmit.js +1 -1
- package/dist/flows/ContractorOnboarding/components/PricingPlan.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/components/PricingPlan.js +1 -1
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.d.ts +4 -4
- package/dist/flows/ContractorOnboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/ContractorOnboarding/constants.d.ts +5 -0
- package/dist/flows/ContractorOnboarding/constants.js +2 -0
- package/dist/flows/ContractorOnboarding/constants.js.map +1 -0
- package/dist/flows/ContractorOnboarding/context.d.ts +6 -6
- package/dist/flows/ContractorOnboarding/hooks.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/hooks.js +1 -1
- package/dist/flows/ContractorOnboarding/index.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/index.js +1 -1
- package/dist/flows/ContractorOnboarding/json-schemas/selectContractorSubscriptionStep.d.ts +23 -0
- package/dist/flows/ContractorOnboarding/json-schemas/selectContractorSubscriptionStep.js +2 -0
- package/dist/flows/ContractorOnboarding/json-schemas/selectContractorSubscriptionStep.js.map +1 -0
- package/dist/flows/ContractorOnboarding/types.d.ts +5 -5
- package/dist/flows/ContractorOnboarding/utils.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorFlow.d.ts +3 -3
- package/dist/flows/CostCalculator/CostCalculatorFlow.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorForm.d.ts +3 -3
- package/dist/flows/CostCalculator/CostCalculatorForm.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorResetButton.js +1 -1
- package/dist/flows/CostCalculator/CostCalculatorSubmitButton.js +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.d.ts +1 -1
- package/dist/flows/CostCalculator/EstimationResults/EstimationResults.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorBenefitsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorContributionsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorExtraStatutoryPaymentsBreakdown.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorGrossSalary.js +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorResults.d.ts +1 -1
- package/dist/flows/CostCalculator/Results/CostCalculatorResults.js +1 -1
- package/dist/flows/CostCalculator/SummaryResults/SummaryResults.d.ts +1 -1
- package/dist/flows/CostCalculator/api.d.ts +1 -1
- package/dist/flows/CostCalculator/api.js +1 -1
- package/dist/flows/CostCalculator/components/SalaryField.d.ts +2 -2
- package/dist/flows/CostCalculator/components/SalaryField.js +1 -1
- package/dist/flows/CostCalculator/context.d.ts +3 -3
- package/dist/flows/CostCalculator/hooks.d.ts +3 -3
- package/dist/flows/CostCalculator/hooks.js +1 -1
- package/dist/flows/CostCalculator/index.d.ts +3 -3
- package/dist/flows/CostCalculator/index.js +1 -1
- package/dist/flows/CostCalculator/types.d.ts +1 -1
- package/dist/flows/CostCalculator/utils.d.ts +3 -3
- package/dist/flows/CostCalculator/utils.js +1 -1
- package/dist/flows/Onboarding/OnboardingFlow.d.ts +4 -4
- package/dist/flows/Onboarding/OnboardingFlow.js +1 -1
- package/dist/flows/Onboarding/api.d.ts +6 -16
- package/dist/flows/Onboarding/api.js +1 -1
- package/dist/flows/Onboarding/components/AnnualGrossSalary.d.ts +2 -2
- package/dist/flows/Onboarding/components/AnnualGrossSalary.js +1 -1
- package/dist/flows/Onboarding/components/BasicInformationStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/BasicInformationStep.js +1 -1
- package/dist/flows/Onboarding/components/BenefitsStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/BenefitsStep.js +1 -1
- package/dist/flows/Onboarding/components/ContractDetailsStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/ContractDetailsStep.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingBack.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingForm.d.ts +4 -4
- package/dist/flows/Onboarding/components/OnboardingForm.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingInvite.d.ts +3 -3
- package/dist/flows/Onboarding/components/OnboardingInvite.js +1 -1
- package/dist/flows/Onboarding/components/OnboardingSubmit.js +1 -1
- package/dist/flows/Onboarding/components/ReviewStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
- package/dist/flows/Onboarding/components/SaveDraftButton.js +1 -1
- package/dist/flows/Onboarding/components/SelectCountryStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/SelectCountryStep.js +1 -1
- package/dist/flows/Onboarding/context.d.ts +4 -4
- package/dist/flows/Onboarding/hooks.d.ts +4 -4
- package/dist/flows/Onboarding/hooks.js +1 -1
- package/dist/flows/Onboarding/index.d.ts +4 -4
- package/dist/flows/Onboarding/index.js +1 -1
- package/dist/flows/Onboarding/types.d.ts +4 -4
- package/dist/flows/Onboarding/utils.d.ts +5 -5
- package/dist/flows/Onboarding/utils.js +1 -1
- package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -4
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -4
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -4
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationBack.js +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -4
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +4 -4
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +4 -4
- package/dist/flows/Termination/TerminationForm.js +1 -1
- package/dist/flows/Termination/TerminationSubmit.js +1 -1
- package/dist/flows/Termination/components/AcknowledgeInformation/AcknowledgeInformationFees.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +5 -5
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +5 -5
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +5 -5
- package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
- package/dist/flows/Termination/context.d.ts +9 -6
- package/dist/flows/Termination/hooks.d.ts +5 -5
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.d.ts +6 -6
- package/dist/flows/Termination/index.js +1 -1
- package/dist/flows/Termination/json-schemas/employeeComunication.js +1 -1
- package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
- package/dist/flows/Termination/json-schemas/paidTimeOff.js +1 -1
- package/dist/flows/Termination/json-schemas/schema.js +1 -1
- package/dist/flows/Termination/json-schemas/terminationDetails.js +1 -1
- package/dist/flows/Termination/types.d.ts +4 -4
- package/dist/flows/api.d.ts +4 -4
- package/dist/flows/api.js +1 -1
- package/dist/index.d.ts +16 -10
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internals.d.ts +1 -1
- package/dist/internals.js +1 -1
- package/dist/{mutations-C0KsEf83.d.ts → mutations-BdkQ8BEQ.d.ts} +1 -1
- package/dist/{remoteFlows-DJcvCgN2.d.ts → remoteFlows-nNmmcD-T.d.ts} +3 -1
- package/dist/{types-Dad_rgYV.d.ts → types-5wwUT05a.d.ts} +29 -16
- package/dist/{types-1tGveWWg.d.ts → types-BOXcQDia.d.ts} +6 -5
- package/dist/{types-CwUhT-vz.d.ts → types-CNHUaKN_.d.ts} +18 -3
- package/dist/{types-DegHPy8Q.d.ts → types-omiJJgNz.d.ts} +5 -5
- package/dist/{types.gen-B73oMrmZ.d.ts → types.gen-BS9UfhS-.d.ts} +47 -1
- package/package.json +1 -1
- package/dist/chunk-2FKEF3OG.js +0 -2
- package/dist/chunk-2FKEF3OG.js.map +0 -1
- package/dist/chunk-3O3Q24JL.js +0 -2
- package/dist/chunk-3ZWDIEEM.js +0 -2
- package/dist/chunk-3ZWDIEEM.js.map +0 -1
- package/dist/chunk-53KVZ4BP.js +0 -2
- package/dist/chunk-53KVZ4BP.js.map +0 -1
- package/dist/chunk-6LJRRFK2.js +0 -2
- package/dist/chunk-6LJRRFK2.js.map +0 -1
- package/dist/chunk-7AC3W7WD.js +0 -2
- package/dist/chunk-7AC3W7WD.js.map +0 -1
- package/dist/chunk-BDPCUDJB.js +0 -2
- package/dist/chunk-BDPCUDJB.js.map +0 -1
- package/dist/chunk-DB7ITLRX.js +0 -2
- package/dist/chunk-DB7ITLRX.js.map +0 -1
- package/dist/chunk-FB2QGVI2.js +0 -2
- package/dist/chunk-FB2QGVI2.js.map +0 -1
- package/dist/chunk-KDUM4EZJ.js +0 -2
- package/dist/chunk-KDUM4EZJ.js.map +0 -1
- package/dist/chunk-L3C4AHZJ.js +0 -2
- package/dist/chunk-L3C4AHZJ.js.map +0 -1
- package/dist/chunk-LRGEEPGK.js +0 -2
- package/dist/chunk-LRGEEPGK.js.map +0 -1
- package/dist/chunk-NP4G3N5P.js +0 -2
- package/dist/chunk-SLMJEZJ7.js +0 -2
- package/dist/chunk-SLMJEZJ7.js.map +0 -1
- package/dist/chunk-U6RM2N4A.js +0 -2
- package/dist/chunk-UQOWSJ2B.js +0 -2
- package/dist/chunk-UQOWSJ2B.js.map +0 -1
- package/dist/chunk-XPKVRYIU.js +0 -2
- package/dist/chunk-XPKVRYIU.js.map +0 -1
- package/dist/chunk-ZY5U2UNT.js +0 -2
- package/dist/chunk-ZY5U2UNT.js.map +0 -1
- /package/dist/{chunk-UPXJJBXZ.js.map → chunk-2N5A6EGD.js.map} +0 -0
- /package/dist/{chunk-WLBRCGTG.js.map → chunk-4CIYPTKM.js.map} +0 -0
- /package/dist/{chunk-DZ7FZ4L2.js.map → chunk-56LJAMZC.js.map} +0 -0
- /package/dist/{chunk-EKKRQI6B.js.map → chunk-5NARH23N.js.map} +0 -0
- /package/dist/{chunk-RINDVT6U.js.map → chunk-5ORIDYIK.js.map} +0 -0
- /package/dist/{chunk-AWDGLK2T.js.map → chunk-664GOQG3.js.map} +0 -0
- /package/dist/{chunk-R645TMO5.js.map → chunk-67V3DFV4.js.map} +0 -0
- /package/dist/{chunk-OU4Y73FX.js.map → chunk-6GUXV7XA.js.map} +0 -0
- /package/dist/{chunk-HMNHKZGD.js.map → chunk-7JUP5JEY.js.map} +0 -0
- /package/dist/{chunk-ZWZJ4XOY.js.map → chunk-7OL54VKA.js.map} +0 -0
- /package/dist/{chunk-TM7Q7RHH.js.map → chunk-7TX2YY4K.js.map} +0 -0
- /package/dist/{chunk-6IL4TB7S.js.map → chunk-BB3WWKGA.js.map} +0 -0
- /package/dist/{chunk-QPTO4XXU.js.map → chunk-BKWNJMNJ.js.map} +0 -0
- /package/dist/{chunk-RC3XP5WU.js.map → chunk-CHDWFMD3.js.map} +0 -0
- /package/dist/{chunk-JO4722R7.js.map → chunk-D64MAPTD.js.map} +0 -0
- /package/dist/{chunk-MGVP76ZI.js.map → chunk-DTZ23AE6.js.map} +0 -0
- /package/dist/{chunk-MRPXDND2.js.map → chunk-DXTLNOCG.js.map} +0 -0
- /package/dist/{chunk-5KHLOGTR.js.map → chunk-DYXTJBSK.js.map} +0 -0
- /package/dist/{chunk-ZQ6MG635.js.map → chunk-EVSDVI2G.js.map} +0 -0
- /package/dist/{chunk-HFI2MD3H.js.map → chunk-FDBUFHR3.js.map} +0 -0
- /package/dist/{chunk-OIN3HGOQ.js.map → chunk-GTWY3JK3.js.map} +0 -0
- /package/dist/{chunk-P5WUODPR.js.map → chunk-HBRO74FQ.js.map} +0 -0
- /package/dist/{chunk-FFMKAMWP.js.map → chunk-HTJZUAVS.js.map} +0 -0
- /package/dist/{chunk-ANGJCT4I.js.map → chunk-HYOJP6J5.js.map} +0 -0
- /package/dist/{chunk-AUZWLETL.js.map → chunk-JK5K2S7N.js.map} +0 -0
- /package/dist/{chunk-5ZR7EFPY.js.map → chunk-K2L2NSOM.js.map} +0 -0
- /package/dist/{chunk-Z42H2QEW.js.map → chunk-KFJJXMAH.js.map} +0 -0
- /package/dist/{chunk-GWLOE7WJ.js.map → chunk-KVAGMBSU.js.map} +0 -0
- /package/dist/{chunk-6VRUYYUV.js.map → chunk-LLM6MDNY.js.map} +0 -0
- /package/dist/{chunk-DPY77ASH.js.map → chunk-OHAAAVNB.js.map} +0 -0
- /package/dist/{chunk-E6OBNWMU.js.map → chunk-OIIALEVF.js.map} +0 -0
- /package/dist/{chunk-NP4G3N5P.js.map → chunk-OKM7DRCF.js.map} +0 -0
- /package/dist/{chunk-UTBVLDKY.js.map → chunk-PEHALKVU.js.map} +0 -0
- /package/dist/{chunk-AODV6HT2.js.map → chunk-PEOWIEYM.js.map} +0 -0
- /package/dist/{chunk-W55MUSAS.js.map → chunk-PFKNQGOD.js.map} +0 -0
- /package/dist/{chunk-PYKEYPGA.js.map → chunk-QAOGIYQL.js.map} +0 -0
- /package/dist/{chunk-BOTWQMOJ.js.map → chunk-QIVDIOJG.js.map} +0 -0
- /package/dist/{chunk-CYPGWEOO.js.map → chunk-RCWBOOZF.js.map} +0 -0
- /package/dist/{chunk-IQKZWU7I.js.map → chunk-RGGU6BNB.js.map} +0 -0
- /package/dist/{chunk-BV3PGYSH.js.map → chunk-RYXRWMF4.js.map} +0 -0
- /package/dist/{chunk-QTYDDIVO.js.map → chunk-SOYN4LOZ.js.map} +0 -0
- /package/dist/{chunk-UFBTCHEI.js.map → chunk-TW7Z6G37.js.map} +0 -0
- /package/dist/{chunk-6KIQIVKA.js.map → chunk-U24UNO6X.js.map} +0 -0
- /package/dist/{chunk-VM2DQCZO.js.map → chunk-WMICWLC3.js.map} +0 -0
- /package/dist/{chunk-5NPET4ZO.js.map → chunk-WNGPZXEX.js.map} +0 -0
- /package/dist/{chunk-5MYWJJBQ.js.map → chunk-XLAKJHGV.js.map} +0 -0
- /package/dist/{chunk-RAHCZTQ3.js.map → chunk-YBB6BOW7.js.map} +0 -0
- /package/dist/{chunk-CVIWZYO3.js.map → chunk-YP2JBYAK.js.map} +0 -0
- /package/dist/{chunk-WCIJHQMP.js.map → chunk-YP7Q47E2.js.map} +0 -0
- /package/dist/{chunk-OW5QGJD4.js.map → chunk-Z47JQN3R.js.map} +0 -0
- /package/dist/{chunk-QDYWPG2R.js.map → chunk-ZF6MZYBK.js.map} +0 -0
- /package/dist/{chunk-BMDZJNJV.js.map → chunk-ZZWX3C6V.js.map} +0 -0
package/dist/flows/api.d.ts
CHANGED
|
@@ -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-
|
|
4
|
-
import { T as TerminationFormValues } from '../types-
|
|
3
|
+
import { O as OffboardingResponse, P as PostCreateOffboardingError, C as CreateOffboardingParams } from '../types.gen-BS9UfhS-.js';
|
|
4
|
+
import { T as TerminationFormValues } from '../types-5wwUT05a.js';
|
|
5
5
|
import { JSFModify } from './types.js';
|
|
6
6
|
import 'react/jsx-runtime';
|
|
7
|
-
import '../mutations-
|
|
8
|
-
import '../remoteFlows-
|
|
7
|
+
import '../mutations-BdkQ8BEQ.js';
|
|
8
|
+
import '../remoteFlows-nNmmcD-T.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-
|
|
1
|
+
import{a,b}from"../chunk-56LJAMZC.js";import"../chunk-OKM7DRCF.js";import"../chunk-NX7MM6XR.js";import"../chunk-ZXGAFQXW.js";import"../chunk-VDRNNOVA.js";import"../chunk-LMYJ6V44.js";import"../chunk-XFD3ULUF.js";import"../chunk-RR55GUDT.js";import"../chunk-2CDCTUVY.js";import"../chunk-XFJPUKYR.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-
|
|
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-5wwUT05a.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-
|
|
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-BOXcQDia.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-
|
|
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-
|
|
32
|
-
export { Z as ZendeskTriggerButton, t as transformYupErrorsIntoObject } from './ZendeskTriggerButton-
|
|
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-omiJJgNz.js';
|
|
31
|
+
export { B as BookedTimeoffBeforeDateResponse, c as PaidTimeoffBreakdownResponse, S as SummaryTimeOffDataResponse, e as useBookedTimeoffBeforeAndAfterTerminationQuery, u as useEmploymentQuery, h as useMagicLink, d as usePaidTimeoffBreakdownQuery, f as useSummaryTimeOffDataQuery, g as useTimeOffLeavePoliciesSummaryQuery, b as useTimeOffQuery } from './types-CNHUaKN_.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-
|
|
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-
|
|
37
|
-
export {
|
|
38
|
-
export { F as FieldError, N as NormalizedFieldError } from './mutations-
|
|
35
|
+
import { R as RemoteFlowsSDKProps } from './remoteFlows-nNmmcD-T.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-nNmmcD-T.js';
|
|
37
|
+
export { x as Company, a as ContractAmendmentAutomatableResponse, v as CostCalculatorEmployment, l as CostCalculatorEstimateResponse, $ as Currency, w as EmploymentCreationResponse, D as EmploymentResponse, O as OffboardingResponse, S as SuccessResponse } from './types.gen-BS9UfhS-.js';
|
|
38
|
+
export { F as FieldError, N as NormalizedFieldError } from './mutations-BdkQ8BEQ.js';
|
|
39
39
|
import 'react-hook-form';
|
|
40
40
|
import 'yup';
|
|
41
41
|
import './types-Zg1n_9wh.js';
|
|
@@ -63,6 +63,12 @@ import 'clsx';
|
|
|
63
63
|
|
|
64
64
|
declare function RemoteFlows({ auth, authId, children, components, theme, proxy, environment, }: PropsWithChildren<RemoteFlowsSDKProps>): react_jsx_runtime.JSX.Element;
|
|
65
65
|
|
|
66
|
+
/**
|
|
67
|
+
* useUserId returns the userId passed in the auth function
|
|
68
|
+
* @returns The userId passed in the auth function
|
|
69
|
+
*/
|
|
70
|
+
declare const useUserId: () => string | undefined;
|
|
71
|
+
|
|
66
72
|
declare function convertFromCents(amount?: number | string | null): number | null;
|
|
67
73
|
|
|
68
74
|
declare const zendeskArticles: {
|
|
@@ -122,4 +128,4 @@ declare const zendeskArticles: {
|
|
|
122
128
|
reconciliationInvoice: number;
|
|
123
129
|
};
|
|
124
130
|
|
|
125
|
-
export { RemoteFlows, RemoteFlowsSDKProps, convertFromCents, zendeskArticles };
|
|
131
|
+
export { RemoteFlows, RemoteFlowsSDKProps, convertFromCents, useUserId, zendeskArticles };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./chunk-FZ7FWFJX.js";import{a as
|
|
1
|
+
import"./chunk-FZ7FWFJX.js";import{a as kt}from"./chunk-4CIYPTKM.js";import{a as yt}from"./chunk-QIQTM4HB.js";import{a as xt}from"./chunk-KFJJXMAH.js";import"./chunk-LLM6MDNY.js";import"./chunk-6GQZCUUR.js";import"./chunk-HBRO74FQ.js";import"./chunk-HJYHCWGX.js";import"./chunk-HMUIT2NU.js";import"./chunk-BB3WWKGA.js";import"./chunk-QIVDIOJG.js";import"./chunk-IWA5B4U6.js";import"./chunk-7VOQAVM4.js";import"./chunk-WMICWLC3.js";import"./chunk-EHAZWZ3O.js";import"./chunk-S4XU4SE7.js";import"./chunk-GULCZWSK.js";import"./chunk-D7WCSZGW.js";import"./chunk-ZF4BLPXL.js";import"./chunk-EL5QIDYZ.js";import"./chunk-DXTLNOCG.js";import"./chunk-MRYRNB7Y.js";import"./chunk-Z3BMF4BO.js";import{a as U}from"./chunk-YBB6BOW7.js";import"./chunk-WNGPZXEX.js";import"./chunk-67V3DFV4.js";import"./chunk-BCXRPHWY.js";import"./chunk-MQWVZSGH.js";import{a as q}from"./chunk-H425RKFI.js";import{a as N}from"./chunk-PFKNQGOD.js";import"./chunk-DTHBG6BD.js";import"./chunk-YP2JBYAK.js";import"./chunk-OIIALEVF.js";import"./chunk-ZSCKSEAA.js";import"./chunk-ZE3YT3Q6.js";import{a as Ct}from"./chunk-HTJZUAVS.js";import"./chunk-GTWY3JK3.js";import"./chunk-Z7WBY27D.js";import"./chunk-DYXTJBSK.js";import"./chunk-ZF6MZYBK.js";import"./chunk-PEOWIEYM.js";import"./chunk-KVAGMBSU.js";import"./chunk-YP7Q47E2.js";import"./chunk-EVSDVI2G.js";import"./chunk-XLAKJHGV.js";import"./chunk-5ORIDYIK.js";import"./chunk-PGWKJ6FK.js";import"./chunk-LJYCBMDS.js";import"./chunk-PEHALKVU.js";import"./chunk-VAIBLWOY.js";import{a as O}from"./chunk-Q4BKFSTW.js";import{a as D}from"./chunk-DYB3RWP7.js";import{a as E}from"./chunk-BKWNJMNJ.js";import{b as z,d as _}from"./chunk-7OL54VKA.js";import"./chunk-TW7Z6G37.js";import"./chunk-VFRHMNLJ.js";import"./chunk-FDBUFHR3.js";import{a as S}from"./chunk-QAOGIYQL.js";import{a as j}from"./chunk-HYOJP6J5.js";import{a as I}from"./chunk-2N5A6EGD.js";import{d as F,e as T}from"./chunk-CHDWFMD3.js";import"./chunk-HN5HLFTB.js";import"./chunk-KSHK3ZPX.js";import"./chunk-DKFUZO5P.js";import{a as Lt}from"./chunk-7JUP5JEY.js";import"./chunk-OHAAAVNB.js";import"./chunk-SOYN4LOZ.js";import"./chunk-6GUXV7XA.js";import"./chunk-JK5K2S7N.js";import"./chunk-RGGU6BNB.js";import"./chunk-664GOQG3.js";import"./chunk-7TX2YY4K.js";import"./chunk-K2L2NSOM.js";import"./chunk-ZZWX3C6V.js";import"./chunk-TOA3JILU.js";import"./chunk-QRD43QJA.js";import"./chunk-EHS4ERDW.js";import"./chunk-7RFJWDXS.js";import"./chunk-WVJDCDGZ.js";import"./chunk-HX34JCPL.js";import"./chunk-AP56UUME.js";import"./chunk-R2MHAPWD.js";import"./chunk-3UDG4IJO.js";import"./chunk-ZOTFS35J.js";import"./chunk-A7ZJQCNU.js";import{a as bt}from"./chunk-DTZ23AE6.js";import{a as lt}from"./chunk-U24UNO6X.js";import"./chunk-CFIJKJXD.js";import"./chunk-D64MAPTD.js";import"./chunk-QGWCUGLN.js";import"./chunk-RYXRWMF4.js";import{a as dt}from"./chunk-Z47JQN3R.js";import{a as wt}from"./chunk-RCWBOOZF.js";import{a as pt,b as gt,c as vt,d as ut,e as ht,f as mt,g as ft}from"./chunk-A6GJNXUZ.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 R,b as W}from"./chunk-UOOM7V2D.js";import"./chunk-PD24XKD6.js";import"./chunk-TWIUL2P3.js";import"./chunk-ZX5OIIJX.js";import"./chunk-56LJAMZC.js";import"./chunk-OKM7DRCF.js";import"./chunk-NX7MM6XR.js";import"./chunk-ZXGAFQXW.js";import"./chunk-VDRNNOVA.js";import"./chunk-LMYJ6V44.js";import"./chunk-XFD3ULUF.js";import"./chunk-RR55GUDT.js";import{a as h}from"./chunk-2CDCTUVY.js";import"./chunk-PJBAQZ6G.js";import"./chunk-Z5WMKCRJ.js";import"./chunk-5NARH23N.js";import"./chunk-WVDTHFGS.js";import{a as m,c as f,e as B}from"./chunk-XFJPUKYR.js";import{a as st}from"./chunk-LWGVLLBH.js";import"./chunk-CNDSIADP.js";import{b as A}from"./chunk-PAQW5BFW.js";import"./chunk-MQ6F5LE4.js";import"./chunk-TVZAFTPT.js";import{c as P,d as w}from"./chunk-43WMZDDH.js";import{a as r}from"./chunk-P37U34EQ.js";import{QueryClient as rt,QueryClientProvider as et}from"@tanstack/react-query";function p(t){let a=document.documentElement;Object.keys(t).forEach(e=>{let o=t[e];o&&a.style.setProperty(e,o)})}r(p,"setCssProperties");function K(t){let a={};return Object.keys(t).forEach(e=>{a[`--${e}`]=t[e]}),a}r(K,"mapThemeColors");function V(t){return{"--spacing":t}}r(V,"mapThemeSpacing");function M(t){return{"--radius":t}}r(M,"mapThemeBorderRadius");function Y(t){return{"--fontSizeBase":t.fontSizeBase}}r(Y,"mapThemeFont");function b(t){t?.colors&&p(K(t.colors)),t?.spacing&&p(V(t.spacing)),t?.borderRadius&&p(M(t.borderRadius)),t?.font&&p(Y(t.font))}r(b,"applyTheme");import{createContext as H,useEffect as Q,useMemo as X}from"react";import{jsx as G}from"react/jsx-runtime";var Z=H({theme:{}});function x(t){Q(()=>{t.theme&&Object.keys(t.theme).length>0&&b(t.theme)},[t.theme]);let a=X(()=>({theme:t.theme}),[t.theme]);return G(Z.Provider,{value:a,children:t.children})}r(x,"ThemeProvider");var y={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 $}from"@hey-api/client-fetch";import{useQuery as J}from"@tanstack/react-query";import{useRef as k,useState as tt}from"react";function at(t){try{return new URL(t),!0}catch{return!1}}r(at,"isValidUrl");var C=r(({auth:t,options:a,authId:e="default"})=>{let[o,s]=tt(),n=k(null),{refetch:l}=J({queryKey:["auth",e],queryFn:r(async()=>{let d=await t();return s(d.userId),d},"queryFn"),enabled:!1}),L=a?.environment?y[a?.environment]:"https://gateway.remote.com",v=h.getConfig(),u="0.30.0";a?.environment&&a?.environment!=="production"&&w(u);let g=!!a?.proxy&&at(a.proxy.url);return a?.proxy&&!g&&console.error("Invalid proxy URL provided. Using default base URL."),{client:k($({...v,headers:{...v.headers,...g?a?.proxy?.headers:{},"X-Client-Name":"remote-flows-sdk","X-Client-Version":u},baseUrl:g?a.proxy?.url:L,auth:r(async()=>{function d(i){return!i||Date.now()+6e4>i}if(r(d,"hasTokenExpired"),!n.current||d(n.current.expiresAt)){let{data:i}=await l();i&&(n.current={accessToken:i.accessToken,expiresAt:Date.now()+i.expiresIn*1e3,userId:i.userId})}return n.current?.accessToken},"auth")})),userId:o}},"useAuth");import{jsx as c}from"react/jsx-runtime";var ot=new rt;function nt({children:t,auth:a,authId:e,proxy:o,environment:s}){let{client:n,userId:l}=C({auth:a,authId:e,options:{proxy:o,environment:s}});return c(f.Provider,{value:{client:n.current,userId:l},children:t})}r(nt,"RemoteFlowContextWrapper");function it({children:t,components:a}){return c(m.Provider,{value:a?{components:a}:{components:{}},children:t})}r(it,"FormFieldsProvider");function ct({auth:t,authId:a,children:e,components:o,theme:s,proxy:n,environment:l}){return c(et,{client:ot,children:c(it,{components:o,children:c(nt,{auth:t,authId:a,proxy:n,environment:l,children:c(x,{theme:s,children:e})})})})}r(ct,"RemoteFlows");export{st as ContractAmendmentConfirmationForm,bt as ContractAmendmentFlow,lt as ContractAmendmentForm,dt as ContractAmendmentSubmit,Lt as ContractorOnboardingFlow,O as CostCalculatorDisclaimer,E as CostCalculatorFlow,S as CostCalculatorForm,j as CostCalculatorResetButton,U as CostCalculatorResults,I as CostCalculatorSubmitButton,N as EstimationResults,Ct as OnboardingFlow,ct as RemoteFlows,q as SummaryResults,kt as TerminationDialogInfoContent,xt as TerminationFlow,yt as TerminationReasonsDetailContent,W as ZendeskTriggerButton,z as buildCostCalculatorEstimationPayload,A as convertFromCents,D as disclaimerData,P as transformYupErrorsIntoObject,ut as useBookedTimeoffBeforeAndAfterTerminationQuery,wt as useContractAmendment,_ as useCostCalculator,T as useCostCalculatorEstimationCsv,F as useCostCalculatorEstimationPdf,pt as useEmploymentQuery,ft as useMagicLink,vt as usePaidTimeoffBreakdownQuery,ht as useSummaryTimeOffDataQuery,mt as useTimeOffLeavePoliciesSummaryQuery,gt as useTimeOffQuery,B as useUserId,R 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 { client, userId } = useAuth({\n auth,\n authId,\n options: {\n proxy,\n environment,\n },\n });\n return (\n <RemoteFlowContext.Provider value={{ client: client.current, userId }}>\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, useState } from 'react';\nimport { RemoteFlowsSDKProps } from './types/remoteFlows';\nimport { debug } from './lib/utils';\n\ntype AuthResponse = {\n accessToken: string;\n expiresIn: number;\n userId?: string;\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 [userId, setUserId] = useState<string | undefined>();\n\n const session = useRef<{\n accessToken: string;\n expiresAt: number;\n userId?: string;\n } | null>(null);\n const { refetch } = useQuery({\n queryKey: ['auth', authId],\n queryFn: async () => {\n const data = await auth();\n setUserId(data.userId);\n return data;\n },\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 {\n client: 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 userId: data.userId,\n };\n }\n }\n return session.current?.accessToken;\n },\n }),\n ),\n userId,\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","useState","isValidUrl","url","__name","useAuth","auth","options","authId","userId","setUserId","useState","session","useRef","refetch","useQuery","data","baseUrl","ENVIRONMENTS","clientConfig","client","npmPackageVersion","debug","isValidProxy","createClient","hasTokenExpired","expiresAt","jsx","queryClient","QueryClient","RemoteFlowContextWrapper","children","auth","authId","proxy","environment","client","userId","useAuth","RemoteFlowContext","__name","FormFieldsProvider","components","FormFieldsContext","RemoteFlows","theme","QueryClientProvider","ThemeProvider"]}
|
package/dist/internals.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Z as ZendeskTriggerButton, c as cn } from './ZendeskTriggerButton-
|
|
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-
|
|
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-UOOM7V2D.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-2CDCTUVY.js";import{a as k,b as l}from"./chunk-WVDTHFGS.js";import"./chunk-XFJPUKYR.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,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 {
|
|
4
|
+
import { a0 as HelpCenterArticle } from './types.gen-BS9UfhS-.js';
|
|
5
5
|
import { S as SupportedTypes } from './types-Zg1n_9wh.js';
|
|
6
6
|
|
|
7
7
|
type ThemeProviderProps = PropsWithChildren<{
|
|
@@ -51,6 +51,7 @@ type ColumnDef<T = $TSFixMe> = {
|
|
|
51
51
|
type AuthResponse = {
|
|
52
52
|
accessToken: string;
|
|
53
53
|
expiresIn: number;
|
|
54
|
+
userId?: string;
|
|
54
55
|
};
|
|
55
56
|
type JSFFieldset = {
|
|
56
57
|
[x: string]: {
|
|
@@ -79,6 +80,7 @@ type JSFField = {
|
|
|
79
80
|
}>;
|
|
80
81
|
defaultValue?: string | number;
|
|
81
82
|
minDate?: string;
|
|
83
|
+
maxDate?: string;
|
|
82
84
|
maxLength?: number;
|
|
83
85
|
multiple?: boolean;
|
|
84
86
|
meta?: Record<string, unknown>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { O as OffboardingResponse, P as PostCreateOffboardingError,
|
|
1
|
+
import { O as OffboardingResponse, E as Employment, P as PostCreateOffboardingError, a1 as TerminationDetailsParams } from './types.gen-BS9UfhS-.js';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
-
import { E as ErrorResponse, S as SuccessResponse } from './mutations-
|
|
3
|
+
import { E as ErrorResponse, S as SuccessResponse } from './mutations-BdkQ8BEQ.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({
|
|
18
|
+
declare function AdditionalDetailsForm({ onSubmit, onSuccess, onError, }: AdditionalDetailsFormProps): react_jsx_runtime.JSX.Element;
|
|
19
19
|
|
|
20
20
|
type EmployeeComunicationProps = {
|
|
21
|
-
onSubmit?: (payload:
|
|
21
|
+
onSubmit?: (payload: EmployeeCommunicationFormValues) => void | Promise<void>;
|
|
22
22
|
};
|
|
23
23
|
declare function EmployeeCommunicationForm({ onSubmit, }: EmployeeComunicationProps): react_jsx_runtime.JSX.Element;
|
|
24
24
|
|
|
@@ -28,6 +28,12 @@ declare const useTermination: ({ employmentId, options, initialValues: terminati
|
|
|
28
28
|
* Employment id passed useful to be used between components
|
|
29
29
|
*/
|
|
30
30
|
employmentId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Employment data passed useful to be used between components
|
|
33
|
+
*/
|
|
34
|
+
employment: (Employment & {
|
|
35
|
+
termination_date?: string | null;
|
|
36
|
+
}) | undefined;
|
|
31
37
|
/**
|
|
32
38
|
* Current step state containing the current step and total number of steps
|
|
33
39
|
*/
|
|
@@ -70,13 +76,13 @@ declare const useTermination: ({ employmentId, options, initialValues: terminati
|
|
|
70
76
|
* Function to update the current form field values
|
|
71
77
|
* @param values - New form values to set
|
|
72
78
|
*/
|
|
73
|
-
checkFieldUpdates:
|
|
79
|
+
checkFieldUpdates: React$1.Dispatch<React$1.SetStateAction<TerminationFormValues>>;
|
|
74
80
|
/**
|
|
75
81
|
* Function to parse form values before submission
|
|
76
82
|
* @param values - Form values to parse
|
|
77
83
|
* @returns Parsed form values
|
|
78
84
|
*/
|
|
79
|
-
parseFormValues: (values: TerminationFormValues) =>
|
|
85
|
+
parseFormValues: (values: TerminationFormValues, includeAllFields?: boolean) => EmployeeCommunicationFormValues | TerminationDetailsFormValues | PaidTimeOffFormValues | TerminationFormValues;
|
|
80
86
|
/**
|
|
81
87
|
* Function to handle form submission
|
|
82
88
|
* @param values - Form values to submit
|
|
@@ -105,34 +111,41 @@ declare const useTermination: ({ employmentId, options, initialValues: terminati
|
|
|
105
111
|
};
|
|
106
112
|
|
|
107
113
|
type PaidTimeOffFormProps = {
|
|
108
|
-
onSubmit?: (payload:
|
|
114
|
+
onSubmit?: (payload: PaidTimeOffFormValues) => void | Promise<void>;
|
|
109
115
|
};
|
|
110
116
|
declare function PaidTimeOffForm({ onSubmit }: PaidTimeOffFormProps): react_jsx_runtime.JSX.Element;
|
|
111
117
|
|
|
112
118
|
type TerminationDetailsFormProps = {
|
|
113
|
-
onSubmit?: (payload:
|
|
119
|
+
onSubmit?: (payload: TerminationDetailsFormValues) => void | Promise<void>;
|
|
114
120
|
};
|
|
115
121
|
declare function TerminationDetailsForm({ onSubmit, }: TerminationDetailsFormProps): react_jsx_runtime.JSX.Element;
|
|
116
122
|
|
|
117
|
-
type
|
|
118
|
-
acknowledge_termination_procedure: boolean;
|
|
119
|
-
additional_comments: string;
|
|
120
|
-
agrees_to_pto_amount: string;
|
|
121
|
-
agrees_to_pto_amount_notes: string | null;
|
|
123
|
+
type EmployeeCommunicationFormValues = {
|
|
122
124
|
confidential: string;
|
|
123
125
|
customer_informed_employee: string;
|
|
124
126
|
customer_informed_employee_date: string | null;
|
|
125
127
|
customer_informed_employee_description: string | null;
|
|
126
128
|
personal_email: string;
|
|
129
|
+
};
|
|
130
|
+
type TerminationDetailsFormValues = {
|
|
127
131
|
proposed_termination_date: string;
|
|
128
132
|
reason_description: string;
|
|
129
133
|
risk_assessment_reasons: TerminationDetailsParams['risk_assessment_reasons'];
|
|
130
134
|
termination_reason: TerminationDetailsParams['termination_reason'] | undefined;
|
|
131
135
|
termination_reason_files: TerminationDetailsParams['termination_reason_files'];
|
|
132
|
-
|
|
136
|
+
additional_comments: string | null;
|
|
133
137
|
will_challenge_termination: string;
|
|
134
138
|
will_challenge_termination_description: string | null;
|
|
135
139
|
};
|
|
140
|
+
type PaidTimeOffFormValues = {
|
|
141
|
+
agrees_to_pto_amount: string;
|
|
142
|
+
agrees_to_pto_amount_notes: string | null;
|
|
143
|
+
timesheet_file: TerminationDetailsParams['timesheet_file'];
|
|
144
|
+
};
|
|
145
|
+
type AdditionalDetailsFormValues = {
|
|
146
|
+
acknowledge_termination_procedure: boolean;
|
|
147
|
+
};
|
|
148
|
+
type TerminationFormValues = EmployeeCommunicationFormValues & TerminationDetailsFormValues & PaidTimeOffFormValues & AdditionalDetailsFormValues;
|
|
136
149
|
type TerminationRenderProps = {
|
|
137
150
|
/**
|
|
138
151
|
* The termination bag returned by the useTermination hook.
|
|
@@ -168,4 +181,4 @@ type TerminationFlowProps = {
|
|
|
168
181
|
initialValues?: Record<string, unknown>;
|
|
169
182
|
};
|
|
170
183
|
|
|
171
|
-
export {
|
|
184
|
+
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,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { w as EmploymentCreationResponse, D as EmploymentResponse, S as SuccessResponse, A as PostCreateEmployment2Error, G as PatchUpdateEmployment2Error, I as PutUpdateBenefitOfferError, E as Employment$1, B as EmploymentCreateParams } from './types.gen-BS9UfhS-.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-
|
|
5
|
+
import { N as NormalizedFieldError, S as SuccessResponse$1, E as ErrorResponse } from './mutations-BdkQ8BEQ.js';
|
|
6
6
|
import { OnboardingSubmit } from './flows/Onboarding/components/OnboardingSubmit.js';
|
|
7
|
-
import { C as Components, M as Meta, J as JSFFieldset } from './remoteFlows-
|
|
7
|
+
import { C as Components, M as Meta, J as JSFFieldset } from './remoteFlows-nNmmcD-T.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,8 +1,8 @@
|
|
|
1
|
-
import { E as Employment,
|
|
1
|
+
import { E as Employment, R as ListTimeoffResponse, T as TimeoffStatus, W as TimeoffType, X as ListLeavePoliciesSummaryResponse, Y as MagicLinkResponse, Z as UnprocessableEntityResponse, _ as MagicLinkParams } from './types.gen-BS9UfhS-.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-
|
|
5
|
+
import { E as Employment$1 } from './types-BOXcQDia.js';
|
|
6
6
|
|
|
7
7
|
type DaysAndHours = {
|
|
8
8
|
hours: number;
|
|
@@ -134,6 +134,21 @@ declare const useSummaryTimeOffDataQuery: ({ employmentId, proposedTerminationDa
|
|
|
134
134
|
declare const useTimeOffLeavePoliciesSummaryQuery: ({ employmentId, }: {
|
|
135
135
|
employmentId?: string;
|
|
136
136
|
}) => _tanstack_react_query.UseQueryResult<ListLeavePoliciesSummaryResponse | undefined, Error>;
|
|
137
|
+
/**
|
|
138
|
+
* Hook to generate a magic link for a specific employment.
|
|
139
|
+
* @param {MagicLinkParams} params - The parameters for the magic link.
|
|
140
|
+
* @returns {UseQueryResult<any, unknown>} - The result of the query, including the magic link.
|
|
141
|
+
*/
|
|
142
|
+
declare const useMagicLink: () => _tanstack_react_query.UseMutationResult<({
|
|
143
|
+
data: MagicLinkResponse;
|
|
144
|
+
error: undefined;
|
|
145
|
+
} | {
|
|
146
|
+
data: undefined;
|
|
147
|
+
error: UnprocessableEntityResponse;
|
|
148
|
+
}) & {
|
|
149
|
+
request: Request;
|
|
150
|
+
response: Response;
|
|
151
|
+
}, Error, MagicLinkParams, unknown>;
|
|
137
152
|
|
|
138
153
|
type PaidTimeOffRenderProps = {
|
|
139
154
|
/**
|
|
@@ -195,4 +210,4 @@ type PaidTimeOffContainerProps = {
|
|
|
195
210
|
render: (props: PaidTimeOffRenderProps) => React.ReactNode;
|
|
196
211
|
};
|
|
197
212
|
|
|
198
|
-
export { type BookedTimeoffBeforeDateResponse as B, type PaidTimeOffRenderProps as P, type SummaryTimeOffDataResponse as S, type PaidTimeOffContainerProps as a, useTimeOffQuery as b, type PaidTimeoffBreakdownResponse as c, usePaidTimeoffBreakdownQuery as d, useBookedTimeoffBeforeAndAfterTerminationQuery as e, useSummaryTimeOffDataQuery as f, useTimeOffLeavePoliciesSummaryQuery as g, useEmploymentQuery as u };
|
|
213
|
+
export { type BookedTimeoffBeforeDateResponse as B, type PaidTimeOffRenderProps as P, type SummaryTimeOffDataResponse as S, type PaidTimeOffContainerProps as a, useTimeOffQuery as b, type PaidTimeoffBreakdownResponse as c, usePaidTimeoffBreakdownQuery as d, useBookedTimeoffBeforeAndAfterTerminationQuery as e, useSummaryTimeOffDataQuery as f, useTimeOffLeavePoliciesSummaryQuery as g, useMagicLink as h, useEmploymentQuery as u };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { E as Employment, F as File,
|
|
1
|
+
import { E as Employment, F as File, i as CreateContractDocumentResponse, f as SignContractDocument, S as SuccessResponse } from './types.gen-BS9UfhS-.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-
|
|
5
|
+
import { N as NormalizedFieldError } from './mutations-BdkQ8BEQ.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-
|
|
12
|
+
import { M as Meta, J as JSFFieldset, $ as $TSFixMe } from './remoteFlows-nNmmcD-T.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-
|
|
15
|
+
import { g as SelectCountryStep } from './types-BOXcQDia.js';
|
|
16
16
|
import { FlowOptions, JSFModify } from './flows/types.js';
|
|
17
17
|
import { OnboardingInvite } from './flows/Onboarding/components/OnboardingInvite.js';
|
|
18
18
|
|
|
@@ -119,7 +119,7 @@ declare const useContractorOnboarding: ({ countryCode, externalId, employmentId,
|
|
|
119
119
|
basic_information: Record<string, unknown>;
|
|
120
120
|
contract_details: Record<string, unknown>;
|
|
121
121
|
contract_preview: Record<string, unknown>;
|
|
122
|
-
pricing_plan:
|
|
122
|
+
pricing_plan: Record<string, unknown>;
|
|
123
123
|
};
|
|
124
124
|
/**
|
|
125
125
|
* Employment id
|
|
@@ -602,6 +602,15 @@ type CostCalculatorCosts = {
|
|
|
602
602
|
*/
|
|
603
603
|
monthly_total: number;
|
|
604
604
|
};
|
|
605
|
+
/**
|
|
606
|
+
* Product
|
|
607
|
+
*/
|
|
608
|
+
type Product = {
|
|
609
|
+
frequency: string;
|
|
610
|
+
identifier?: string;
|
|
611
|
+
name: string;
|
|
612
|
+
tier: string;
|
|
613
|
+
};
|
|
605
614
|
/**
|
|
606
615
|
* Response schema for listing leave policies summary
|
|
607
616
|
*/
|
|
@@ -873,6 +882,12 @@ type SuccessResponse = {
|
|
|
873
882
|
status?: string;
|
|
874
883
|
};
|
|
875
884
|
};
|
|
885
|
+
/**
|
|
886
|
+
* Defines the operation that must be executed: upgrade or downgrade
|
|
887
|
+
*/
|
|
888
|
+
type ManageContractorPlusSubscriptionOperationsParams = {
|
|
889
|
+
operation: 'upgrade' | 'downgrade';
|
|
890
|
+
};
|
|
876
891
|
/**
|
|
877
892
|
* Leave Policy abstraction representation for the employee
|
|
878
893
|
*/
|
|
@@ -1028,6 +1043,25 @@ type Company = {
|
|
|
1028
1043
|
terms_of_service_accepted_at: string;
|
|
1029
1044
|
updated_at: string;
|
|
1030
1045
|
};
|
|
1046
|
+
type ContractorSubscriptionsSummary = {
|
|
1047
|
+
company_product: {
|
|
1048
|
+
slug?: UuidSlug;
|
|
1049
|
+
};
|
|
1050
|
+
company_product_discount: {
|
|
1051
|
+
expiration_date?: _Date;
|
|
1052
|
+
percent?: Decimal;
|
|
1053
|
+
};
|
|
1054
|
+
currency: Currency;
|
|
1055
|
+
is_termination_fees_enabled?: boolean;
|
|
1056
|
+
price: {
|
|
1057
|
+
amount?: number;
|
|
1058
|
+
};
|
|
1059
|
+
product: Product;
|
|
1060
|
+
total_amount: number | null;
|
|
1061
|
+
total_discount?: number;
|
|
1062
|
+
total_in_advance?: number;
|
|
1063
|
+
total_prorated?: number;
|
|
1064
|
+
};
|
|
1031
1065
|
type TooManyRequestsResponse = {
|
|
1032
1066
|
message?: string;
|
|
1033
1067
|
};
|
|
@@ -1197,6 +1231,7 @@ type CreateContractEligibilityParams = {
|
|
|
1197
1231
|
employer_or_work_restrictions: boolean;
|
|
1198
1232
|
};
|
|
1199
1233
|
type TimeoffType = 'time_off' | 'sick_leave' | 'public_holiday' | 'unpaid_leave' | 'extended_leave' | 'in_lieu_time' | 'maternity_leave' | 'paternity_leave' | 'parental_leave' | 'bereavement' | 'military_leave' | 'other' | 'paid_time_off' | 'custom_company_leave' | 'rtt' | 'casual_leave' | 'rol' | 'ex_festivita';
|
|
1234
|
+
type Decimal = string;
|
|
1200
1235
|
/**
|
|
1201
1236
|
* The details of the salary decrease request if there is one
|
|
1202
1237
|
*/
|
|
@@ -1575,5 +1610,16 @@ type PostSignContractDocumentErrors = {
|
|
|
1575
1610
|
403: ForbiddenResponse;
|
|
1576
1611
|
};
|
|
1577
1612
|
type PostSignContractDocumentError = PostSignContractDocumentErrors[keyof PostSignContractDocumentErrors];
|
|
1613
|
+
type PostManageContractorPlusSubscriptionSubscriptionErrors = {
|
|
1614
|
+
/**
|
|
1615
|
+
* Bad Request
|
|
1616
|
+
*/
|
|
1617
|
+
400: BadRequestResponse;
|
|
1618
|
+
/**
|
|
1619
|
+
* Forbidden
|
|
1620
|
+
*/
|
|
1621
|
+
403: ForbiddenResponse;
|
|
1622
|
+
};
|
|
1623
|
+
type PostManageContractorPlusSubscriptionSubscriptionError = PostManageContractorPlusSubscriptionSubscriptionErrors[keyof PostManageContractorPlusSubscriptionSubscriptionErrors];
|
|
1578
1624
|
|
|
1579
|
-
export type {
|
|
1625
|
+
export type { Currency as $, PostCreateEmployment2Error as A, EmploymentCreateParams as B, CreateOffboardingParams as C, EmploymentResponse as D, Employment as E, File as F, PatchUpdateEmployment2Error as G, EmploymentFullParams as H, PutUpdateBenefitOfferError as I, ConvertCurrencyResponse as J, PostConvertRawCurrencyConverterError as K, ConvertCurrencyParams as L, ManageContractorPlusSubscriptionOperationsParams as M, PostCreateContractEligibilityError as N, OffboardingResponse as O, PostCreateOffboardingError as P, CreateContractEligibilityParams as Q, ListTimeoffResponse as R, SuccessResponse as S, TimeoffStatus as T, UnifiedEmploymentUpsertBenefitOffersRequest as U, ValidationError as V, TimeoffType as W, ListLeavePoliciesSummaryResponse as X, MagicLinkResponse as Y, UnprocessableEntityResponse as Z, MagicLinkParams as _, ContractAmendmentAutomatableResponse as a, HelpCenterArticle as a0, TerminationDetailsParams as a1, PostAutomatableContractAmendmentError as b, ContractAmendmentResponse as c, PostCreateContractAmendmentError as d, PostSignContractDocumentError as e, SignContractDocument as f, ContractorSubscriptionsSummary as g, PostManageContractorPlusSubscriptionSubscriptionError as h, CreateContractDocumentResponse as i, PostCreateContractDocumentError as j, CreateContractDocument as k, CostCalculatorEstimateResponse as l, PostCreateEstimationError as m, CostCalculatorEstimatePdfResponse as n, PostCreateEstimationPdfError as o, CostCalculatorEstimateParams as p, CostCalculatorEstimateCsvResponse as q, PostCreateEstimationCsvError as r, MinimalRegion as s, MinimalCountry as t, EmploymentTermType as u, CostCalculatorEmployment as v, EmploymentCreationResponse as w, Company as x, PostInviteEmploymentInvitationError as y, PostCreateRiskReserveError as z };
|
package/package.json
CHANGED
package/dist/chunk-2FKEF3OG.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as r}from"./chunk-MRPXDND2.js";import{b as m}from"./chunk-MRYRNB7Y.js";import{a as o}from"./chunk-P37U34EQ.js";import{jsx as e}from"react/jsx-runtime";function f({onSubmit:n}){let{terminationBag:i}=m();return e(r,{onSubmit:o(async a=>{await n?.(i?.parseFormValues(a)),i?.next()},"handleSubmit")})}o(f,"PaidTimeOffForm");export{f as a};
|
|
2
|
-
//# sourceMappingURL=chunk-2FKEF3OG.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/flows/Termination/PaidTimeOffForm.tsx"],"sourcesContent":["import { useTerminationContext } from './context';\nimport { TerminationFormValues } from '@/src/flows/Termination/types';\nimport { TerminationForm } from '@/src/flows/Termination/TerminationForm';\n\ntype PaidTimeOffFormProps = {\n /*\n * The function is called when the form is submitted. It receives the form values as an argument.\n */\n onSubmit?: (payload: TerminationFormValues) => void | Promise<void>;\n};\n\nexport function PaidTimeOffForm({ onSubmit }: PaidTimeOffFormProps) {\n const { terminationBag } = useTerminationContext();\n const handleSubmit = async (values: TerminationFormValues) => {\n await onSubmit?.(\n terminationBag?.parseFormValues(values) as TerminationFormValues,\n );\n terminationBag?.next();\n };\n\n return <TerminationForm onSubmit={handleSubmit} />;\n}\n"],"mappings":"wHAoBS,cAAAA,MAAA,oBATF,SAASC,EAAgB,CAAE,SAAAC,CAAS,EAAyB,CAClE,GAAM,CAAE,eAAAC,CAAe,EAAIC,EAAsB,EAQjD,OAAOJ,EAACK,EAAA,CAAgB,SAPHC,EAAA,MAAOC,GAAkC,CAC5D,MAAML,IACJC,GAAgB,gBAAgBI,CAAM,CACxC,EACAJ,GAAgB,KAAK,CACvB,EALqB,gBAO2B,CAClD,CAVgBG,EAAAL,EAAA","names":["jsx","PaidTimeOffForm","onSubmit","terminationBag","useTerminationContext","TerminationForm","__name","values"]}
|