@graphcommerce/react-hook-form 10.0.1-canary.2 → 10.0.1-canary.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 10.0.1-canary.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2574](https://github.com/graphcommerce-org/graphcommerce/pull/2574) [`100cd16`](https://github.com/graphcommerce-org/graphcommerce/commit/100cd1601ade194cc1838598411921cf119126f4) - Forward Step when using assign for the order ([@paales](https://github.com/paales))
8
+
3
9
  ## 10.0.1-canary.2
4
10
 
5
11
  ## 10.0.1-canary.1
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/react-hook-form",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "10.0.1-canary.2",
5
+ "version": "10.0.1-canary.3",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -13,9 +13,9 @@
13
13
  },
14
14
  "peerDependencies": {
15
15
  "@apollo/client": "*",
16
- "@graphcommerce/eslint-config-pwa": "^10.0.1-canary.2",
17
- "@graphcommerce/prettier-config-pwa": "^10.0.1-canary.2",
18
- "@graphcommerce/typescript-config-pwa": "^10.0.1-canary.2",
16
+ "@graphcommerce/eslint-config-pwa": "^10.0.1-canary.3",
17
+ "@graphcommerce/prettier-config-pwa": "^10.0.1-canary.3",
18
+ "@graphcommerce/typescript-config-pwa": "^10.0.1-canary.3",
19
19
  "@mui/utils": "^7.0.0",
20
20
  "graphql": "^16.6.0",
21
21
  "react": "^19.2.0",
@@ -60,7 +60,7 @@ export type RegisterAction = {
60
60
  } & Pick<UseFormComposeOptions, 'key' | 'step'>
61
61
 
62
62
  /** Assign the current state to the form */
63
- export type AssignAction = { type: 'ASSIGN' } & Omit<UseFormComposeOptions, 'step'>
63
+ export type AssignAction = { type: 'ASSIGN' } & UseFormComposeOptions
64
64
 
65
65
  /** Cleanup the form if the useFromCompose hook changes */
66
66
  export type UnregisterAction = {
@@ -18,8 +18,8 @@ export function useFormCompose<TFieldValues extends FieldValues = FieldValues>(
18
18
  }, [dispatch, key, step])
19
19
 
20
20
  useEffect(() => {
21
- dispatch({ type: 'ASSIGN', key, form: form as MinimalUseFormReturn, submit })
22
- }, [dispatch, fields, form, key, submit])
21
+ dispatch({ type: 'ASSIGN', key, form: form as MinimalUseFormReturn, submit, step })
22
+ }, [dispatch, fields, form, key, step, submit])
23
23
 
24
24
  const error = isFormGqlOperation(form) ? form.error : undefined
25
25