@remoteoss/remote-flows 0.23.0 → 0.25.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/{chunk-VT4GSXMI.js → chunk-22JG4IMF.js} +2 -2
- package/dist/{chunk-Q5ZRKZMK.js → chunk-2M7EBC4K.js} +2 -2
- package/dist/{chunk-HPBT677J.js → chunk-2TADRH4W.js} +2 -2
- package/dist/chunk-2YTBWEC7.js +2 -0
- package/dist/chunk-2YTBWEC7.js.map +1 -0
- package/dist/chunk-347YWDTK.js +2 -0
- package/dist/chunk-347YWDTK.js.map +1 -0
- package/dist/{chunk-IXAWEBRI.js → chunk-3O3Q24JL.js} +2 -2
- package/dist/chunk-3O3Q24JL.js.map +1 -0
- package/dist/{chunk-LEXD5FVL.js → chunk-46JFDBPC.js} +2 -2
- package/dist/{chunk-PKRI35YC.js → chunk-4IXRU67S.js} +2 -2
- package/dist/{chunk-FMBYJANY.js → chunk-4JVXDB5G.js} +2 -2
- package/dist/chunk-4O4VBGMD.js +2 -0
- package/dist/chunk-4O4VBGMD.js.map +1 -0
- package/dist/{chunk-5H5INKOY.js → chunk-7KNNJBO6.js} +2 -2
- package/dist/{chunk-64NSBY5G.js → chunk-AU6AILO2.js} +2 -2
- package/dist/{chunk-5A54AHAT.js → chunk-BDPCUDJB.js} +2 -2
- package/dist/{chunk-DUD7B2IY.js → chunk-BGXVK7HL.js} +2 -2
- package/dist/{chunk-3XDJ2LRT.js → chunk-BLZW25OE.js} +2 -2
- package/dist/{chunk-BNHN4CEM.js → chunk-BMDZJNJV.js} +2 -2
- package/dist/{chunk-N6KOPITR.js → chunk-CT2ROVBF.js} +2 -2
- package/dist/{chunk-O4DIUKVP.js → chunk-EJ4COVQQ.js} +2 -2
- package/dist/chunk-EZWZMPD2.js +2 -0
- package/dist/chunk-EZWZMPD2.js.map +1 -0
- package/dist/{chunk-ILPYR7RQ.js → chunk-HCZWP44I.js} +2 -2
- package/dist/{chunk-NGTESOKF.js → chunk-HFI2MD3H.js} +2 -2
- package/dist/{chunk-XMAQ4NRR.js → chunk-I3PGODII.js} +2 -2
- package/dist/{chunk-3W7RKLJX.js → chunk-I52UTPHD.js} +2 -2
- package/dist/{chunk-IYGJ5QJB.js → chunk-IUZ7DEXC.js} +2 -2
- package/dist/{chunk-GKS3W6KT.js → chunk-JHPCP2ZX.js} +2 -2
- package/dist/{chunk-U2LOBJFU.js → chunk-KH5SAWNH.js} +2 -2
- package/dist/{chunk-2T2N5226.js → chunk-L3C4AHZJ.js} +2 -2
- package/dist/{chunk-L2IKFFQX.js → chunk-LHSNAVGR.js} +2 -2
- package/dist/{chunk-FBJCDOO7.js → chunk-LRGEEPGK.js} +2 -2
- package/dist/{chunk-NIH7XLAK.js → chunk-M6G27EJN.js} +2 -2
- package/dist/{chunk-B7I7YVNK.js → chunk-MP2T74PU.js} +2 -2
- package/dist/{chunk-PWPFCC6I.js → chunk-NVYMAOQ7.js} +2 -2
- package/dist/{chunk-RDCWARSM.js → chunk-NWEXPORY.js} +2 -2
- package/dist/{chunk-PAT3EA43.js → chunk-O7REUCKR.js} +2 -2
- package/dist/{chunk-G4QOEPDP.js → chunk-OCNL6L4L.js} +2 -2
- package/dist/{chunk-RF5SLMJF.js → chunk-P4ZSYIA4.js} +2 -2
- package/dist/{chunk-TB75BHYW.js → chunk-PHBQMNG3.js} +2 -2
- package/dist/chunk-Q3A4A2HL.js +2 -0
- package/dist/chunk-QEWB24WT.js +2 -0
- package/dist/chunk-QEWB24WT.js.map +1 -0
- package/dist/{chunk-LUDRB7LC.js → chunk-QKLIYOMA.js} +2 -2
- package/dist/{chunk-JVSD4JOU.js → chunk-RC3XP5WU.js} +2 -2
- package/dist/{chunk-7IZGKQII.js → chunk-RDGF4PBB.js} +2 -2
- package/dist/chunk-REDYWUCC.js +2 -0
- package/dist/chunk-REDYWUCC.js.map +1 -0
- package/dist/{chunk-4NAVUB7D.js → chunk-RINDVT6U.js} +2 -2
- package/dist/{chunk-A7T27JCJ.js → chunk-RNJWBKLA.js} +2 -2
- package/dist/{chunk-2DSNHYHZ.js → chunk-S2KE2JLJ.js} +2 -2
- package/dist/{chunk-SA3D5OH4.js → chunk-T5LZSTW3.js} +2 -2
- package/dist/{chunk-4HT7RNFP.js → chunk-UTBVLDKY.js} +2 -2
- package/dist/{chunk-HEQLPSHZ.js → chunk-UUZ353RX.js} +2 -2
- package/dist/{chunk-JF3KJ6PA.js → chunk-VUP76ZMQ.js} +2 -2
- package/dist/{chunk-CRHH6IPF.js → chunk-VVF4IZES.js} +2 -2
- package/dist/{chunk-S2XKE7EA.js → chunk-W5BJQRNM.js} +2 -2
- package/dist/chunk-YU3JIZ7J.js +2 -0
- package/dist/chunk-YU3JIZ7J.js.map +1 -0
- package/dist/{chunk-IM525UMG.js → chunk-ZY5U2UNT.js} +2 -2
- 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/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 +2 -2
- 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/OnboardingInvite.d.ts +3 -3
- package/dist/flows/ContractorOnboarding/components/OnboardingInvite.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/context.d.ts +5 -5
- 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/types.d.ts +5 -5
- 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/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 +4 -4
- 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/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/ReviewStep.d.ts +4 -4
- package/dist/flows/Onboarding/components/SaveDraftButton.d.ts +3 -3
- 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 +4 -4
- package/dist/flows/Termination/AdditionalDetailsForm.d.ts +4 -5
- package/dist/flows/Termination/AdditionalDetailsForm.js +1 -1
- package/dist/flows/Termination/EmployeeComunicationForm.d.ts +4 -5
- package/dist/flows/Termination/EmployeeComunicationForm.js +1 -1
- package/dist/flows/Termination/PaidTimeOffForm.d.ts +4 -5
- package/dist/flows/Termination/PaidTimeOffForm.js +1 -1
- package/dist/flows/Termination/TerminationDetailsForm.d.ts +4 -5
- package/dist/flows/Termination/TerminationDetailsForm.js +1 -1
- package/dist/flows/Termination/TerminationFlow.d.ts +4 -5
- package/dist/flows/Termination/TerminationFlow.js +1 -1
- package/dist/flows/Termination/TerminationForm.d.ts +4 -5
- package/dist/flows/Termination/TerminationForm.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.d.ts +16 -5
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOff.js +1 -1
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.d.ts +19 -0
- package/dist/flows/Termination/components/PaidTimeOff/PaidTimeOffContainer.js +2 -0
- package/dist/flows/Termination/components/PaidTimeOff/types.d.ts +6 -0
- package/dist/flows/Termination/components/PaidTimeOff/types.js +1 -0
- package/dist/flows/Termination/components/PaidTimeOff/types.js.map +1 -0
- package/dist/flows/Termination/components/TerminationDialogInfoContent/TerminationDialogInfoContent.js +1 -1
- package/dist/flows/Termination/context.d.ts +4 -5
- package/dist/flows/Termination/hooks.d.ts +4 -5
- package/dist/flows/Termination/hooks.js +1 -1
- package/dist/flows/Termination/index.d.ts +8 -5
- package/dist/flows/Termination/index.js +1 -1
- package/dist/flows/Termination/json-schemas/jsonSchema.js +1 -1
- package/dist/flows/Termination/json-schemas/schema.js +1 -1
- package/dist/flows/Termination/types.d.ts +4 -5
- package/dist/flows/api.d.ts +4 -5
- package/dist/flows/api.js +1 -1
- package/dist/index.d.ts +12 -74
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/internals.js +1 -1
- package/dist/{mutations-juOpbR-A.d.ts → mutations-DaNL3KJH.d.ts} +1 -1
- package/dist/{remoteFlows-D1VLPcdi.d.ts → remoteFlows-R6i-5uxZ.d.ts} +10 -2
- package/dist/{types-CBySMyLF.d.ts → types-BSmXaqyP.d.ts} +4 -4
- package/dist/{types-CCzA9vuJ.d.ts → types-CUuFeuNj.d.ts} +3 -3
- package/dist/types-ClV6M7ry.d.ts +179 -0
- package/dist/{types-Cl_jsVYv.d.ts → types-D_DohAP5.d.ts} +2 -5
- package/dist/{types.gen-CxiSXabT.d.ts → types.gen-BMxrLsCq.d.ts} +11 -3
- package/package.json +1 -1
- package/dist/chunk-2UAG6WDW.js +0 -2
- package/dist/chunk-4SIGN3ZP.js +0 -2
- package/dist/chunk-4SIGN3ZP.js.map +0 -1
- package/dist/chunk-7XRPOR7L.js +0 -2
- package/dist/chunk-7XRPOR7L.js.map +0 -1
- package/dist/chunk-AHBACWMD.js +0 -2
- package/dist/chunk-AHBACWMD.js.map +0 -1
- package/dist/chunk-CGUTMSAU.js +0 -2
- package/dist/chunk-CGUTMSAU.js.map +0 -1
- package/dist/chunk-G34OX26W.js +0 -2
- package/dist/chunk-G34OX26W.js.map +0 -1
- package/dist/chunk-HYIC33YR.js +0 -2
- package/dist/chunk-HYIC33YR.js.map +0 -1
- package/dist/chunk-IXAWEBRI.js.map +0 -1
- package/dist/chunk-SGJSMTYG.js +0 -2
- package/dist/chunk-SGJSMTYG.js.map +0 -1
- package/dist/flows/Termination/TimeOff.d.ts +0 -11
- package/dist/flows/Termination/TimeOff.js +0 -2
- /package/dist/{chunk-VT4GSXMI.js.map → chunk-22JG4IMF.js.map} +0 -0
- /package/dist/{chunk-Q5ZRKZMK.js.map → chunk-2M7EBC4K.js.map} +0 -0
- /package/dist/{chunk-HPBT677J.js.map → chunk-2TADRH4W.js.map} +0 -0
- /package/dist/{chunk-LEXD5FVL.js.map → chunk-46JFDBPC.js.map} +0 -0
- /package/dist/{chunk-PKRI35YC.js.map → chunk-4IXRU67S.js.map} +0 -0
- /package/dist/{chunk-FMBYJANY.js.map → chunk-4JVXDB5G.js.map} +0 -0
- /package/dist/{chunk-5H5INKOY.js.map → chunk-7KNNJBO6.js.map} +0 -0
- /package/dist/{chunk-64NSBY5G.js.map → chunk-AU6AILO2.js.map} +0 -0
- /package/dist/{chunk-5A54AHAT.js.map → chunk-BDPCUDJB.js.map} +0 -0
- /package/dist/{chunk-DUD7B2IY.js.map → chunk-BGXVK7HL.js.map} +0 -0
- /package/dist/{chunk-3XDJ2LRT.js.map → chunk-BLZW25OE.js.map} +0 -0
- /package/dist/{chunk-BNHN4CEM.js.map → chunk-BMDZJNJV.js.map} +0 -0
- /package/dist/{chunk-N6KOPITR.js.map → chunk-CT2ROVBF.js.map} +0 -0
- /package/dist/{chunk-O4DIUKVP.js.map → chunk-EJ4COVQQ.js.map} +0 -0
- /package/dist/{chunk-ILPYR7RQ.js.map → chunk-HCZWP44I.js.map} +0 -0
- /package/dist/{chunk-NGTESOKF.js.map → chunk-HFI2MD3H.js.map} +0 -0
- /package/dist/{chunk-XMAQ4NRR.js.map → chunk-I3PGODII.js.map} +0 -0
- /package/dist/{chunk-3W7RKLJX.js.map → chunk-I52UTPHD.js.map} +0 -0
- /package/dist/{chunk-IYGJ5QJB.js.map → chunk-IUZ7DEXC.js.map} +0 -0
- /package/dist/{chunk-GKS3W6KT.js.map → chunk-JHPCP2ZX.js.map} +0 -0
- /package/dist/{chunk-U2LOBJFU.js.map → chunk-KH5SAWNH.js.map} +0 -0
- /package/dist/{chunk-2T2N5226.js.map → chunk-L3C4AHZJ.js.map} +0 -0
- /package/dist/{chunk-L2IKFFQX.js.map → chunk-LHSNAVGR.js.map} +0 -0
- /package/dist/{chunk-FBJCDOO7.js.map → chunk-LRGEEPGK.js.map} +0 -0
- /package/dist/{chunk-NIH7XLAK.js.map → chunk-M6G27EJN.js.map} +0 -0
- /package/dist/{chunk-B7I7YVNK.js.map → chunk-MP2T74PU.js.map} +0 -0
- /package/dist/{chunk-PWPFCC6I.js.map → chunk-NVYMAOQ7.js.map} +0 -0
- /package/dist/{chunk-RDCWARSM.js.map → chunk-NWEXPORY.js.map} +0 -0
- /package/dist/{chunk-PAT3EA43.js.map → chunk-O7REUCKR.js.map} +0 -0
- /package/dist/{chunk-G4QOEPDP.js.map → chunk-OCNL6L4L.js.map} +0 -0
- /package/dist/{chunk-RF5SLMJF.js.map → chunk-P4ZSYIA4.js.map} +0 -0
- /package/dist/{chunk-TB75BHYW.js.map → chunk-PHBQMNG3.js.map} +0 -0
- /package/dist/{chunk-2UAG6WDW.js.map → chunk-Q3A4A2HL.js.map} +0 -0
- /package/dist/{chunk-LUDRB7LC.js.map → chunk-QKLIYOMA.js.map} +0 -0
- /package/dist/{chunk-JVSD4JOU.js.map → chunk-RC3XP5WU.js.map} +0 -0
- /package/dist/{chunk-7IZGKQII.js.map → chunk-RDGF4PBB.js.map} +0 -0
- /package/dist/{chunk-4NAVUB7D.js.map → chunk-RINDVT6U.js.map} +0 -0
- /package/dist/{chunk-A7T27JCJ.js.map → chunk-RNJWBKLA.js.map} +0 -0
- /package/dist/{chunk-2DSNHYHZ.js.map → chunk-S2KE2JLJ.js.map} +0 -0
- /package/dist/{chunk-SA3D5OH4.js.map → chunk-T5LZSTW3.js.map} +0 -0
- /package/dist/{chunk-4HT7RNFP.js.map → chunk-UTBVLDKY.js.map} +0 -0
- /package/dist/{chunk-HEQLPSHZ.js.map → chunk-UUZ353RX.js.map} +0 -0
- /package/dist/{chunk-JF3KJ6PA.js.map → chunk-VUP76ZMQ.js.map} +0 -0
- /package/dist/{chunk-CRHH6IPF.js.map → chunk-VVF4IZES.js.map} +0 -0
- /package/dist/{chunk-S2XKE7EA.js.map → chunk-W5BJQRNM.js.map} +0 -0
- /package/dist/{chunk-IM525UMG.js.map → chunk-ZY5U2UNT.js.map} +0 -0
- /package/dist/flows/Termination/{TimeOff.js.map → components/PaidTimeOff/PaidTimeOffContainer.js.map} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -19,34 +19,34 @@ 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 TerminationFlowProps, T as TerminationFormValues, b as TerminationRenderProps } from './types-D_DohAP5.js';
|
|
23
|
+
export { PaidTimeOffProps } from './flows/Termination/components/PaidTimeOff/PaidTimeOff.js';
|
|
23
24
|
export { OnboardingFlow } from './flows/Onboarding/OnboardingFlow.js';
|
|
24
25
|
export { OnboardingInviteProps } from './flows/Onboarding/components/OnboardingInvite.js';
|
|
25
|
-
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-
|
|
26
|
+
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-CUuFeuNj.js';
|
|
26
27
|
export { ContractorOnboardingFlow } from './flows/ContractorOnboarding/ContractorOnboarding.js';
|
|
27
|
-
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-
|
|
28
|
-
|
|
29
|
-
import { E as EmploymentShowResponse, L as ListTimeoffResponse, W as TimeoffStatus, X as TimeoffType, Y as ListLeavePoliciesSummaryResponse } from './types.gen-CxiSXabT.js';
|
|
30
|
-
export { v as Company, a as ContractAmendmentAutomatableResponse, t as CostCalculatorEmployment, k as CostCalculatorEstimateResponse, Z as Currency, u as EmploymentCreationResponse, A as EmploymentResponse, O as OffboardingResponse, S as SuccessResponse } from './types.gen-CxiSXabT.js';
|
|
31
|
-
import { ContractAmendmentParams } from './flows/ContractAmendment/types.js';
|
|
28
|
+
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-BSmXaqyP.js';
|
|
29
|
+
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-ClV6M7ry.js';
|
|
32
30
|
export { Z as ZendeskTriggerButton, t as transformYupErrorsIntoObject } from './ZendeskTriggerButton-FSCvhzTG.js';
|
|
33
31
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
34
32
|
import { PropsWithChildren } from 'react';
|
|
35
|
-
import { R as RemoteFlowsSDKProps } from './remoteFlows-
|
|
36
|
-
export { $ as $TSFixMe, B as ButtonComponentProps, C as Components, F as FieldComponentProps, b as FieldSetToggleComponentProps, M as Meta, S as StatementComponentProps, Z as ZendeskDrawerComponentProps } from './remoteFlows-
|
|
37
|
-
export {
|
|
33
|
+
import { R as RemoteFlowsSDKProps } from './remoteFlows-R6i-5uxZ.js';
|
|
34
|
+
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-R6i-5uxZ.js';
|
|
35
|
+
export { v as Company, a as ContractAmendmentAutomatableResponse, t as CostCalculatorEmployment, k as CostCalculatorEstimateResponse, Z as Currency, u as EmploymentCreationResponse, A as EmploymentResponse, O as OffboardingResponse, S as SuccessResponse } from './types.gen-BMxrLsCq.js';
|
|
36
|
+
export { F as FieldError, N as NormalizedFieldError } from './mutations-DaNL3KJH.js';
|
|
38
37
|
import 'react-hook-form';
|
|
39
38
|
import 'yup';
|
|
40
39
|
import './types-Zg1n_9wh.js';
|
|
41
40
|
import './flows/CostCalculator/constants.js';
|
|
42
41
|
import './flows/types.js';
|
|
43
42
|
import '@remoteoss/json-schema-form';
|
|
43
|
+
import '@tanstack/react-query';
|
|
44
44
|
import './flows/ContractAmendment/ContractAmendmentBack.js';
|
|
45
|
+
import './flows/ContractAmendment/types.js';
|
|
45
46
|
import './flows/useStepState.js';
|
|
46
47
|
import './flows/Termination/utils.js';
|
|
47
48
|
import './flows/Termination/TerminationBack.js';
|
|
48
49
|
import './flows/Termination/TerminationSubmit.js';
|
|
49
|
-
import './flows/Termination/TimeOff.js';
|
|
50
50
|
import './flows/Onboarding/components/OnboardingBack.js';
|
|
51
51
|
import './flows/Onboarding/components/OnboardingSubmit.js';
|
|
52
52
|
import '@tanstack/query-core';
|
|
@@ -57,68 +57,6 @@ import './flows/ContractorOnboarding/utils.js';
|
|
|
57
57
|
import './flows/ContractorOnboarding/components/BasicInformationStep.js';
|
|
58
58
|
import 'clsx';
|
|
59
59
|
|
|
60
|
-
type UseEmployment = Pick<ContractAmendmentParams, 'employmentId'>;
|
|
61
|
-
/**
|
|
62
|
-
* Hook to retrieve employment details for a specific employment ID.
|
|
63
|
-
*
|
|
64
|
-
* @param {Object} params - The parameters for the query.
|
|
65
|
-
* @param {string} params.employmentId - The ID of the employment to fetch details for.
|
|
66
|
-
* @returns {UseQueryResult<any, unknown>} - The result of the query, including the employment details.
|
|
67
|
-
*/
|
|
68
|
-
declare const useEmploymentQuery: ({ employmentId }: UseEmployment) => _tanstack_react_query.UseQueryResult<EmploymentShowResponse | undefined, Error>;
|
|
69
|
-
/**
|
|
70
|
-
* Hook to retrieve time off data for a specific employment.
|
|
71
|
-
*
|
|
72
|
-
* @param {Object} params - The parameters for the query.
|
|
73
|
-
* @param {string} [params.employmentId] - The ID of the employment to fetch time off data for.
|
|
74
|
-
* @param {TimeoffStatus} [params.status] - The status of the time off requests to filter by (e.g., 'approved', 'pending').
|
|
75
|
-
* @returns {UseQueryResult<any, unknown>} - The result of the query, including the time off data.
|
|
76
|
-
*
|
|
77
|
-
*/
|
|
78
|
-
declare const useTimeOffQuery: <TData = ListTimeoffResponse>({ employmentId, status, timeoffType, options, }: {
|
|
79
|
-
employmentId?: string;
|
|
80
|
-
status?: TimeoffStatus;
|
|
81
|
-
timeoffType?: TimeoffType;
|
|
82
|
-
options?: {
|
|
83
|
-
enabled?: boolean;
|
|
84
|
-
select?: (data: ListTimeoffResponse | undefined) => TData;
|
|
85
|
-
};
|
|
86
|
-
}) => _tanstack_react_query.UseQueryResult<TData, Error>;
|
|
87
|
-
/**
|
|
88
|
-
* Hook to retrieve paid time off breakdown for a specific employment.
|
|
89
|
-
*
|
|
90
|
-
* @param {Object} params - The parameters for the query.
|
|
91
|
-
* @param {string} [params.employmentId] - The ID of the employment to fetch paid time off breakdown for.
|
|
92
|
-
* @returns {UseQueryResult<any, unknown>} - The result of the query, including the paid time off breakdown.
|
|
93
|
-
*
|
|
94
|
-
*/
|
|
95
|
-
declare const usePaidTimeoffBreakdownQuery: ({ employmentId, options, }: {
|
|
96
|
-
employmentId?: string;
|
|
97
|
-
options?: {
|
|
98
|
-
enabled?: boolean;
|
|
99
|
-
};
|
|
100
|
-
}) => _tanstack_react_query.UseQueryResult<{
|
|
101
|
-
bookedDays: number;
|
|
102
|
-
timeoffs: {
|
|
103
|
-
status: string;
|
|
104
|
-
duration: number;
|
|
105
|
-
startDate: string;
|
|
106
|
-
endDate: string;
|
|
107
|
-
formattedDate: string;
|
|
108
|
-
}[];
|
|
109
|
-
}, Error>;
|
|
110
|
-
/**
|
|
111
|
-
* Hook to retrieve time off balance for a specific employment.
|
|
112
|
-
*
|
|
113
|
-
* @param {Object} params - The parameters for the query.
|
|
114
|
-
* @param {string} [params.employmentId] - The ID of the employment to fetch time off balance for.
|
|
115
|
-
* @returns {UseQueryResult<any, unknown>} - The result of the query, including the time off balance.
|
|
116
|
-
*
|
|
117
|
-
*/
|
|
118
|
-
declare const useTimeOffLeavePoliciesSummaryQuery: ({ employmentId, }: {
|
|
119
|
-
employmentId?: string;
|
|
120
|
-
}) => _tanstack_react_query.UseQueryResult<ListLeavePoliciesSummaryResponse | undefined, Error>;
|
|
121
|
-
|
|
122
60
|
declare function RemoteFlows({ auth, authId, children, components, theme, proxy, environment, }: PropsWithChildren<RemoteFlowsSDKProps>): react_jsx_runtime.JSX.Element;
|
|
123
61
|
|
|
124
62
|
declare function convertFromCents(amount?: number | string | null): number | null;
|
|
@@ -133,4 +71,4 @@ declare const zendeskArticles: {
|
|
|
133
71
|
terminationNoticePeriods: number;
|
|
134
72
|
};
|
|
135
73
|
|
|
136
|
-
export { RemoteFlows, RemoteFlowsSDKProps, convertFromCents,
|
|
74
|
+
export { RemoteFlows, RemoteFlowsSDKProps, convertFromCents, 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 ft}from"./chunk-QKLIYOMA.js";import{a as mt}from"./chunk-QIQTM4HB.js";import{a as ht}from"./chunk-YU3JIZ7J.js";import"./chunk-RDGF4PBB.js";import"./chunk-P5WUODPR.js";import"./chunk-4O4VBGMD.js";import"./chunk-347YWDTK.js";import"./chunk-EZWZMPD2.js";import"./chunk-VUP76ZMQ.js";import"./chunk-S4XU4SE7.js";import"./chunk-GULCZWSK.js";import"./chunk-T5LZSTW3.js";import"./chunk-AU6AILO2.js";import"./chunk-KH5SAWNH.js";import"./chunk-VVF4IZES.js";import"./chunk-6VRUYYUV.js";import"./chunk-MRYRNB7Y.js";import"./chunk-Z3BMF4BO.js";import{a as O}from"./chunk-JHPCP2ZX.js";import"./chunk-BCXRPHWY.js";import"./chunk-MQWVZSGH.js";import{a as I}from"./chunk-H425RKFI.js";import{a as D}from"./chunk-NVYMAOQ7.js";import"./chunk-DTHBG6BD.js";import"./chunk-PHBQMNG3.js";import"./chunk-W5BJQRNM.js";import"./chunk-22JG4IMF.js";import"./chunk-2TADRH4W.js";import"./chunk-ZSCKSEAA.js";import"./chunk-ZE3YT3Q6.js";import{a as wt}from"./chunk-4JVXDB5G.js";import"./chunk-5KHLOGTR.js";import"./chunk-7KNNJBO6.js";import"./chunk-I52UTPHD.js";import"./chunk-NWEXPORY.js";import"./chunk-ZQ6MG635.js";import"./chunk-RINDVT6U.js";import"./chunk-OIN3HGOQ.js";import"./chunk-Z7WBY27D.js";import"./chunk-P4ZSYIA4.js";import"./chunk-46JFDBPC.js";import"./chunk-L3C4AHZJ.js";import"./chunk-VAIBLWOY.js";import"./chunk-UTBVLDKY.js";import"./chunk-PGWKJ6FK.js";import{a as R}from"./chunk-OCNL6L4L.js";import{b as L,d as P}from"./chunk-HCZWP44I.js";import"./chunk-IUZ7DEXC.js";import{a as T}from"./chunk-32GSS4UM.js";import"./chunk-VFRHMNLJ.js";import"./chunk-HFI2MD3H.js";import{a as W}from"./chunk-BLZW25OE.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 xt}from"./chunk-LHSNAVGR.js";import"./chunk-EJ4COVQQ.js";import"./chunk-4IXRU67S.js";import"./chunk-S2KE2JLJ.js";import"./chunk-M6G27EJN.js";import"./chunk-BGXVK7HL.js";import"./chunk-CT2ROVBF.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-UUZ353RX.js";import{a as nt}from"./chunk-I3PGODII.js";import"./chunk-CFIJKJXD.js";import"./chunk-RNJWBKLA.js";import"./chunk-QEWB24WT.js";import"./chunk-BV3PGYSH.js";import{a as it}from"./chunk-OW5QGJD4.js";import{a as vt}from"./chunk-O7REUCKR.js";import{a as ct,b as st,c as lt,d as dt,e as pt,f as gt}from"./chunk-REDYWUCC.js";import"./chunk-2YTBWEC7.js";import"./chunk-3AEKPMIN.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}from"./chunk-MP2T74PU.js";import"./chunk-PD24XKD6.js";import"./chunk-TWIUL2P3.js";import"./chunk-ZX5OIIJX.js";import"./chunk-2M7EBC4K.js";import"./chunk-Q3A4A2HL.js";import"./chunk-XFD3ULUF.js";import"./chunk-GC23RRCI.js";import"./chunk-XSHHMBMT.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 x={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 b}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=b(null),{refetch:c}=Z({queryKey:["auth",e],queryFn:t,enabled:!1}),s=a?.environment?x[a?.environment]:"https://gateway.remote.com",l=v.getConfig(),g="0.25.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."),b(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,xt 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,F 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,T 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":"utHAAA,OAAS,eAAAA,EAAa,uBAAAC,MAA2B,wBCUjD,SAASC,EAAiBC,EAAmC,CAC3D,IAAMC,EAAO,SAAS,gBACtB,OAAO,KAAKD,CAAS,EAAE,QAASE,GAAM,CACpC,IAAMC,EAAcH,EAAUE,CAAC,EAC3BC,GACFF,EAAK,MAAM,YAAYC,EAAGC,CAAW,CAEzC,CAAC,CACH,CARSC,EAAAL,EAAA,oBAUT,SAASM,EAAeC,EAAqC,CAC3D,IAAMC,EAAyB,CAAC,EAChC,cAAO,KAAKD,CAAM,EAAE,QAASE,GAAQ,CACnCD,EAAO,KAAKC,CAAG,EAA0B,EACvCF,EAAOE,CAAwB,CACnC,CAAC,EACMD,CACT,CAPSH,EAAAC,EAAA,kBAST,SAASI,EAAgBC,EAAkC,CACzD,MAAO,CACL,YAAaA,CACf,CACF,CAJSN,EAAAK,EAAA,mBAMT,SAASE,EAAqBC,EAAsC,CAClE,MAAO,CACL,WAAYA,CACd,CACF,CAJSR,EAAAO,EAAA,wBAMT,SAASE,EAAaC,EAA+B,CACnD,MAAO,CACL,iBAAkBA,EAAK,YACzB,CACF,CAJSV,EAAAS,EAA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,SAAlB,CAA2B,MAAO,CAAE,OAAQF,EAAgB,OAAQ,EAClE,SAAAL,EACH,CAEJ,CApBSQ,EAAAT,GAAA,4BAsBF,SAASU,GAAmB,CACjC,SAAAT,EACA,WAAAU,CACF,EAEI,CACF,OACEd,EAACe,EAAkB,SAAlB,CACC,MAAOD,EAAa,CAAE,WAAAA,CAAW,EAAI,CAAE,WAAY,CAAC,CAAE,EAErD,SAAAV,EACH,CAEJ,CAbgBQ,EAAAC,GAAA,sBAeT,SAASG,GAAY,CAC1B,KAAAX,EACA,OAAAC,EACA,SAAAF,EACA,WAAAU,EACA,MAAAG,EACA,MAAAV,EACA,YAAAC,CACF,EAA2C,CACzC,OACER,EAACkB,EAAA,CAAoB,OAAQjB,GAC3B,SAAAD,EAACa,GAAA,CAAmB,WAAYC,EAC9B,SAAAd,EAACG,GAAA,CACC,KAAME,EACN,OAAQC,EACR,MAAOC,EACP,YAAaC,EAEb,SAAAR,EAACmB,EAAA,CAAc,MAAOF,EAAQ,SAAAb,EAAS,EACzC,EACF,EACF,CAEJ,CAvBgBQ,EAAAI,GAAA","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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AD,EAACa,GAAA,CAAmB,WAAYC,EAC9B,SAAAd,EAACG,GAAA,CACC,KAAME,EACN,OAAQC,EACR,MAAOC,EACP,YAAaC,EAEb,SAAAR,EAACmB,EAAA,CAAc,MAAOF,EAAQ,SAAAb,EAAS,EACzC,EACF,EACF,CAEJ,CAvBgBQ,EAAAI,GAAA","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"]}
|
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
|
|
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{a as i}from"./chunk-MP2T74PU.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,7 +1,7 @@
|
|
|
1
1
|
import { ControllerRenderProps, FieldValues, ControllerFieldState } from 'react-hook-form';
|
|
2
2
|
import { PropsWithChildren, ReactNode } from 'react';
|
|
3
3
|
import { AnySchema } from 'yup';
|
|
4
|
-
import { _ as HelpCenterArticle } from './types.gen-
|
|
4
|
+
import { _ as HelpCenterArticle } from './types.gen-BMxrLsCq.js';
|
|
5
5
|
import { S as SupportedTypes } from './types-Zg1n_9wh.js';
|
|
6
6
|
|
|
7
7
|
type ThemeProviderProps = PropsWithChildren<{
|
|
@@ -129,6 +129,13 @@ type ZendeskDrawerComponentProps = {
|
|
|
129
129
|
type StatementComponentProps = {
|
|
130
130
|
data: StatementProps;
|
|
131
131
|
};
|
|
132
|
+
type DrawerComponentProps = {
|
|
133
|
+
open: boolean;
|
|
134
|
+
onOpenChange: (open: boolean) => void;
|
|
135
|
+
title: React.ReactNode;
|
|
136
|
+
trigger: React.ReactElement;
|
|
137
|
+
children?: React.ReactNode;
|
|
138
|
+
};
|
|
132
139
|
type FieldSetToggleComponentProps = {
|
|
133
140
|
isExpanded: boolean;
|
|
134
141
|
onToggle: () => void;
|
|
@@ -145,6 +152,7 @@ type Components = {
|
|
|
145
152
|
button?: React.ComponentType<ButtonComponentProps>;
|
|
146
153
|
fieldsetToggle?: React.ComponentType<FieldSetToggleComponentProps>;
|
|
147
154
|
zendeskDrawer?: React.ComponentType<ZendeskDrawerComponentProps>;
|
|
155
|
+
drawer?: React.ComponentType<DrawerComponentProps>;
|
|
148
156
|
};
|
|
149
157
|
type RemoteFlowsSDKProps = Omit<ThemeProviderProps, 'children'> & {
|
|
150
158
|
/**
|
|
@@ -196,4 +204,4 @@ type MetaValues = {
|
|
|
196
204
|
};
|
|
197
205
|
type Meta = Record<string, MetaValues>;
|
|
198
206
|
|
|
199
|
-
export type { $TSFixMe as $, ButtonComponentProps as B, Components as C, FieldComponentProps as F, JSFFieldset as J, Meta as M, RemoteFlowsSDKProps as R, StatementComponentProps as S, ZendeskDrawerComponentProps as Z, JSFField as a, FieldSetToggleComponentProps as b };
|
|
207
|
+
export type { $TSFixMe as $, ButtonComponentProps as B, Components as C, DrawerComponentProps as D, FieldComponentProps as F, JSFFieldset as J, Meta as M, RemoteFlowsSDKProps as R, StatementComponentProps as S, ZendeskDrawerComponentProps as Z, JSFField as a, FieldSetToggleComponentProps as b };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { j as Employment, F as File, g as CreateContractDocumentResponse, f as SignContractDocument, S as SuccessResponse } from './types.gen-
|
|
1
|
+
import { j as Employment, F as File, g as CreateContractDocumentResponse, f as SignContractDocument, S as SuccessResponse } from './types.gen-BMxrLsCq.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-DaNL3KJH.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-R6i-5uxZ.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-CUuFeuNj.js';
|
|
16
16
|
import { FlowOptions, JSFModify } from './flows/types.js';
|
|
17
17
|
import { OnboardingInvite } from './flows/Onboarding/components/OnboardingInvite.js';
|
|
18
18
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as EmploymentCreationResponse, A as EmploymentResponse, S as SuccessResponse, y as PostCreateEmployment2Error, B as PatchUpdateEmployment2Error, G as PutUpdateBenefitOfferError, j as Employment$1, z as EmploymentCreateParams } from './types.gen-
|
|
1
|
+
import { u as EmploymentCreationResponse, A as EmploymentResponse, S as SuccessResponse, y as PostCreateEmployment2Error, B as PatchUpdateEmployment2Error, G as PutUpdateBenefitOfferError, j as Employment$1, z as EmploymentCreateParams } from './types.gen-BMxrLsCq.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-DaNL3KJH.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-R6i-5uxZ.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';
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { E as EmploymentShowResponse, T as ListTimeoffResponse, W as TimeoffStatus, X as TimeoffType, Y as ListLeavePoliciesSummaryResponse } from './types.gen-BMxrLsCq.js';
|
|
2
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
3
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
4
|
+
import { ContractAmendmentParams } from './flows/ContractAmendment/types.js';
|
|
5
|
+
|
|
6
|
+
type UseEmployment = Pick<ContractAmendmentParams, 'employmentId'>;
|
|
7
|
+
/**
|
|
8
|
+
* Hook to retrieve employment details for a specific employment ID.
|
|
9
|
+
*
|
|
10
|
+
* @param {Object} params - The parameters for the query.
|
|
11
|
+
* @param {string} params.employmentId - The ID of the employment to fetch details for.
|
|
12
|
+
* @returns {UseQueryResult<any, unknown>} - The result of the query, including the employment details.
|
|
13
|
+
*/
|
|
14
|
+
declare const useEmploymentQuery: ({ employmentId }: UseEmployment) => _tanstack_react_query.UseQueryResult<EmploymentShowResponse | undefined, Error>;
|
|
15
|
+
/**
|
|
16
|
+
* Hook to retrieve time off data for a specific employment.
|
|
17
|
+
*
|
|
18
|
+
* @param {Object} params - The parameters for the query.
|
|
19
|
+
* @param {string} [params.employmentId] - The ID of the employment to fetch time off data for.
|
|
20
|
+
* @param {TimeoffStatus} [params.status] - The status of the time off requests to filter by (e.g., 'approved', 'pending').
|
|
21
|
+
* @returns {UseQueryResult<any, unknown>} - The result of the query, including the time off data.
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
declare const useTimeOffQuery: <TData = ListTimeoffResponse>({ employmentId, status, timeoffType, options, }: {
|
|
25
|
+
employmentId?: string;
|
|
26
|
+
status?: TimeoffStatus;
|
|
27
|
+
timeoffType?: TimeoffType;
|
|
28
|
+
options?: {
|
|
29
|
+
enabled?: boolean;
|
|
30
|
+
select?: (data: ListTimeoffResponse | undefined) => TData;
|
|
31
|
+
};
|
|
32
|
+
}) => _tanstack_react_query.UseQueryResult<TData, Error>;
|
|
33
|
+
type PaidTimeoffBreakdownResponse = {
|
|
34
|
+
bookedDays: number;
|
|
35
|
+
timeoffs: {
|
|
36
|
+
status: string;
|
|
37
|
+
duration: number;
|
|
38
|
+
startDate: string;
|
|
39
|
+
endDate: string;
|
|
40
|
+
formattedDate: string;
|
|
41
|
+
}[];
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Hook to retrieve paid time off breakdown for a specific employment.
|
|
45
|
+
*
|
|
46
|
+
* @param {Object} params - The parameters for the query.
|
|
47
|
+
* @param {string} [params.employmentId] - The ID of the employment to fetch paid time off breakdown for.
|
|
48
|
+
* @returns {UseQueryResult<any, unknown>} - The result of the query, including the paid time off breakdown.
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
declare const usePaidTimeoffBreakdownQuery: ({ employmentId, options, }: {
|
|
52
|
+
employmentId?: string;
|
|
53
|
+
options?: {
|
|
54
|
+
enabled?: boolean;
|
|
55
|
+
};
|
|
56
|
+
}) => _tanstack_react_query.UseQueryResult<PaidTimeoffBreakdownResponse, Error>;
|
|
57
|
+
type BookedTimeoffBeforeDateResponse = {
|
|
58
|
+
bookedDaysBeforeTermination: number;
|
|
59
|
+
bookedDaysAfterTermination: number;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Hook to retrieve booked time off data before and after a specific date for a specific employment.
|
|
63
|
+
*
|
|
64
|
+
* @param {Object} params - The parameters for the query.
|
|
65
|
+
* @param {string} [params.employmentId] - The ID of the employment to fetch booked time off data for.
|
|
66
|
+
* @param {string} [params.date] - The date to fetch booked time off data for.
|
|
67
|
+
* @returns {BookedTimeoffBeforeDateResponse} - The booked time off data before and after the specific date.
|
|
68
|
+
*
|
|
69
|
+
* This hooks it's not taking into account unlimited time off or half days yet or even we you request several days in one request.
|
|
70
|
+
*/
|
|
71
|
+
declare const useBookedTimeoffBeforeAndAfterTerminationQuery: ({ employmentId, date, options, }: {
|
|
72
|
+
employmentId: string;
|
|
73
|
+
date: string;
|
|
74
|
+
options?: {
|
|
75
|
+
enabled: boolean;
|
|
76
|
+
};
|
|
77
|
+
}) => _tanstack_react_query.UseQueryResult<BookedTimeoffBeforeDateResponse, Error>;
|
|
78
|
+
type SummaryTimeOffDataResponse = {
|
|
79
|
+
entitledDays: number;
|
|
80
|
+
bookedDays: number;
|
|
81
|
+
usedDays: number;
|
|
82
|
+
approvedDaysBeforeTermination: number;
|
|
83
|
+
approvedDaysAfterTermination: number;
|
|
84
|
+
remainingDays: number;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Hook to retrieve summary time off data for a specific employment.
|
|
88
|
+
*
|
|
89
|
+
* @param {Object} params - The parameters for the query.
|
|
90
|
+
* @param {string} [params.employmentId] - The ID of the employment to fetch summary time off data for.
|
|
91
|
+
* @param {string} [params.proposedTerminationDate] - The proposed termination date to fetch summary time off data for.
|
|
92
|
+
* @returns {SummaryTimeOffDataResponse} - The summary time off data.
|
|
93
|
+
*
|
|
94
|
+
* This hook doesn't take into account unlimited time off or half days yet.
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
97
|
+
declare const useSummaryTimeOffDataQuery: ({ employmentId, proposedTerminationDate, }: {
|
|
98
|
+
employmentId: string;
|
|
99
|
+
proposedTerminationDate: string;
|
|
100
|
+
}) => {
|
|
101
|
+
data: {
|
|
102
|
+
entitledDays: number;
|
|
103
|
+
bookedDays: number;
|
|
104
|
+
usedDays: number;
|
|
105
|
+
approvedDaysBeforeTermination: number;
|
|
106
|
+
approvedDaysAfterTermination: number;
|
|
107
|
+
remainingDays: number;
|
|
108
|
+
};
|
|
109
|
+
isLoading: boolean;
|
|
110
|
+
isError: boolean;
|
|
111
|
+
error: Error | null;
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Hook to retrieve time off balance for a specific employment.
|
|
115
|
+
*
|
|
116
|
+
* @param {Object} params - The parameters for the query.
|
|
117
|
+
* @param {string} [params.employmentId] - The ID of the employment to fetch time off balance for.
|
|
118
|
+
* @returns {UseQueryResult<any, unknown>} - The result of the query, including the time off balance.
|
|
119
|
+
*
|
|
120
|
+
*/
|
|
121
|
+
declare const useTimeOffLeavePoliciesSummaryQuery: ({ employmentId, }: {
|
|
122
|
+
employmentId?: string;
|
|
123
|
+
}) => _tanstack_react_query.UseQueryResult<ListLeavePoliciesSummaryResponse | undefined, Error>;
|
|
124
|
+
|
|
125
|
+
type PaidTimeOffRenderProps = {
|
|
126
|
+
/**
|
|
127
|
+
* The query result for the leave policies summary.
|
|
128
|
+
* @see {@link useTimeOffLeavePoliciesSummaryQuery}
|
|
129
|
+
*/
|
|
130
|
+
leavePoliciesSummaryQuery: UseQueryResult<ListLeavePoliciesSummaryResponse | undefined, Error>;
|
|
131
|
+
/**
|
|
132
|
+
* The formatted proposed termination date.
|
|
133
|
+
*/
|
|
134
|
+
formattedProposedTerminationDate: string;
|
|
135
|
+
/**
|
|
136
|
+
* The name of the employee.
|
|
137
|
+
*/
|
|
138
|
+
employeeName: string;
|
|
139
|
+
/**
|
|
140
|
+
* The proposed termination date.
|
|
141
|
+
*/
|
|
142
|
+
proposedTerminationDate: string;
|
|
143
|
+
/**
|
|
144
|
+
* The function to open the details drawer.
|
|
145
|
+
*/
|
|
146
|
+
onOpenChange: () => void;
|
|
147
|
+
/**
|
|
148
|
+
* Whether the details drawer is open.
|
|
149
|
+
*/
|
|
150
|
+
open: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* The query result for the paid time off breakdown.
|
|
153
|
+
* @see {@link usePaidTimeoffBreakdownQuery}
|
|
154
|
+
*/
|
|
155
|
+
timeoffQuery: UseQueryResult<PaidTimeoffBreakdownResponse | undefined, Error>;
|
|
156
|
+
/**
|
|
157
|
+
* The query result for the booked time off before and after termination.
|
|
158
|
+
* @see {@link useBookedTimeoffBeforeAndAfterTerminationQuery}
|
|
159
|
+
*/
|
|
160
|
+
bookedTimeBeforeAndAfterTerminationQuery: UseQueryResult<BookedTimeoffBeforeDateResponse | undefined, Error>;
|
|
161
|
+
/**
|
|
162
|
+
* The summary data for the paid time off.
|
|
163
|
+
* @see {@link useSummaryTimeOffDataQuery}
|
|
164
|
+
*/
|
|
165
|
+
summaryData: {
|
|
166
|
+
data: SummaryTimeOffDataResponse;
|
|
167
|
+
isLoading: boolean;
|
|
168
|
+
isError: boolean;
|
|
169
|
+
error: Error | null;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
type PaidTimeOffContainerProps = {
|
|
173
|
+
employmentId: string;
|
|
174
|
+
proposedTerminationDate: string;
|
|
175
|
+
employeeName: string;
|
|
176
|
+
render: (props: PaidTimeOffRenderProps) => React.ReactNode;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
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 };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { O as OffboardingResponse, P as PostCreateOffboardingError, $ as TerminationDetailsParams } from './types.gen-
|
|
1
|
+
import { O as OffboardingResponse, P as PostCreateOffboardingError, $ as TerminationDetailsParams } from './types.gen-BMxrLsCq.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-DaNL3KJH.js';
|
|
4
4
|
import * as _remoteoss_json_schema_form from '@remoteoss/json-schema-form';
|
|
5
5
|
import { $TSFixMe } from '@remoteoss/json-schema-form';
|
|
6
6
|
import { Step } from './flows/useStepState.js';
|
|
7
7
|
import { StepTerminationKeys } from './flows/Termination/utils.js';
|
|
8
8
|
import { TerminationBack } from './flows/Termination/TerminationBack.js';
|
|
9
9
|
import { TerminationSubmit } from './flows/Termination/TerminationSubmit.js';
|
|
10
|
-
import { TimeOff } from './flows/Termination/TimeOff.js';
|
|
11
10
|
import { JSFModify } from './flows/types.js';
|
|
12
11
|
|
|
13
12
|
type AdditionalDetailsFormProps = {
|
|
@@ -145,7 +144,6 @@ type TerminationRenderProps = {
|
|
|
145
144
|
* The components used in the termination flow.
|
|
146
145
|
* This includes different steps, submit button, back button and timeoff.
|
|
147
146
|
* @see {@link TerminationSubmit}
|
|
148
|
-
* @see {@link TimeOff}
|
|
149
147
|
* @see {@link TerminationBack}
|
|
150
148
|
* @see {@link EmployeeCommunicationForm}
|
|
151
149
|
* @see {@link TerminationDetailsForm}
|
|
@@ -154,7 +152,6 @@ type TerminationRenderProps = {
|
|
|
154
152
|
*/
|
|
155
153
|
components: {
|
|
156
154
|
SubmitButton: typeof TerminationSubmit;
|
|
157
|
-
TimeOff: typeof TimeOff;
|
|
158
155
|
Back: typeof TerminationBack;
|
|
159
156
|
EmployeeComunicationStep: typeof EmployeeCommunicationForm;
|
|
160
157
|
TerminationDetailsStep: typeof TerminationDetailsForm;
|
|
@@ -806,6 +806,14 @@ type LeavePolicySummary = {
|
|
|
806
806
|
* The balance is the entitlement minus the taken timeoff (i.e 10 entitlement - 3 taken = 7 balance)
|
|
807
807
|
*/
|
|
808
808
|
balance: UnlimitedDaysandHoursResponse | LimitedDaysandHoursResponse;
|
|
809
|
+
/**
|
|
810
|
+
* Includes all upcoming requested time off.
|
|
811
|
+
*/
|
|
812
|
+
booked: {
|
|
813
|
+
days: number;
|
|
814
|
+
hours: number;
|
|
815
|
+
type: 'limited';
|
|
816
|
+
};
|
|
809
817
|
/**
|
|
810
818
|
* The current entitlement is the accrued time entitled for the employee plus any other extra entitlements (such as carryover).
|
|
811
819
|
*/
|
|
@@ -980,7 +988,7 @@ type Company = {
|
|
|
980
988
|
/**
|
|
981
989
|
* Fields can vary depending on the country. Please, check the required fields structure using the [Show form schema endpoint](#operation/get_show_form_country).
|
|
982
990
|
* Use the desired country and `address_details` as the form name for the placeholders.
|
|
983
|
-
* The response complies with the [JSON Schema](https://remote.com/
|
|
991
|
+
* The response complies with the [JSON Schema](https://developer.remote.com/docs/how-json-schemas-work) specification.
|
|
984
992
|
*
|
|
985
993
|
*/
|
|
986
994
|
address_details: {
|
|
@@ -989,7 +997,7 @@ type Company = {
|
|
|
989
997
|
/**
|
|
990
998
|
* Fields can vary depending on the country. Please, check the required fields structure using the [Show form schema endpoint](#operation/get_show_form_country).
|
|
991
999
|
* Use the desired country and `bank_account_details` as the form name for the placeholders.
|
|
992
|
-
* The response complies with the [JSON Schema](https://remote.com/
|
|
1000
|
+
* The response complies with the [JSON Schema](https://developer.remote.com/docs/how-json-schemas-work) specification.
|
|
993
1001
|
*
|
|
994
1002
|
*/
|
|
995
1003
|
bank_account_details?: {
|
|
@@ -1581,4 +1589,4 @@ type PostSignContractDocumentErrors = {
|
|
|
1581
1589
|
};
|
|
1582
1590
|
type PostSignContractDocumentError = PostSignContractDocumentErrors[keyof PostSignContractDocumentErrors];
|
|
1583
1591
|
|
|
1584
|
-
export type { TerminationDetailsParams as $, EmploymentResponse as A, PatchUpdateEmployment2Error as B, CreateOffboardingParams as C, EmploymentFullParams as D, EmploymentShowResponse as E, File as F, PutUpdateBenefitOfferError as G, MagicLinkResponse as H, UnprocessableEntityResponse as I, MagicLinkParams as J, ConvertCurrencyResponse as K,
|
|
1592
|
+
export type { TerminationDetailsParams as $, EmploymentResponse as A, PatchUpdateEmployment2Error as B, CreateOffboardingParams as C, EmploymentFullParams as D, EmploymentShowResponse as E, File as F, PutUpdateBenefitOfferError as G, MagicLinkResponse as H, UnprocessableEntityResponse as I, MagicLinkParams as J, ConvertCurrencyResponse as K, PostConvertRawCurrencyConverterError as L, MinimalRegion as M, ConvertCurrencyParams as N, OffboardingResponse as O, PostCreateOffboardingError as P, PostCreateContractEligibilityError as Q, CreateContractEligibilityParams as R, SuccessResponse as S, ListTimeoffResponse as T, UnifiedEmploymentUpsertBenefitOffersRequest as U, ValidationError as V, TimeoffStatus as W, TimeoffType as X, ListLeavePoliciesSummaryResponse as Y, Currency as Z, HelpCenterArticle 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, Employment as j, CostCalculatorEstimateResponse as k, PostCreateEstimationError as l, CostCalculatorEstimatePdfResponse as m, PostCreateEstimationPdfError as n, CostCalculatorEstimateParams as o, CostCalculatorEstimateCsvResponse as p, PostCreateEstimationCsvError as q, MinimalCountry as r, EmploymentTermType as s, CostCalculatorEmployment as t, EmploymentCreationResponse as u, Company as v, PostInviteEmploymentInvitationError as w, PostCreateRiskReserveError as x, PostCreateEmployment2Error as y, EmploymentCreateParams as z };
|
package/package.json
CHANGED
package/dist/chunk-2UAG6WDW.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk-4T6PRR6R.js";import{a as e}from"./chunk-GC23RRCI.js";import{a as i}from"./chunk-XSHHMBMT.js";import{a as o}from"./chunk-N6G4VZXF.js";var p={employee_communication:o,termination_details:e,paid_time_off:m,additional_information:i};export{p as a};
|
|
2
|
-
//# sourceMappingURL=chunk-2UAG6WDW.js.map
|