@meetelise/chat 1.3.0 → 1.3.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchBuildingInfo.js","sourceRoot":"","sources":["../../src/fetchBuildingInfo.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetchBuildingInfo.js","sourceRoot":"","sources":["../../src/fetchBuildingInfo.ts"],"names":[],"mappings":"AA8BA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,iBAAiB,CAC7C,OAAe,EACf,YAAoB;IAEpB,MAAM,IAAI,GAAG,2BAA2B,CAAC;IACzC,MAAM,GAAG,GAAG,GAAG,IAAI,4BAA4B,OAAO,aAAa,YAAY,EAAE,CAAC;IAClF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC;IAClC,MAAM,QAAQ,GAAa,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IACjD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
package/dist/src/getAvatarUrl.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @returns a URL suitable for use as a CSS background-image or <img> src.
|
|
11
11
|
*/
|
|
12
12
|
export default function getAvatarURL(building) {
|
|
13
|
-
if (building.avatarSrc)
|
|
13
|
+
if (building.avatarType === "image" && building.avatarSrc)
|
|
14
14
|
return building.avatarSrc;
|
|
15
15
|
const initials = building.avatarInitials;
|
|
16
16
|
const bgColor = building.launchButtonColor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAvatarUrl.js","sourceRoot":"","sources":["../../src/getAvatarUrl.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,QAAkB;IACrD,IAAI,QAAQ,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"getAvatarUrl.js","sourceRoot":"","sources":["../../src/getAvatarUrl.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,QAAkB;IACrD,IAAI,QAAQ,CAAC,UAAU,KAAK,OAAO,IAAI,QAAQ,CAAC,SAAS;QACvD,OAAO,QAAQ,CAAC,SAAS,CAAC;IAE5B,MAAM,QAAQ,GAAG,QAAQ,CAAC,cAAc,CAAC;IACzC,MAAM,OAAO,GAAG,QAAQ,CAAC,iBAAiB,CAAC;IAE3C,MAAM,WAAW,GAAG;;uDAEiC,OAAO;;;;;;;;;MASxD,QAAQ;;EAEZ;SACG,IAAI,EAAE;SACN,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACvB,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC;IACjC,OAAO,6BAA6B,MAAM,EAAE,CAAC;AAC/C,CAAC"}
|
package/package.json
CHANGED
package/src/fetchBuildingInfo.ts
CHANGED
package/src/getAvatarUrl.ts
CHANGED
|
@@ -12,7 +12,8 @@ import { Building } from "./fetchBuildingInfo";
|
|
|
12
12
|
* @returns a URL suitable for use as a CSS background-image or <img> src.
|
|
13
13
|
*/
|
|
14
14
|
export default function getAvatarURL(building: Building): string {
|
|
15
|
-
if (building.
|
|
15
|
+
if (building.avatarType === "image" && building.avatarSrc)
|
|
16
|
+
return building.avatarSrc;
|
|
16
17
|
|
|
17
18
|
const initials = building.avatarInitials;
|
|
18
19
|
const bgColor = building.launchButtonColor;
|