@codingfactory/messenger-client 0.4.9 → 0.4.11

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.
@@ -36,6 +36,8 @@ export interface CreateMessengerEchoOptions {
36
36
  bootstrapRefreshSkewMs?: number;
37
37
  requestTimeoutMs?: number;
38
38
  presenceFreshnessTtlMs?: number;
39
+ onAuthInvalidated?: () => void;
40
+ buildLoginRedirectUrl?: () => string;
39
41
  createLogger?: CreateLogger;
40
42
  }
41
43
  export interface MessengerEchoRuntime extends EchoRuntimeConfig {
@@ -77,6 +77,7 @@ interface RawAttachment {
77
77
  thumbnail_url?: string;
78
78
  }
79
79
  export type PresenceStatus = 'online' | 'idle' | 'dnd' | 'offline';
80
+ export type PresenceUpdateSource = 'realtime' | 'snapshot';
80
81
  export interface Conversation {
81
82
  id: string;
82
83
  type: 'dm' | 'group';
@@ -3792,7 +3793,7 @@ export declare const useMessagingStore: import("pinia").StoreDefinition<"messagi
3792
3793
  addTypingUser(conversationId: string, user: TypingUser): void;
3793
3794
  removeTypingUser(conversationId: string, userId: string): void;
3794
3795
  updateConversationLastMessage(conversationId: string, message: Message): void;
3795
- updatePresenceForUser(userId: string, status: PresenceStatus, lastSeenAt?: string | null): void;
3796
+ updatePresenceForUser(userId: string, status: PresenceStatus, lastSeenAt?: string | null, source?: PresenceUpdateSource): void;
3796
3797
  refreshPresenceForUsers(userIds: string[]): Promise<void>;
3797
3798
  acceptRequest(conversationId: string): Promise<void>;
3798
3799
  declineRequest(conversationId: string): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingfactory/messenger-client",
3
- "version": "0.4.9",
3
+ "version": "0.4.11",
4
4
  "description": "Shared messaging frontend: UI components, state management, API helpers, and realtime composables.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",