@akinon/pz-similar-products 1.92.0-rc.26 → 1.92.0-snapshot-ZERO-3457-20250627111231

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,39 +1,7 @@
1
1
  # @akinon/pz-similar-products
2
2
 
3
- ## 1.92.0-rc.26
4
-
5
- ## 1.92.0-rc.25
6
-
7
- ## 1.92.0-rc.24
8
-
9
- ## 1.92.0-rc.23
10
-
11
- ## 1.92.0-rc.22
12
-
13
- ### Minor Changes
14
-
15
- - 143be2b: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
16
-
17
- ## 1.92.0-rc.21
3
+ ## 1.92.0-snapshot-ZERO-3457-20250627111231
18
4
 
19
5
  ### Minor Changes
20
6
 
21
- - d99a6a7: ZERO-3457: Fixed the settings prop and made sure everything is customizable.
22
-
23
- ## 1.92.0-rc.20
24
-
25
- ### Minor Changes
26
-
27
- - 8b1d24e: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
28
-
29
- ## 1.92.0-rc.19
30
-
31
- ### Minor Changes
32
-
33
- - d8be48f: ZERO-3422: Update fetch method to use dynamic request method in wallet complete redirection middleware
34
-
35
- ## 1.92.0-rc.18
36
-
37
- ## 1.92.0-rc.17
38
-
39
- ## 1.92.0-rc.16
7
+ - d99a6a7: ZERO-3457_1: Fixed the settings prop and made sure everything is customizable.
package/README.md CHANGED
@@ -266,24 +266,11 @@ interface SimilarProductsSettings {
266
266
  imageSearchTipsTitle?: string; // NEW: Tips title
267
267
  imageSearchTipsList?: string; // NEW: Tips list
268
268
  imageSearchTipsItem?: string; // NEW: Individual tip
269
- imageSearchModalOverlay?: string; // NEW: Image search modal overlay
270
269
 
271
270
  // Mobile active filters
272
271
  mobileActiveFilters?: string;
273
272
  mobileActiveFilterTag?: string;
274
273
  mobileClearAllButton?: string;
275
-
276
- // New crop-related custom styles
277
- cropComponent?: string;
278
- cropImage?: string;
279
- cropImageActive?: string;
280
- cropImageNonCropping?: string;
281
- cropImageContainer?: string;
282
- cropOverlay?: string;
283
- cropSelection?: string;
284
- cropSelectionBorder?: string;
285
- cropOverlayBackground?: string;
286
- cropSelectionHighlight?: string;
287
274
  };
288
275
 
289
276
  // 25+ render functions for granular control
@@ -569,18 +556,7 @@ const settings = {
569
556
  productItem: 'hover:scale-105 transition-all duration-300 shadow-lg',
570
557
  filterSidebar: 'bg-gradient-to-b from-gray-50 to-white',
571
558
  paginationButton: 'rounded-full px-4 py-2 bg-blue-600 text-white',
572
- activeFilterTag: 'bg-blue-100 text-blue-800 px-3 py-1 rounded-full',
573
-
574
- // Advanced crop styling
575
- cropComponent: 'border-2 border-dashed border-blue-300 rounded-lg',
576
- cropImage: 'rounded-lg shadow-md',
577
- cropImageActive: 'brightness-110 contrast-110',
578
- cropImageNonCropping: 'hover:scale-105 transition-transform',
579
- cropImageContainer: 'bg-gray-50 rounded-lg p-2',
580
- cropOverlay: 'backdrop-blur-sm',
581
- cropOverlayBackground: 'bg-black/60',
582
- cropSelection: 'border-4 border-blue-500',
583
- cropSelectionHighlight: 'shadow-2xl shadow-blue-500/50'
559
+ activeFilterTag: 'bg-blue-100 text-blue-800 px-3 py-1 rounded-full'
584
560
  }
585
561
  };
