@linktr.ee/messaging-react 1.40.0 → 1.40.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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b as a, c as t, C as i, d as n, e as o, f as g, F as r, g as M, L as m, M as l, h as u, i as h, j as d, k as v, r as C, l as L, u as c, m as A, n as F } from "./index-DY-3-rt4.js";
1
+ import { b as a, c as t, C as i, d as n, e as o, f as g, F as r, g as M, L as m, M as l, h as u, i as h, j as d, k as v, r as C, l as L, u as c, m as A, n as F } from "./index-8ZuHtwFb.js";
2
2
  export {
3
3
  a as ActionButton,
4
4
  t as Avatar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linktr.ee/messaging-react",
3
- "version": "1.40.0",
3
+ "version": "1.40.1",
4
4
  "description": "React messaging components built on messaging-core for web applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -54,7 +54,7 @@ export const Avatar = ({
54
54
  <img
55
55
  src={image}
56
56
  alt=""
57
- className="aspect-square h-full w-full object-cover"
57
+ className="h-full w-full object-cover"
58
58
  />
59
59
  ) : (
60
60
  <div
@@ -77,9 +77,10 @@ export const Avatar = ({
77
77
  className
78
78
  )}
79
79
  style={{
80
+ '--str-chat__avatar-size': `${size}px`,
80
81
  width: `${size}px`,
81
82
  height: `${size}px`,
82
- }}
83
+ } as React.CSSProperties}
83
84
  >
84
85
  {starred && (
85
86
  <div
@@ -188,6 +188,9 @@ const CustomMessageWithContext = (props: CustomMessageWithContextProps) => {
188
188
  id={message.user.id}
189
189
  image={message.user.image}
190
190
  name={message.user.name || message.user.id}
191
+ size={isChatbot ? 24 : 28}
192
+ shape="circle"
193
+ dmAgentEnabled={isChatbot}
191
194
  />
192
195
  )}
193
196
  {/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}
package/src/styles.css CHANGED
@@ -169,7 +169,7 @@
169
169
 
170
170
  .str-chat__li .str-chat__message--other {
171
171
  position: relative;
172
- grid-template-columns: 40px 1fr;
172
+ grid-template-columns: 28px 1fr;
173
173
  }
174
174
 
175
175
  .str-chat__li .str-chat__message--other .str-chat__message-bubble-wrapper {