@akinon/projectzero 1.69.0-rc.8 → 1.70.0

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,22 +1,8 @@
1
1
  # @akinon/projectzero
2
2
 
3
- ## 1.69.0-rc.8
3
+ ## 1.70.0
4
4
 
5
- ## 1.69.0-rc.7
6
-
7
- ## 1.69.0-rc.6
8
-
9
- ## 1.69.0-rc.5
10
-
11
- ## 1.69.0-rc.4
12
-
13
- ## 1.69.0-rc.3
14
-
15
- ## 1.69.0-rc.2
16
-
17
- ## 1.69.0-rc.1
18
-
19
- ## 1.69.0-rc.0
5
+ ## 1.69.0
20
6
 
21
7
  ## 1.68.0
22
8
 
@@ -65,5 +65,3 @@ next.config.wizardcopy.js
65
65
 
66
66
  certificates
67
67
  public/locales/*/index.json
68
-
69
- certificates
@@ -1,221 +1,60 @@
1
1
  # projectzeronext
2
2
 
3
- ## 1.69.0-rc.8
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies [3010514]
8
- - @akinon/next@1.69.0-rc.8
9
- - @akinon/pz-akifast@1.69.0-rc.8
10
- - @akinon/pz-b2b@1.69.0-rc.8
11
- - @akinon/pz-basket-gift-pack@1.69.0-rc.8
12
- - @akinon/pz-bkm@1.69.0-rc.8
13
- - @akinon/pz-checkout-gift-pack@1.69.0-rc.8
14
- - @akinon/pz-click-collect@1.69.0-rc.8
15
- - @akinon/pz-credit-payment@1.69.0-rc.8
16
- - @akinon/pz-gpay@1.69.0-rc.8
17
- - @akinon/pz-masterpass@1.69.0-rc.8
18
- - @akinon/pz-one-click-checkout@1.69.0-rc.8
19
- - @akinon/pz-otp@1.69.0-rc.8
20
- - @akinon/pz-pay-on-delivery@1.69.0-rc.8
21
- - @akinon/pz-saved-card@1.69.0-rc.8
22
- - @akinon/pz-tabby-extension@1.69.0-rc.8
23
-
24
- ## 1.69.0-rc.7
25
-
26
- ### Patch Changes
27
-
28
- - Updated dependencies [3bfa12a]
29
- - @akinon/next@1.69.0-rc.7
30
- - @akinon/pz-akifast@1.69.0-rc.7
31
- - @akinon/pz-b2b@1.69.0-rc.7
32
- - @akinon/pz-basket-gift-pack@1.69.0-rc.7
33
- - @akinon/pz-bkm@1.69.0-rc.7
34
- - @akinon/pz-checkout-gift-pack@1.69.0-rc.7
35
- - @akinon/pz-click-collect@1.69.0-rc.7
36
- - @akinon/pz-credit-payment@1.69.0-rc.7
37
- - @akinon/pz-gpay@1.69.0-rc.7
38
- - @akinon/pz-masterpass@1.69.0-rc.7
39
- - @akinon/pz-one-click-checkout@1.69.0-rc.7
40
- - @akinon/pz-otp@1.69.0-rc.7
41
- - @akinon/pz-pay-on-delivery@1.69.0-rc.7
42
- - @akinon/pz-saved-card@1.69.0-rc.7
43
- - @akinon/pz-tabby-extension@1.69.0-rc.7
44
-
45
- ## 1.69.0-rc.6
3
+ ## 1.70.0
46
4
 
47
5
  ### Minor Changes
48
6
 
49
- - 4d3deb4: ZERO-2935: sentry 8 upgrade
50
- - 063da74: ZERO-3010: Remove pz-iyzico-saved-card package
51
- - cbdb0c8: ZERO-3010: Move pretty url page into project
52
- - 80c869b: ZERO-3010: Remove savedCardMiddleware from redux middlewares
7
+ - f046f8e: ZERO-2575: update version for react-number-format
53
8
 
54
9
  ### Patch Changes
55
10
 
56
- - Updated dependencies [4d3deb4]
57
- - Updated dependencies [063da74]
58
- - Updated dependencies [72da021]
59
- - Updated dependencies [5632a99]
60
- - Updated dependencies [cbdb0c8]
61
- - Updated dependencies [80c869b]
62
- - @akinon/next@1.69.0-rc.6
63
- - @akinon/pz-akifast@1.69.0-rc.6
64
- - @akinon/pz-b2b@1.69.0-rc.6
65
- - @akinon/pz-basket-gift-pack@1.69.0-rc.6
66
- - @akinon/pz-bkm@1.69.0-rc.6
67
- - @akinon/pz-checkout-gift-pack@1.69.0-rc.6
68
- - @akinon/pz-click-collect@1.69.0-rc.6
69
- - @akinon/pz-credit-payment@1.69.0-rc.6
70
- - @akinon/pz-gpay@1.69.0-rc.6
71
- - @akinon/pz-masterpass@1.69.0-rc.6
72
- - @akinon/pz-one-click-checkout@1.69.0-rc.6
73
- - @akinon/pz-otp@1.69.0-rc.6
74
- - @akinon/pz-pay-on-delivery@1.69.0-rc.6
75
- - @akinon/pz-saved-card@1.69.0-rc.6
76
- - @akinon/pz-tabby-extension@1.69.0-rc.6
77
-
78
- ## 1.69.0-rc.5
11
+ - Updated dependencies [f046f8e]
12
+ - @akinon/next@1.70.0
13
+ - @akinon/pz-akifast@1.70.0
14
+ - @akinon/pz-b2b@1.70.0
15
+ - @akinon/pz-basket-gift-pack@1.70.0
16
+ - @akinon/pz-bkm@1.70.0
17
+ - @akinon/pz-checkout-gift-pack@1.70.0
18
+ - @akinon/pz-click-collect@1.70.0
19
+ - @akinon/pz-credit-payment@1.70.0
20
+ - @akinon/pz-gpay@1.70.0
21
+ - @akinon/pz-masterpass@1.70.0
22
+ - @akinon/pz-one-click-checkout@1.70.0
23
+ - @akinon/pz-otp@1.70.0
24
+ - @akinon/pz-pay-on-delivery@1.70.0
25
+ - @akinon/pz-saved-card@1.70.0
26
+ - @akinon/pz-tabby-extension@1.70.0
79
27
 
80
- ### Minor Changes
81
-
82
- - 80c869b: ZERO-3010: Remove savedCardMiddleware from redux middlewares
83
-
84
- ### Patch Changes
85
-
86
- - Updated dependencies [80c869b]
87
- - @akinon/next@1.69.0-rc.5
88
- - @akinon/pz-akifast@1.69.0-rc.5
89
- - @akinon/pz-b2b@1.69.0-rc.5
90
- - @akinon/pz-basket-gift-pack@1.69.0-rc.5
91
- - @akinon/pz-bkm@1.69.0-rc.5
92
- - @akinon/pz-checkout-gift-pack@1.69.0-rc.5
93
- - @akinon/pz-click-collect@1.69.0-rc.5
94
- - @akinon/pz-credit-payment@1.69.0-rc.5
95
- - @akinon/pz-gpay@1.69.0-rc.5
96
- - @akinon/pz-masterpass@1.69.0-rc.5
97
- - @akinon/pz-one-click-checkout@1.69.0-rc.5
98
- - @akinon/pz-otp@1.69.0-rc.5
99
- - @akinon/pz-pay-on-delivery@1.69.0-rc.5
100
- - @akinon/pz-saved-card@1.69.0-rc.5
101
- - @akinon/pz-tabby-extension@1.69.0-rc.5
102
-
103
- ## 1.69.0-rc.4
28
+ ## 1.69.0
104
29
 
105
30
  ### Minor Changes
106
31
 
107
32
  - 063da74: ZERO-3010: Remove pz-iyzico-saved-card package
108
-
109
- ### Patch Changes
110
-
111
- - Updated dependencies [063da74]
112
- - @akinon/next@1.69.0-rc.4
113
- - @akinon/pz-akifast@1.69.0-rc.4
114
- - @akinon/pz-b2b@1.69.0-rc.4
115
- - @akinon/pz-basket-gift-pack@1.69.0-rc.4
116
- - @akinon/pz-bkm@1.69.0-rc.4
117
- - @akinon/pz-checkout-gift-pack@1.69.0-rc.4
118
- - @akinon/pz-click-collect@1.69.0-rc.4
119
- - @akinon/pz-credit-payment@1.69.0-rc.4
120
- - @akinon/pz-gpay@1.69.0-rc.4
121
- - @akinon/pz-masterpass@1.69.0-rc.4
122
- - @akinon/pz-one-click-checkout@1.69.0-rc.4
123
- - @akinon/pz-otp@1.69.0-rc.4
124
- - @akinon/pz-pay-on-delivery@1.69.0-rc.4
125
- - @akinon/pz-saved-card@1.69.0-rc.4
126
- - @akinon/pz-tabby-extension@1.69.0-rc.4
127
-
128
- ## 1.69.0-rc.3
129
-
130
- ### Minor Changes
131
-
132
33
  - cbdb0c8: ZERO-3010: Move pretty url page into project
34
+ - 80c869b: ZERO-3010: Remove savedCardMiddleware from redux middlewares
133
35
 
134
36
  ### Patch Changes
135
37
 
136
- - Updated dependencies [cbdb0c8]
137
- - @akinon/next@1.69.0-rc.3
138
- - @akinon/pz-akifast@1.69.0-rc.3
139
- - @akinon/pz-b2b@1.69.0-rc.3
140
- - @akinon/pz-basket-gift-pack@1.69.0-rc.3
141
- - @akinon/pz-bkm@1.69.0-rc.3
142
- - @akinon/pz-checkout-gift-pack@1.69.0-rc.3
143
- - @akinon/pz-click-collect@1.69.0-rc.3
144
- - @akinon/pz-credit-payment@1.69.0-rc.3
145
- - @akinon/pz-gpay@1.69.0-rc.3
146
- - @akinon/pz-masterpass@1.69.0-rc.3
147
- - @akinon/pz-one-click-checkout@1.69.0-rc.3
148
- - @akinon/pz-otp@1.69.0-rc.3
149
- - @akinon/pz-pay-on-delivery@1.69.0-rc.3
150
- - @akinon/pz-saved-card@1.69.0-rc.3
151
- - @akinon/pz-tabby-extension@1.69.0-rc.3
152
-
153
- ## 1.69.0-rc.2
154
-
155
- ### Patch Changes
156
-
157
- - Updated dependencies [5632a99]
158
- - @akinon/next@1.69.0-rc.2
159
- - @akinon/pz-akifast@1.69.0-rc.2
160
- - @akinon/pz-b2b@1.69.0-rc.2
161
- - @akinon/pz-basket-gift-pack@1.69.0-rc.2
162
- - @akinon/pz-bkm@1.69.0-rc.2
163
- - @akinon/pz-checkout-gift-pack@1.69.0-rc.2
164
- - @akinon/pz-click-collect@1.69.0-rc.2
165
- - @akinon/pz-credit-payment@1.69.0-rc.2
166
- - @akinon/pz-gpay@1.69.0-rc.2
167
- - @akinon/pz-masterpass@1.69.0-rc.2
168
- - @akinon/pz-one-click-checkout@1.69.0-rc.2
169
- - @akinon/pz-otp@1.69.0-rc.2
170
- - @akinon/pz-pay-on-delivery@1.69.0-rc.2
171
- - @akinon/pz-saved-card@1.69.0-rc.2
172
- - @akinon/pz-tabby-extension@1.69.0-rc.2
173
-
174
- ## 1.69.0-rc.1
175
-
176
- ### Patch Changes
177
-
38
+ - Updated dependencies [063da74]
178
39
  - Updated dependencies [72da021]
179
- - @akinon/next@1.69.0-rc.1
180
- - @akinon/pz-akifast@1.69.0-rc.1
181
- - @akinon/pz-b2b@1.69.0-rc.1
182
- - @akinon/pz-basket-gift-pack@1.69.0-rc.1
183
- - @akinon/pz-bkm@1.69.0-rc.1
184
- - @akinon/pz-checkout-gift-pack@1.69.0-rc.1
185
- - @akinon/pz-click-collect@1.69.0-rc.1
186
- - @akinon/pz-credit-payment@1.69.0-rc.1
187
- - @akinon/pz-gpay@1.69.0-rc.1
188
- - @akinon/pz-masterpass@1.69.0-rc.1
189
- - @akinon/pz-one-click-checkout@1.69.0-rc.1
190
- - @akinon/pz-otp@1.69.0-rc.1
191
- - @akinon/pz-pay-on-delivery@1.69.0-rc.1
192
- - @akinon/pz-saved-card@1.69.0-rc.1
193
- - @akinon/pz-tabby-extension@1.69.0-rc.1
194
-
195
- ## 1.69.0-rc.0
196
-
197
- ### Minor Changes
198
-
199
- - 4d3deb4: ZERO-2935: sentry 8 upgrade
200
-
201
- ### Patch Changes
202
-
203
- - Updated dependencies [4d3deb4]
204
- - @akinon/next@1.69.0-rc.0
205
- - @akinon/pz-akifast@1.69.0-rc.0
206
- - @akinon/pz-b2b@1.69.0-rc.0
207
- - @akinon/pz-basket-gift-pack@1.69.0-rc.0
208
- - @akinon/pz-bkm@1.69.0-rc.0
209
- - @akinon/pz-checkout-gift-pack@1.69.0-rc.0
210
- - @akinon/pz-click-collect@1.69.0-rc.0
211
- - @akinon/pz-credit-payment@1.69.0-rc.0
212
- - @akinon/pz-gpay@1.69.0-rc.0
213
- - @akinon/pz-masterpass@1.69.0-rc.0
214
- - @akinon/pz-one-click-checkout@1.69.0-rc.0
215
- - @akinon/pz-otp@1.69.0-rc.0
216
- - @akinon/pz-pay-on-delivery@1.69.0-rc.0
217
- - @akinon/pz-saved-card@1.69.0-rc.0
218
- - @akinon/pz-tabby-extension@1.69.0-rc.0
40
+ - Updated dependencies [5632a99]
41
+ - Updated dependencies [cbdb0c8]
42
+ - Updated dependencies [80c869b]
43
+ - @akinon/next@1.69.0
44
+ - @akinon/pz-akifast@1.69.0
45
+ - @akinon/pz-b2b@1.69.0
46
+ - @akinon/pz-basket-gift-pack@1.69.0
47
+ - @akinon/pz-bkm@1.69.0
48
+ - @akinon/pz-checkout-gift-pack@1.69.0
49
+ - @akinon/pz-click-collect@1.69.0
50
+ - @akinon/pz-credit-payment@1.69.0
51
+ - @akinon/pz-gpay@1.69.0
52
+ - @akinon/pz-masterpass@1.69.0
53
+ - @akinon/pz-one-click-checkout@1.69.0
54
+ - @akinon/pz-otp@1.69.0
55
+ - @akinon/pz-pay-on-delivery@1.69.0
56
+ - @akinon/pz-saved-card@1.69.0
57
+ - @akinon/pz-tabby-extension@1.69.0
219
58
 
220
59
  ## 1.68.0
221
60
 
@@ -26,8 +26,7 @@ const withPwaConfig = withPWA({
26
26
 
27
27
  const sentryConfig = {
28
28
  silent: true,
29
- dryRun: !process.env.SENTRY_DSN,
30
- hideSourceMaps: true
29
+ dryRun: !process.env.SENTRY_DSN
31
30
  };
32
31
 
33
32
  const enhancedConfig = withPzConfig(nextConfig);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.69.0-rc.8",
3
+ "version": "1.70.0",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -22,25 +22,25 @@
22
22
  "prestart": "pz-prestart"
23
23
  },
24
24
  "dependencies": {
25
- "@akinon/next": "1.69.0-rc.8",
26
- "@akinon/pz-akifast": "1.69.0-rc.8",
27
- "@akinon/pz-b2b": "1.69.0-rc.8",
28
- "@akinon/pz-basket-gift-pack": "1.69.0-rc.8",
29
- "@akinon/pz-bkm": "1.69.0-rc.8",
30
- "@akinon/pz-checkout-gift-pack": "1.69.0-rc.8",
31
- "@akinon/pz-click-collect": "1.69.0-rc.8",
32
- "@akinon/pz-credit-payment": "1.69.0-rc.8",
33
- "@akinon/pz-gpay": "1.69.0-rc.8",
34
- "@akinon/pz-masterpass": "1.69.0-rc.8",
35
- "@akinon/pz-one-click-checkout": "1.69.0-rc.8",
36
- "@akinon/pz-otp": "1.69.0-rc.8",
37
- "@akinon/pz-pay-on-delivery": "1.69.0-rc.8",
38
- "@akinon/pz-saved-card": "1.69.0-rc.8",
39
- "@akinon/pz-tabby-extension": "1.69.0-rc.8",
25
+ "@akinon/next": "1.70.0",
26
+ "@akinon/pz-akifast": "1.70.0",
27
+ "@akinon/pz-b2b": "1.70.0",
28
+ "@akinon/pz-basket-gift-pack": "1.70.0",
29
+ "@akinon/pz-bkm": "1.70.0",
30
+ "@akinon/pz-checkout-gift-pack": "1.70.0",
31
+ "@akinon/pz-click-collect": "1.70.0",
32
+ "@akinon/pz-credit-payment": "1.70.0",
33
+ "@akinon/pz-gpay": "1.70.0",
34
+ "@akinon/pz-masterpass": "1.70.0",
35
+ "@akinon/pz-one-click-checkout": "1.70.0",
36
+ "@akinon/pz-otp": "1.70.0",
37
+ "@akinon/pz-pay-on-delivery": "1.70.0",
38
+ "@akinon/pz-saved-card": "1.70.0",
39
+ "@akinon/pz-tabby-extension": "1.70.0",
40
40
  "@hookform/resolvers": "2.9.0",
41
41
  "@next/third-parties": "14.1.0",
42
42
  "@react-google-maps/api": "2.17.1",
43
- "@sentry/nextjs": "8.35.0",
43
+ "@sentry/nextjs": "7.116.0",
44
44
  "dayjs": "1.11.5",
45
45
  "lossless-json": "2.0.5",
46
46
  "next": "14.2.5",
@@ -60,7 +60,7 @@
60
60
  "yup": "0.32.11"
61
61
  },
62
62
  "devDependencies": {
63
- "@akinon/eslint-plugin-projectzero": "1.69.0-rc.8",
63
+ "@akinon/eslint-plugin-projectzero": "1.70.0",
64
64
  "@semantic-release/changelog": "6.0.2",
65
65
  "@semantic-release/exec": "6.0.3",
66
66
  "@semantic-release/git": "10.0.1",
@@ -87,7 +87,7 @@
87
87
  "jest-css-modules-transform": "4.3.0",
88
88
  "lint-staged": "13.1.0",
89
89
  "prettier": "2.6.2",
90
- "react-number-format": "4.9.3",
90
+ "react-number-format": "5.3.4",
91
91
  "sass": "1.49.9",
92
92
  "semantic-release": "19.0.5",
93
93
  "server-only": "0.0.1",
@@ -0,0 +1,3 @@
1
+ import { initSentry } from '@akinon/next/sentry';
2
+
3
+ initSentry('Edge');
@@ -0,0 +1,3 @@
1
+ import { initSentry } from '@akinon/next/sentry';
2
+
3
+ initSentry('Server');
@@ -247,6 +247,7 @@ export default function Page() {
247
247
  className="mb-5"
248
248
  required
249
249
  />
250
+
250
251
  <div className="mb-5">
251
252
  <Input
252
253
  label={t('account.my_profile.form.phone.placeholder')}
@@ -1,17 +1,28 @@
1
1
  import clsx from 'clsx';
2
- import { forwardRef, FocusEvent, useState } from 'react';
2
+ import { forwardRef, FocusEvent, useState, Ref } from 'react';
3
3
  import { Controller } from 'react-hook-form';
4
- import NumberFormat, { NumberFormatProps } from 'react-number-format';
4
+ import { PatternFormat, PatternFormatProps } from 'react-number-format';
5
5
  import { InputProps } from '@theme/components/types';
6
6
  import { twMerge } from 'tailwind-merge';
7
7
 
8
+ const PatternFormatWithRef = forwardRef(
9
+ (props: PatternFormatProps, ref: Ref<HTMLInputElement>) => {
10
+ return <PatternFormat {...props} getInputRef={ref} />;
11
+ }
12
+ );
13
+ PatternFormatWithRef.displayName = 'PatternFormatWithRef';
14
+
8
15
  export const Input = forwardRef<
9
16
  HTMLInputElement,
10
17
  InputProps &
11
18
  Pick<
12
- NumberFormatProps,
13
- 'format' | 'mask' | 'allowEmptyFormatting' | 'onValueChange'
14
- >
19
+ PatternFormatProps,
20
+ 'mask' | 'allowEmptyFormatting' | 'onValueChange'
21
+ > & {
22
+ format?: string;
23
+ defaultValue?: string;
24
+ type?: string;
25
+ }
15
26
  >((props, ref) => {
16
27
  const [focused, setFocused] = useState(false);
17
28
  const [hasValue, setHasValue] = useState(false);
@@ -36,6 +47,7 @@ export const Input = forwardRef<
36
47
  ),
37
48
  props.className
38
49
  );
50
+
39
51
  const inputProps: any = {
40
52
  id,
41
53
  ref,
@@ -78,14 +90,14 @@ export const Input = forwardRef<
78
90
  <Controller
79
91
  name={props.name ?? ''}
80
92
  control={props.control}
81
- defaultValue={false}
82
93
  render={({ field }) => (
83
- <NumberFormat
94
+ <PatternFormatWithRef
84
95
  format={format}
85
96
  mask={mask ?? ''}
86
97
  {...rest}
87
98
  {...field}
88
99
  {...inputProps}
100
+ type={props.type as 'text' | 'password' | 'tel'}
89
101
  />
90
102
  )}
91
103
  />
@@ -1,11 +1,11 @@
1
1
  import { useMemo } from 'react';
2
- import NumberFormat, { NumberFormatProps } from 'react-number-format';
2
+ import { NumericFormat, NumericFormatProps } from 'react-number-format';
3
3
  import { getCurrency } from '@akinon/next/utils';
4
4
  import { useLocalization } from '@akinon/next/hooks';
5
5
  import { PriceProps } from '../types';
6
6
  import Settings from '@theme/settings';
7
7
 
8
- export const Price = (props: NumberFormatProps & PriceProps) => {
8
+ export const Price = (props: NumericFormatProps & PriceProps) => {
9
9
  const {
10
10
  value,
11
11
  currencyCode,
@@ -59,7 +59,7 @@ export const Price = (props: NumberFormatProps & PriceProps) => {
59
59
  ).decimalScale;
60
60
 
61
61
  return (
62
- <NumberFormat
62
+ <NumericFormat
63
63
  value={displayValue}
64
64
  displayType={displayType}
65
65
  thousandSeparator={thousandSeparator}
@@ -68,7 +68,6 @@ export const Price = (props: NumberFormatProps & PriceProps) => {
68
68
  fixedDecimalScale={fixedDecimalScale}
69
69
  prefix={!useCurrencyAfterPrice ? currency : undefined}
70
70
  suffix={useCurrencyAfterPrice ? currency : undefined}
71
- isNumericString={true}
72
71
  {...rest}
73
72
  />
74
73
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.69.0-rc.8",
3
+ "version": "1.70.0",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {