@akinon/pz-similar-products 2.0.159-rc.21 → 2.0.160-beta.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,23 +1,8 @@
1
1
  # @akinon/pz-similar-products
2
2
 
3
- ## 2.0.159-rc.21
3
+ ## 2.0.160-beta.0
4
4
 
5
- ## 2.0.159-rc.20
6
-
7
- ## 2.0.159-rc.19
8
-
9
- ## 2.0.159-rc.18
10
-
11
- ## 2.0.159-rc.17
12
-
13
- ## 2.0.159-rc.16
14
-
15
- ## 2.0.159-rc.15
16
-
17
- ### Patch Changes
18
-
19
- - 143be2b9d: ZERO-3457: Crop styles are customizable and logic improved for rendering similar products modal
20
- - d99a6a7d5: ZERO-3457_1: Fixed the settings prop and made sure everything is customizable.
5
+ ## 2.0.159
21
6
 
22
7
  ## 2.0.158
23
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/pz-similar-products",
3
- "version": "2.0.159-rc.21",
3
+ "version": "2.0.160-beta.0",
4
4
  "license": "MIT",
5
5
  "main": "src/index.ts",
6
6
  "peerDependencies": {
@@ -1,32 +0,0 @@
1
- import { useState, useEffect } from 'react';
2
-
3
- const IMAGE_SEARCH_STORAGE_KEY = 'enable_image_search';
4
-
5
- export function useImageSearchFeature() {
6
- const [isEnabled, setIsEnabled] = useState(false);
7
- const [isLoading, setIsLoading] = useState(true);
8
-
9
- useEffect(() => {
10
- const envEnabled = process.env.NEXT_PUBLIC_ENABLE_IMAGE_SEARCH === 'true';
11
-
12
- if (envEnabled) {
13
- setIsEnabled(true);
14
- setIsLoading(false);
15
- return;
16
- }
17
-
18
- try {
19
- const localStorageValue = localStorage.getItem(IMAGE_SEARCH_STORAGE_KEY);
20
- setIsEnabled(localStorageValue === 'true');
21
- } catch (error) {
22
- setIsEnabled(false);
23
- }
24
-
25
- setIsLoading(false);
26
- }, []);
27
-
28
- return {
29
- isEnabled,
30
- isLoading
31
- };
32
- }