@getlupa/client 1.5.1 → 1.5.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 +11 -5
- package/dist/lupaSearch.js +11 -5
- package/dist/lupaSearch.mjs +11 -5
- package/dist/lupaSearch.umd.js +11 -5
- package/package.json +2 -2
package/dist/lupaSearch.iife.js
CHANGED
|
@@ -8268,16 +8268,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8268
8268
|
targetImage.src = placeholder.value;
|
|
8269
8269
|
}
|
|
8270
8270
|
};
|
|
8271
|
+
const imageAlt = computed(() => {
|
|
8272
|
+
const alt = props.options.alt;
|
|
8273
|
+
if (alt) {
|
|
8274
|
+
return alt(props.item);
|
|
8275
|
+
}
|
|
8276
|
+
return "";
|
|
8277
|
+
});
|
|
8271
8278
|
return (_ctx, _cache) => {
|
|
8272
8279
|
var _a, _b;
|
|
8273
8280
|
return openBlock(), createElementBlock("div", {
|
|
8274
8281
|
class: normalizeClass((_a = _ctx.wrapperClass) != null ? _a : "")
|
|
8275
8282
|
}, [
|
|
8276
|
-
createBaseVNode("img", {
|
|
8277
|
-
class:
|
|
8278
|
-
src: finalUrl.value
|
|
8279
|
-
|
|
8280
|
-
}, null, 42, _hoisted_1$16)
|
|
8283
|
+
createBaseVNode("img", mergeProps({
|
|
8284
|
+
class: (_b = _ctx.imageClass) != null ? _b : "",
|
|
8285
|
+
src: finalUrl.value
|
|
8286
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_1$16)
|
|
8281
8287
|
], 2);
|
|
8282
8288
|
};
|
|
8283
8289
|
}
|
package/dist/lupaSearch.js
CHANGED
|
@@ -8268,16 +8268,22 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
8268
8268
|
targetImage.src = placeholder.value;
|
|
8269
8269
|
}
|
|
8270
8270
|
};
|
|
8271
|
+
const imageAlt = computed(() => {
|
|
8272
|
+
const alt = props.options.alt;
|
|
8273
|
+
if (alt) {
|
|
8274
|
+
return alt(props.item);
|
|
8275
|
+
}
|
|
8276
|
+
return "";
|
|
8277
|
+
});
|
|
8271
8278
|
return (_ctx, _cache) => {
|
|
8272
8279
|
var _a, _b;
|
|
8273
8280
|
return openBlock(), createElementBlock("div", {
|
|
8274
8281
|
class: normalizeClass((_a = _ctx.wrapperClass) != null ? _a : "")
|
|
8275
8282
|
}, [
|
|
8276
|
-
createBaseVNode("img", {
|
|
8277
|
-
class:
|
|
8278
|
-
src: finalUrl.value
|
|
8279
|
-
|
|
8280
|
-
}, null, 42, _hoisted_1$16)
|
|
8283
|
+
createBaseVNode("img", mergeProps({
|
|
8284
|
+
class: (_b = _ctx.imageClass) != null ? _b : "",
|
|
8285
|
+
src: finalUrl.value
|
|
8286
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_1$16)
|
|
8281
8287
|
], 2);
|
|
8282
8288
|
};
|
|
8283
8289
|
}
|
package/dist/lupaSearch.mjs
CHANGED
|
@@ -8266,16 +8266,22 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
8266
8266
|
targetImage.src = placeholder.value;
|
|
8267
8267
|
}
|
|
8268
8268
|
};
|
|
8269
|
+
const imageAlt = computed(() => {
|
|
8270
|
+
const alt = props.options.alt;
|
|
8271
|
+
if (alt) {
|
|
8272
|
+
return alt(props.item);
|
|
8273
|
+
}
|
|
8274
|
+
return "";
|
|
8275
|
+
});
|
|
8269
8276
|
return (_ctx, _cache) => {
|
|
8270
8277
|
var _a, _b;
|
|
8271
8278
|
return openBlock(), createElementBlock("div", {
|
|
8272
8279
|
class: normalizeClass((_a = _ctx.wrapperClass) != null ? _a : "")
|
|
8273
8280
|
}, [
|
|
8274
|
-
createBaseVNode("img", {
|
|
8275
|
-
class:
|
|
8276
|
-
src: finalUrl.value
|
|
8277
|
-
|
|
8278
|
-
}, null, 42, _hoisted_1$16)
|
|
8281
|
+
createBaseVNode("img", mergeProps({
|
|
8282
|
+
class: (_b = _ctx.imageClass) != null ? _b : "",
|
|
8283
|
+
src: finalUrl.value
|
|
8284
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_1$16)
|
|
8279
8285
|
], 2);
|
|
8280
8286
|
};
|
|
8281
8287
|
}
|
package/dist/lupaSearch.umd.js
CHANGED
|
@@ -8270,16 +8270,22 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
8270
8270
|
targetImage.src = placeholder.value;
|
|
8271
8271
|
}
|
|
8272
8272
|
};
|
|
8273
|
+
const imageAlt = computed(() => {
|
|
8274
|
+
const alt = props.options.alt;
|
|
8275
|
+
if (alt) {
|
|
8276
|
+
return alt(props.item);
|
|
8277
|
+
}
|
|
8278
|
+
return "";
|
|
8279
|
+
});
|
|
8273
8280
|
return (_ctx, _cache) => {
|
|
8274
8281
|
var _a, _b;
|
|
8275
8282
|
return openBlock(), createElementBlock("div", {
|
|
8276
8283
|
class: normalizeClass((_a = _ctx.wrapperClass) != null ? _a : "")
|
|
8277
8284
|
}, [
|
|
8278
|
-
createBaseVNode("img", {
|
|
8279
|
-
class:
|
|
8280
|
-
src: finalUrl.value
|
|
8281
|
-
|
|
8282
|
-
}, null, 42, _hoisted_1$16)
|
|
8285
|
+
createBaseVNode("img", mergeProps({
|
|
8286
|
+
class: (_b = _ctx.imageClass) != null ? _b : "",
|
|
8287
|
+
src: finalUrl.value
|
|
8288
|
+
}, { alt: imageAlt.value ? imageAlt.value : void 0 }, { onError: replaceWithPlaceholder }), null, 16, _hoisted_1$16)
|
|
8283
8289
|
], 2);
|
|
8284
8290
|
};
|
|
8285
8291
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getlupa/client",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.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.6.
|
|
23
|
+
"@getlupa/vue": "0.6.2",
|
|
24
24
|
"@rushstack/eslint-patch": "^1.3.2",
|
|
25
25
|
"@tsconfig/node18": "^2.0.1",
|
|
26
26
|
"@types/jsdom": "^21.1.1",
|