@akinon/projectzero 1.37.0-rc.4 → 1.37.0-rc.6

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,9 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.37.0-rc.6
4
+
5
+ ## 1.37.0-rc.5
6
+
3
7
  ## 1.37.0-rc.4
4
8
 
5
9
  ## 1.37.0-rc.3
@@ -1,9 +1,40 @@
1
1
  # projectzeronext
2
2
 
3
+ ## 1.37.0-rc.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [1bc5e92]
8
+ - @akinon/next@1.37.0-rc.6
9
+ - @akinon/pz-b2b@1.37.0-rc.6
10
+ - @akinon/pz-gpay@1.37.0-rc.6
11
+ - @akinon/pz-masterpass@1.37.0-rc.6
12
+ - @akinon/pz-one-click-checkout@1.37.0-rc.6
13
+ - @akinon/pz-otp@1.37.0-rc.6
14
+ - @akinon/pz-pay-on-delivery@1.37.0-rc.6
15
+
16
+ ## 1.37.0-rc.5
17
+
18
+ ### Minor Changes
19
+
20
+ - c53ea3e: ZERO-2609: Reset additional form fields when selectedFormType is not company
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [c53ea3e]
25
+ - @akinon/next@1.37.0-rc.5
26
+ - @akinon/pz-b2b@1.37.0-rc.5
27
+ - @akinon/pz-gpay@1.37.0-rc.5
28
+ - @akinon/pz-masterpass@1.37.0-rc.5
29
+ - @akinon/pz-one-click-checkout@1.37.0-rc.5
30
+ - @akinon/pz-otp@1.37.0-rc.5
31
+ - @akinon/pz-pay-on-delivery@1.37.0-rc.5
32
+
3
33
  ## 1.37.0-rc.4
4
34
 
5
35
  ### Patch Changes
6
36
 
37
+ - Updated dependencies [b5d5c5c]
7
38
  - Updated dependencies [05b1fe1]
8
39
  - @akinon/next@1.37.0-rc.4
9
40
  - @akinon/pz-b2b@1.37.0-rc.4
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.37.0-rc.4",
3
+ "version": "1.37.0-rc.6",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -22,13 +22,13 @@
22
22
  "prestart": "pz-prestart"
23
23
  },
24
24
  "dependencies": {
25
- "@akinon/next": "1.37.0-rc.4",
26
- "@akinon/pz-b2b": "1.37.0-rc.4",
27
- "@akinon/pz-gpay": "1.37.0-rc.4",
28
- "@akinon/pz-masterpass": "1.37.0-rc.4",
29
- "@akinon/pz-one-click-checkout": "1.37.0-rc.4",
30
- "@akinon/pz-otp": "1.37.0-rc.4",
31
- "@akinon/pz-pay-on-delivery": "1.37.0-rc.4",
25
+ "@akinon/next": "1.37.0-rc.6",
26
+ "@akinon/pz-b2b": "1.37.0-rc.6",
27
+ "@akinon/pz-gpay": "1.37.0-rc.6",
28
+ "@akinon/pz-masterpass": "1.37.0-rc.6",
29
+ "@akinon/pz-one-click-checkout": "1.37.0-rc.6",
30
+ "@akinon/pz-otp": "1.37.0-rc.6",
31
+ "@akinon/pz-pay-on-delivery": "1.37.0-rc.6",
32
32
  "@hookform/resolvers": "2.9.0",
33
33
  "@next/third-parties": "14.1.0",
34
34
  "@react-google-maps/api": "2.17.1",
@@ -53,7 +53,7 @@
53
53
  "yup": "0.32.11"
54
54
  },
55
55
  "devDependencies": {
56
- "@akinon/eslint-plugin-projectzero": "1.37.0-rc.4",
56
+ "@akinon/eslint-plugin-projectzero": "1.37.0-rc.6",
57
57
  "@semantic-release/changelog": "6.0.2",
58
58
  "@semantic-release/exec": "6.0.3",
59
59
  "@semantic-release/git": "10.0.1",
@@ -183,12 +183,22 @@ export const AddressForm = (props: Props) => {
183
183
  if (data && country) {
184
184
  reset({
185
185
  ...data,
186
- is_corporate:
187
- String(data.is_corporate) === AddressType.company ? 'true' : 'false' // TODO: Fix this! This hack for radio buttons can't be set to boolean value
186
+ is_corporate: String(data.is_corporate)
188
187
  });
189
188
  }
190
189
  }, [data, country, reset]);
191
190
 
191
+ useEffect(() => {
192
+ if (selectedFormType !== AddressType.company) {
193
+ reset({
194
+ ...watch(),
195
+ company_name: '',
196
+ tax_office: '',
197
+ tax_no: ''
198
+ });
199
+ }
200
+ }, [selectedFormType, reset, watch]);
201
+
192
202
  return (
193
203
  <form
194
204
  onSubmit={handleSubmit(onSubmit)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.37.0-rc.4",
3
+ "version": "1.37.0-rc.6",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {