@graphcommerce/react-hook-form 9.0.0-canary.103 → 9.0.0-canary.104
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
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": "9.0.0-canary.
|
|
5
|
+
"version": "9.0.0-canary.104",
|
|
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": "^3",
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
|
17
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
18
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.104",
|
|
17
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.104",
|
|
18
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.104",
|
|
19
19
|
"@mui/utils": "^5",
|
|
20
20
|
"@testing-library/react": "^14.3.1",
|
|
21
21
|
"graphql": "^16.6.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable react/no-unused-prop-types */
|
|
2
|
-
import { cloneDeep } from '@apollo/client/utilities'
|
|
3
2
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
4
3
|
import { useMemoObject } from '@graphcommerce/next-ui/hooks/useMemoObject'
|
|
4
|
+
import { cloneDeep } from '@apollo/client/utilities'
|
|
5
5
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
6
6
|
import { debounce } from '@mui/material'
|
|
7
7
|
import React, { useCallback, useEffect, useRef, useState } from 'react'
|
package/src/useFormGql.tsx
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
ApolloError,
|
|
3
3
|
FetchResult,
|
|
4
|
+
LazyQueryHookOptions,
|
|
4
5
|
LazyQueryResultTuple,
|
|
6
|
+
MutationHookOptions,
|
|
5
7
|
MutationTuple,
|
|
6
8
|
TypedDocumentNode,
|
|
7
|
-
MutationHookOptions,
|
|
8
|
-
LazyQueryHookOptions,
|
|
9
9
|
} from '@apollo/client'
|
|
10
10
|
import { isApolloError } from '@apollo/client'
|
|
11
11
|
import { getOperationName } from '@apollo/client/utilities'
|
package/src/useFormPersist.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable react/no-unused-prop-types */
|
|
2
2
|
import { useEffect } from 'react'
|
|
3
|
-
import type {
|
|
4
|
-
import {
|
|
3
|
+
import type { FieldPath, FieldValues, Path, PathValue, UseFormReturn } from 'react-hook-form'
|
|
4
|
+
import { useFormState, useWatch } from 'react-hook-form'
|
|
5
5
|
|
|
6
6
|
export type UseFormPersistOptions<
|
|
7
7
|
TFieldValues extends FieldValues = FieldValues,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { TypedDocumentNode } from '@apollo/client'
|
|
2
2
|
import {
|
|
3
3
|
type DefinitionNode,
|
|
4
|
-
|
|
5
|
-
type
|
|
4
|
+
Kind,
|
|
5
|
+
type ListValueNode,
|
|
6
6
|
type NullValueNode,
|
|
7
7
|
type ObjectValueNode,
|
|
8
|
-
type
|
|
9
|
-
type VariableNode,
|
|
10
|
-
type VariableDefinitionNode,
|
|
11
|
-
type TypeNode,
|
|
8
|
+
type OperationDefinitionNode,
|
|
12
9
|
type OperationTypeNode,
|
|
13
|
-
|
|
10
|
+
type TypeNode,
|
|
11
|
+
type ValueNode,
|
|
12
|
+
type VariableDefinitionNode,
|
|
13
|
+
type VariableNode,
|
|
14
14
|
} from 'graphql'
|
|
15
15
|
import { useMemo } from 'react'
|
|
16
16
|
import type { FieldValues } from 'react-hook-form'
|