@akinon/projectzero 1.126.0-rc.3 → 1.126.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,18 +1,10 @@
1
1
  # @akinon/projectzero
2
2
 
3
- ## 1.126.0-rc.3
3
+ ## 1.126.0
4
4
 
5
- ## 1.126.0-rc.2
5
+ ## 1.125.2
6
6
 
7
- ## 1.126.0-rc.1
8
-
9
- ## 1.126.0-rc.0
10
-
11
- ### Minor Changes
12
-
13
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
14
- - d99a6a7d: ZERO-3457_1: Fixed the settings prop and made sure everything is customizable.
15
- - e18836b2: ZERO-4160: Restore scope in Sentry addon configuration in akinon.json
7
+ ## 1.125.1
16
8
 
17
9
  ## 1.125.0
18
10
 
@@ -7,7 +7,6 @@ NEXT_PUBLIC_URL=http://localhost:3000
7
7
  SERVICE_BACKEND_URL=https://02fde10fee4440269e695aa10707dfaf.lb.akinoncloud.com
8
8
  SITEMAP_S3_BUCKET_NAME=0fb534
9
9
  NEXT_PUBLIC_VIRTUAL_TRY_ON_API_URL=https://d2a26507c7094f359aba349b96a96881.lb.akinoncloud.com
10
- NEXT_PUBLIC_ENABLE_IMAGE_SEARCH=true
11
10
 
12
11
  # LOG_LEVEL_DEV=debug # For more details, please refer to the Logging documentation.
13
12
 
@@ -1,162 +1,100 @@
1
1
  # projectzeronext
2
2
 
