@getlupa/client 1.12.9 → 1.12.10
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.iife.js +9 -3
- package/dist/lupaSearch.js +9 -3
- package/dist/lupaSearch.mjs +9 -3
- package/dist/lupaSearch.umd.js +9 -3
- package/package.json +2 -2
package/dist/lupaSearch.iife.js
CHANGED
|
@@ -22110,7 +22110,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
22110
22110
|
};
|
|
22111
22111
|
}
|
|
22112
22112
|
});
|
|
22113
|
-
const _hoisted_1$8 = {
|
|
22113
|
+
const _hoisted_1$8 = {
|
|
22114
|
+
key: 0,
|
|
22115
|
+
class: "lupa-search-product-recommendations-wrapper"
|
|
22116
|
+
};
|
|
22114
22117
|
const _hoisted_2$6 = {
|
|
22115
22118
|
key: 0,
|
|
22116
22119
|
class: "lupa-recommendation-section-title"
|
|
@@ -22161,6 +22164,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
22161
22164
|
var _a, _b;
|
|
22162
22165
|
return (_b = (_a = props.options.recommendationLabels) == null ? void 0 : _a.title) != null ? _b : "";
|
|
22163
22166
|
});
|
|
22167
|
+
const hasRecommendations = computed(() => {
|
|
22168
|
+
return recommendations2.value.length > 0;
|
|
22169
|
+
});
|
|
22164
22170
|
onMounted(() => {
|
|
22165
22171
|
loadRecommendations();
|
|
22166
22172
|
window.addEventListener("resize", handleResize);
|
|
@@ -22235,7 +22241,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
22235
22241
|
});
|
|
22236
22242
|
__expose({ fetch: fetch2 });
|
|
22237
22243
|
return (_ctx, _cache) => {
|
|
22238
|
-
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
22244
|
+
return hasRecommendations.value ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
22239
22245
|
title.value ? (openBlock(), createElementBlock("h2", _hoisted_2$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
22240
22246
|
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
22241
22247
|
layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
|
|
@@ -22271,7 +22277,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
22271
22277
|
}), 128))
|
|
22272
22278
|
]))
|
|
22273
22279
|
])) : createCommentVNode("", true)
|
|
22274
|
-
]);
|
|
22280
|
+
])) : createCommentVNode("", true);
|
|
22275
22281
|
};
|
|
22276
22282
|
}
|
|
22277
22283
|
});
|
package/dist/lupaSearch.js
CHANGED
|
@@ -22110,7 +22110,10 @@ var Slide = defineComponent({
|
|
|
22110
22110
|
};
|
|
22111
22111
|
}
|
|
22112
22112
|
});
|
|
22113
|
-
const _hoisted_1$8 = {
|
|
22113
|
+
const _hoisted_1$8 = {
|
|
22114
|
+
key: 0,
|
|
22115
|
+
class: "lupa-search-product-recommendations-wrapper"
|
|
22116
|
+
};
|
|
22114
22117
|
const _hoisted_2$6 = {
|
|
22115
22118
|
key: 0,
|
|
22116
22119
|
class: "lupa-recommendation-section-title"
|
|
@@ -22161,6 +22164,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22161
22164
|
var _a, _b;
|
|
22162
22165
|
return (_b = (_a = props.options.recommendationLabels) == null ? void 0 : _a.title) != null ? _b : "";
|
|
22163
22166
|
});
|
|
22167
|
+
const hasRecommendations = computed(() => {
|
|
22168
|
+
return recommendations2.value.length > 0;
|
|
22169
|
+
});
|
|
22164
22170
|
onMounted(() => {
|
|
22165
22171
|
loadRecommendations();
|
|
22166
22172
|
window.addEventListener("resize", handleResize);
|
|
@@ -22235,7 +22241,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22235
22241
|
});
|
|
22236
22242
|
__expose({ fetch: fetch2 });
|
|
22237
22243
|
return (_ctx, _cache) => {
|
|
22238
|
-
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
22244
|
+
return hasRecommendations.value ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
22239
22245
|
title.value ? (openBlock(), createElementBlock("h2", _hoisted_2$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
22240
22246
|
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
22241
22247
|
layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
|
|
@@ -22271,7 +22277,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22271
22277
|
}), 128))
|
|
22272
22278
|
]))
|
|
22273
22279
|
])) : createCommentVNode("", true)
|
|
22274
|
-
]);
|
|
22280
|
+
])) : createCommentVNode("", true);
|
|
22275
22281
|
};
|
|
22276
22282
|
}
|
|
22277
22283
|
});
|
package/dist/lupaSearch.mjs
CHANGED
|
@@ -22108,7 +22108,10 @@ var Slide = defineComponent({
|
|
|
22108
22108
|
};
|
|
22109
22109
|
}
|
|
22110
22110
|
});
|
|
22111
|
-
const _hoisted_1$8 = {
|
|
22111
|
+
const _hoisted_1$8 = {
|
|
22112
|
+
key: 0,
|
|
22113
|
+
class: "lupa-search-product-recommendations-wrapper"
|
|
22114
|
+
};
|
|
22112
22115
|
const _hoisted_2$6 = {
|
|
22113
22116
|
key: 0,
|
|
22114
22117
|
class: "lupa-recommendation-section-title"
|
|
@@ -22159,6 +22162,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22159
22162
|
var _a, _b;
|
|
22160
22163
|
return (_b = (_a = props.options.recommendationLabels) == null ? void 0 : _a.title) != null ? _b : "";
|
|
22161
22164
|
});
|
|
22165
|
+
const hasRecommendations = computed(() => {
|
|
22166
|
+
return recommendations2.value.length > 0;
|
|
22167
|
+
});
|
|
22162
22168
|
onMounted(() => {
|
|
22163
22169
|
loadRecommendations();
|
|
22164
22170
|
window.addEventListener("resize", handleResize);
|
|
@@ -22233,7 +22239,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22233
22239
|
});
|
|
22234
22240
|
__expose({ fetch: fetch2 });
|
|
22235
22241
|
return (_ctx, _cache) => {
|
|
22236
|
-
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
22242
|
+
return hasRecommendations.value ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
22237
22243
|
title.value ? (openBlock(), createElementBlock("h2", _hoisted_2$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
22238
22244
|
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
22239
22245
|
layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
|
|
@@ -22269,7 +22275,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
22269
22275
|
}), 128))
|
|
22270
22276
|
]))
|
|
22271
22277
|
])) : createCommentVNode("", true)
|
|
22272
|
-
]);
|
|
22278
|
+
])) : createCommentVNode("", true);
|
|
22273
22279
|
};
|
|
22274
22280
|
}
|
|
22275
22281
|
});
|
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -22112,7 +22112,10 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
22112
22112
|
};
|
|
22113
22113
|
}
|
|
22114
22114
|
});
|
|
22115
|
-
const _hoisted_1$8 = {
|
|
22115
|
+
const _hoisted_1$8 = {
|
|
22116
|
+
key: 0,
|
|
22117
|
+
class: "lupa-search-product-recommendations-wrapper"
|
|
22118
|
+
};
|
|
22116
22119
|
const _hoisted_2$6 = {
|
|
22117
22120
|
key: 0,
|
|
22118
22121
|
class: "lupa-recommendation-section-title"
|
|
@@ -22163,6 +22166,9 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
22163
22166
|
var _a, _b;
|
|
22164
22167
|
return (_b = (_a = props.options.recommendationLabels) == null ? void 0 : _a.title) != null ? _b : "";
|
|
22165
22168
|
});
|
|
22169
|
+
const hasRecommendations = computed(() => {
|
|
22170
|
+
return recommendations2.value.length > 0;
|
|
22171
|
+
});
|
|
22166
22172
|
onMounted(() => {
|
|
22167
22173
|
loadRecommendations();
|
|
22168
22174
|
window.addEventListener("resize", handleResize);
|
|
@@ -22237,7 +22243,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
22237
22243
|
});
|
|
22238
22244
|
__expose({ fetch: fetch2 });
|
|
22239
22245
|
return (_ctx, _cache) => {
|
|
22240
|
-
return openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
22246
|
+
return hasRecommendations.value ? (openBlock(), createElementBlock("div", _hoisted_1$8, [
|
|
22241
22247
|
title.value ? (openBlock(), createElementBlock("h2", _hoisted_2$6, toDisplayString(title.value), 1)) : createCommentVNode("", true),
|
|
22242
22248
|
!loading.value ? (openBlock(), createElementBlock("div", _hoisted_3$4, [
|
|
22243
22249
|
layoutType.value === "carousel" ? (openBlock(), createBlock(unref(Carousel), mergeProps({ key: 0 }, carouselOptions.value, { "wrap-around": true }), {
|
|
@@ -22273,7 +22279,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
22273
22279
|
}), 128))
|
|
22274
22280
|
]))
|
|
22275
22281
|
])) : createCommentVNode("", true)
|
|
22276
|
-
]);
|
|
22282
|
+
])) : createCommentVNode("", true);
|
|
22277
22283
|
};
|
|
22278
22284
|
}
|
|
22279
22285
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getlupa/client",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.10",
|
|
4
4
|
"main": "dist/lupaSearch.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@getlupa/client-sdk": "^1.3.4",
|
|
23
|
-
"@getlupa/vue": "0.12.
|
|
23
|
+
"@getlupa/vue": "0.12.10",
|
|
24
24
|
"@rushstack/eslint-patch": "^1.3.2",
|
|
25
25
|
"@tsconfig/node18": "^2.0.1",
|
|
26
26
|
"@types/jsdom": "^21.1.1",
|