@getlupa/vue 0.1.1 → 0.1.3

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,20 @@ 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 || {});
2219
+ var BadgeType = /* @__PURE__ */ ((BadgeType2) => {
2220
+ BadgeType2["DISCOUNTPERCENTAGE"] = "discountPercentage";
2221
+ BadgeType2["DISCOUNTAMOUNT"] = "discountAmount";
2222
+ BadgeType2["NEWITEM"] = "newItem";
2223
+ BadgeType2["TEXT"] = "text";
2224
+ BadgeType2["IMAGE"] = "image";
2225
+ BadgeType2["CUSTOM_HTML"] = "customHtml";
2226
+ return BadgeType2;
2227
+ })(BadgeType || {});
2214
2228
  const retrieveHistory = () => {
2215
2229
  try {
2216
2230
  const historyString = window.localStorage.getItem(HISTORY_LOCAL_STORAGE_KEY);
@@ -2800,11 +2814,6 @@ const useParamsStore = defineStore("params", () => {
2800
2814
  setSearchResultsLink
2801
2815
  };
2802
2816
  });
2803
- var SearchBoxPanelType = /* @__PURE__ */ ((SearchBoxPanelType2) => {
2804
- SearchBoxPanelType2["SUGGESTION"] = "suggestion";
2805
- SearchBoxPanelType2["DOCUMENT"] = "document";
2806
- return SearchBoxPanelType2;
2807
- })(SearchBoxPanelType || {});
2808
2817
  const flattenFacet = (key, facets, suggestion, inputValue) => {
2809
2818
  return facets.map((f2) => ({
2810
2819
  displayHighlight: getHint(suggestion.suggestion, inputValue != null ? inputValue : ""),
@@ -7792,15 +7801,6 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
7792
7801
  };
7793
7802
  }
7794
7803
  });
7795
- var BadgeType = /* @__PURE__ */ ((BadgeType2) => {
7796
- BadgeType2["DISCOUNTPERCENTAGE"] = "discountPercentage";
7797
- BadgeType2["DISCOUNTAMOUNT"] = "discountAmount";
7798
- BadgeType2["NEWITEM"] = "newItem";
7799
- BadgeType2["TEXT"] = "text";
7800
- BadgeType2["IMAGE"] = "image";
7801
- BadgeType2["CUSTOM_HTML"] = "customHtml";
7802
- return BadgeType2;
7803
- })(BadgeType || {});
7804
7804
  const _hoisted_1$p = { class: "lupa-generated-badges" };
7805
7805
  const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
7806
7806
  __name: "SearchResultGeneratedBadges",
@@ -15966,11 +15966,13 @@ const LupaSearch = {
15966
15966
  app.use(pinia);
15967
15967
  }
15968
15968
  };
15969
+ exports.BadgeType = BadgeType;
15969
15970
  exports.DocumentElementType = DocumentElementType;
15970
15971
  exports.LupaSearch = LupaSearch;
15971
15972
  exports.ProductList = _sfc_main$2;
15972
15973
  exports.Recommendations = _sfc_main;
15973
15974
  exports.SearchBox = _sfc_main$R;
15975
+ exports.SearchBoxPanelType = SearchBoxPanelType;
15974
15976
  exports.SearchContainer = _sfc_main$1;
15975
15977
  exports.SearchResults = _sfc_main$4;
15976
15978
  exports.getInitialSearchResults = getInitialSearchResults;
@@ -2209,6 +2209,20 @@ 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 || {});
2217
+ var BadgeType = /* @__PURE__ */ ((BadgeType2) => {
2218
+ BadgeType2["DISCOUNTPERCENTAGE"] = "discountPercentage";
2219
+ BadgeType2["DISCOUNTAMOUNT"] = "discountAmount";
2220
+ BadgeType2["NEWITEM"] = "newItem";
2221
+ BadgeType2["TEXT"] = "text";
2222
+ BadgeType2["IMAGE"] = "image";
2223
+ BadgeType2["CUSTOM_HTML"] = "customHtml";
2224
+ return BadgeType2;
2225
+ })(BadgeType || {});
2212
2226
  const retrieveHistory = () => {
2213
2227
  try {
2214
2228
  const historyString = window.localStorage.getItem(HISTORY_LOCAL_STORAGE_KEY);
@@ -2798,11 +2812,6 @@ const useParamsStore = defineStore("params", () => {
2798
2812
  setSearchResultsLink
2799
2813
  };
2800
2814
  });
2801
- var SearchBoxPanelType = /* @__PURE__ */ ((SearchBoxPanelType2) => {
2802
- SearchBoxPanelType2["SUGGESTION"] = "suggestion";
2803
- SearchBoxPanelType2["DOCUMENT"] = "document";
2804
- return SearchBoxPanelType2;
2805
- })(SearchBoxPanelType || {});
2806
2815
  const flattenFacet = (key, facets, suggestion, inputValue) => {
2807
2816
  return facets.map((f2) => ({
2808
2817
  displayHighlight: getHint(suggestion.suggestion, inputValue != null ? inputValue : ""),
@@ -7790,15 +7799,6 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
7790
7799
  };
7791
7800
  }
7792
7801
  });
7793
- var BadgeType = /* @__PURE__ */ ((BadgeType2) => {
7794
- BadgeType2["DISCOUNTPERCENTAGE"] = "discountPercentage";
7795
- BadgeType2["DISCOUNTAMOUNT"] = "discountAmount";
7796
- BadgeType2["NEWITEM"] = "newItem";
7797
- BadgeType2["TEXT"] = "text";
7798
- BadgeType2["IMAGE"] = "image";
7799
- BadgeType2["CUSTOM_HTML"] = "customHtml";
7800
- return BadgeType2;
7801
- })(BadgeType || {});
7802
7802
  const _hoisted_1$p = { class: "lupa-generated-badges" };
7803
7803
  const _sfc_main$s = /* @__PURE__ */ defineComponent({
7804
7804
  __name: "SearchResultGeneratedBadges",
@@ -15965,11 +15965,13 @@ const LupaSearch = {
15965
15965
  }
15966
15966
  };
15967
15967
  export {
15968
+ BadgeType,
15968
15969
  DocumentElementType,
15969
15970
  LupaSearch,
15970
15971
  _sfc_main$2 as ProductList,
15971
15972
  _sfc_main as Recommendations,
15972
15973
  _sfc_main$R as SearchBox,
15974
+ SearchBoxPanelType,
15973
15975
  _sfc_main$1 as SearchContainer,
15974
15976
  _sfc_main$4 as SearchResults,
15975
15977
  getInitialSearchResults,
@@ -5,9 +5,10 @@ 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 } from './types/search-results/BadgeOptions';
11
+ import { BadgeType } from './types/search-results/BadgeOptions';
11
12
  import type { RoutingBehavior } from './types/search-results/RoutingBehavior';
12
13
  import type { SearchResultsOptions, FacetStyle, SearchResultEventCallbacks, CallbackContext, FacetFilterQuery, SearchResultsFilterOptions, ResultFacetOptions, DynamicData, SsrOptions } from './types/search-results/SearchResultsOptions';
13
14
  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.1",
3
+ "version": "0.1.3",
4
4
  "main": "dist/lupaSearch.js",
5
5
  "module": "dist/lupaSearch.mjs",
6
6
  "types": "dist/src/index.d.ts",