@linktr.ee/messaging-react 1.8.2 → 1.8.3
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/assets/index.css +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +220 -198
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Avatar/index.tsx +9 -6
- package/src/components/ChannelList/CustomChannelPreview.stories.tsx +216 -0
- package/src/components/ChannelList/CustomChannelPreview.tsx +4 -5
- package/src/index.ts +3 -0
- package/src/utils/formatRelativeTime.test.ts +161 -0
- package/src/utils/formatRelativeTime.ts +62 -0
package/dist/index.d.ts
CHANGED
|
@@ -90,6 +90,12 @@ export declare interface FaqListProps {
|
|
|
90
90
|
avatarName?: string;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
/**
|
|
94
|
+
* Format a date - shows time for today, relative time for older messages
|
|
95
|
+
* (e.g., "Just now", "2:08 PM" for today, "Yesterday" for yesterday, "2d" for 2 days ago)
|
|
96
|
+
*/
|
|
97
|
+
export declare const formatRelativeTime: (date: Date) => string;
|
|
98
|
+
|
|
93
99
|
/**
|
|
94
100
|
* Messaging capabilities configuration
|
|
95
101
|
*/
|