3
- ## 1.126.0-rc.3
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies [324f97d5]
8
- - Updated dependencies [4ac7b2a1]
9
- - @akinon/next@1.126.0-rc.3
10
- - @akinon/pz-virtual-try-on@1.126.0-rc.3
11
- - @akinon/pz-akifast@1.126.0-rc.3
12
- - @akinon/pz-apple-pay@1.126.0-rc.3
13
- - @akinon/pz-b2b@1.126.0-rc.3
14
- - @akinon/pz-basket-gift-pack@1.126.0-rc.3
15
- - @akinon/pz-bkm@1.126.0-rc.3
16
- - @akinon/pz-checkout-gift-pack@1.126.0-rc.3
17
- - @akinon/pz-click-collect@1.126.0-rc.3
18
- - @akinon/pz-credit-payment@1.126.0-rc.3
19
- - @akinon/pz-cybersource-uc@1.126.0-rc.3
20
- - @akinon/pz-flow-payment@1.126.0-rc.3
21
- - @akinon/pz-google-pay@1.126.0-rc.3
22
- - @akinon/pz-gpay@1.126.0-rc.3
23
- - @akinon/pz-haso@1.126.0-rc.3
24
- - @akinon/pz-hepsipay@1.126.0-rc.3
25
- - @akinon/pz-masterpass@1.126.0-rc.3
26
- - @akinon/pz-masterpass-rest@1.126.0-rc.3
27
- - @akinon/pz-multi-basket@1.126.0-rc.3
28
- - @akinon/pz-one-click-checkout@1.126.0-rc.3
29
- - @akinon/pz-otp@1.126.0-rc.3
30
- - @akinon/pz-pay-on-delivery@1.126.0-rc.3
31
- - @akinon/pz-saved-card@1.126.0-rc.3
32
- - @akinon/pz-similar-products@1.126.0-rc.3
33
- - @akinon/pz-tabby-extension@1.126.0-rc.3
34
- - @akinon/pz-tamara-extension@1.126.0-rc.3
35
-
36
- ## 1.126.0-rc.2
37
-
38
- ### Patch Changes
39
-
40
- - Updated dependencies [eba125b2]
41
- - Updated dependencies [823a4449]
42
- - Updated dependencies [00b9f488]
43
- - Updated dependencies [0df6bc1f]
44
- - Updated dependencies [4998a963]
45
- - @akinon/pz-checkout-gift-pack@1.126.0-rc.2
46
- - @akinon/pz-one-click-checkout@1.126.0-rc.2
47
- - @akinon/pz-basket-gift-pack@1.126.0-rc.2
48
- - @akinon/pz-masterpass-rest@1.126.0-rc.2
49
- - @akinon/pz-pay-on-delivery@1.126.0-rc.2
50
- - @akinon/pz-credit-payment@1.126.0-rc.2
51
- - @akinon/pz-click-collect@1.126.0-rc.2
52
- - @akinon/pz-multi-basket@1.126.0-rc.2
53
- - @akinon/pz-masterpass@1.126.0-rc.2
54
- - @akinon/pz-gpay@1.126.0-rc.2
55
- - @akinon/pz-b2b@1.126.0-rc.2
56
- - @akinon/pz-bkm@1.126.0-rc.2
57
- - @akinon/pz-otp@1.126.0-rc.2
58
- - @akinon/next@1.126.0-rc.2
59
- - @akinon/pz-virtual-try-on@1.126.0-rc.2
60
- - @akinon/pz-akifast@1.126.0-rc.2
61
- - @akinon/pz-apple-pay@1.126.0-rc.2
62
- - @akinon/pz-cybersource-uc@1.126.0-rc.2
63
- - @akinon/pz-flow-payment@1.126.0-rc.2
64
- - @akinon/pz-google-pay@1.126.0-rc.2
65
- - @akinon/pz-haso@1.126.0-rc.2
66
- - @akinon/pz-hepsipay@1.126.0-rc.2
67
- - @akinon/pz-saved-card@1.126.0-rc.2
68
- - @akinon/pz-similar-products@1.126.0-rc.2
69
- - @akinon/pz-tabby-extension@1.126.0-rc.2
70
- - @akinon/pz-tamara-extension@1.126.0-rc.2
71
-
72
- ## 1.126.0-rc.1
73
-
74
- ### Patch Changes
75
-
76
- - Updated dependencies [0cf9ea23]
77
- - @akinon/next@1.126.0-rc.1
78
- - @akinon/pz-virtual-try-on@1.126.0-rc.1
79
- - @akinon/pz-akifast@1.126.0-rc.1
80
- - @akinon/pz-apple-pay@1.126.0-rc.1
81
- - @akinon/pz-b2b@1.126.0-rc.1
82
- - @akinon/pz-basket-gift-pack@1.126.0-rc.1
83
- - @akinon/pz-bkm@1.126.0-rc.1
84
- - @akinon/pz-checkout-gift-pack@1.126.0-rc.1
85
- - @akinon/pz-click-collect@1.126.0-rc.1
86
- - @akinon/pz-credit-payment@1.126.0-rc.1
87
- - @akinon/pz-cybersource-uc@1.126.0-rc.1
88
- - @akinon/pz-flow-payment@1.126.0-rc.1
89
- - @akinon/pz-google-pay@1.126.0-rc.1
90
- - @akinon/pz-gpay@1.126.0-rc.1
91
- - @akinon/pz-haso@1.126.0-rc.1
92
- - @akinon/pz-hepsipay@1.126.0-rc.1
93
- - @akinon/pz-masterpass@1.126.0-rc.1
94
- - @akinon/pz-masterpass-rest@1.126.0-rc.1
95
- - @akinon/pz-multi-basket@1.126.0-rc.1
96
- - @akinon/pz-one-click-checkout@1.126.0-rc.1
97
- - @akinon/pz-otp@1.126.0-rc.1
98
- - @akinon/pz-pay-on-delivery@1.126.0-rc.1
99
- - @akinon/pz-saved-card@1.126.0-rc.1
100
- - @akinon/pz-similar-products@1.126.0-rc.1
101
- - @akinon/pz-tabby-extension@1.126.0-rc.1
102
- - @akinon/pz-tamara-extension@1.126.0-rc.1
103
-
104
- ## 1.126.0-rc.0
105
-
106
- ### Minor Changes
107
-
108
- - 1a8622a9: ZERO-3392: Implemented AI Search functionality and update env
109
- - b55acb76: ZERO-2577: Fix pagination bug and update usePagination hook and ensure pagination controls rendering correctly
110
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
111
- - 9f8cd3bc: ZERO-3449: AI Search Active Filters & Crop Style changes have been implemented
112
- - d99a6a7d: ZERO-3457_1: Fixed the settings prop and made sure everything is customizable.
113
- - c0228aff: ZERO-4159: Upgrade the package versions
114
- - b05c3543: ZERO-2570: Category filters routes to absolute url
115
- - e18836b2: ZERO-4160: Restore scope in Sentry addon configuration in akinon.json
116
- - c3244a31: ZERO-4013: Update runtime version to node:25-alpine in project configuration
117
-
118
- ### Patch Changes
119
-
120
- - Updated dependencies
121
- - Updated dependencies [b55acb76]
122
- - Updated dependencies [760258c1]
123
- - Updated dependencies [143be2b9]
124
- - Updated dependencies [9f8cd3bc]
125
- - Updated dependencies [bfafa3f4]
126
- - Updated dependencies [d99a6a7d]
127
- - Updated dependencies [591e345e]
128
- - Updated dependencies [4de5303c]
129
- - Updated dependencies [63a72000]
130
- - Updated dependencies [95b139dc]
131
- - Updated dependencies [c0228aff]
132
- - Updated dependencies [3909d322]
133
- - Updated dependencies [e18836b2]
134
- - @akinon/next@1.126.0-rc.0
135
- - @akinon/pz-similar-products@1.126.0-rc.0
136
- - @akinon/pz-masterpass-rest@1.126.0-rc.0
137
- - @akinon/pz-b2b@1.126.0-rc.0
138
- - @akinon/pz-virtual-try-on@1.126.0-rc.0
139
- - @akinon/pz-akifast@1.126.0-rc.0
140
- - @akinon/pz-apple-pay@1.126.0-rc.0
141
- - @akinon/pz-basket-gift-pack@1.126.0-rc.0
142
- - @akinon/pz-bkm@1.126.0-rc.0
143
- - @akinon/pz-checkout-gift-pack@1.126.0-rc.0
144
- - @akinon/pz-click-collect@1.126.0-rc.0
145
- - @akinon/pz-credit-payment@1.126.0-rc.0
146
- - @akinon/pz-cybersource-uc@1.126.0-rc.0
147
- - @akinon/pz-flow-payment@1.126.0-rc.0
148
- - @akinon/pz-google-pay@1.126.0-rc.0
149
- - @akinon/pz-gpay@1.126.0-rc.0
150
- - @akinon/pz-haso@1.126.0-rc.0
151
- - @akinon/pz-hepsipay@1.126.0-rc.0
152
- - @akinon/pz-masterpass@1.126.0-rc.0
153
- - @akinon/pz-multi-basket@1.126.0-rc.0
154
- - @akinon/pz-one-click-checkout@1.126.0-rc.0
155
- - @akinon/pz-otp@1.126.0-rc.0
156
- - @akinon/pz-pay-on-delivery@1.126.0-rc.0
157
- - @akinon/pz-saved-card@1.126.0-rc.0
158
- - @akinon/pz-tabby-extension@1.126.0-rc.0
159
- - @akinon/pz-tamara-extension@1.126.0-rc.0
3
+ ## 1.126.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [46d787e6]
8
+ - @akinon/pz-flow-payment@1.126.0
9
+ - @akinon/next@1.126.0
10
+ - @akinon/pz-akifast@1.126.0
11
+ - @akinon/pz-apple-pay@1.126.0
12
+ - @akinon/pz-b2b@1.126.0
13
+ - @akinon/pz-basket-gift-pack@1.126.0
14
+ - @akinon/pz-bkm@1.126.0
15
+ - @akinon/pz-checkout-gift-pack@1.126.0
16
+ - @akinon/pz-click-collect@1.126.0
17
+ - @akinon/pz-credit-payment@1.126.0
18
+ - @akinon/pz-cybersource-uc@1.126.0
19
+ - @akinon/pz-google-pay@1.126.0
20
+ - @akinon/pz-gpay@1.126.0
21
+ - @akinon/pz-haso@1.126.0
22
+ - @akinon/pz-hepsipay@1.126.0
23
+ - @akinon/pz-masterpass@1.126.0
24
+ - @akinon/pz-masterpass-rest@1.126.0
25
+ - @akinon/pz-multi-basket@1.126.0
26
+ - @akinon/pz-one-click-checkout@1.126.0
27
+ - @akinon/pz-otp@1.126.0
28
+ - @akinon/pz-pay-on-delivery@1.126.0
29
+ - @akinon/pz-saved-card@1.126.0
30
+ - @akinon/pz-similar-products@1.126.0
31
+ - @akinon/pz-tabby-extension@1.126.0
32
+ - @akinon/pz-tamara-extension@1.126.0
33
+ - @akinon/pz-virtual-try-on@1.126.0
34
+
35
+ ## 1.125.2
36
+
37
+ ### Patch Changes
38
+
39
+ - Updated dependencies [0220a136]
40
+ - @akinon/pz-flow-payment@1.125.2
41
+ - @akinon/next@1.125.2
42
+ - @akinon/pz-akifast@1.125.2
43
+ - @akinon/pz-apple-pay@1.125.2
44
+ - @akinon/pz-b2b@1.125.2
45
+ - @akinon/pz-basket-gift-pack@1.125.2
46
+ - @akinon/pz-bkm@1.125.2
47
+ - @akinon/pz-checkout-gift-pack@1.125.2
48
+ - @akinon/pz-click-collect@1.125.2
49
+ - @akinon/pz-credit-payment@1.125.2
50
+ - @akinon/pz-cybersource-uc@1.125.2
51
+ - @akinon/pz-google-pay@1.125.2
52
+ - @akinon/pz-gpay@1.125.2
53
+ - @akinon/pz-haso@1.125.2
54
+ - @akinon/pz-hepsipay@1.125.2
55
+ - @akinon/pz-masterpass@1.125.2
56
+ - @akinon/pz-masterpass-rest@1.125.2
57
+ - @akinon/pz-multi-basket@1.125.2
58
+ - @akinon/pz-one-click-checkout@1.125.2
59
+ - @akinon/pz-otp@1.125.2
60
+ - @akinon/pz-pay-on-delivery@1.125.2
61
+ - @akinon/pz-saved-card@1.125.2
62
+ - @akinon/pz-similar-products@1.125.2
63
+ - @akinon/pz-tabby-extension@1.125.2
64
+ - @akinon/pz-tamara-extension@1.125.2
65
+ - @akinon/pz-virtual-try-on@1.125.2
66
+
67
+ ## 1.125.1
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies [06da9a95]
72
+ - @akinon/next@1.125.1
73
+ - @akinon/pz-virtual-try-on@1.125.1
74
+ - @akinon/pz-akifast@1.125.1
75
+ - @akinon/pz-apple-pay@1.125.1
76
+ - @akinon/pz-b2b@1.125.1
77
+ - @akinon/pz-basket-gift-pack@1.125.1
78
+ - @akinon/pz-bkm@1.125.1
79
+ - @akinon/pz-checkout-gift-pack@1.125.1
80
+ - @akinon/pz-click-collect@1.125.1
81
+ - @akinon/pz-credit-payment@1.125.1
82
+ - @akinon/pz-cybersource-uc@1.125.1
83
+ - @akinon/pz-flow-payment@1.125.1
84
+ - @akinon/pz-google-pay@1.125.1
85
+ - @akinon/pz-gpay@1.125.1
86
+ - @akinon/pz-haso@1.125.1
87
+ - @akinon/pz-hepsipay@1.125.1
88
+ - @akinon/pz-masterpass@1.125.1
89
+ - @akinon/pz-masterpass-rest@1.125.1
90
+ - @akinon/pz-multi-basket@1.125.1
91
+ - @akinon/pz-one-click-checkout@1.125.1
92
+ - @akinon/pz-otp@1.125.1
93
+ - @akinon/pz-pay-on-delivery@1.125.1
94
+ - @akinon/pz-saved-card@1.125.1
95
+ - @akinon/pz-similar-products@1.125.1
96
+ - @akinon/pz-tabby-extension@1.125.1
97
+ - @akinon/pz-tamara-extension@1.125.1
160
98
 
161
99
  ## 1.125.0
162
100
 
@@ -12,30 +12,6 @@ Run `cp .env.example .env && yarn` command at project root and all dependencies
12
12
 
13
13
  - `SITEMAP_S3_BUCKET_NAME`: S3 bucket name for XML sitemaps (e.g., "0fb534"). This is required for the sitemap route to function correctly.
14
14
 
15
- ### Optional Environment Variables
16
-
17
- - `NEXT_PUBLIC_ENABLE_IMAGE_SEARCH`: Set to `true` to enable image search feature for all users. If not set or `false`, the feature will only be visible to users who have enabled it via localStorage.
18
-
19
- ## Image Search Feature
20
-
21
- The image search functionality allows users to search for similar products by uploading images or cropping existing product images.
22
-
23
- ### Feature Visibility Control
24
-
25
- The image search feature can be controlled in two ways:
26
-
27
- 1. **Environment Variable (Global)**: Set `NEXT_PUBLIC_ENABLE_IMAGE_SEARCH=true` to enable for all users
28
- 2. **localStorage (Individual Users)**: Users can enable it locally using browser developer tools
29
-
30
- ````
31
-
32
- ### Feature Locations
33
-
34
- When enabled, the image search feature appears in:
35
-
36
- - **Header Search**: Camera icon next to the search input
37
- - **Product Detail Page**: "View Similar Styles" button on product images
38
-
39
15
  ### Build
40
16
 
41
17
  To build the app, run the following command:
@@ -43,7 +19,7 @@ To build the app, run the following command:
43
19
  ```bash
44
20
  cd projectzeronext # Project root
45
21
  yarn build
46
- ````
22
+ ```
47
23
 
48
24
  ### Develop
49
25
 
@@ -13,7 +13,7 @@
13
13
  "healthcheck": "/healthz"
14
14
  }
15
15
  },
16
- "runtime": "node:25-alpine",
16
+ "runtime": "node:22-alpine",
17
17
  "addons": [
18
18
  {
19
19
  "plan": "redis"
@@ -27,12 +27,9 @@ const withPwaConfig = withPWA({
27
27
  const sentryConfig = {
28
28
  silent: true,
29
29
  dryRun: !process.env.SENTRY_DSN,
30
- org: 'akinon',
30
+ org: 'akinon'
31
31
  // project: 'enter_your_project_name_here',
32
32
  // authToken: 'enter_your_auth_token_here'
33
- sourcemaps: {
34
- deleteSourcemapsAfterUpload: true
35
- }
36
33
  };
37
34
 
38
35
  const enhancedConfig = withPzConfig(nextConfig);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.126.0-rc.3",
3
+ "version": "1.126.0",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -24,95 +24,95 @@
24
24
  "test:middleware": "jest middleware-matcher.test.ts --bail"
25
25
  },
26
26
  "dependencies": {
27
- "@akinon/next": "1.126.0-rc.3",
28
- "@akinon/pz-akifast": "1.126.0-rc.3",
29
- "@akinon/pz-apple-pay": "1.126.0-rc.3",
30
- "@akinon/pz-b2b": "1.126.0-rc.3",
31
- "@akinon/pz-basket-gift-pack": "1.126.0-rc.3",
32
- "@akinon/pz-bkm": "1.126.0-rc.3",
33
- "@akinon/pz-checkout-gift-pack": "1.126.0-rc.3",
34
- "@akinon/pz-click-collect": "1.126.0-rc.3",
35
- "@akinon/pz-credit-payment": "1.126.0-rc.3",
36
- "@akinon/pz-cybersource-uc": "1.126.0-rc.3",
37
- "@akinon/pz-flow-payment": "1.126.0-rc.3",
38
- "@akinon/pz-google-pay": "1.126.0-rc.3",
39
- "@akinon/pz-gpay": "1.126.0-rc.3",
40
- "@akinon/pz-haso": "1.126.0-rc.3",
41
- "@akinon/pz-hepsipay": "1.126.0-rc.3",
42
- "@akinon/pz-masterpass": "1.126.0-rc.3",
43
- "@akinon/pz-masterpass-rest": "1.126.0-rc.3",
44
- "@akinon/pz-multi-basket": "1.126.0-rc.3",
45
- "@akinon/pz-one-click-checkout": "1.126.0-rc.3",
46
- "@akinon/pz-otp": "1.126.0-rc.3",
47
- "@akinon/pz-pay-on-delivery": "1.126.0-rc.3",
48
- "@akinon/pz-saved-card": "1.126.0-rc.3",
49
- "@akinon/pz-similar-products": "1.126.0-rc.3",
50
- "@akinon/pz-tabby-extension": "1.126.0-rc.3",
51
- "@akinon/pz-tamara-extension": "1.126.0-rc.3",
52
- "@akinon/pz-virtual-try-on": "1.126.0-rc.3",
27
+ "@akinon/next": "1.126.0",
28
+ "@akinon/pz-akifast": "1.126.0",
29
+ "@akinon/pz-apple-pay": "1.126.0",
30
+ "@akinon/pz-b2b": "1.126.0",
31
+ "@akinon/pz-basket-gift-pack": "1.126.0",
32
+ "@akinon/pz-bkm": "1.126.0",
33
+ "@akinon/pz-checkout-gift-pack": "1.126.0",
34
+ "@akinon/pz-click-collect": "1.126.0",
35
+ "@akinon/pz-credit-payment": "1.126.0",
36
+ "@akinon/pz-cybersource-uc": "1.126.0",
37
+ "@akinon/pz-flow-payment": "1.126.0",
38
+ "@akinon/pz-google-pay": "1.126.0",
39
+ "@akinon/pz-gpay": "1.126.0",
40
+ "@akinon/pz-haso": "1.126.0",
41
+ "@akinon/pz-hepsipay": "1.126.0",
42
+ "@akinon/pz-masterpass": "1.126.0",
43
+ "@akinon/pz-masterpass-rest": "1.126.0",
44
+ "@akinon/pz-multi-basket": "1.126.0",
45
+ "@akinon/pz-one-click-checkout": "1.126.0",
46
+ "@akinon/pz-otp": "1.126.0",
47
+ "@akinon/pz-pay-on-delivery": "1.126.0",
48
+ "@akinon/pz-saved-card": "1.126.0",
49
+ "@akinon/pz-similar-products": "1.126.0",
50
+ "@akinon/pz-tabby-extension": "1.126.0",
51
+ "@akinon/pz-tamara-extension": "1.126.0",
52
+ "@akinon/pz-virtual-try-on": "1.126.0",
53
53
  "@hookform/resolvers": "2.9.0",
54
54
  "@next/third-parties": "14.1.0",
55
55
  "@react-google-maps/api": "2.17.1",
56
- "dayjs": "1.11.13",
57
- "lossless-json": "2.0.11",
58
- "next": "14.2.25",
56
+ "dayjs": "1.11.5",
57
+ "lossless-json": "2.0.5",
58
+ "next": "14.2.35",
59
59
  "next-auth": "4.24.5",
60
60
  "next-pwa": "5.6.0",
61
- "pino": "8.21.0",
61
+ "pino": "8.11.0",
62
62
  "postcss": "8.4.49",
63
- "react": "18.3.1",
64
- "react-dom": "18.3.1",
63
+ "react": "18.2.0",
64
+ "react-dom": "18.2.0",
65
65
  "react-google-recaptcha": "2.1.0",
66
66
  "react-hook-form": "7.31.3",
67
67
  "react-intersection-observer": "9.4.0",
68
- "react-multi-carousel": "2.8.5",
69
- "react-string-replace": "1.1.1",
70
- "start-server-and-test": "2.0.8",
71
- "tailwind-merge": "1.14.0",
68
+ "react-multi-carousel": "2.8.4",
69
+ "react-string-replace": "1.1.0",
70
+ "start-server-and-test": "2.0.3",
71
+ "tailwind-merge": "1.8.0",
72
72
  "yup": "0.32.11"
73
73
  },
74
74
  "devDependencies": {
75
- "@akinon/eslint-plugin-projectzero": "1.126.0-rc.3",
75
+ "@akinon/eslint-plugin-projectzero": "1.126.0",
76
76
  "@semantic-release/changelog": "6.0.2",
77
77
  "@semantic-release/exec": "6.0.3",
78
78
  "@semantic-release/git": "10.0.1",
79
- "@tailwindcss/typography": "0.5.15",
80
- "@testing-library/dom": "8.20.1",
81
- "@testing-library/jest-dom": "5.17.0",
82
- "@testing-library/react": "13.4.0",
83
- "@testing-library/user-event": "14.5.2",
79
+ "@tailwindcss/typography": "0.5.10",
80
+ "@testing-library/dom": "8.13.0",
81
+ "@testing-library/jest-dom": "5.16.4",
82
+ "@testing-library/react": "13.1.1",
83
+ "@testing-library/user-event": "14.1.1",
84
84
  "@types/googlemaps": "3.43.3",
85
85
  "@types/jest": "29.5.14",
86
- "@types/react": "18.3.18",
87
- "@types/react-dom": "18.3.5",
88
- "@typescript-eslint/eslint-plugin": "6.21.0",
89
- "@typescript-eslint/parser": "6.21.0",
86
+ "@types/react": "18.2.27",
87
+ "@types/react-dom": "18.2.12",
88
+ "@typescript-eslint/eslint-plugin": "6.7.4",
89
+ "@typescript-eslint/parser": "6.7.4",
90
90
  "autoprefixer": "10.4.20",
91
91
  "client-only": "0.0.1",
92
- "clsx": "1.2.1",
92
+ "clsx": "1.1.1",
93
93
  "currency-symbol-map": "5.1.0",
94
- "eslint": "8.57.1",
95
- "eslint-config-next": "14.2.25",
96
- "eslint-config-prettier": "8.10.0",
97
- "husky": "8.0.3",
94
+ "eslint": "8.14.0",
95
+ "eslint-config-next": "14.2.3",
96
+ "eslint-config-prettier": "8.5.0",
97
+ "husky": "8.0.0",
98
98
  "jest": "29.7.0",
99
- "jest-css-modules-transform": "4.4.2",
99
+ "jest-css-modules-transform": "4.3.0",
100
100
  "jest-environment-jsdom": "29.7.0",
101
- "lint-staged": "13.3.0",
102
- "prettier": "2.8.8",
101
+ "lint-staged": "13.1.0",
102
+ "prettier": "2.6.2",
103
103
  "react-number-format": "5.3.4",
104
- "sass": "1.83.0",
104
+ "sass": "1.49.9",
105
105
  "semantic-release": "19.0.5",
106
106
  "server-only": "0.0.1",
107
- "stylelint": "14.16.1",
107
+ "stylelint": "14.6.0",
108
108
  "stylelint-config-sass-guidelines": "9.0.1",
109
109
  "stylelint-config-standard": "25.0.0",
110
- "stylelint-scss": "4.7.0",
110
+ "stylelint-scss": "4.2.0",
111
111
  "stylelint-selector-bem-pattern": "2.1.1",
112
112
  "tailwindcss": "3.4.17",
113
- "ts-jest": "29.4.6",
114
- "ts-node": "10.9.2",
115
- "typescript": "5.7.3"
113
+ "ts-jest": "29.2.6",
114
+ "ts-node": "10.7.0",
115
+ "typescript": "5.2.2"
116
116
  },
117
117
  "resolutions": {
118
118
  "**/postcss": "8.4.31"
@@ -252,7 +252,7 @@ export default function Page() {
252
252
  <Input
253
253
  label={t('account.my_profile.form.phone.placeholder')}
254
254
  type="tel"
255
- format={user_phone_format.replace(/9/g, '#')}
255
+ format={user_phone_format.replace(/\9/g, '#')}
256
256
  mask="_"
257
257
  allowEmptyFormatting={true}
258
258
  control={control}
@@ -290,7 +290,7 @@ export default function Page() {
290
290
  </div>
291
291
  {errors && (
292
292
  <div className="mt-1 text-sm text-error">
293
- {(errors.birthdate as { message?: string })?.message}
293
+ {errors.birthdate?.message}
294
294
  </div>
295
295
  )}
296
296
  </div>
@@ -1,3 +1 @@
1
- export * from './use-contract';
2
- export * from './use-fav-button';
3
1
  export * from './use-add-product-to-basket';
@@ -14,8 +14,7 @@ export const config = {
14
14
  '/((?!api|_next|[\\w-\\/*]+\\.\\w+).*)',
15
15
  '/(.*sitemap\\.xml)',
16
16
  '/(.+\\.)(html|htm|aspx|asp|php)',
17
- '/(.*orders\\/checkout-with-token.*)',
18
- '/(.*orders\\/post-checkout.*)'
17
+ '/(.*orders\\/checkout-with-token.*)'
19
18
  ]
20
19
  };
21
20
 
@@ -19,7 +19,6 @@ module.exports = [
19
19
  'pz-hepsipay',
20
20
  'pz-flow-payment',
21
21
  'pz-virtual-try-on',
22
- 'pz-similar-products',
23
22
  'pz-cybersource-uc',
24
23
  'pz-hepsipay',
25
24
  'pz-masterpass-rest',
@@ -83,7 +83,7 @@ const GuestLogin = () => {
83
83
  className="h-14"
84
84
  name="phone_number"
85
85
  type="tel"
86
- format={user_phone_format.replace(/9/g, '#')}
86
+ format={user_phone_format.replace(/\9/g, '#')}
87
87
  mask="_"
88
88
  control={control}
89
89
  {...register('phone_number')}
@@ -4,7 +4,8 @@ import { useEffect, useRef, useState } from 'react';
4
4
  import { useAppDispatch, useAppSelector } from '@akinon/next/redux/hooks';
5
5
  import { closeSearch } from '@akinon/next/redux/reducers/header';
6
6
  import clsx from 'clsx';
7
- import { Icon, Input } from '@theme/components';
7
+
8
+ import { Icon } from '@theme/components';
8
9
  import Results from './results';
9
10
  import { ROUTES } from '@theme/routes';
10
11
  import { useLocalization, useRouter } from '@akinon/next/hooks';
@@ -41,14 +42,6 @@ export default function Search() {
41
42
  };
42
43
  }, [isSearchOpen, dispatch]);
43
44
 
44
- const handleSearchTextChange = (e: React.ChangeEvent<HTMLInputElement>) => {
45
- setSearchText(e.target.value);
46
- };
47
-
48
- const handleCloseSearch = () => {
49
- dispatch(closeSearch());
50
- };
51
-
52
45
  return (
53
46
  <>
54
47
  <div
@@ -74,9 +67,9 @@ export default function Search() {
74
67
  {t('common.search.results_for')}
75
68
  </span>
76
69
  <div className="flex items-center">
77
- <Input
70
+ <input
78
71
  value={searchText}
79
- onChange={handleSearchTextChange}
72
+ onChange={(e) => setSearchText(e.target.value)}
80
73
  onKeyDown={(e) => {
81
74
  if (e.key === 'Enter' && searchText.trim() !== '') {
82
75
  router.push(`${ROUTES.LIST}/?search_text=${searchText}`);
@@ -98,12 +91,11 @@ export default function Search() {
98
91
  <Icon
99
92
  name="close"
100
93
  size={14}
101
- onClick={handleCloseSearch}
94
+ onClick={() => dispatch(closeSearch())}
102
95
  className="cursor-pointer"
103
96
  />
104
97
  </div>
105
98
  </div>
106
-
107
99
  <Results searchText={searchText} />
108
100
  </div>
109
101
  </div>
@@ -36,100 +36,53 @@ export default function ProductInfoSlider({ product }: ProductSliderItem) {
36
36
  carouselRef.current?.next();
37
37
  };
38
38
 
39
- const handleThumbnailClick = (index: number) => {
39
+ const handleThumbnailClick = (index) => {
40
40
  setActiveIndex(index);
41
41
  carouselRef.current?.goToSlide(index);
42
42
  };
43
43
 
44
44
  return (
45
- <>
46
- <div className="lg:grid lg:grid-cols-6">
47
- <div className="lg:col-span-1">
48
- <div className="flex flex-col items-center justify-center md:mr-[6px]">
49
- <button
50
- onClick={goToPrev}
51
- className={twMerge(
52
- 'hidden justify-center p-2 mb-3 border border-gray-100 rounded-full cursor-pointer lg:block',
53
- [activeIndex === 0 && 'cursor-not-allowed opacity-45']
54
- )}
55
- disabled={activeIndex === 0}
56
- >
57
- <Icon name="chevron-up" size={15} className="fill-[#000000]" />
58
- </button>
59
- <div className="hidden flex-col items-center overflow-scroll w-[80px] max-h-[620px] lg:block">
60
- {product?.productimage_set?.map((item, index) => (
61
- <Image
62
- key={index}
63
- src={item.image}
64
- alt={`Thumbnail ${index}`}
65
- width={80}
66
- height={128}
67
- aspectRatio={80 / 128}
68
- className={twMerge('cursor-pointer', [
69
- activeIndex === index && 'border-2 border-primary'
70
- ])}
71
- onClick={() => handleThumbnailClick(index)}
72
- />
73
- ))}
74
- </div>
75
- <button
76
- onClick={goToNext}
77
- className={twMerge(
78
- 'hidden justify-center p-2 mt-3 border border-gray-100 rounded-full cursor-pointer lg:block',
79
- [
80
- activeIndex === product.productimage_set.length - 1 &&
81
- 'cursor-not-allowed opacity-45'
82
- ]
83
- )}
84
- disabled={activeIndex === product.productimage_set.length - 1}
85
- >
86
- <Icon name="chevron-down" size={15} className="fill-[#000000]" />
87
- </button>
88
- </div>
89
- </div>
90
-
91
- <div className="relative lg:col-span-5">
92
- <FavButton className="absolute right-8 top-6 z-[20] sm:hidden" />
93
-
94
- <PluginModule
95
- component={Component.ProductImageSearchFeature}
96
- props={{
97
- product,
98
- activeIndex,
99
- showResetButton: true
100
- }}
101
- />
102
-
103
- <CarouselCore
104
- responsive={{
105
- all: {
106
- breakpoint: { max: 5000, min: 0 },
107
- items: 1
108
- }
109
- }}
110
- arrows={false}
111
- swipeable={true}
112
- ref={carouselRef}
113
- afterChange={(previousSlide, { currentSlide }) => {
114
- setActiveIndex(currentSlide);
115
- }}
116
- containerAspectRatio={{ mobile: 520 / 798, desktop: 484 / 726 }}
45
+ <div className="lg:grid lg:grid-cols-6">
46
+ <div className="lg:col-span-1">
47
+ <div className="flex flex-col items-center justify-center md:mr-[6px]">
48
+ <button
49
+ onClick={goToPrev}
50
+ className={twMerge(
51
+ 'hidden justify-center p-2 mb-3 border border-gray-100 rounded-full cursor-pointer lg:block',
52
+ [activeIndex === 0 && 'cursor-not-allowed opacity-45']
53
+ )}
54
+ disabled={activeIndex === 0}
117
55
  >
118
- {product?.productimage_set?.map((item, i) => (
56
+ <Icon name="chevron-up" size={15} className="fill-[#000000]" />
57
+ </button>
58
+ <div className="hidden flex-col items-center overflow-scroll w-[80px] max-h-[620px] lg:block">
59
+ {product?.productimage_set?.map((item, index) => (
119
60
  <Image
120
- key={i}
61
+ key={index}
121
62
  src={item.image}
122
- alt={product?.name || 'Product image'}
123
- draggable={false}
124
- aspectRatio={484 / 726}
125
- sizes="(min-width: 425px) 512px,
126
- (min-width: 601px) 576px,
127
- (min-width: 768px) 336px,
128
- (min-width: 1024px) 484px, 368px"
129
- fill
63
+ alt={`Thumbnail ${index}`}
64
+ width={80}
65
+ height={128}
66
+ className={twMerge('cursor-pointer', [
67
+ activeIndex === index && 'border-2 border-primary'
68
+ ])}
69
+ onClick={() => handleThumbnailClick(index)}
130
70
  />
131
71
  ))}
132
- </CarouselCore>
72
+ </div>
73
+ <button
74
+ onClick={goToNext}
75
+ className={twMerge(
76
+ 'hidden justify-center p-2 mt-3 border border-gray-100 rounded-full cursor-pointer lg:block',
77
+ [
78
+ activeIndex === product.productimage_set.length - 1 &&
79
+ 'cursor-not-allowed opacity-45'
80
+ ]
81
+ )}
82
+ disabled={activeIndex === product.productimage_set.length - 1}
83
+ >
84
+ <Icon name="chevron-down" size={15} className="fill-[#000000]" />
85
+ </button>
133
86
  </div>
134
87
  </div>
135
88
 
@@ -187,6 +140,6 @@ export default function ProductInfoSlider({ product }: ProductSliderItem) {
187
140
  ))}
188
141
  </CarouselCore>
189
142
  </div>
190
- </>
143
+ </div>
191
144
  );
192
145
  }
@@ -164,10 +164,6 @@ export default async () => {
164
164
  name: 'Tamara Payment Extension',
165
165
  value: 'pz-tamara-extension'
166
166
  },
167
- {
168
- name: 'Similar Products',
169
- value: 'pz-similar-products'
170
- },
171
167
  {
172
168
  name: 'Hepsipay',
173
169
  value: 'pz-hepsipay'
@@ -152,10 +152,6 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
152
152
  name: 'Tamara Payment Extension',
153
153
  value: 'pz-tamara-extension'
154
154
  },
155
- {
156
- name: 'Similar Products',
157
- value: 'pz-similar-products'
158
- },
159
155
  {
160
156
  name: 'Hepsipay',
161
157
  value: 'pz-hepsipay'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.126.0-rc.3",
3
+ "version": "1.126.0",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {
@@ -1,22 +0,0 @@
1
- 'use client';
2
-
3
- import { useSentryUncaughtErrors } from '@akinon/next/hooks';
4
-
5
- export default function GlobalError({
6
- error,
7
- reset
8
- }: {
9
- error: Error & { digest?: string };
10
- reset: () => void;
11
- }) {
12
- useSentryUncaughtErrors(error);
13
-
14
- return (
15
- <html>
16
- <body>
17
- <h2>Something went wrong!</h2>
18
- <button onClick={() => reset()}>Try again</button>
19
- </body>
20
- </html>
21
- );
22
- }