@akinon/pz-similar-products 1.108.0-rc.87 → 1.108.0-snapshot-ZERO-3875-occasion-20251229071759

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,395 +1,8 @@
1
1
  # @akinon/pz-similar-products
2
2
 
3
- ## 1.108.0-rc.87
3
+ ## 1.108.0-snapshot-ZERO-3875-occasion-20251229071759
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - 54e31792: ZERO-3532: Added customize options to icons
8
- - 174bf3a5: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
9
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
10
7
  - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
11
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
12
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
13
- - 59b275ca: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
14
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
15
- - 33d4d0c9: ZERO-3615: remove custom not found
16
-
17
- ## 1.107.0-rc.86
18
-
19
- ### Minor Changes
20
-
21
- - 54e31792: ZERO-3532: Added customize options to icons
22
- - 174bf3a5: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
23
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
24
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
25
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
26
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
27
- - 59b275ca: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
28
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
29
- - 33d4d0c: ZERO-3615: remove custom not found
30
-
31
- ## 1.106.0-rc.85
32
-
33
- ### Minor Changes
34
-
35
- - 54e31792: ZERO-3532: Added customize options to icons
36
- - 174bf3a5: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
37
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
38
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
39
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
40
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
41
- - 59b275ca: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
42
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
43
- - 33d4d0c: ZERO-3615: remove custom not found
44
-
45
- ## 1.105.0-rc.84
46
-
47
- ### Minor Changes
48
-
49
- - 54e31792: ZERO-3532: Added customize options to icons
50
- - 174bf3a5: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
51
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
52
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
53
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
54
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
55
- - 59b275ca: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
56
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
57
- - 33d4d0c: ZERO-3615: remove custom not found
58
-
59
- ## 1.104.0-rc.83
60
-
61
- ### Minor Changes
62
-
63
- - 54e31792: ZERO-3532: Added customize options to icons
64
- - 174bf3a5: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
65
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
66
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
67
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
68
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
69
- - 59b275ca: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
70
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
71
- - 33d4d0c: ZERO-3615: remove custom not found
72
-
73
- ## 1.103.0-rc.82
74
-
75
- ## 1.103.0-rc.81
76
-
77
- ### Minor Changes
78
-
79
- - 33d4d0c: ZERO-3615: remove custom not found
80
-
81
- ## 1.103.0-rc.80
82
-
83
- ### Minor Changes
84
-
85
- - 54e31792: ZERO-3532: Added customize options to icons
86
- - 174bf3a5: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
87
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
88
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
89
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
90
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
91
- - 59b275ca: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
92
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
93
-
94
- ## 1.102.0-rc.79
95
-
96
- ## 1.102.0-rc.78
97
-
98
- ## 1.102.0-rc.77
99
-
100
- ### Minor Changes
101
-
102
- - 54e31792: ZERO-3532: Added customize options to icons
103
- - 174bf3a5: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
104
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
105
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
106
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
107
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
108
- - 59b275ca: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
109
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
110
-
111
- ## 1.101.0-rc.76
112
-
113
- ## 1.101.0-rc.75
114
-
115
- ## 1.101.0-rc.74
116
-
117
- ## 1.101.0-rc.73
118
-
119
- ### Minor Changes
120
-
121
- - 54e31792: ZERO-3532: Added customize options to icons
122
- - 174bf3a5: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
123
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
124
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
125
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
126
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
127
- - 59b275ca: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
128
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
129
-
130
- ## 1.100.0-rc.72
131
-
132
- ## 1.100.0-rc.71
133
-
134
- ### Minor Changes
135
-
136
- - 54e31792: ZERO-3532: Added customize options to icons
137
- - 174bf3a5: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
138
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
139
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
140
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
141
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
142
- - 59b275ca: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
143
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
144
-
145
- ## 1.99.0-rc.70
146
-
147
- ## 1.99.0-rc.69
148
-
149
- ## 1.99.0-rc.68
150
-
151
- ## 1.99.0-rc.67
152
-
153
- ## 1.99.0-rc.66
154
-
155
- ### Minor Changes
156
-
157
- - 54e31792: ZERO-3532: Added customize options to icons
158
- - 174bf3a5: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
159
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
160
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
161
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
162
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
163
- - 59b275ca: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
164
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
165
-
166
- ## 1.98.0-rc.65
167
-
168
- ### Minor Changes
169
-
170
- - 54e31792: ZERO-3532: Added customize options to icons
171
- - 174bf3a5: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
172
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
173
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
174
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
175
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
176
- - 59b275ca: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
177
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
178
-
179
- ## 1.96.0-rc.64
180
-
181
- ### Minor Changes
182
-
183
- - 54e31792: ZERO-3532: Added customize options to icons
184
- - 174bf3a5: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
185
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
186
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
187
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
188
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
189
- - 59b275ca: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
190
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
191
-
192
- ## 1.96.0-rc.63
193
-
194
- ## 1.96.0-rc.62
195
-
196
- ## 1.96.0-rc.61
197
-
198
- ### Minor Changes
199
-
200
- - 54e31792: ZERO-3532: Added customize options to icons
201
- - 174bf3a5: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
202
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
203
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
204
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
205
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
206
- - 59b275ca: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
207
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
208
-
209
- ## 1.96.0-rc.60
210
-
211
- ## 1.96.0-rc.59
212
-
213
- ## 1.96.0-rc.58
214
-
215
- ## 1.96.0-rc.57
216
-
217
- ## 1.96.0-rc.56
218
-
219
- ## 1.96.0-rc.55
220
-
221
- ### Minor Changes
222
-
223
- - 54e3179: ZERO-3532: Added customize options to icons
224
- - 174bf3a: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
225
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
226
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
227
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
228
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
229
- - 59b275c: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
230
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
231
-
232
- ## 1.95.0-rc.54
233
-
234
- ### Minor Changes
235
-
236
- - 54e3179: ZERO-3532: Added customize options to icons
237
- - 174bf3a: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
238
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
239
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
240
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
241
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
242
- - 59b275c: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
243
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
244
-
245
- ## 1.93.0-rc.53
246
-
247
- ### Minor Changes
248
-
249
- - 54e3179: ZERO-3532: Added customize options to icons
250
- - 174bf3a: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
251
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
252
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
253
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
254
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
255
- - 59b275c: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
256
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
257
-
258
- ## 1.93.0-rc.52
259
-
260
- ## 1.93.0-rc.51
261
-
262
- ## 1.93.0-rc.50
263
-
264
- ## 1.93.0-rc.49
265
-
266
- ### Minor Changes
267
-
268
- - 54e3179: ZERO-3532: Added customize options to icons
269
- - 174bf3a: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
270
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
271
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
272
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
273
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
274
- - 59b275c: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
275
- - d606f4a: ZERO-3481: Add locale and currency to list endpoint
276
-
277
- ## 1.93.0-rc.48
278
-
279
- ## 1.93.0-rc.47
280
-
281
- ## 1.93.0-rc.46
282
-
283
- ### Minor Changes
284
-
285
- - 54e31792: ZERO-3532: Added customize options to icons
286
- - 174bf3a5: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
287
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
288
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
289
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
290
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
291
- - 59b275ca: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
292
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
293
-
294
- ## 1.92.0-rc.45
295
-
296
- ## 1.92.0-rc.44
297
-
298
- ## 1.92.0-rc.43
299
-
300
- ## 1.92.0-rc.42
301
-
302
- ### Minor Changes
303
-
304
- - 54e31792: ZERO-3532: Added customize options to icons
305
- - 174bf3a5: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
306
- - d8be48fb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
307
- - 143be2b9: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
308
- - 8b1d24eb: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
309
- - d99a6a7d: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
310
- - 59b275ca: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
311
- - d606f4ac: ZERO-3481: Add locale and currency to list endpoint
312
-
313
- ## 1.92.0-rc.41
314
-
315
- ## 1.92.0-rc.40
316
-
317
- ## 1.92.0-rc.39
318
-
319
- ### Minor Changes
320
-
321
- - 174bf3a: ZERO-3533: Refactor similar products API endpoints to support array search parameters and improve query handling
322
-
323
- ## 1.92.0-rc.38
324
-
325
- ## 1.92.0-rc.37
326
-
327
- ## 1.92.0-rc.36
328
-
329
- ## 1.92.0-rc.35
330
-
331
- ## 1.92.0-rc.34
332
-
333
- ## 1.92.0-rc.33
334
-
335
- ### Minor Changes
336
-
337
- - 59b275c: ZERO-3532: Pass settings prop to SimilarProductsButton for enhanced functionality
338
-
339
- ## 1.92.0-rc.32
340
-
341
- ### Minor Changes
342
-
343
- - 54e3179: ZERO-3532: Added customize options to icons
344
-
345
- ## 1.92.0-rc.31
346
-
347
- ## 1.92.0-rc.30
348
-
349
- ## 1.92.0-rc.29
350
-
351
- ## 1.92.0-rc.28
352
-
353
- ## 1.92.0-rc.27
354
-
355
- ### Minor Changes
356
-
357
- - d606f4a: ZERO-3481: Add locale and currency to list endpoint
358
-
359
- ## 1.92.0-rc.26
360
-
361
- ## 1.92.0-rc.25
362
-
363
- ## 1.92.0-rc.24
364
-
365
- ## 1.92.0-rc.23
366
-
367
- ## 1.92.0-rc.22
368
-
369
- ### Minor Changes
370
-
371
- - 143be2b: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
372
-
373
- ## 1.92.0-rc.21
374
-
375
- ### Minor Changes
376
-
377
- - d99a6a7: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
378
-
379
- ## 1.92.0-rc.20
380
-
381
- ### Minor Changes
382
-
383
- - 8b1d24e: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
384
-
385
- ## 1.92.0-rc.19
386
-
387
- ### Minor Changes
388
-
389
- - d8be48f: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
390
-
391
- ## 1.92.0-rc.18
392
-
393
- ## 1.92.0-rc.17
394
-
395
- ## 1.92.0-rc.16
8
+ - d99a6a7d: ZERO-3457_1: Fixed the settings prop and made sure everything is customizable.
package/README.md CHANGED
@@ -10,7 +10,6 @@
10
10
 
11
11
  - [Features](#markdown-header-features)
12
12
  - [Installation](#markdown-header-installation)
13
- - [Icon Customization](#markdown-header-icon-customization)
14
13
  - [Quick Start](#markdown-header-quick-start)
15
14
  - [Available Components](#markdown-header-available-components)
16
15
  - [Configuration](#markdown-header-configuration)
@@ -65,7 +64,6 @@
65
64
 
66
65
  - **🖼️ Visual Search**: AI-powered image-based product discovery
67
66
  - **✂️ Image Cropping**: Built-in cropping functionality with manual confirmation for precise searches
68
- - **🔤 Text Search**: Search similar products by text description with customizable input
69
67
  - **🎛️ Advanced Filtering**: Dynamic facet-based filtering system
70
68
  - **📄 Multiple Pagination Modes**: Traditional pagination, load more button, and infinite scroll
71
69
  - **🎨 Granular Customization**: 50+ style targets and 30+ render points
@@ -81,94 +79,6 @@ npx @akinon/projectzero@latest --plugins
81
79
 
82
80
  Select `pz-similar-products` from the plugin list during installation.
83
81
 
84
- ## Icon Customization
85
-
86
- The plugin provides complete control over icon appearance and behavior through two complementary approaches:
87
-
88
- ### Icon Names (`iconNames`)
89
-
90
- Change which icons are displayed by specifying different icon names:
91
-
92
- ```tsx
93
- const iconCustomization = {
94
- iconNames: {
95
- searchButton: 'magnifier', // Search button (default: 'search')
96
- modalClose: 'x', // Modal close buttons (default: 'close')
97
- filter: 'funnel', // Filter button (default: 'filter')
98
- filterRemove: 'trash', // Filter tag remove buttons (default: 'close')
99
- modalSearch: 'search-outline', // Modal search button (default: 'search')
100
- modalSearchClear: 'clear', // Search input clear button (default: 'close')
101
- imageSearchButton: 'upload' // Image search button (default: 'search')
102
- }
103
- };
104
- ```
105
-
106
- ### Icon Styles (`customStyles`)
107
-
108
- Customize the visual appearance of icons with CSS classes:
109
-
110
- ```tsx
111
- const iconStyling = {
112
- customStyles: {
113
- searchButtonIcon: 'fill-blue-500 hover:fill-blue-600 transition-colors',
114
- modalCloseIcon: 'text-red-500 hover:text-red-700 w-4 h-4',
115
- filterIcon: 'text-purple-500 w-5 h-5',
116
- filterRemoveIcon: 'text-orange-500 hover:text-orange-700 w-3 h-3',
117
- imageSearchButtonIcon: 'text-blue-500 hover:text-blue-600 w-5 h-5'
118
- }
119
- };
120
- ```
121
-
122
- ### Complete Icon Customization Example
123
-
124
- ```tsx
125
- const completeIconSettings = {
126
- // Change icon names
127
- iconNames: {
128
- searchButton: 'search-alt',
129
- modalClose: 'times',
130
- filter: 'filter-alt',
131
- filterRemove: 'remove',
132
- modalSearch: 'magnifying-glass',
133
- modalSearchClear: 'clear-alt',
134
- imageSearchButton: 'upload-cloud'
135
- },
136
-
137
- // Style the icons
138
- customStyles: {
139
- searchButtonIcon:
140
- 'fill-indigo-500 hover:fill-indigo-600 transition-all duration-200',
141
- modalCloseIcon: 'text-gray-500 hover:text-gray-700 w-5 h-5',
142
- filterIcon: 'text-blue-500 hover:text-blue-600 w-4 h-4',
143
- filterRemoveIcon:
144
- 'text-red-400 hover:text-red-600 w-3 h-3 transition-colors',
145
- modalSearchIcon: 'text-green-500 hover:text-green-600',
146
- modalSearchClearIcon: 'text-gray-400 hover:text-gray-600',
147
- imageSearchButtonIcon: 'text-indigo-500 hover:text-indigo-600 w-5 h-5'
148
- }
149
- };
150
-
151
- // Usage
152
- <PluginModule
153
- component={Component.ProductImageSearchFeature}
154
- props={{
155
- product,
156
- activeIndex,
157
- settings: completeIconSettings
158
- }}
159
- />;
160
- ```
161
-
162
- ### Available Icon Customization Points
163
-
164
- - **Search Button** (`searchButton`): Main search button icon in product images
165
- - **Modal Close** (`modalClose`): Close buttons in modals and filter tags
166
- - **Filter** (`filter`): Filter toggle button icon
167
- - **Filter Remove** (`filterRemove`): Remove icons in active filter tags
168
- - **Modal Search** (`modalSearch`): Search button icon in text search input
169
- - **Modal Search Clear** (`modalSearchClear`): Clear button icon in text search input
170
- - **Image Search Button** (`imageSearchButton`): Camera/upload icon in header search feature
171
-
172
82
  ## Quick Start
173
83
 
174
84
  ### Plugin Module Integration
@@ -257,7 +167,6 @@ interface SimilarProductsSettings {
257
167
  resultsPerPage?: number; // Products per page (default: 20)
258
168
  enableCropping?: boolean; // Enable image cropping (default: true)
259
169
  enableFileUpload?: boolean; // Enable file upload (default: true)
260
- enableTextSearch?: boolean; // Enable text search input (default: false)
261
170
 
262
171
  // Pagination settings
263
172
  paginationType?: 'pagination' | 'load-more' | 'infinite-scroll'; // Pagination mode (default: 'pagination')
@@ -291,21 +200,6 @@ interface SimilarProductsSettings {
291
200
  sortDropdown?: string;
292
201
  filterToggleButton?: string;
293
202
 
294
- // Text search input
295
- modalSearchInput?: string;
296
- modalSearchContainer?: string;
297
- modalSearchButton?: string;
298
- modalSearchIcon?: string;
299
- modalSearchClearButton?: string;
300
- modalSearchClearIcon?: string;
301
-
302
- // Icon customization
303
- searchButtonIcon?: string; // Search button icon styling
304
- modalCloseIcon?: string; // Modal close button icons styling
305
- filterIcon?: string; // Filter button icon styling
306
- filterRemoveIcon?: string; // Filter tag remove icons styling
307
- imageSearchButtonIcon?: string; // Image search button icon styling
308
-
309
203
  // Filter sidebar mobile
310
204
  filterSidebarMobileHeader?: string;
311
205
  filterSidebarMobileTitle?: string; // NEW: Mobile title
@@ -392,17 +286,6 @@ interface SimilarProductsSettings {
392
286
  cropSelectionHighlight?: string;
393
287
  };
394
288
 
395
- // Icon name customization
396
- iconNames?: {
397
- searchButton?: string; // Search button icon name (default: 'search')
398
- modalClose?: string; // Modal close button icon name (default: 'close')
399
- filter?: string; // Filter button icon name (default: 'filter')
400
- filterRemove?: string; // Filter tag remove icon name (default: 'close')
401
- modalSearch?: string; // Modal search button icon name (default: 'search')
402
- modalSearchClear?: string; // Modal search clear button icon name (default: 'close')
403
- imageSearchButton?: string; // Image search button icon name (default: 'search')
404
- };
405
-
406
289
  // 25+ render functions for granular control
407
290
  customRenderers?: {
408
291
  // Component-level renderers (full control)
@@ -421,8 +304,6 @@ interface SimilarProductsSettings {
421
304
  renderItemCount?: (props) => React.ReactNode;
422
305
  renderSortDropdown?: (props) => React.ReactNode;
423
306
  renderFilterToggleButton?: (props) => React.ReactNode;
424
- renderModalSearchInput?: (props) => React.ReactNode;
425
- renderSearchIcon?: (props) => React.ReactNode;
426
307
  // ... see examples for complete list
427
308
  };
428
309
  filterSidebar?: {
@@ -460,105 +341,6 @@ interface SimilarProductsSettings {
460
341
  }
461
342
  ```
462
343
 
463
- ## Text Search Integration
464
-
465
- The plugin features a built-in text search functionality that allows users to search for similar products using descriptive text.
466
-
467
- ### Text Search Features
468
-
469
- 1. **Search Input**: Appears only when API results are available
470
- 2. **Enter Key Support**: Press Enter to trigger search
471
- 3. **Search Icon**: Clickable icon for mobile users
472
- 4. **Clear Button**: X button to clear text and trigger search without text
473
- 5. **Custom Styling**: Fully customizable input, button, and icon
474
- 6. **Custom Icon**: Replaceable search icon via render functions
475
-
476
- ### Basic Text Search Configuration
477
-
478
- ```tsx
479
- const textSearchSettings = {
480
- enableTextSearch: true, // Enable text search input
481
-
482
- customStyles: {
483
- modalSearchContainer: 'relative flex items-center',
484
- modalSearchInput:
485
- 'h-10 px-4 pr-20 border border-gray-300 rounded-md focus:ring-2 focus:ring-blue-500',
486
- modalSearchButton:
487
- 'absolute right-2 top-1/2 -translate-y-1/2 p-2 hover:bg-gray-100 rounded-md',
488
- modalSearchIcon: 'text-gray-500',
489
- modalSearchClearButton:
490
- 'absolute right-12 top-1/2 -translate-y-1/2 p-2 hover:bg-gray-100 rounded-md',
491
- modalSearchClearIcon: 'text-gray-400 hover:text-gray-600'
492
- }
493
- };
494
- ```
495
-
496
- ### Custom Search Icon
497
-
498
- ```tsx
499
- const customIconSettings = {
500
- enableTextSearch: true,
501
-
502
- customRenderers: {
503
- render: {
504
- modal: {
505
- renderSearchIcon: ({ disabled, onClick }) => (
506
- <svg
507
- className="w-5 h-5 text-blue-500 cursor-pointer hover:text-blue-700"
508
- onClick={onClick}
509
- fill="none"
510
- stroke="currentColor"
511
- viewBox="0 0 24 24"
512
- >
513
- <path
514
- strokeLinecap="round"
515
- strokeLinejoin="round"
516
- strokeWidth={2}
517
- d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"
518
- />
519
- </svg>
520
- ),
521
- renderModalSearchInput: ({
522
- searchText,
523
- setSearchText,
524
- isLoading,
525
- placeholder,
526
- onSearch
527
- }) => (
528
- <div className="relative">
529
- <input
530
- type="text"
531
- value={searchText}
532
- onChange={(e) => setSearchText(e.target.value)}
533
- onKeyDown={(e) => e.key === 'Enter' && onSearch && onSearch()}
534
- placeholder={placeholder}
535
- className="w-full h-10 px-4 pr-20 border-2 border-blue-300 rounded-lg focus:border-blue-500"
536
- disabled={isLoading}
537
- />
538
- {searchText && (
539
- <button
540
- onClick={() => setSearchText('')}
541
- disabled={isLoading}
542
- className="absolute right-12 top-1/2 -translate-y-1/2 p-2 text-gray-400 hover:text-gray-600"
543
- >
544
-
545
- </button>
546
- )}
547
- <button
548
- onClick={onSearch}
549
- disabled={isLoading}
550
- className="absolute right-2 top-1/2 -translate-y-1/2 p-2 text-blue-500 hover:text-blue-700"
551
- >
552
- 🔍
553
- </button>
554
- </div>
555
- )
556
- }
557
- }
558
- }
559
- };
560
- ```
561
-
562
344
  ## Image Cropping with Manual Confirmation
563
345
 
564
346
  The plugin features an advanced image cropping system with manual confirmation for precise control over search queries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/pz-similar-products",
3
- "version": "1.108.0-rc.87",
3
+ "version": "1.108.0-snapshot-ZERO-3875-occasion-20251229071759",
4
4
  "license": "MIT",
5
5
  "main": "src/index.ts",
6
6
  "peerDependencies": {