@graphcommerce/address-fields-nl 9.0.0 → 9.0.1-canary.1

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,38 +1,10 @@
1
1
  # @graphcommerce/address-fields-nl
2
2
 
3
- ## 9.0.0
3
+ ## 9.0.1-canary.1
4
4
 
5
- ## 9.0.0-canary.118
6
-
7
- ## 9.0.0-canary.117
8
-
9
- ## 9.0.0-canary.116
10
-
11
- ## 9.0.0-canary.115
12
-
13
- ## 9.0.0-canary.114
14
-
15
- ## 9.0.0-canary.113
16
-
17
- ## 9.0.0-canary.112
18
-
19
- ## 9.0.0-canary.111
20
-
21
- ## 9.0.0-canary.110
22
-
23
- ## 9.0.0-canary.109
24
-
25
- ## 9.0.0-canary.108
26
-
27
- ## 9.0.0-canary.107
28
-
29
- ## 9.0.0-canary.106
30
-
31
- ## 9.0.0-canary.105
32
-
33
- ## 9.0.0-canary.104
5
+ ### Patch Changes
34
6
 
35
- ## 9.0.0-canary.103
7
+ - [#2459](https://github.com/graphcommerce-org/graphcommerce/pull/2459) [`298cb68`](https://github.com/graphcommerce-org/graphcommerce/commit/298cb683a34368c9799af7d7201e30ef5b681953) - Refactor AddressFields component to spread props correctly for child components. ([@carlocarels90](https://github.com/carlocarels90))
36
8
 
37
9
  ## 8.0.5
38
10
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/address-fields-nl",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0",
5
+ "version": "9.0.1-canary.1",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,14 +12,14 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^9.0.0",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.0",
17
- "@graphcommerce/graphql": "^9.0.0",
18
- "@graphcommerce/magento-customer": "^9.0.0",
19
- "@graphcommerce/magento-store": "^9.0.0",
20
- "@graphcommerce/next-ui": "^9.0.0",
21
- "@graphcommerce/prettier-config-pwa": "^9.0.0",
22
- "@graphcommerce/typescript-config-pwa": "^9.0.0",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.1-canary.1",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.1-canary.1",
17
+ "@graphcommerce/graphql": "^9.0.1-canary.1",
18
+ "@graphcommerce/magento-customer": "^9.0.1-canary.1",
19
+ "@graphcommerce/magento-store": "^9.0.1-canary.1",
20
+ "@graphcommerce/next-ui": "^9.0.1-canary.1",
21
+ "@graphcommerce/prettier-config-pwa": "^9.0.1-canary.1",
22
+ "@graphcommerce/typescript-config-pwa": "^9.0.1-canary.1",
23
23
  "@lingui/core": "^4.2.1",
24
24
  "@lingui/macro": "^4.2.1",
25
25
  "@lingui/react": "^4.2.1",
@@ -23,7 +23,7 @@ export function AddressFields<
23
23
  TFieldValues extends FieldValues = FieldValues,
24
24
  TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>,
25
25
  >(props: PluginProps<AddressFieldsProps<TFieldValues, TName>>) {
26
- const { Prev } = props
26
+ const { Prev, ...rest } = props
27
27
  const { control, name } = useAddressFieldsForm(props)
28
28
  const country = useWatch({ control, name: name.countryCode })
29
29
 
@@ -31,20 +31,20 @@ export function AddressFields<
31
31
  <>
32
32
  {country === 'NL' ? (
33
33
  <>
34
- <AddressCountryRegion {...props} />
34
+ <AddressCountryRegion {...rest} />
35
35
  <FormRow>
36
- <AddressPostcode {...props} />
37
- <AddressHousenumber {...props} />
38
- <AddressAddition {...props} />
36
+ <AddressPostcode {...rest} />
37
+ <AddressHousenumber {...rest} />
38
+ <AddressAddition {...rest} />
39
39
  </FormRow>
40
40
  <FormRow>
41
- <AddressStreet {...props} />
42
- <AddressCity {...props} />
41
+ <AddressStreet {...rest} />
42
+ <AddressCity {...rest} />
43
43
  </FormRow>
44
- <PostcodeNLAutoFill {...props} />
44
+ <PostcodeNLAutoFill {...rest} />
45
45
  </>
46
46
  ) : (
47
- <Prev countryFirst {...props} />
47
+ <Prev countryFirst {...rest} />
48
48
  )}
49
49
  </>
50
50
  )