@kiva/kv-components 6.55.0 → 6.55.1
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/vue/KvBorrowerImage.js +11 -9
- package/dist/vue/KvMap.js +3 -3
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getKivaImageUrl as
|
|
2
|
-
import { openBlock as h, createElementBlock as
|
|
1
|
+
import { getKivaImageUrl as l } from "../utils/imageUtils.js";
|
|
2
|
+
import { openBlock as h, createElementBlock as o, normalizeStyle as n, createElementVNode as c, createCommentVNode as u } from "vue";
|
|
3
3
|
import m from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const g = {
|
|
5
5
|
name: "KvBorrowerImage",
|
|
@@ -63,7 +63,8 @@ const g = {
|
|
|
63
63
|
defaultUrl() {
|
|
64
64
|
return this.hash ? this.getImgUrl({
|
|
65
65
|
...this.defaultImage,
|
|
66
|
-
height: this.defaultImage.width * this.aspectRatio
|
|
66
|
+
height: this.defaultImage.width * this.aspectRatio,
|
|
67
|
+
format: "jpg"
|
|
67
68
|
}) : "";
|
|
68
69
|
},
|
|
69
70
|
// Get the 'sizes' string for the source element
|
|
@@ -89,10 +90,11 @@ const g = {
|
|
|
89
90
|
methods: {
|
|
90
91
|
// Get the url for the loan image sized width by height
|
|
91
92
|
getImgUrl(t) {
|
|
92
|
-
return
|
|
93
|
-
...t,
|
|
93
|
+
return l({
|
|
94
94
|
base: this.photoPath,
|
|
95
|
-
|
|
95
|
+
format: "webp",
|
|
96
|
+
hash: this.hash,
|
|
97
|
+
...t
|
|
96
98
|
});
|
|
97
99
|
},
|
|
98
100
|
// Get a string to use in the srcset attribute as the definition for a single image size
|
|
@@ -102,15 +104,15 @@ const g = {
|
|
|
102
104
|
}
|
|
103
105
|
}, d = ["srcset", "sizes"], f = ["src", "alt"];
|
|
104
106
|
function p(t, e, r, a, i, s) {
|
|
105
|
-
return h(),
|
|
107
|
+
return h(), o("picture", {
|
|
106
108
|
class: "tw-inline-block tw-relative tw-overflow-hidden tw-w-full tw-bg-black",
|
|
107
|
-
style:
|
|
109
|
+
style: n(`padding-bottom: ${r.aspectRatio * 100}%;`)
|
|
108
110
|
}, [
|
|
109
111
|
c("source", {
|
|
110
112
|
srcset: s.srcset,
|
|
111
113
|
sizes: s.sizes
|
|
112
114
|
}, null, 8, d),
|
|
113
|
-
r.hash ? (h(),
|
|
115
|
+
r.hash ? (h(), o("img", {
|
|
114
116
|
key: 0,
|
|
115
117
|
class: "tw-absolute tw-w-full tw-h-full tw-object-contain",
|
|
116
118
|
src: s.defaultUrl,
|
package/dist/vue/KvMap.js
CHANGED
|
@@ -84,15 +84,15 @@ const f = {
|
|
|
84
84
|
* {
|
|
85
85
|
borrowerPoints: [
|
|
86
86
|
{
|
|
87
|
-
image: 'https://www
|
|
87
|
+
image: 'https://www.kiva.org/img/w80h80fz50/e60a3d61ff052d60991c5d6bbf4a45d3.webp',
|
|
88
88
|
location: [-77.032, 38.913],
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
image: 'https://www
|
|
91
|
+
image: 'https://www.kiva.org/img/w80h80fz50/6101929097c6e5de48232a4d1ae3b71c.webp',
|
|
92
92
|
location: [41.402, 7.160],
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
|
-
image: 'https://www
|
|
95
|
+
image: 'https://www.kiva.org/img/w80h80fz50/11e018ee3d8b9c5adee459c16a29d264.webp',
|
|
96
96
|
location: [-73.356596, 3.501],
|
|
97
97
|
},
|
|
98
98
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.55.
|
|
3
|
+
"version": "6.55.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"embla-carousel-fade",
|
|
115
115
|
"popper.js"
|
|
116
116
|
],
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "26b3da94fada3375cd0859e3c2fb0b2d622e73ca"
|
|
118
118
|
}
|