@sledge-app/react-instant-search 1.0.14 → 1.0.16

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: {
@@ -369,7 +370,8 @@ const ColorSwatch$1 = "";
369
370
  const ColorSwatch = ({ id, name, value, rgb, image, required, defaultChecked, onClick }) => {
370
371
  const styles = {
371
372
  ...(image == null ? void 0 : image.length) ? {
372
- backgroundImage: `url(${image})`
373
+ backgroundImage: `url("${image}")`,
374
+ backgroundSize: "contain"
373
375
  } : {
374
376
  backgroundColor: rgb
375
377
  }
@@ -3066,7 +3068,7 @@ const SuggestionKeywordLists = ({
3066
3068
  isComponentJsVersion = false,
3067
3069
  showPopupComponent,
3068
3070
  setShowPopupComponent,
3069
- urlSearchResult = DEFAULT_SEARCH_RESULT_URL,
3071
+ urlSearchResult = "",
3070
3072
  query
3071
3073
  }) => {
3072
3074
  var _a;
@@ -3087,7 +3089,7 @@ const SuggestionKeywordLists = ({
3087
3089
  return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
3088
3090
  "a",
3089
3091
  {
3090
- href: `${urlSearchResult}?${queryKeyword}=${keyword}`,
3092
+ href: `${urlSearchResult || DEFAULT_SEARCH_RESULT_URL}?${queryKeyword}=${keyword}`,
3091
3093
  className: "sledge-instant-search__icon-widget-search-form-result-list-link sledge-instant-search__icon-widget-search-form-result-list-link-suggestion",
3092
3094
  children: [
3093
3095
  /* @__PURE__ */ jsxRuntimeExports.jsx(SearchIcon, { width: 12, height: 12, color: "#677487" }),
@@ -3106,7 +3108,7 @@ const SearchViewMoreResult = ({
3106
3108
  isComponentJsVersion = false,
3107
3109
  showPopupComponent,
3108
3110
  setShowPopupComponent,
3109
- urlSearchResult = DEFAULT_SEARCH_RESULT_URL,
3111
+ urlSearchResult = "",
3110
3112
  query
3111
3113
  }) => {
3112
3114
  var _a;
@@ -3121,7 +3123,7 @@ const SearchViewMoreResult = ({
3121
3123
  return /* @__PURE__ */ jsxRuntimeExports.jsx(React__default.Fragment, { children: isComponentJsVersion ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { dangerouslySetInnerHTML: { __html: Component({ ...ComponentProps }) } }) : /* @__PURE__ */ jsxRuntimeExports.jsx(Component, { ...ComponentProps }) });
3122
3124
  } else {
3123
3125
  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" });
3126
+ 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
3127
  }
3126
3128
  };
3127
3129
  const Global = {