@sledge-app/react-instant-search 1.0.13 → 1.0.14
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/Global/SuggestionKeywordLists.d.ts +5 -1
- package/dist/components/Global/SuggestionKeywordLists.d.ts.map +1 -1
- package/dist/components/Global/index.d.ts +5 -1
- package/dist/components/Global/index.d.ts.map +1 -1
- package/dist/components/SearchIconWidget/SearchIconWidgetPopup.d.ts.map +1 -1
- package/dist/components/SearchWidget/SearchWidget.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 +11 -4
- package/dist/sledge-react-instant-search.js.map +1 -1
- package/package.json +1 -1
|
@@ -3065,7 +3065,9 @@ const SuggestionKeywordLists = ({
|
|
|
3065
3065
|
keywords,
|
|
3066
3066
|
isComponentJsVersion = false,
|
|
3067
3067
|
showPopupComponent,
|
|
3068
|
-
setShowPopupComponent
|
|
3068
|
+
setShowPopupComponent,
|
|
3069
|
+
urlSearchResult = DEFAULT_SEARCH_RESULT_URL,
|
|
3070
|
+
query
|
|
3069
3071
|
}) => {
|
|
3070
3072
|
var _a;
|
|
3071
3073
|
if (ListsComponent) {
|
|
@@ -3078,13 +3080,14 @@ const SuggestionKeywordLists = ({
|
|
|
3078
3080
|
const ListsProps = { keywords, showPopupComponent, setShowPopupComponent, setRenderSearchResult };
|
|
3079
3081
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(React__default.Fragment, { children: isComponentJsVersion ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { dangerouslySetInnerHTML: { __html: ListsComponent({ ...ListsProps }) } }) : /* @__PURE__ */ jsxRuntimeExports.jsx(ListsComponent, { ...ListsProps }) });
|
|
3080
3082
|
} else {
|
|
3083
|
+
const queryKeyword = (query == null ? void 0 : query.keyword) ? query.keyword : DEFAULT_QUERY_PARAM.KEYWORD;
|
|
3081
3084
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
3082
3085
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge-instant-search__icon-widget-search-form-result-title", children: "Suggestions" }),
|
|
3083
3086
|
/* @__PURE__ */ jsxRuntimeExports.jsx("ul", { className: "sledge-instant-search__icon-widget-search-form-result-list", children: keywords == null ? void 0 : keywords.map((keyword, index) => {
|
|
3084
3087
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
3085
3088
|
"a",
|
|
3086
3089
|
{
|
|
3087
|
-
href: `${
|
|
3090
|
+
href: `${urlSearchResult}?${queryKeyword}=${keyword}`,
|
|
3088
3091
|
className: "sledge-instant-search__icon-widget-search-form-result-list-link sledge-instant-search__icon-widget-search-form-result-list-link-suggestion",
|
|
3089
3092
|
children: [
|
|
3090
3093
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SearchIcon, { width: 12, height: 12, color: "#677487" }),
|
|
@@ -3362,7 +3365,9 @@ const SearchIconWidgetPopup = () => {
|
|
|
3362
3365
|
keywords: suggestionSettings[suggestionIndex].keywords.list,
|
|
3363
3366
|
isComponentJsVersion: handleFunctions.isJsVersion,
|
|
3364
3367
|
showPopupComponent: showInfo,
|
|
3365
|
-
setShowPopupComponent: setShowInfo
|
|
3368
|
+
setShowPopupComponent: setShowInfo,
|
|
3369
|
+
urlSearchResult,
|
|
3370
|
+
query: handleFunctions.query
|
|
3366
3371
|
}
|
|
3367
3372
|
) : null,
|
|
3368
3373
|
searchResultOther && searchResultOther.map((item, index) => {
|
|
@@ -5022,7 +5027,9 @@ const SearchWidget = (props) => {
|
|
|
5022
5027
|
{
|
|
5023
5028
|
listsComponent: suggestionKeywordListsComponent,
|
|
5024
5029
|
keywords: suggestionSettings[suggestionIndex].keywords.list,
|
|
5025
|
-
isComponentJsVersion: isJsVersion
|
|
5030
|
+
isComponentJsVersion: isJsVersion,
|
|
5031
|
+
urlSearchResult,
|
|
5032
|
+
query
|
|
5026
5033
|
}
|
|
5027
5034
|
) : null,
|
|
5028
5035
|
searchResultOther.map((item, index) => {
|