@getlupa/client 1.8.1 → 1.8.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.
- package/dist/lupaSearch.iife.js +8 -2
- package/dist/lupaSearch.js +8 -2
- package/dist/lupaSearch.mjs +8 -2
- package/dist/lupaSearch.umd.js +8 -2
- package/package.json +2 -2
package/dist/lupaSearch.iife.js
CHANGED
|
@@ -8356,6 +8356,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8356
8356
|
});
|
|
8357
8357
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
8358
8358
|
});
|
|
8359
|
+
const joinUrlParts = (...parts) => {
|
|
8360
|
+
var _a, _b, _c;
|
|
8361
|
+
if (parts.length === 1) {
|
|
8362
|
+
return `${parts[0]}`;
|
|
8363
|
+
}
|
|
8364
|
+
return (_c = (_b = (_a = parts == null ? void 0 : parts.map((part) => part.replace(/(^\/+|\/+$)/g, ""))) == null ? void 0 : _a.filter((part) => part !== "")) == null ? void 0 : _b.join("/")) != null ? _c : "";
|
|
8365
|
+
};
|
|
8359
8366
|
const _hoisted_1$16 = ["src"];
|
|
8360
8367
|
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
8361
8368
|
__name: "ProductImage",
|
|
@@ -8374,12 +8381,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8374
8381
|
return typeof imageUrl2 === "string" && (imageUrl2.indexOf("http://") === 0 || imageUrl2.indexOf("https://") === 0);
|
|
8375
8382
|
});
|
|
8376
8383
|
const imageUrl = computed(() => {
|
|
8377
|
-
var _a;
|
|
8378
8384
|
const imageUrl2 = image.value;
|
|
8379
8385
|
if (hasFullImageUrl.value) {
|
|
8380
8386
|
return imageUrl2;
|
|
8381
8387
|
}
|
|
8382
|
-
return
|
|
8388
|
+
return rootImageUrl.value ? joinUrlParts(rootImageUrl.value, imageUrl2) : `/${imageUrl2}`;
|
|
8383
8389
|
});
|
|
8384
8390
|
const hasImage = computed(() => Boolean(hasFullImageUrl.value || image.value));
|
|
8385
8391
|
const placeholder = computed(() => props.options.placeholder);
|
package/dist/lupaSearch.js
CHANGED
|
@@ -8356,6 +8356,13 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
|
|
|
8356
8356
|
});
|
|
8357
8357
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
8358
8358
|
});
|
|
8359
|
+
const joinUrlParts = (...parts) => {
|
|
8360
|
+
var _a, _b, _c;
|
|
8361
|
+
if (parts.length === 1) {
|
|
8362
|
+
return `${parts[0]}`;
|
|
8363
|
+
}
|
|
8364
|
+
return (_c = (_b = (_a = parts == null ? void 0 : parts.map((part) => part.replace(/(^\/+|\/+$)/g, ""))) == null ? void 0 : _a.filter((part) => part !== "")) == null ? void 0 : _b.join("/")) != null ? _c : "";
|
|
8365
|
+
};
|
|
8359
8366
|
const _hoisted_1$16 = ["src"];
|
|
8360
8367
|
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
8361
8368
|
__name: "ProductImage",
|
|
@@ -8374,12 +8381,11 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
8374
8381
|
return typeof imageUrl2 === "string" && (imageUrl2.indexOf("http://") === 0 || imageUrl2.indexOf("https://") === 0);
|
|
8375
8382
|
});
|
|
8376
8383
|
const imageUrl = computed(() => {
|
|
8377
|
-
var _a;
|
|
8378
8384
|
const imageUrl2 = image.value;
|
|
8379
8385
|
if (hasFullImageUrl.value) {
|
|
8380
8386
|
return imageUrl2;
|
|
8381
8387
|
}
|
|
8382
|
-
return
|
|
8388
|
+
return rootImageUrl.value ? joinUrlParts(rootImageUrl.value, imageUrl2) : `/${imageUrl2}`;
|
|
8383
8389
|
});
|
|
8384
8390
|
const hasImage = computed(() => Boolean(hasFullImageUrl.value || image.value));
|
|
8385
8391
|
const placeholder = computed(() => props.options.placeholder);
|
package/dist/lupaSearch.mjs
CHANGED
|
@@ -8354,6 +8354,13 @@ const useDynamicDataStore = defineStore("dynamicData", () => {
|
|
|
8354
8354
|
});
|
|
8355
8355
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
8356
8356
|
});
|
|
8357
|
+
const joinUrlParts = (...parts) => {
|
|
8358
|
+
var _a, _b, _c;
|
|
8359
|
+
if (parts.length === 1) {
|
|
8360
|
+
return `${parts[0]}`;
|
|
8361
|
+
}
|
|
8362
|
+
return (_c = (_b = (_a = parts == null ? void 0 : parts.map((part) => part.replace(/(^\/+|\/+$)/g, ""))) == null ? void 0 : _a.filter((part) => part !== "")) == null ? void 0 : _b.join("/")) != null ? _c : "";
|
|
8363
|
+
};
|
|
8357
8364
|
const _hoisted_1$16 = ["src"];
|
|
8358
8365
|
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
8359
8366
|
__name: "ProductImage",
|
|
@@ -8372,12 +8379,11 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
8372
8379
|
return typeof imageUrl2 === "string" && (imageUrl2.indexOf("http://") === 0 || imageUrl2.indexOf("https://") === 0);
|
|
8373
8380
|
});
|
|
8374
8381
|
const imageUrl = computed(() => {
|
|
8375
|
-
var _a;
|
|
8376
8382
|
const imageUrl2 = image.value;
|
|
8377
8383
|
if (hasFullImageUrl.value) {
|
|
8378
8384
|
return imageUrl2;
|
|
8379
8385
|
}
|
|
8380
|
-
return
|
|
8386
|
+
return rootImageUrl.value ? joinUrlParts(rootImageUrl.value, imageUrl2) : `/${imageUrl2}`;
|
|
8381
8387
|
});
|
|
8382
8388
|
const hasImage = computed(() => Boolean(hasFullImageUrl.value || image.value));
|
|
8383
8389
|
const placeholder = computed(() => props.options.placeholder);
|
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -8358,6 +8358,13 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8358
8358
|
});
|
|
8359
8359
|
return { dynamicDataIdMap, loading, enhanceSearchResultsWithDynamicData };
|
|
8360
8360
|
});
|
|
8361
|
+
const joinUrlParts = (...parts) => {
|
|
8362
|
+
var _a, _b, _c;
|
|
8363
|
+
if (parts.length === 1) {
|
|
8364
|
+
return `${parts[0]}`;
|
|
8365
|
+
}
|
|
8366
|
+
return (_c = (_b = (_a = parts == null ? void 0 : parts.map((part) => part.replace(/(^\/+|\/+$)/g, ""))) == null ? void 0 : _a.filter((part) => part !== "")) == null ? void 0 : _b.join("/")) != null ? _c : "";
|
|
8367
|
+
};
|
|
8361
8368
|
const _hoisted_1$16 = ["src"];
|
|
8362
8369
|
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
8363
8370
|
__name: "ProductImage",
|
|
@@ -8376,12 +8383,11 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8376
8383
|
return typeof imageUrl2 === "string" && (imageUrl2.indexOf("http://") === 0 || imageUrl2.indexOf("https://") === 0);
|
|
8377
8384
|
});
|
|
8378
8385
|
const imageUrl = computed(() => {
|
|
8379
|
-
var _a;
|
|
8380
8386
|
const imageUrl2 = image.value;
|
|
8381
8387
|
if (hasFullImageUrl.value) {
|
|
8382
8388
|
return imageUrl2;
|
|
8383
8389
|
}
|
|
8384
|
-
return
|
|
8390
|
+
return rootImageUrl.value ? joinUrlParts(rootImageUrl.value, imageUrl2) : `/${imageUrl2}`;
|
|
8385
8391
|
});
|
|
8386
8392
|
const hasImage = computed(() => Boolean(hasFullImageUrl.value || image.value));
|
|
8387
8393
|
const placeholder = computed(() => props.options.placeholder);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getlupa/client",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.2",
|
|
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.8.
|
|
23
|
+
"@getlupa/vue": "0.8.1",
|
|
24
24
|
"@rushstack/eslint-patch": "^1.3.2",
|
|
25
25
|
"@tsconfig/node18": "^2.0.1",
|
|
26
26
|
"@types/jsdom": "^21.1.1",
|