586
562
  ```
@@ -939,8 +915,7 @@ export function SiteHeader() {
939
915
  settings: {
940
916
  maxFileSize: 5,
941
917
  customStyles: {
942
- imageSearchModal: 'max-w-lg rounded-xl',
943
- imageSearchModalOverlay: 'bg-black/70 backdrop-blur-sm' // Custom overlay
918
+ imageSearchModal: 'max-w-lg rounded-xl'
944
919
  }
945
920
  }
946
921
  }}
@@ -1455,8 +1430,7 @@ const advancedStylingSettings = {
1455
1430
  imageSearchTipsSection: 'bg-yellow-50 border-l-4 border-yellow-400',
1456
1431
  imageSearchTipsTitle: 'text-yellow-800 font-bold',
1457
1432
  imageSearchTipsList: 'text-yellow-700',
1458
- imageSearchTipsItem: 'hover:text-yellow-900 transition-colors',
1459
- imageSearchModalOverlay: 'bg-black/60 backdrop-blur-md' // NEW: Custom overlay
1433
+ imageSearchTipsItem: 'hover:text-yellow-900 transition-colors'
1460
1434
  }
1461
1435
  };
1462
1436
  ```
@@ -1513,7 +1487,6 @@ const hybridAdvancedSettings = {
1513
1487
  - `filterSidebar`, `filterSidebarMobileHeader`, `filterGroup`, `filterGroupTitle`, `filterGroupContent`
1514
1488
  - `filterItem`, `filterItemInput`, `filterItemLabel`, `filterItemCount`
1515
1489
  - `imageSection`, `imageContainer`, `imageWrapper`, `cropButton`, `tickButton`, `uploadButton`, `resetButton`, `errorMessage`, `cropControls`
1516
- - `cropComponent`, `cropImage`, `cropImageActive`, `cropImageNonCropping`, `cropImageContainer`, `cropOverlay`, `cropSelection`, `cropSelectionBorder`, `cropOverlayBackground`, `cropSelectionHighlight`
1517
1490
  - `mobileActiveFilters`, `mobileActiveFilterTag`, `mobileClearAllButton`
1518
1491
 
1519
1492
  **Products & Results:**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/pz-similar-products",
3
- "version": "1.92.0-rc.26",
3
+ "version": "1.92.0-snapshot-ZERO-3457-20250627111231",
4
4
  "license": "MIT",
5
5
  "main": "src/index.ts",
6
6
  "peerDependencies": {
@@ -874,14 +874,6 @@ export function useSimilarProducts(product: Product) {
874
874
  setFileError('');
875
875
  }, []);
876
876
 
877
- const clearResults = useCallback(() => {
878
- setSearchResults(null);
879
- setResultsKey(0);
880
- setLastProductIds([]);
881
- setAllLoadedProducts([]);
882
- setLoadedPages(new Set([1]));
883
- }, []);
884
-
885
877
  const clearFileInput = useCallback(
886
878
  (fileInputRef: React.RefObject<HTMLInputElement>) => {
887
879
  if (fileInputRef.current) {
@@ -948,7 +940,6 @@ export function useSimilarProducts(product: Product) {
948
940
  loadedPages: Array.from(loadedPages),
949
941
  allLoadedProducts,
950
942
  clearError,
951
- clearResults,
952
943
  clearFileInput
953
944
  };
954
945
  }
@@ -357,19 +357,6 @@ export interface SimilarProductsSettings {
357
357
  errorMessage?: string;
358
358
  cropControls?: string;
359
359
 
360
- // Detailed crop styling
361
- cropComponent?: string;
362
- cropImage?: string;
363
- cropImageActive?: string;
364
- cropOverlay?: string;
365
- cropSelection?: string;
366
- cropSelectionBorder?: string;
367
- cropImageNonCropping?: string;
368
- cropImageContainer?: string;
369
- cropImageWrapper?: string;
370
- cropOverlayBackground?: string;
371
- cropSelectionHighlight?: string;
372
-
373
360
  resultsContainer?: string;
374
361
  gridContainer?: string;
375
362
  productItem?: string;
@@ -408,12 +395,10 @@ export interface SimilarProductsSettings {
408
395
  imageSearchTipsTitle?: string;
409
396
  imageSearchTipsList?: string;
410
397
  imageSearchTipsItem?: string;
411
- imageSearchModalOverlay?: string;
412
398
 
413
399
  mobileActiveFilters?: string;
414
400
  mobileActiveFilterTag?: string;
415
401
  mobileClearAllButton?: string;
416
- filterSidebarMobileOverlay?: string;
417
402
  };
418
403
  customRenderers?: {
419
404
  Modal?: React.ComponentType<SimilarProductsModalProps>;