@graphcommerce/react-hook-form 2.102.8 → 2.102.12

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.
@@ -16,22 +16,6 @@ describe('useFormGqlMutation', () => {
16
16
  register('address.street.hoi')
17
17
  })
18
18
 
19
- const address = {
20
- cartId: '12',
21
- customerNote: 'hoi',
22
- address: {
23
- firstname: 'Paul',
24
- lastname: 'Hachmang',
25
- company: 'Reach Digital',
26
- country_code: 'NL',
27
- street: ['Noordplein 85', '3e etage'],
28
- city: 'Roelofarendsveen',
29
- telephone: '0654716972',
30
- postcode: '2371DJ',
31
- save_in_address_book: 'true',
32
- },
33
- }
34
-
35
19
  it('extracts required fields correctly', () => {
36
20
  expect(required).toEqual({ address: true, cartId: true, customerNote: false })
37
21
  })
@@ -2,22 +2,24 @@ import { TestShippingAddressFormDocument } from '../__mocks__/TestShippingAddres
2
2
  import { handlerFactory } from '../src/useGqlDocumentHandler'
3
3
 
4
4
  describe('useGqlDocumentHandler', () => {
5
- const { required, defaultVariables: defaults, encode } = handlerFactory(
6
- TestShippingAddressFormDocument,
7
- )
5
+ const {
6
+ required,
7
+ defaultVariables: defaults,
8
+ encode,
9
+ } = handlerFactory(TestShippingAddressFormDocument)
8
10
 
9
11
  const address = {
10
12
  cartId: '12',
11
13
  customerNote: 'hoi',
12
14
  address: {
13
- firstname: 'Paul',
14
- lastname: 'Hachmang',
15
- company: 'Reach Digital',
15
+ firstname: 'Firstname',
16
+ lastname: 'Lastname',
17
+ company: 'GraphComemrce',
16
18
  country_code: 'NL',
17
- street: ['Noordplein 85', '3e etage'],
18
- city: 'Roelofarendsveen',
19
- telephone: '0654716972',
20
- postcode: '2371DJ',
19
+ street: ['Streetline 1', 'Streetline 2'],
20
+ city: 'City',
21
+ telephone: '0987654321',
22
+ postcode: '1234AB',
21
23
  save_in_address_book: 'true',
22
24
  },
23
25
  }
@@ -35,14 +37,14 @@ describe('useGqlDocumentHandler', () => {
35
37
  cartId: '12',
36
38
  customerNote: 'hoi',
37
39
  address: {
38
- firstname: 'Paul',
39
- lastname: 'Hachmang',
40
- company: 'Reach Digital',
40
+ firstname: 'Firstname',
41
+ lastname: 'Lastname',
42
+ company: 'GraphComemrce',
41
43
  country_code: 'NL',
42
- street: ['Noordplein 85', '3e etage'],
43
- city: 'Roelofarendsveen',
44
- telephone: '0654716972',
45
- postcode: '2371DJ',
44
+ street: ['Streetline 1', 'Streetline 2'],
45
+ city: 'City',
46
+ telephone: '0987654321',
47
+ postcode: '1234AB',
46
48
  save_in_address_book: true,
47
49
  },
48
50
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/react-hook-form",
3
- "version": "2.102.8",
3
+ "version": "2.102.12",
4
4
  "sideEffects": false,
5
5
  "engines": {
6
6
  "node": "14.x"
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@graphcommerce/browserslist-config-pwa": "^3.0.2",
20
- "@graphcommerce/eslint-config-pwa": "^3.0.7",
20
+ "@graphcommerce/eslint-config-pwa": "^3.1.1",
21
21
  "@graphcommerce/prettier-config-pwa": "^3.0.3",
22
22
  "@graphcommerce/typescript-config-pwa": "^3.1.1",
23
23
  "@playwright/test": "^1.15.2"
@@ -29,7 +29,7 @@
29
29
  "react": "^17.0.2",
30
30
  "react-dom": "^17.0.2",
31
31
  "react-hook-form": "7.16.2",
32
- "type-fest": "^2.5.0"
32
+ "type-fest": "^2.5.1"
33
33
  },
34
- "gitHead": "5e31b902147a68bfce513451e4e10d1c74d23823"
34
+ "gitHead": "a71eb508e3ddf42e5705e23bc8016f6f08969c74"
35
35
  }