@graphcommerce/address-fields-nl 9.0.1-canary.0 → 9.0.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,40 +1,16 @@
1
1
  # @graphcommerce/address-fields-nl
2
2
 
3
- ## 9.0.1-canary.0
3
+ ## 9.0.1
4
4
 
5
- ## 9.0.0
6
-
7
- ## 9.0.0-canary.118
8
-
9
- ## 9.0.0-canary.117
10
-
11
- ## 9.0.0-canary.116
12
-
13
- ## 9.0.0-canary.115
14
-
15
- ## 9.0.0-canary.114
16
-
17
- ## 9.0.0-canary.113
18
-
19
- ## 9.0.0-canary.112
20
-
21
- ## 9.0.0-canary.111
22
-
23
- ## 9.0.0-canary.110
24
-
25
- ## 9.0.0-canary.109
26
-
27
- ## 9.0.0-canary.108
28
-
29
- ## 9.0.0-canary.107
5
+ ### Patch Changes
30
6
 
31
- ## 9.0.0-canary.106
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))
32
8
 
33
- ## 9.0.0-canary.105
9
+ ## 9.0.1-canary.1
34
10
 
35
- ## 9.0.0-canary.104
11
+ ### Patch Changes
36
12
 
37
- ## 9.0.0-canary.103
13
+ - [#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))
38
14
 
39
15
  ## 8.0.5
40
16
 
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.1-canary.0",
5
+ "version": "9.0.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.1-canary.0",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.1-canary.0",
17
- "@graphcommerce/graphql": "^9.0.1-canary.0",
18
- "@graphcommerce/magento-customer": "^9.0.1-canary.0",
19
- "@graphcommerce/magento-store": "^9.0.1-canary.0",
20
- "@graphcommerce/next-ui": "^9.0.1-canary.0",
21
- "@graphcommerce/prettier-config-pwa": "^9.0.1-canary.0",
22
- "@graphcommerce/typescript-config-pwa": "^9.0.1-canary.0",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.1",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.1",
17
+ "@graphcommerce/graphql": "^9.0.1",
18
+ "@graphcommerce/magento-customer": "^9.0.1",
19
+ "@graphcommerce/magento-store": "^9.0.1",
20
+ "@graphcommerce/next-ui": "^9.0.1",
21
+ "@graphcommerce/prettier-config-pwa": "^9.0.1",
22
+ "@graphcommerce/typescript-config-pwa": "^9.0.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
  )