@medipha/chat 1.0.51 → 1.0.53

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.
@@ -233,8 +233,14 @@ export interface Conversation {
233
233
  /** GROUP only; null for DIRECT. The server always fills the defaults in, so an absent
234
234
  * value here means the conversation payload predates group settings, not "unset". */
235
235
  settings?: GroupSettings | null;
236
+ tag?: ConversationTag | null;
236
237
  [key: string]: unknown;
237
238
  }
239
+ export interface ConversationTag {
240
+ id: string;
241
+ name: string;
242
+ color: string;
243
+ }
238
244
  export type GroupMessagePermission = 'ALL_MEMBERS' | 'OWNER_ONLY';
239
245
  export interface GroupSettings {
240
246
  messagePermission: GroupMessagePermission;
@@ -301,6 +307,7 @@ export declare const readConversations: (response: unknown) => unknown[];
301
307
  export declare const isSameId: (left: unknown, right: unknown) => boolean;
302
308
  export declare const isGroupConversation: (conversation: unknown) => boolean;
303
309
  export declare const getConversationKindLabel: (isGroup: boolean) => string;
310
+ export declare const formatUserWorkLine: (user: unknown, codeById: Record<string, string>) => string;
304
311
  export declare const getConversationTitle: (conversation: unknown, currentUserId?: string | null) => string;
305
312
  /** Avatar photo for a conversation row: the conversation's own photo, or for direct chats
306
313
  * the other participant's photo, or null to fall back to initials. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipha/chat",
3
- "version": "1.0.51",
3
+ "version": "1.0.53",
4
4
  "description": "Embeddable Medic-ERP chat module for React applications.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -59,7 +59,7 @@
59
59
  "uuid": "^11.0.5",
60
60
  "yet-another-react-lightbox": "^3.32.2",
61
61
  "zustand": "^5.0.8",
62
- "@medipha/chat-core": "1.0.22"
62
+ "@medipha/chat-core": "1.0.23"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@eslint/js": "^10.0.1",