@akinon/projectzero 1.120.0-rc.4 → 1.120.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.
Files changed (30) hide show
  1. package/CHANGELOG.md +1 -14
  2. package/app-template/.env.example +0 -3
  3. package/app-template/CHANGELOG.md +29 -195
  4. package/app-template/README.md +1 -25
  5. package/app-template/akinon.json +1 -1
  6. package/app-template/docs/advanced-usage.md +0 -10
  7. package/app-template/package.json +28 -28
  8. package/app-template/public/locales/en/account.json +1 -3
  9. package/app-template/public/locales/en/checkout.json +5 -0
  10. package/app-template/public/locales/en/product.json +0 -18
  11. package/app-template/public/locales/tr/account.json +1 -3
  12. package/app-template/public/locales/tr/checkout.json +5 -0
  13. package/app-template/public/locales/tr/product.json +0 -18
  14. package/app-template/src/app/[commerce]/[locale]/[currency]/account/orders/[id]/page.tsx +1 -20
  15. package/app-template/src/app/[commerce]/[locale]/[currency]/users/reset/[[...id]]/page.tsx +3 -45
  16. package/app-template/src/app/[commerce]/[locale]/[currency]/xml-sitemap/[node]/route.ts +4 -6
  17. package/app-template/src/components/modal.tsx +0 -2
  18. package/app-template/src/components/select.tsx +1 -1
  19. package/app-template/src/hooks/index.ts +0 -2
  20. package/app-template/src/middleware.ts +1 -2
  21. package/app-template/src/plugins.js +0 -1
  22. package/app-template/src/views/account/orders/order-detail-header.tsx +1 -1
  23. package/app-template/src/views/checkout/steps/shipping/address-box.tsx +17 -30
  24. package/app-template/src/views/checkout/steps/shipping/addresses.tsx +1 -1
  25. package/app-template/src/views/header/search/index.tsx +5 -13
  26. package/app-template/src/views/product/slider.tsx +38 -85
  27. package/commands/plugins.ts +0 -4
  28. package/dist/commands/plugins.js +0 -4
  29. package/package.json +1 -1
  30. package/app-template/src/app/api/barcode-search/route.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,19 +1,6 @@
1
1
  # @akinon/projectzero
2
2
 
3
- ## 1.120.0-rc.4
4
-
5
- ## 1.120.0-rc.3
6
-
7
- ## 1.120.0-rc.2
8
-
9
- ## 1.120.0-rc.1
10
-
11
- ## 1.120.0-rc.0
12
-
13
- ### Minor Changes
14
-
15
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
16
- - d99a6a7d: ZERO-3457_1: Fixed the settings prop and made sure everything is customizable.
3
+ ## 1.120.0
17
4
 
18
5
  ## 1.119.0
19
6
 
@@ -7,12 +7,9 @@ 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
 
14
13
  # CACHE_SECRET=KhvhE1go3GDmYJ7PhZLmskqfhYNlPSm6
15
14
  # CACHE_HOST=default:redispw@localhost
16
15
  # CACHE_PORT=6379
17
-
18
- # BF_CACHE=false
@@ -1,213 +1,47 @@
1
1
  # projectzeronext
2
2
 
