@sledge-app/react-instant-search 0.0.114 → 0.0.116
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/dist/components/SearchResultWidget/SearchResultWidget.d.ts.map +1 -1
- package/dist/sledge-react-instant-search.cjs +1 -1
- package/dist/sledge-react-instant-search.cjs.map +1 -1
- package/dist/sledge-react-instant-search.js +3 -3
- package/dist/sledge-react-instant-search.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -72,8 +72,7 @@ const LOCAL_STORAGE_KEY = {
|
|
|
72
72
|
PRODUCT_REVIEW_SETTING: "sledge-product-review-setting",
|
|
73
73
|
INSTANT_SEARCH_SETTING: "sledge-instant-search-setting",
|
|
74
74
|
ISSUED_AUTH_APP: "sledge-issued-auth-app",
|
|
75
|
-
EXPIRED_AUTH_APP: "sledge-expired-auth-app"
|
|
76
|
-
EXPIRED_SETTING: "sledge-expired-setting"
|
|
75
|
+
EXPIRED_AUTH_APP: "sledge-expired-auth-app"
|
|
77
76
|
};
|
|
78
77
|
const INTERNAL_SELECTOR_VALUE = {
|
|
79
78
|
ELEMENT_TOAST_NOTIFICATION: "toast-notification",
|
|
@@ -1207,7 +1206,7 @@ const Trigger = (props) => {
|
|
|
1207
1206
|
const { status, data: response_data } = resAddWishlist || {};
|
|
1208
1207
|
const { code } = status || {};
|
|
1209
1208
|
if (code === 200) {
|
|
1210
|
-
if ((
|
|
1209
|
+
if ((_b2 = (_a2 = triggerRenderMultipleComponent == null ? void 0 : triggerRenderMultipleComponent.wishlist) == null ? void 0 : _a2.badge) == null ? void 0 : _b2.trigger)
|
|
1211
1210
|
(_f = (_c2 = triggerRenderMultipleComponent == null ? void 0 : triggerRenderMultipleComponent.wishlist) == null ? void 0 : _c2.badge) == null ? void 0 : _f.trigger(!((_e = (_d = triggerRenderMultipleComponent == null ? void 0 : triggerRenderMultipleComponent.wishlist) == null ? void 0 : _d.badge) == null ? void 0 : _e.value));
|
|
1212
1211
|
BadgeInitSelector(true);
|
|
1213
1212
|
if (typeof window !== "undefined") {
|
|
@@ -3437,6 +3436,7 @@ const SearchResultWidget = (props) => {
|
|
|
3437
3436
|
React__default.useEffect(() => {
|
|
3438
3437
|
if (!isRenderAppInstantSearch)
|
|
3439
3438
|
return;
|
|
3439
|
+
console.log("isRenderAppInstantSearch");
|
|
3440
3440
|
const searchParams2 = new URLSearchParams(document.location.search);
|
|
3441
3441
|
setKeyword((searchParams2 == null ? void 0 : searchParams2.get(queryKeyword)) || "");
|
|
3442
3442
|
handleSettings(localStorage.getItem(LOCAL_STORAGE_KEY.INSTANT_SEARCH_SETTING) || null);
|