@sledge-app/react-instant-search 1.0.14 → 1.0.15
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.
|
@@ -119,7 +119,8 @@ const SELECTOR = {
|
|
|
119
119
|
const DEFAULT_SEARCH_RESULT_URL = "/apps/sledge/search";
|
|
120
120
|
const DEFAULT_WISHLIST_URL = "/apps/sledge/wishlist";
|
|
121
121
|
const DEFAULT_QUERY_PARAM = {
|
|
122
|
-
KEYWORD: "q"
|
|
122
|
+
KEYWORD: "q",
|
|
123
|
+
SHARE_ID: "share"
|
|
123
124
|
};
|
|
124
125
|
const ELEMENT_ID = {
|
|
125
126
|
PRODUCT_REVIEW: {
|
|
@@ -3066,7 +3067,7 @@ const SuggestionKeywordLists = ({
|
|
|
3066
3067
|
isComponentJsVersion = false,
|
|
3067
3068
|
showPopupComponent,
|
|
3068
3069
|
setShowPopupComponent,
|
|
3069
|
-
urlSearchResult =
|
|
3070
|
+
urlSearchResult = "",
|
|
3070
3071
|
query
|
|
3071
3072
|
}) => {
|
|
3072
3073
|
var _a;
|
|
@@ -3087,7 +3088,7 @@ const SuggestionKeywordLists = ({
|
|
|
3087
3088
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
3088
3089
|
"a",
|
|
3089
3090
|
{
|
|
3090
|
-
href: `${urlSearchResult}?${queryKeyword}=${keyword}`,
|
|
3091
|
+
href: `${urlSearchResult || DEFAULT_SEARCH_RESULT_URL}?${queryKeyword}=${keyword}`,
|
|
3091
3092
|
className: "sledge-instant-search__icon-widget-search-form-result-list-link sledge-instant-search__icon-widget-search-form-result-list-link-suggestion",
|
|
3092
3093
|
children: [
|
|
3093
3094
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SearchIcon, { width: 12, height: 12, color: "#677487" }),
|
|
@@ -3106,7 +3107,7 @@ const SearchViewMoreResult = ({
|
|
|
3106
3107
|
isComponentJsVersion = false,
|
|
3107
3108
|
showPopupComponent,
|
|
3108
3109
|
setShowPopupComponent,
|
|
3109
|
-
urlSearchResult =
|
|
3110
|
+
urlSearchResult = "",
|
|
3110
3111
|
query
|
|
3111
3112
|
}) => {
|
|
3112
3113
|
var _a;
|
|
@@ -3121,7 +3122,7 @@ const SearchViewMoreResult = ({
|
|
|
3121
3122
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(React__default.Fragment, { children: isComponentJsVersion ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { dangerouslySetInnerHTML: { __html: Component({ ...ComponentProps }) } }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Component, { ...ComponentProps }) });
|
|
3122
3123
|
} else {
|
|
3123
3124
|
const queryKeyword = (query == null ? void 0 : query.keyword) ? query.keyword : DEFAULT_QUERY_PARAM.KEYWORD;
|
|
3124
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: `${urlSearchResult}?${queryKeyword}=${keyword}`, className: "sledge-instant-search__icon-widget-button-more", children: "View More Result" });
|
|
3125
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: `${urlSearchResult || DEFAULT_SEARCH_RESULT_URL}?${queryKeyword}=${keyword}`, className: "sledge-instant-search__icon-widget-button-more", children: "View More Result" });
|
|
3125
3126
|
}
|
|
3126
3127
|
};
|
|
3127
3128
|
const Global = {
|