3
- ## 1.120.0-rc.4
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies [bfafa3f4]
8
- - @akinon/next@1.120.0-rc.4
9
- - @akinon/pz-virtual-try-on@1.120.0-rc.4
10
- - @akinon/pz-akifast@1.120.0-rc.4
11
- - @akinon/pz-apple-pay@1.120.0-rc.4
12
- - @akinon/pz-b2b@1.120.0-rc.4
13
- - @akinon/pz-basket-gift-pack@1.120.0-rc.4
14
- - @akinon/pz-bkm@1.120.0-rc.4
15
- - @akinon/pz-checkout-gift-pack@1.120.0-rc.4
16
- - @akinon/pz-click-collect@1.120.0-rc.4
17
- - @akinon/pz-credit-payment@1.120.0-rc.4
18
- - @akinon/pz-cybersource-uc@1.120.0-rc.4
19
- - @akinon/pz-flow-payment@1.120.0-rc.4
20
- - @akinon/pz-google-pay@1.120.0-rc.4
21
- - @akinon/pz-gpay@1.120.0-rc.4
22
- - @akinon/pz-haso@1.120.0-rc.4
23
- - @akinon/pz-hepsipay@1.120.0-rc.4
24
- - @akinon/pz-masterpass@1.120.0-rc.4
25
- - @akinon/pz-masterpass-rest@1.120.0-rc.4
26
- - @akinon/pz-multi-basket@1.120.0-rc.4
27
- - @akinon/pz-one-click-checkout@1.120.0-rc.4
28
- - @akinon/pz-otp@1.120.0-rc.4
29
- - @akinon/pz-pay-on-delivery@1.120.0-rc.4
30
- - @akinon/pz-saved-card@1.120.0-rc.4
31
- - @akinon/pz-similar-products@1.120.0-rc.4
32
- - @akinon/pz-tabby-extension@1.120.0-rc.4
33
- - @akinon/pz-tamara-extension@1.120.0-rc.4
34
-
35
- ## 1.120.0-rc.3
36
-
37
- ### Patch Changes
38
-
39
- - Updated dependencies [760258c1]
40
- - @akinon/next@1.120.0-rc.3
41
- - @akinon/pz-virtual-try-on@1.120.0-rc.3
42
- - @akinon/pz-akifast@1.120.0-rc.3
43
- - @akinon/pz-apple-pay@1.120.0-rc.3
44
- - @akinon/pz-b2b@1.120.0-rc.3
45
- - @akinon/pz-basket-gift-pack@1.120.0-rc.3
46
- - @akinon/pz-bkm@1.120.0-rc.3
47
- - @akinon/pz-checkout-gift-pack@1.120.0-rc.3
48
- - @akinon/pz-click-collect@1.120.0-rc.3
49
- - @akinon/pz-credit-payment@1.120.0-rc.3
50
- - @akinon/pz-cybersource-uc@1.120.0-rc.3
51
- - @akinon/pz-flow-payment@1.120.0-rc.3
52
- - @akinon/pz-google-pay@1.120.0-rc.3
53
- - @akinon/pz-gpay@1.120.0-rc.3
54
- - @akinon/pz-haso@1.120.0-rc.3
55
- - @akinon/pz-hepsipay@1.120.0-rc.3
56
- - @akinon/pz-masterpass@1.120.0-rc.3
57
- - @akinon/pz-masterpass-rest@1.120.0-rc.3
58
- - @akinon/pz-multi-basket@1.120.0-rc.3
59
- - @akinon/pz-one-click-checkout@1.120.0-rc.3
60
- - @akinon/pz-otp@1.120.0-rc.3
61
- - @akinon/pz-pay-on-delivery@1.120.0-rc.3
62
- - @akinon/pz-saved-card@1.120.0-rc.3
63
- - @akinon/pz-similar-products@1.120.0-rc.3
64
- - @akinon/pz-tabby-extension@1.120.0-rc.3
65
- - @akinon/pz-tamara-extension@1.120.0-rc.3
66
-
67
- ## 1.120.0-rc.2
68
-
69
- ### Patch Changes
70
-
71
- - Updated dependencies [8218dafa]
72
- - @akinon/next@1.120.0-rc.2
73
- - @akinon/pz-virtual-try-on@1.120.0-rc.2
74
- - @akinon/pz-akifast@1.120.0-rc.2
75
- - @akinon/pz-apple-pay@1.120.0-rc.2
76
- - @akinon/pz-b2b@1.120.0-rc.2
77
- - @akinon/pz-basket-gift-pack@1.120.0-rc.2
78
- - @akinon/pz-bkm@1.120.0-rc.2
79
- - @akinon/pz-checkout-gift-pack@1.120.0-rc.2
80
- - @akinon/pz-click-collect@1.120.0-rc.2
81
- - @akinon/pz-credit-payment@1.120.0-rc.2
82
- - @akinon/pz-cybersource-uc@1.120.0-rc.2
83
- - @akinon/pz-flow-payment@1.120.0-rc.2
84
- - @akinon/pz-google-pay@1.120.0-rc.2
85
- - @akinon/pz-gpay@1.120.0-rc.2
86
- - @akinon/pz-haso@1.120.0-rc.2
87
- - @akinon/pz-hepsipay@1.120.0-rc.2
88
- - @akinon/pz-masterpass@1.120.0-rc.2
89
- - @akinon/pz-masterpass-rest@1.120.0-rc.2
90
- - @akinon/pz-multi-basket@1.120.0-rc.2
91
- - @akinon/pz-one-click-checkout@1.120.0-rc.2
92
- - @akinon/pz-otp@1.120.0-rc.2
93
- - @akinon/pz-pay-on-delivery@1.120.0-rc.2
94
- - @akinon/pz-saved-card@1.120.0-rc.2
95
- - @akinon/pz-similar-products@1.120.0-rc.2
96
- - @akinon/pz-tabby-extension@1.120.0-rc.2
97
- - @akinon/pz-tamara-extension@1.120.0-rc.2
98
-
99
- ## 1.120.0-rc.1
100
-
101
- ### Patch Changes
102
-
103
- - Updated dependencies [bcaad120]
104
- - @akinon/next@1.120.0-rc.1
105
- - @akinon/pz-virtual-try-on@1.120.0-rc.1
106
- - @akinon/pz-akifast@1.120.0-rc.1
107
- - @akinon/pz-apple-pay@1.120.0-rc.1
108
- - @akinon/pz-b2b@1.120.0-rc.1
109
- - @akinon/pz-basket-gift-pack@1.120.0-rc.1
110
- - @akinon/pz-bkm@1.120.0-rc.1
111
- - @akinon/pz-checkout-gift-pack@1.120.0-rc.1
112
- - @akinon/pz-click-collect@1.120.0-rc.1
113
- - @akinon/pz-credit-payment@1.120.0-rc.1
114
- - @akinon/pz-cybersource-uc@1.120.0-rc.1
115
- - @akinon/pz-flow-payment@1.120.0-rc.1
116
- - @akinon/pz-google-pay@1.120.0-rc.1
117
- - @akinon/pz-gpay@1.120.0-rc.1
118
- - @akinon/pz-haso@1.120.0-rc.1
119
- - @akinon/pz-hepsipay@1.120.0-rc.1
120
- - @akinon/pz-masterpass@1.120.0-rc.1
121
- - @akinon/pz-masterpass-rest@1.120.0-rc.1
122
- - @akinon/pz-multi-basket@1.120.0-rc.1
123
- - @akinon/pz-one-click-checkout@1.120.0-rc.1
124
- - @akinon/pz-otp@1.120.0-rc.1
125
- - @akinon/pz-pay-on-delivery@1.120.0-rc.1
126
- - @akinon/pz-saved-card@1.120.0-rc.1
127
- - @akinon/pz-similar-products@1.120.0-rc.1
128
- - @akinon/pz-tabby-extension@1.120.0-rc.1
129
- - @akinon/pz-tamara-extension@1.120.0-rc.1
130
-
131
- ## 1.120.0-rc.0
3
+ ## 1.120.0
132
4
 
