@@ -40,16 +40,18 @@ export function useStepHandlers(step: FlowStep, { onPrimary, onSecondary }: Step
4040 step == null
4141 ? { }
4242 : {
43- 'flow.back' : ( ) => step . flow . back ( ) ,
44- 'flow.complete' : ( ) => step . flow . complete ( ) ,
45- 'flow.forward' : ( ) => step . flow . forward ( ) ,
43+ 'flow.back' : ( properties ?: PropertyPayload ) => step . flow . back ( properties ) ,
44+ 'flow.complete' : ( properties ?: PropertyPayload ) => step . flow . complete ( properties ) ,
45+ 'flow.forward' : ( properties ?: PropertyPayload ) => step . flow . forward ( properties ) ,
4646 'flow.restart' : ( ) => step . flow . restart ( ) ,
47- 'flow.skip' : ( ) => step . flow . skip ( ) ,
48- 'flow.start' : ( ) => step . flow . start ( ) ,
49- 'step.complete' : ( ) => step . complete ( ) ,
50- 'step.skip' : ( ) => step . skip ( ) ,
47+ 'flow.skip' : ( properties ?: PropertyPayload ) => step . flow . skip ( properties ) ,
48+ 'flow.start' : ( properties ?: PropertyPayload ) => step . flow . start ( properties ) ,
49+ 'step.complete' : ( properties ?: PropertyPayload , optimistic ?: boolean ) =>
50+ step . complete ( properties , optimistic ) ,
51+ 'step.skip' : ( properties ?: PropertyPayload , optimistic ?: boolean ) =>
52+ step . skip ( properties , optimistic ) ,
5153 'step.reset' : ( ) => step . reset ( ) ,
52- 'step.start' : ( ) => step . start ( ) ,
54+ 'step.start' : ( properties ?: PropertyPayload ) => step . start ( properties ) ,
5355 } ,
5456 [ step ]
5557 )
0 commit comments