Skip to content

Commit

Permalink
fix: add missing properties
Browse files Browse the repository at this point in the history
  • Loading branch information
christianmat committed Jan 8, 2025
1 parent 3306f73 commit e93bd5c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
18 changes: 10 additions & 8 deletions packages/react/src/hooks/useStepHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,18 @@ export function useStepHandlers(step: FlowStep, { onPrimary, onSecondary }: Step
step == null
? {}
: {
'flow.back': () => step.flow.back(),
'flow.complete': () => step.flow.complete(),
'flow.forward': () => step.flow.forward(),
'flow.back': (properties?: PropertyPayload) => step.flow.back(properties),
'flow.complete': (properties?: PropertyPayload) => step.flow.complete(properties),
'flow.forward': (properties?: PropertyPayload) => step.flow.forward(properties),
'flow.restart': () => step.flow.restart(),
'flow.skip': () => step.flow.skip(),
'flow.start': () => step.flow.start(),
'step.complete': () => step.complete(),
'step.skip': () => step.skip(),
'flow.skip': (properties?: PropertyPayload) => step.flow.skip(properties),
'flow.start': (properties?: PropertyPayload) => step.flow.start(properties),
'step.complete': (properties?: PropertyPayload, optimistic?: boolean) =>
step.complete(properties, optimistic),
'step.skip': (properties?: PropertyPayload, optimistic?: boolean) =>
step.skip(properties, optimistic),
'step.reset': () => step.reset(),
'step.start': () => step.start(),
'step.start': (properties?: PropertyPayload) => step.start(properties),
},
[step]
)
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3856,6 +3856,7 @@ __metadata:
"@changesets/cli": "npm:^2.22.0"
eslint: "npm:^7.32.0"
eslint-plugin-react-hooks: "npm:^5.1.0"
husky: "npm:^9.1.7"
prettier: "npm:^2.5.1"
rimraf: "npm:^5.0.0"
turbo: "npm:^1.10.14"
Expand Down Expand Up @@ -13609,6 +13610,15 @@ __metadata:
languageName: node
linkType: hard

"husky@npm:^9.1.7":
version: 9.1.7
resolution: "husky@npm:9.1.7"
bin:
husky: bin.js
checksum: 10/c2412753f15695db369634ba70f50f5c0b7e5cb13b673d0826c411ec1bd9ddef08c1dad89ea154f57da2521d2605bd64308af748749b27d08c5f563bcd89975f
languageName: node
linkType: hard

"iconv-lite@npm:0.4.24, iconv-lite@npm:^0.4.24":
version: 0.4.24
resolution: "iconv-lite@npm:0.4.24"
Expand Down

0 comments on commit e93bd5c

Please sign in to comment.