133
5
  ### Minor Changes
134
6
 
135
7
  - 6ad72e8d: ZERO-4032: Add loading state management for payment submissions across multiple components and add safe guarding
136
- - 4449f3a3: ZERO-3681: Add order details localization and improve order handling in AccountOrderDetail
137
- - 31b4a266: ZERO-4102: Add support for post-checkout redirect in middleware
138
- - 1a8622a9: ZERO-3392: Implemented AI Search functionality and update env
139
- - b55acb76: ZERO-2577: Fix pagination bug and update usePagination hook and ensure pagination controls rendering correctly
140
- - 36143125: ZERO-3987: Add barcode scanner functionality with modal and button
141
- - f7e0f646: ZERO-4032: Add bfcache-headers middleware, integrate it into the default chain, and introduce a new environment variable for control.
142
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
143
- - 9f8cd3bc: ZERO-3449: AI Search Active Filters & Crop Style changes have been implemented
144
- - 5fb34b5c: ZERO-3955: Add aspect ratio validation and error handling for image cropping
145
- - d99a6a7d: ZERO-3457_1: Fixed the settings prop and made sure everything is customizable.
146
- - b87517ff: ZERO-3680: Enhance select component styling to ensure focus state is consistent
147
- - b59fdd1c: ZERO-4009: Add password reset token validation
148
- - d76d3255: ZERO-4011: Refactor sitemap content generation to append locale suffix based on matched locale
149
- - b05c3543: ZERO-2570: Category filters routes to absolute url
150
- - c3244a31: ZERO-4013: Update runtime version to node:25-alpine in project configuration
8
+ - b12527ec: ZERO-4102: Add support for post-checkout redirect in middleware
151
9
 
152
10
  ### Patch Changes
153
11
 
154
12
  - Updated dependencies [6ad72e8d]
155
- - Updated dependencies [4798959a]
156
- - Updated dependencies [31b4a266]
157
- - Updated dependencies [d2c0e759]
13
+ - Updated dependencies [b12527ec]
158
14
  - Updated dependencies [aef81c5d]
159
- - Updated dependencies [b55acb76]
160
- - Updated dependencies [8a7fd0f4]
161
- - Updated dependencies [36143125]
162
- - Updated dependencies [572f4f7b]
163
15
  - Updated dependencies [0754c835]
164
- - Updated dependencies [f7e0f646]
165
- - Updated dependencies [94a86fcc]
166
- - Updated dependencies [143be2b9]
167
- - Updated dependencies [cd68a97a]
168
- - Updated dependencies [9f8cd3bc]
169
- - Updated dependencies [49c82e1a]
170
16
  - Updated dependencies [a9f5cdb1]
171
- - Updated dependencies [5fb34b5c]
172
- - Updated dependencies [88cb4f62]
173
- - Updated dependencies [d99a6a7d]
174
- - Updated dependencies [d7e5178b]
175
- - Updated dependencies [591e345e]
176
17
  - Updated dependencies [01ee41f1]
177
- - Updated dependencies [187208d2]
178
- - Updated dependencies [4de5303c]
179
- - Updated dependencies [63a72000]
180
- - Updated dependencies [b59fdd1c]
181
- - Updated dependencies [95b139dc]
182
18
  - Updated dependencies [c6c5c1cd]
