@getlupa/vue 0.1.0 → 0.1.2

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.
@@ -2211,6 +2211,11 @@ var DocumentElementType = /* @__PURE__ */ ((DocumentElementType2) => {
2211
2211
  DocumentElementType2["CUSTOM_HTML"] = "customHtml";
2212
2212
  return DocumentElementType2;
2213
2213
  })(DocumentElementType || {});
2214
+ var SearchBoxPanelType = /* @__PURE__ */ ((SearchBoxPanelType2) => {
2215
+ SearchBoxPanelType2["SUGGESTION"] = "suggestion";
2216
+ SearchBoxPanelType2["DOCUMENT"] = "document";
2217
+ return SearchBoxPanelType2;
2218
+ })(SearchBoxPanelType || {});
2214
2219
  const retrieveHistory = () => {
2215
2220
  try {
2216
2221
  const historyString = window.localStorage.getItem(HISTORY_LOCAL_STORAGE_KEY);
@@ -2800,11 +2805,6 @@ const useParamsStore = defineStore("params", () => {
2800
2805
  setSearchResultsLink
2801
2806
  };
2802
2807
  });
2803
- var SearchBoxPanelType = /* @__PURE__ */ ((SearchBoxPanelType2) => {
2804
- SearchBoxPanelType2["SUGGESTION"] = "suggestion";
2805
- SearchBoxPanelType2["DOCUMENT"] = "document";
2806
- return SearchBoxPanelType2;
2807
- })(SearchBoxPanelType || {});
2808
2808
  const flattenFacet = (key, facets, suggestion, inputValue) => {
2809
2809
  return facets.map((f2) => ({
2810
2810
  displayHighlight: getHint(suggestion.suggestion, inputValue != null ? inputValue : ""),
@@ -3958,8 +3958,8 @@ const useSearchResultStore = defineStore("searchResult", () => {
3958
3958
  setLoading
3959
3959
  };
3960
3960
  });
3961
- const _hoisted_1$S = { class: "lupa-search-results-add-to-cart-wrapper" };
3962
- const _hoisted_2$C = { class: "lupa-search-results-product-addtocart" };
3961
+ const _hoisted_1$S = { class: "lupa-search-box-add-to-cart-wrapper" };
3962
+ const _hoisted_2$C = { class: "lupa-search-box-product-addtocart" };
3963
3963
  const _hoisted_3$r = ["onClick", "disabled"];
3964
3964
  const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
3965
3965
  __name: "SearchBoxProductAddToCart",
@@ -15971,6 +15971,7 @@ exports.LupaSearch = LupaSearch;
15971
15971
  exports.ProductList = _sfc_main$2;
15972
15972
  exports.Recommendations = _sfc_main;
15973
15973
  exports.SearchBox = _sfc_main$R;
15974
+ exports.SearchBoxPanelType = SearchBoxPanelType;
15974
15975
  exports.SearchContainer = _sfc_main$1;
15975
15976
  exports.SearchResults = _sfc_main$4;
15976
15977
  exports.getInitialSearchResults = getInitialSearchResults;
@@ -2209,6 +2209,11 @@ var DocumentElementType = /* @__PURE__ */ ((DocumentElementType2) => {
2209
2209
  DocumentElementType2["CUSTOM_HTML"] = "customHtml";
2210
2210
  return DocumentElementType2;
2211
2211
  })(DocumentElementType || {});
2212
+ var SearchBoxPanelType = /* @__PURE__ */ ((SearchBoxPanelType2) => {
2213
+ SearchBoxPanelType2["SUGGESTION"] = "suggestion";
2214
+ SearchBoxPanelType2["DOCUMENT"] = "document";
2215
+ return SearchBoxPanelType2;
2216
+ })(SearchBoxPanelType || {});
2212
2217
  const retrieveHistory = () => {
2213
2218
  try {
2214
2219
  const historyString = window.localStorage.getItem(HISTORY_LOCAL_STORAGE_KEY);
@@ -2798,11 +2803,6 @@ const useParamsStore = defineStore("params", () => {
2798
2803
  setSearchResultsLink
2799
2804
  };
2800
2805
  });
2801
- var SearchBoxPanelType = /* @__PURE__ */ ((SearchBoxPanelType2) => {
2802
- SearchBoxPanelType2["SUGGESTION"] = "suggestion";
2803
- SearchBoxPanelType2["DOCUMENT"] = "document";
2804
- return SearchBoxPanelType2;
2805
- })(SearchBoxPanelType || {});
2806
2806
  const flattenFacet = (key, facets, suggestion, inputValue) => {
2807
2807
  return facets.map((f2) => ({
2808
2808
  displayHighlight: getHint(suggestion.suggestion, inputValue != null ? inputValue : ""),
@@ -3956,8 +3956,8 @@ const useSearchResultStore = defineStore("searchResult", () => {
3956
3956
  setLoading
3957
3957
  };
3958
3958
  });
3959
- const _hoisted_1$S = { class: "lupa-search-results-add-to-cart-wrapper" };
3960
- const _hoisted_2$C = { class: "lupa-search-results-product-addtocart" };
3959
+ const _hoisted_1$S = { class: "lupa-search-box-add-to-cart-wrapper" };
3960
+ const _hoisted_2$C = { class: "lupa-search-box-product-addtocart" };
3961
3961
  const _hoisted_3$r = ["onClick", "disabled"];
3962
3962
  const _sfc_main$X = /* @__PURE__ */ defineComponent({
3963
3963
  __name: "SearchBoxProductAddToCart",
@@ -15970,6 +15970,7 @@ export {
15970
15970
  _sfc_main$2 as ProductList,
15971
15971
  _sfc_main as Recommendations,
15972
15972
  _sfc_main$R as SearchBox,
15973
+ SearchBoxPanelType,
15973
15974
  _sfc_main$1 as SearchContainer,
15974
15975
  _sfc_main$4 as SearchResults,
15975
15976
  getInitialSearchResults,
@@ -5,9 +5,9 @@ import type { DocumentElement, ImageDocumentElement, TitleDocumentElement, Descr
5
5
  import type { ProductListOptions, CategoryFilterOptions } from './types/product-list/ProductListOptions';
6
6
  import type { ProductRecommendationOptions, RecommendationABTestingOptions } from './types/recommendations/RecommendationsOptions';
7
7
  import type { SearchBoxOptions } from './types/search-box/SearchBoxOptions';
8
- import type { SearchBoxPanelType } from './types/search-box/SearchBoxPanel';
8
+ import { SearchBoxPanelType } from './types/search-box/SearchBoxPanel';
9
9
  import type { SearchContainerOptions, SearchContainerConfigOptions } from './types/search-container/SearchContainerOptions';
10
- import type { BadgeType, SearchResultBadgeType, SearchResultBadgeElement, BadgeGenerateSeed, BadgeGenerateOptions, BadgeOptions } from './types/search-results/BadgeOptions';
10
+ import type { SearchResultBadgeType, SearchResultBadgeElement, BadgeGenerateSeed, BadgeGenerateOptions, BadgeOptions, BadgeType } from './types/search-results/BadgeOptions';
11
11
  import type { RoutingBehavior } from './types/search-results/RoutingBehavior';
12
12
  import type { SearchResultsOptions, FacetStyle, SearchResultEventCallbacks, CallbackContext, FacetFilterQuery, SearchResultsFilterOptions, ResultFacetOptions, DynamicData, SsrOptions } from './types/search-results/SearchResultsOptions';
13
13
  import type { AnchorPosition } from './types/search-results/SearchResultsProductCardOptions';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getlupa/vue",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "main": "dist/lupaSearch.js",
5
5
  "module": "dist/lupaSearch.mjs",
6
6
  "types": "dist/src/index.d.ts",