@medipha/chat 1.0.65 → 1.0.66

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.
@@ -1,4 +1,4 @@
1
- import { ReactionSummaryPayload, ReactionType } from '@medipha/chat-core';
1
+ import { AutoDeleteAfterHours, ReactionSummaryPayload, ReactionType } from '@medipha/chat-core';
2
2
  export type MessageMark = 'bold' | 'italic' | 'underline' | 'strike';
3
3
  export declare const TEXT_COLORS: readonly ["#1f2937", "#dc2626", "#f97316", "#ca8a04", "#16a34a", "#0284c7", "#7c3aed", "#db2777"];
4
4
  export declare const FONT_SIZES: readonly ["13px", "18px"];
@@ -178,6 +178,7 @@ export interface ChatMessage {
178
178
  removedAt?: string | null;
179
179
  removedById?: string | null;
180
180
  removalType?: MessageRemovalType | null;
181
+ expiresAt?: string | null;
181
182
  previewUrl?: string;
182
183
  previewUrls?: string[];
183
184
  failureStage?: MessageFailureStage;
@@ -267,6 +268,7 @@ export type GroupMessagePermission = 'ALL_MEMBERS' | 'OWNER_ONLY';
267
268
  export interface GroupSettings {
268
269
  messagePermission: GroupMessagePermission;
269
270
  requireApprovalForNewMembers: boolean;
271
+ autoDeleteAfterHours?: AutoDeleteAfterHours;
270
272
  }
271
273
  export interface GroupInviteLink {
272
274
  enabled: boolean;
@@ -306,14 +308,6 @@ export interface PendingMember {
306
308
  /** Only an explicit OWNER_ONLY locks the composer — a conversation loaded before this
307
309
  * feature existed, or one still in flight, must not silently mute its members. */
308
310
  export declare function isMessagingLockedFor(conversation: Conversation | null | undefined, role: string): boolean;
309
- export interface MessagesWindow {
310
- messages: unknown[];
311
- oldestSequence: string | null;
312
- newestSequence: string | null;
313
- hasOlderMessages: boolean;
314
- hasNewerMessages: boolean;
315
- targetMessageId: string | null;
316
- }
317
311
  export interface MessageContentPart {
318
312
  key: string;
319
313
  kind: 'text' | 'line_break' | 'mention_all' | 'mention_user';
@@ -336,7 +330,6 @@ export declare const getConversationTitle: (conversation: unknown, currentUserId
336
330
  export declare const getConversationAvatar: (conversation: unknown, currentUserId?: string | null) => string | null;
337
331
  export declare const getConversationMessages: (conversation: unknown) => unknown[];
338
332
  export declare const readMessages: (response: unknown) => unknown[];
339
- export declare const readMessagesWindow: (response: unknown) => MessagesWindow;
340
333
  export declare const toMessageContent: (editorJson: unknown) => MessageContent | null;
341
334
  export declare const stripUnavailableMentions: (content: MessageContent, allowedUserIds: ReadonlySet<string>) => MessageContent;
342
335
  export declare const normalizeMessageContent: (content: unknown) => MessageContent | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medipha/chat",
3
- "version": "1.0.65",
3
+ "version": "1.0.66",
4
4
  "description": "Embeddable Medic-ERP chat module for React applications.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -60,7 +60,7 @@
60
60
  "uuid": "^11.0.5",
61
61
  "yet-another-react-lightbox": "^3.32.2",
62
62
  "zustand": "^5.0.8",
63
- "@medipha/chat-core": "1.0.35"
63
+ "@medipha/chat-core": "1.0.36"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@eslint/js": "^10.0.1",