183
- - Updated dependencies [3909d322]
184
- - Updated dependencies [6b73b050]
185
- - @akinon/pz-pay-on-delivery@1.120.0-rc.0
186
- - @akinon/pz-credit-payment@1.120.0-rc.0
187
- - @akinon/pz-google-pay@1.120.0-rc.0
188
- - @akinon/pz-masterpass@1.120.0-rc.0
189
- - @akinon/pz-saved-card@1.120.0-rc.0
190
- - @akinon/pz-apple-pay@1.120.0-rc.0
191
- - @akinon/pz-hepsipay@1.120.0-rc.0
192
- - @akinon/pz-gpay@1.120.0-rc.0
193
- - @akinon/pz-bkm@1.120.0-rc.0
194
- - @akinon/pz-otp@1.120.0-rc.0
195
- - @akinon/pz-masterpass-rest@1.120.0-rc.0
196
- - @akinon/next@1.120.0-rc.0
197
- - @akinon/pz-virtual-try-on@1.120.0-rc.0
198
- - @akinon/pz-similar-products@1.120.0-rc.0
199
- - @akinon/pz-akifast@1.120.0-rc.0
200
- - @akinon/pz-b2b@1.120.0-rc.0
201
- - @akinon/pz-basket-gift-pack@1.120.0-rc.0
202
- - @akinon/pz-checkout-gift-pack@1.120.0-rc.0
203
- - @akinon/pz-click-collect@1.120.0-rc.0
204
- - @akinon/pz-cybersource-uc@1.120.0-rc.0
205
- - @akinon/pz-flow-payment@1.120.0-rc.0
206
- - @akinon/pz-haso@1.120.0-rc.0
207
- - @akinon/pz-multi-basket@1.120.0-rc.0
208
- - @akinon/pz-one-click-checkout@1.120.0-rc.0
209
- - @akinon/pz-tabby-extension@1.120.0-rc.0
210
- - @akinon/pz-tamara-extension@1.120.0-rc.0
19
+ - @akinon/pz-pay-on-delivery@1.120.0
20
+ - @akinon/pz-credit-payment@1.120.0
21
+ - @akinon/pz-google-pay@1.120.0
22
+ - @akinon/pz-masterpass@1.120.0
23
+ - @akinon/pz-saved-card@1.120.0
24
+ - @akinon/pz-apple-pay@1.120.0
25
+ - @akinon/pz-hepsipay@1.120.0
26
+ - @akinon/pz-gpay@1.120.0
27
+ - @akinon/pz-bkm@1.120.0
28
+ - @akinon/pz-otp@1.120.0
29
+ - @akinon/next@1.120.0
30
+ - @akinon/pz-virtual-try-on@1.120.0
31
+ - @akinon/pz-akifast@1.120.0
32
+ - @akinon/pz-b2b@1.120.0
33
+ - @akinon/pz-basket-gift-pack@1.120.0
34
+ - @akinon/pz-checkout-gift-pack@1.120.0
35
+ - @akinon/pz-click-collect@1.120.0
36
+ - @akinon/pz-cybersource-uc@1.120.0
37
+ - @akinon/pz-flow-payment@1.120.0
38
+ - @akinon/pz-haso@1.120.0
39
+ - @akinon/pz-masterpass-rest@1.120.0
40
+ - @akinon/pz-multi-basket@1.120.0
41
+ - @akinon/pz-one-click-checkout@1.120.0
42
+ - @akinon/pz-similar-products@1.120.0
43
+ - @akinon/pz-tabby-extension@1.120.0
44
+ - @akinon/pz-tamara-extension@1.120.0
211
45
 
212
46
  ## 1.119.0
213
47
 
@@ -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"
@@ -41,13 +41,3 @@ const middleware: NextMiddleware = (
41
41
  return NextResponse.next();
42
42
  };
