@medipha/chat 1.0.18 → 1.0.20

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.
@@ -2,6 +2,9 @@ import { ChatUser, Conversation, ConversationMember, MessageContent } from './ch
2
2
  export declare const getMemberUser: (member: ConversationMember) => ChatUser;
3
3
  export declare const getMemberUserId: (member: ConversationMember) => string | null;
4
4
  export declare const getMemberRole: (member: ConversationMember | null | undefined) => string;
5
+ /** The group owner's userId, or null when the roster isn't loaded / has no OWNER row.
6
+ * Drives the key badge shown on their avatar in the timeline and account-info dialog. */
7
+ export declare const getGroupOwnerId: (members: ConversationMember[] | undefined | null) => string | null;
5
8
  /** Whether/when the given user pinned this conversation to their own sidebar — a
6
9
  * personal preference, so it's read off that user's own member row, not the conversation. */
7
10
  export declare const getConversationPinnedAt: (conversation: Conversation, userId: string | null) => string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipha/chat",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "Embeddable Medic-ERP chat module for React applications.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -52,6 +52,7 @@
52
52
  "rc-picker": "^2.6.11",
53
53
  "react-virtuoso": "^4.18.10",
54
54
  "uuid": "^11.0.5",
55
+ "yet-another-react-lightbox": "^3.32.2",
55
56
  "zustand": "^5.0.8",
56
57
  "@medipha/chat-core": "1.0.9"
57
58
  },