@getlupa/vue 0.1.2 → 0.1.4
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/lupaSearch.js +12 -10
- package/dist/lupaSearch.mjs +12 -10
- package/dist/src/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/lupaSearch.js
CHANGED
|
@@ -2216,6 +2216,15 @@ var SearchBoxPanelType = /* @__PURE__ */ ((SearchBoxPanelType2) => {
|
|
|
2216
2216
|
SearchBoxPanelType2["DOCUMENT"] = "document";
|
|
2217
2217
|
return SearchBoxPanelType2;
|
|
2218
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 || {});
|
|
2219
2228
|
const retrieveHistory = () => {
|
|
2220
2229
|
try {
|
|
2221
2230
|
const historyString = window.localStorage.getItem(HISTORY_LOCAL_STORAGE_KEY);
|
|
@@ -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",
|
|
@@ -9248,7 +9248,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
9248
9248
|
isContainer: { type: Boolean },
|
|
9249
9249
|
initialData: {}
|
|
9250
9250
|
},
|
|
9251
|
-
setup(__props) {
|
|
9251
|
+
setup(__props, { expose: __expose }) {
|
|
9252
9252
|
const props = __props;
|
|
9253
9253
|
const searchResultStore = useSearchResultStore();
|
|
9254
9254
|
const optionStore = useOptionsStore();
|
|
@@ -9423,6 +9423,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
9423
9423
|
}
|
|
9424
9424
|
};
|
|
9425
9425
|
handleCreated();
|
|
9426
|
+
__expose({ handleMounted, handleUrlChange });
|
|
9426
9427
|
return (_ctx, _cache) => {
|
|
9427
9428
|
var _a, _b, _c, _d, _e;
|
|
9428
9429
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -15966,6 +15967,7 @@ const LupaSearch = {
|
|
|
15966
15967
|
app.use(pinia);
|
|
15967
15968
|
}
|
|
15968
15969
|
};
|
|
15970
|
+
exports.BadgeType = BadgeType;
|
|
15969
15971
|
exports.DocumentElementType = DocumentElementType;
|
|
15970
15972
|
exports.LupaSearch = LupaSearch;
|
|
15971
15973
|
exports.ProductList = _sfc_main$2;
|
package/dist/lupaSearch.mjs
CHANGED
|
@@ -2214,6 +2214,15 @@ var SearchBoxPanelType = /* @__PURE__ */ ((SearchBoxPanelType2) => {
|
|
|
2214
2214
|
SearchBoxPanelType2["DOCUMENT"] = "document";
|
|
2215
2215
|
return SearchBoxPanelType2;
|
|
2216
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 || {});
|
|
2217
2226
|
const retrieveHistory = () => {
|
|
2218
2227
|
try {
|
|
2219
2228
|
const historyString = window.localStorage.getItem(HISTORY_LOCAL_STORAGE_KEY);
|
|
@@ -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",
|
|
@@ -9246,7 +9246,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
9246
9246
|
isContainer: { type: Boolean },
|
|
9247
9247
|
initialData: {}
|
|
9248
9248
|
},
|
|
9249
|
-
setup(__props) {
|
|
9249
|
+
setup(__props, { expose: __expose }) {
|
|
9250
9250
|
const props = __props;
|
|
9251
9251
|
const searchResultStore = useSearchResultStore();
|
|
9252
9252
|
const optionStore = useOptionsStore();
|
|
@@ -9421,6 +9421,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
9421
9421
|
}
|
|
9422
9422
|
};
|
|
9423
9423
|
handleCreated();
|
|
9424
|
+
__expose({ handleMounted, handleUrlChange });
|
|
9424
9425
|
return (_ctx, _cache) => {
|
|
9425
9426
|
var _a, _b, _c, _d, _e;
|
|
9426
9427
|
return openBlock(), createElementBlock("div", {
|
|
@@ -15965,6 +15966,7 @@ const LupaSearch = {
|
|
|
15965
15966
|
}
|
|
15966
15967
|
};
|
|
15967
15968
|
export {
|
|
15969
|
+
BadgeType,
|
|
15968
15970
|
DocumentElementType,
|
|
15969
15971
|
LupaSearch,
|
|
15970
15972
|
_sfc_main$2 as ProductList,
|
package/dist/src/index.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ import type { ProductRecommendationOptions, RecommendationABTestingOptions } fro
|
|
|
7
7
|
import type { SearchBoxOptions } from './types/search-box/SearchBoxOptions';
|
|
8
8
|
import { SearchBoxPanelType } from './types/search-box/SearchBoxPanel';
|
|
9
9
|
import type { SearchContainerOptions, SearchContainerConfigOptions } from './types/search-container/SearchContainerOptions';
|
|
10
|
-
import type { SearchResultBadgeType, SearchResultBadgeElement, BadgeGenerateSeed, BadgeGenerateOptions, 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';
|