43
43
  ```
44
-
45
- ## Enabling Browser Back/Forward Cache (bfcache)
46
-
47
- By default, dynamic pages may include `Cache-Control: no-store` headers, which prevents browsers from using the back/forward cache (bfcache). To enable bfcache support, set the `BF_CACHE` environment variable to `true`:
48
-
49
- ```bash
50
- BF_CACHE=true
51
- ```
52
-
53
- When enabled, a middleware wrapper overrides the `Cache-Control` header to `private, no-cache, max-age=0, must-revalidate`, allowing the browser to cache pages for instant back/forward navigation while still revalidating content on revisit.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.120.0-rc.4",
3
+ "version": "1.120.0",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -24,32 +24,32 @@
24
24
  "test:middleware": "jest middleware-matcher.test.ts --bail"
25
25
  },
26
26
  "dependencies": {
27
- "@akinon/next": "1.120.0-rc.4",
28
- "@akinon/pz-akifast": "1.120.0-rc.4",
29
- "@akinon/pz-apple-pay": "1.120.0-rc.4",
30
- "@akinon/pz-b2b": "1.120.0-rc.4",
31
- "@akinon/pz-basket-gift-pack": "1.120.0-rc.4",
32
- "@akinon/pz-bkm": "1.120.0-rc.4",
33
- "@akinon/pz-checkout-gift-pack": "1.120.0-rc.4",
34
- "@akinon/pz-click-collect": "1.120.0-rc.4",
35
- "@akinon/pz-credit-payment": "1.120.0-rc.4",
36
- "@akinon/pz-cybersource-uc": "1.120.0-rc.4",
37
- "@akinon/pz-flow-payment": "1.120.0-rc.4",
38
- "@akinon/pz-google-pay": "1.120.0-rc.4",
39
- "@akinon/pz-gpay": "1.120.0-rc.4",
40
- "@akinon/pz-haso": "1.120.0-rc.4",
41
- "@akinon/pz-hepsipay": "1.120.0-rc.4",
42
- "@akinon/pz-masterpass": "1.120.0-rc.4",
43
- "@akinon/pz-masterpass-rest": "1.120.0-rc.4",
44
- "@akinon/pz-multi-basket": "1.120.0-rc.4",
45
- "@akinon/pz-one-click-checkout": "1.120.0-rc.4",
46
- "@akinon/pz-otp": "1.120.0-rc.4",
47
- "@akinon/pz-pay-on-delivery": "1.120.0-rc.4",
48
- "@akinon/pz-saved-card": "1.120.0-rc.4",
49
- "@akinon/pz-similar-products": "1.120.0-rc.4",
50
- "@akinon/pz-tabby-extension": "1.120.0-rc.4",
51
- "@akinon/pz-tamara-extension": "1.120.0-rc.4",
52
- "@akinon/pz-virtual-try-on": "1.120.0-rc.4",
27
+ "@akinon/next": "1.120.0",
28
+ "@akinon/pz-akifast": "1.120.0",
29
+ "@akinon/pz-apple-pay": "1.120.0",
30
+ "@akinon/pz-b2b": "1.120.0",
31
+ "@akinon/pz-basket-gift-pack": "1.120.0",
32
+ "@akinon/pz-bkm": "1.120.0",
33
+ "@akinon/pz-checkout-gift-pack": "1.120.0",
34
+ "@akinon/pz-click-collect": "1.120.0",
35
+ "@akinon/pz-credit-payment": "1.120.0",
36
+ "@akinon/pz-cybersource-uc": "1.120.0",
37
+ "@akinon/pz-flow-payment": "1.120.0",
38
+ "@akinon/pz-google-pay": "1.120.0",
39
+ "@akinon/pz-gpay": "1.120.0",
40
+ "@akinon/pz-haso": "1.120.0",
41
+ "@akinon/pz-hepsipay": "1.120.0",
42
+ "@akinon/pz-masterpass": "1.120.0",
43
+ "@akinon/pz-masterpass-rest": "1.120.0",
44
+ "@akinon/pz-multi-basket": "1.120.0",
45
+ "@akinon/pz-one-click-checkout": "1.120.0",
46
+ "@akinon/pz-otp": "1.120.0",
47
+ "@akinon/pz-pay-on-delivery": "1.120.0",
48
+ "@akinon/pz-saved-card": "1.120.0",
49
+ "@akinon/pz-similar-products": "1.120.0",
50
+ "@akinon/pz-tabby-extension": "1.120.0",
51
+ "@akinon/pz-tamara-extension": "1.120.0",
52
+ "@akinon/pz-virtual-try-on": "1.120.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",
@@ -72,7 +72,7 @@
72
72
  "yup": "0.32.11"
73
73
  },
74
74
  "devDependencies": {
75
- "@akinon/eslint-plugin-projectzero": "1.120.0-rc.4",
75
+ "@akinon/eslint-plugin-projectzero": "1.120.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",
@@ -242,9 +242,7 @@
242
242
  "total": "Total",
243
243
  "items": "items",
244
244
  "packages": "Packages",
245
- "package_no": "Package no",
246
- "back_to_orders": "Back to Orders",
247
- "no_orders_found": "No orders found"
245
+ "package_no": "Package no"
248
246
  },
249
247
  "return": {
250
248
  "title": "Return Items",
@@ -154,5 +154,10 @@
154
154
  "error": {
155
155
  "title": "An unexpected error has occurred. Please try again later.",
156
156
  "button": "Try Again"
157
+ },
158
+ "apple_pay": {
159
+ "processing": "Processing...",
160
+ "pay_button": "Pay with Apple Pay",
161
+ "payment_failed": "Payment failed"
157
162
  }
158
163
  }
@@ -86,8 +86,6 @@
86
86
  "multiple_results_subtitle": "Try-on completed for {{count}} products",
87
87
  "error_incompatible": "Image Not Compatible",
88
88
  "error_auto_reported": "Error automatically reported",
89
- "error_aspect_ratio_too_tall": "The image is too tall. Maximum allowed ratio is 9:16 (portrait). Please crop or use a different image.",
90
- "error_aspect_ratio_too_wide": "The image is too wide. Maximum allowed ratio is 21:9 (landscape). Please crop or use a different image.",
91
89
  "feedback_question": "How was the result?",
92
90
  "feedback_success": "Success",
93
91
  "feedback_failed": "Failed",
@@ -98,21 +96,5 @@
98
96
  "starting": "Starting...",
99
97
  "will_start": "will start virtual try-on for",
100
98
  "products_count": "products"
101
- },
102
- "barcode_scanner": {
103
- "title": "Scan Barcode",
104
- "button_label": "Barcode Scanner",
105
- "button_text": "Try on products in store",
106
- "help_text": "Point your camera at the product barcode",
107
- "scan_more_help": "To scan another product, point your camera at the new barcode.",
108
- "searching": "Searching for product...",
109
- "continue_to_vto": "Continue to Virtual Cabin",
110
- "permission_denied_title": "Camera Permission Required",
111
- "permission_denied_message": "You need to allow camera access for the barcode scanner.",
112
- "try_again": "Try Again",
113
- "errors": {
114
- "product_not_found": "No product found for this barcode.",
115
- "search_failed": "Search failed. Please try again."
116
- }
117
99
  }
118
100
  }
@@ -242,9 +242,7 @@
242
242
  "total": "Toplam",
243
243
  "items": "adet",
244
244
  "packages": "paket",
245
- "package_no": "Paket no",
246
- "back_to_orders": "Siparişlere geri dön",
247
- "no_orders_found": "Sipariş bulunamadı"
245
+ "package_no": "Paket no"
248
246
  },
249
247
  "return": {
250
248
  "title": "İade Ürünleri",
@@ -154,5 +154,10 @@
154
154
  "error": {
155
155
  "title": "Beklenmeyen bir hata oluştu. Lütfen daha sonra tekrar deneyiniz.",
156
156
  "button": "Tekrar deneyin"
157
+ },
158
+ "apple_pay": {
159
+ "processing": "İşleniyor...",
160
+ "pay_button": "Apple Pay ile Öde",
161
+ "payment_failed": "Ödeme başarısız oldu"
157
162
  }
158
163
  }
@@ -88,8 +88,6 @@
88
88
  "multiple_results_subtitle": "{{count}} ürün için deneme tamamlandı",
89
89
  "error_incompatible": "Görüntü Uyumlu Değil",
90
90
  "error_auto_reported": "Hata otomatik olarak bildirildi",
91
- "error_aspect_ratio_too_tall": "Görsel çok uzun. Dikey görseller için izin verilen maksimum oran 9:16'dır. Lütfen kırpın veya farklı bir görsel seçin.",
92
- "error_aspect_ratio_too_wide": "Görsel çok geniş. Yatay görseller için izin verilen maksimum oran 21:9'dur. Lütfen kırpın veya farklı bir görsel seçin.",
93
91
  "feedback_question": "Sonuç nasıldı?",
94
92
  "feedback_success": "Başarılı",
95
93
  "feedback_failed": "Başarısız",
@@ -100,21 +98,5 @@
100
98
  "starting": "Başlatılıyor...",
101
99
  "will_start": "için sanal deneme başlatılacak",
102
100
  "products_count": "ürün"
103
- },
104
- "barcode_scanner": {
105
- "title": "Barkodu Okut",
106
- "button_label": "Barkod Tarayıcı",
107
- "button_text": "Mağazadaki ürünü üstünde dene",
108
- "help_text": "Ürün barkodunu kameraya yaklaştırın",
109
- "scan_more_help": "Bir ürün daha okutmak isterseniz, yeni barkodu da kameranıza yaklaştırın.",
110
- "searching": "Ürün aranıyor...",
111
- "continue_to_vto": "Sanal Kabine Devam Et",
112
- "permission_denied_title": "Kamera İzni Gerekli",
113
- "permission_denied_message": "Barkod okuyucu için kamera erişimine izin vermeniz gerekmektedir.",
114
- "try_again": "Tekrar Dene",
115
- "errors": {
116
- "product_not_found": "Bu barkoda ait ürün bulunamadı.",
117
- "search_failed": "Arama başarısız oldu. Lütfen tekrar deneyin."
118
- }
119
101
  }
120
102
  }
@@ -61,26 +61,7 @@ const AccountOrderDetail = ({ params: { id } }) => {
61
61
  }, [order, isSuccess, localeValue]);
62
62
 
63
63
  if (isLoading && isFetching) {
64
- return (
65
- <div className="flex flex-col items-center justify-center h-96">
66
- <LoaderSpinner />
67
- </div>
68
- );
69
- }
70
-
71
- if (!order) {
72
- return (
73
- <div className="flex flex-col items-center justify-center h-96">
74
- <p className="mt-5 text-start text-lg mb-4">
75
- {t('account.my_orders.detail.no_orders_found')}
76
- </p>
77
- <Link href={`/account/orders/`}>
78
- <Button className="px-4" appearance="filled">
79
- {t('account.my_orders.detail.back_to_orders')}
80
- </Button>
81
- </Link>
82
- </div>
83
- );
64
+ return <LoaderSpinner />;
84
65
  }
85
66
 
86
67
  return (
@@ -1,12 +1,11 @@
1
1
  'use client';
2
2
 
3
- import { Button, Input, Link, LoaderSpinner } from '@theme/components';
3
+ import { Button, Input, Link } from '@theme/components';
4
4
  import { useForm, SubmitHandler } from 'react-hook-form';
5
5
  import { yupResolver } from '@hookform/resolvers/yup';
6
6
  import * as yup from 'yup';
7
7
  import {
8
8
  usePasswordResetMutation,
9
- useGetValidatePasswordResetTokenQuery,
10
9
  PasswordResetType
11
10
  } from '@akinon/next/data/client/account';
12
11
  import { useLocalization } from '@akinon/next/hooks';
@@ -16,16 +15,6 @@ export default function NewPassword({ params: { id } }) {
16
15
  const { t } = useLocalization();
17
16
  const [newPassword, { isSuccess: formSuccess }] = usePasswordResetMutation();
18
17
 
19
- const token = id?.join('/');
20
-
21
- const {
22
- data: validationData,
23
- isLoading: isValidating,
24
- error: validationError
25
- } = useGetValidatePasswordResetTokenQuery(token, {
26
- skip: !token
27
- });
28
-
29
18
  const newPasswordFormSchema = (t) =>
30
19
  yup.object().shape({
31
20
  password: yup
@@ -35,10 +24,7 @@ export default function NewPassword({ params: { id } }) {
35
24
  /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[^a-zA-Z\d]).{6,}$/,
36
25
  t('forgot_password.create_new_password.form.error.password_rule')
37
26
  )
38
- .max(
39
- 50,
40
- t('forgot_password.create_new_password.form.error.password_max')
41
- ),
27
+ .max(50, t('forgot_password.create_new_password.form.error.password_max')),
42
28
  repeatPassword: yup
43
29
  .string()
44
30
  .required(t('forgot_password.create_new_password.form.error.required'))
@@ -59,31 +45,6 @@ export default function NewPassword({ params: { id } }) {
59
45
  newPassword(data);
60
46
  };
61
47
 
62
- if (isValidating) {
63
- return (
64
- <div className="container my-12 flex flex-col items-center px-4">
65
- <div className="w-full xl:w-5/12 text-center">
66
- <LoaderSpinner />
67
- </div>
68
- </div>
69
- );
70
- }
71
-
72
- if (validationError || !validationData?.validlink) {
73
- return (
74
- <div className="container my-12 flex flex-col items-center px-4">
75
- <div className="w-full xl:w-5/12 text-center">
76
- <div className="text-2xl mb-4 text-error">
77
- {t('account.password_reset.expired_link_message')}
78
- </div>
79
- <Link href="/users/password/reset" className="underline text-primary">
80
- {t('account.password_reset.continue_password_reset')}
81
- </Link>
82
- </div>
83
- </div>
84
- );
85
- }
86
-
87
48
  return (
88
49
  <div className="container my-12 flex flex-col items-center px-4">
89
50
  <div className="w-full xl:w-5/12 text-center">
@@ -118,10 +79,7 @@ export default function NewPassword({ params: { id } }) {
118
79
  required
119
80
  />
120
81
 
121
- <PasswordRulesFeedback
122
- password={passwordValue}
123
- isVisible={errors?.password ? true : false}
124
- />
82
+ <PasswordRulesFeedback password={passwordValue} isVisible={errors?.password ? true : false}/>
125
83
  </div>
126
84
 
127
85
  <div className="mb-2 text-left">
@@ -58,12 +58,10 @@ export async function GET(request: Request, context: { params }) {
58
58
 
59
59
  let sitemapContent = await sitemap.text();
60
60
 
61
- if (matchedLocale?.[0]) {
62
- const localeSuffix = matchedLocale[0];
63
- const domainRegex = /(?<=<loc>\s*)https?:\/\/[^/<\s]+/g;
64
-
65
- sitemapContent = sitemapContent.replace(domainRegex, `$&${localeSuffix}`);
66
- }
61
+ sitemapContent = sitemapContent.replace(
62
+ /\.com/g,
63
+ `.com${matchedLocale?.[0] ?? ''}`
64
+ );
67
65
 
68
66
  return new Response(sitemapContent, {
69
67
  headers: {
@@ -41,14 +41,12 @@ export const Modal = (props: ModalProps) => {
41
41
  'fixed top-0 left-0 w-screen h-screen bg-primary bg-opacity-60 z-50',
42
42
  overlayClassName
43
43
  )}
44
- onClick={(e) => e.stopPropagation()}
45
44
  />
46
45
  <section
47
46
  className={twMerge(
48
47
  'fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-50 bg-white',
49
48
  className
50
49
  )}
51
- onClick={(e) => e.stopPropagation()}
52
50
  >
53
51
  {(showCloseButton || title) && (
54
52
  <div
@@ -48,7 +48,7 @@ const Select = forwardRef<HTMLSelectElement, SelectProps>((props, ref) => {
48
48
  clsx(
49
49
  'cursor-pointer truncate h-10 w-40 px-2.5 shrink-0 outline-none',
50
50
  !borderless &&
51
- 'border border-gray-200 transition-all duration-150 hover:border-primary focus:border-primary',
51
+ 'border border-gray-200 transition-all duration-150 hover:border-primary',
52
52
  'appearance-none bg-transparent'
53
53
  ),
54
54
  className
@@ -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',
@@ -21,7 +21,7 @@ export const OrderDetailHeader = ({ title, order, children }: Props) => {
21
21
  <div>
22
22
  <span>{t('account.my_orders.detail.order_number')}</span>:{' '}
23
23
  <span data-testid="account-orders-return-order-id">
24
- {order?.number}
24
+ {order.number}
25
25
  </span>
26
26
  </div>
27
27
 
@@ -85,7 +85,7 @@ const AddressBox = ({
85
85
  };
86
86
 
87
87
  const onSubmit = (data) => {
88
- editAddress({ ...data, invalidateTag: 'Checkout' })
88
+ editAddress({ ...data, invalidateTag: 'Addresses' })
89
89
  .unwrap()
90
90
  .then((editAddressResponse) => {
91
91
  handleAddressClick(addressType, editAddressResponse);
@@ -96,7 +96,7 @@ const AddressBox = ({
96
96
  };
97
97
 
98
98
  const handleRemoveAddress = async (addressPk: number) => {
99
- await removeAddress({ id: addressPk, invalidateTag: 'Checkout' });
99
+ await removeAddress({ id: addressPk, invalidateTag: 'Addresses' });
100
100
  setRemoveAddressModalOpen(false);
101
101
  dispatch(resetCheckoutState());
102
102
 
@@ -168,10 +168,7 @@ const AddressBox = ({
168
168
  <Button
169
169
  appearance="ghost"
170
170
  className="italic underline hover:text-secondary-500 hover:!bg-white hover:!border-white p-0 h-auto"
171
- onClick={(e) => {
172
- e.stopPropagation();
173
- setIsEditAddressModalOpen(true);
174
- }}
171
+ onClick={() => setIsEditAddressModalOpen(true)}
175
172
  data-testid="checkout-address-edit"
176
173
  >
177
174
  {t('checkout.address.box.edit')}
@@ -183,26 +180,21 @@ const AddressBox = ({
183
180
  setOpen={setIsEditAddressModalOpen}
184
181
  className="w-full sm:w-[28rem] max-h-[90vh] overflow-y-auto"
185
182
  >
186
- <div onClick={(e) => e.stopPropagation()}>
187
- <AddressForm
188
- data={{
189
- ...address,
190
- country: address.country?.pk,
191
- city: address.city?.pk,
192
- township: address.township?.pk,
193
- district: address.district?.pk
194
- }}
195
- onSubmit={onSubmit}
196
- />
197
- </div>
183
+ <AddressForm
184
+ data={{
185
+ ...address,
186
+ country: address.country?.pk,
187
+ city: address.city?.pk,
188
+ township: address.township?.pk,
189
+ district: address.district?.pk
190
+ }}
191
+ onSubmit={onSubmit}
192
+ />
198
193
  </Modal>
199
194
  <Button
200
195
  appearance="ghost"
201
196
  className="italic underline hover:text-secondary-500 hover:!bg-white hover:!border-white p-0 h-auto"
202
- onClick={(e) => {
203
- e.stopPropagation();
204
- setRemoveAddressModalOpen(true);
205
- }}
197
+ onClick={() => setRemoveAddressModalOpen(true)}
206
198
  data-testid="checkout-address-remove"
207
199
  >
208
200
  {t('checkout.address.box.remove')}
@@ -215,18 +207,14 @@ const AddressBox = ({
215
207
  setOpen={setRemoveAddressModalOpen}
216
208
  showCloseButton={false}
217
209
  >
218
- <div
219
- className="text-center px-6 py-10"
220
- onClick={(e) => e.stopPropagation()}
221
- >
210
+ <div className="text-center px-6 py-10">
222
211
  <p className="mb-4">
223
212
  {t('account.address_book.modal.delete_description')}
224
213
  </p>
225
214
  <div className="space-x-3 flex justify-center">
226
215
  <Button
227
216
  appearance="outlined"
228
- onClick={(e) => {
229
- e.stopPropagation();
217
+ onClick={() => {
230
218
  setRemoveAddressModalOpen(false);
231
219
  }}
232
220
  data-testid="remove-address-modal-cancel"
@@ -236,8 +224,7 @@ const AddressBox = ({
236
224
  <Button
237
225
  appearance="filled"
238
226
  disabled={removeAddressLoading}
239
- onClick={(e) => {
240
- e.stopPropagation();
227
+ onClick={() => {
241
228
  handleRemoveAddress(address.pk);
242
229
  }}
243
230
  className={
@@ -77,7 +77,7 @@ const Addresses = () => {
77
77
  }, [billing_and_shipping_same]);
78
78
 
79
79
  const onSubmit = (data) => {
80
- addAddress({ ...data, invalidateTag: 'Checkout' })
80
+ addAddress({ ...data, invalidateTag: 'Addresses' })
81
81
  .unwrap()
82
82
  .then((addAddressResponse) => {
83
83
  if (addressList.length === 0) {
@@ -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
  }
@@ -137,10 +137,6 @@ export default async () => {
137
137
  name: 'Tamara Payment Extension',
138
138
  value: 'pz-tamara-extension'
139
139
  },
140
- {
141
- name: 'Similar Products',
142
- value: 'pz-similar-products'
143
- },
144
140
  {
145
141
  name: 'Hepsipay',
146
142
  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.120.0-rc.4",
3
+ "version": "1.120.0",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {
@@ -1 +0,0 @@
1
- export * from '@akinon/next/api/barcode-search';