@linktr.ee/messaging-react 1.35.0-rc-1777517685 → 1.35.0
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/{Card-CZKDL56E.js → Card-DVzWMbDc.js} +2 -2
- package/dist/{Card-CZKDL56E.js.map → Card-DVzWMbDc.js.map} +1 -1
- package/dist/{Card-CH2whznD.js → Card-lN2Z0Z5p.js} +2 -2
- package/dist/{Card-CH2whznD.js.map → Card-lN2Z0Z5p.js.map} +1 -1
- package/dist/{index-BJxgpf27.js → index-BsSqs61X.js} +70 -70
- package/dist/index-BsSqs61X.js.map +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/ChannelList/CustomChannelPreview.stories.tsx +16 -0
- package/src/components/CustomTypingIndicator/index.tsx +3 -3
- package/dist/index-BJxgpf27.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as e, a as t, C as i, b as n, c as o, d as g, F as r, e as m, L as u, f as M, h as c, i as l, j as h, P as C, k as P, u as d, l as L, m as p, n as v } from "./index-
|
|
1
|
+
import { A as e, a as t, C as i, b as n, c as o, d as g, F as r, e as m, L as u, f as M, h as c, i as l, j as h, P as C, k as P, u as d, l as L, m as p, n as v } from "./index-BsSqs61X.js";
|
|
2
2
|
export {
|
|
3
3
|
e as ActionButton,
|
|
4
4
|
t as Avatar,
|
package/package.json
CHANGED
|
@@ -60,6 +60,8 @@ const createMockChannel = (options: {
|
|
|
60
60
|
lastMessageMetadata,
|
|
61
61
|
} = options
|
|
62
62
|
|
|
63
|
+
const eventListeners = new Map<string, Set<(...args: unknown[]) => void>>()
|
|
64
|
+
|
|
63
65
|
return {
|
|
64
66
|
id,
|
|
65
67
|
cid: `messaging:${id}`,
|
|
@@ -99,6 +101,20 @@ const createMockChannel = (options: {
|
|
|
99
101
|
: ([] as LocalMessage[]),
|
|
100
102
|
unreadCount,
|
|
101
103
|
},
|
|
104
|
+
on: (eventName: string, listener: (...args: unknown[]) => void) => {
|
|
105
|
+
if (!eventListeners.has(eventName)) {
|
|
106
|
+
eventListeners.set(eventName, new Set())
|
|
107
|
+
}
|
|
108
|
+
eventListeners.get(eventName)?.add(listener)
|
|
109
|
+
return {
|
|
110
|
+
unsubscribe: () => {
|
|
111
|
+
eventListeners.get(eventName)?.delete(listener)
|
|
112
|
+
},
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
off: (eventName: string, listener: (...args: unknown[]) => void) => {
|
|
116
|
+
eventListeners.get(eventName)?.delete(listener)
|
|
117
|
+
},
|
|
102
118
|
} as unknown as Channel
|
|
103
119
|
}
|
|
104
120
|
|
|
@@ -13,7 +13,7 @@ interface CustomTypingIndicatorProps {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
const Circle = ({ cx, index }: { cx: string; index: number }) => (
|
|
16
|
-
<circle
|
|
16
|
+
<circle cx={cx} cy="4" r="3.9" fill="#A0A0A0">
|
|
17
17
|
<animateTransform
|
|
18
18
|
attributeName="transform"
|
|
19
19
|
type="translate"
|
|
@@ -66,7 +66,7 @@ const CustomTypingIndicator = ({ threadList }: CustomTypingIndicatorProps) => {
|
|
|
66
66
|
|
|
67
67
|
return (
|
|
68
68
|
<div
|
|
69
|
-
className="str-chat__typing-indicator !items-end"
|
|
69
|
+
className="str-chat__typing-indicator !items-end !bg-transparent"
|
|
70
70
|
data-testid="typing-indicator"
|
|
71
71
|
style={{ insetInlineStart: 0, insetInlineEnd: 'auto' }}
|
|
72
72
|
>
|
|
@@ -80,7 +80,7 @@ const CustomTypingIndicator = ({ threadList }: CustomTypingIndicatorProps) => {
|
|
|
80
80
|
/>
|
|
81
81
|
</div>
|
|
82
82
|
|
|
83
|
-
<div className="px-4 py-3 rounded-lg bg-[#
|
|
83
|
+
<div className="px-4 py-3 rounded-lg bg-[#E9EAED] h-12 flex flex-col justify-end">
|
|
84
84
|
<svg
|
|
85
85
|
aria-hidden="true"
|
|
86
86
|
className="block overflow-visible mb-[0.2rem]"
|