@poolse/react 3.4.0 → 3.6.0

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/CHANGELOG.md CHANGED
@@ -4,6 +4,58 @@ All notable changes to `@poolse/react` are documented here. Format follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow
5
5
  [semver](https://semver.org).
6
6
 
7
+ ## [3.6.0] - 2026-11-21
8
+
9
+ ### Fixed
10
+
11
+ - `useMessages().loadMore()` no longer inserts a page twice when it overlaps
12
+ another `loadMore()` or `loadUntil()` (e.g. scrolling up while jumping to
13
+ the first unread).
14
+
15
+ ## [3.5.0] - 2026-11-21
16
+
17
+ ### Added
18
+
19
+ - `useUserPresence(id)` → `Presence | null` and `usePresenceMany(ids)` →
20
+ `Record<id, Presence>`: people's presence (`online` / `away` / `in_call` /
21
+ `offline`) by user id or external id, from the one `poolse.presence` store
22
+ per provider — hooks mounted together make a single lookup, and
23
+ `presence:changed` keeps them live.
24
+ - `<PoolseProvider trackActivity>`: reports the browser tab `active` / `idle`
25
+ for presence (`poolse.presence.trackActivity`). On by default; a no-op
26
+ without `document` (React Native: call `usePoolse().presence.setActivity()`
27
+ from `AppState`); `false` turns it off, or pass `{ idleAfterMs }`.
28
+ - `useConversationPresence(conversationId)`, the same hook as
29
+ `usePresence(conversationId)` under a name that says what it lists (who has
30
+ the conversation open).
31
+ - Re-exported `Presence`, `PresenceState`, `PresenceActivity`,
32
+ `PresenceChangedEvent`, `TrackActivityOptions`.
33
+
34
+ - Conversation list paging: `useConversations().loadMore()`, `hasMore` and
35
+ `loadingMore`. The first page loads as before; `loadMore()` appends the
36
+ next (deduped by id, one request at a time; a failure rejects and keeps the
37
+ cursor). A quiet reload (remount, reconnect) refreshes the first page and
38
+ keeps rows of later pages already loaded.
39
+
40
+ - Re-exported `LinkPreview`, `LinkPreviewType`, `ThreadParticipant`,
41
+ `ThreadUpdatedEvent`, `MessageEdit`, `MessageEditList`,
42
+ `MessageUpdateRequest`, `ApiErrorCode`, and the helpers `isTombstone`,
43
+ `mergeMessage`, `toTombstone`.
44
+
45
+ ### Changed
46
+
47
+ - `useMessages` handles `thread:updated`: the root's `reply_count`,
48
+ `last_reply_at` and `thread_participants` follow the server.
49
+ - `message:updated` (an edit, or link previews arriving) is merged into the
50
+ row instead of replacing it, in `useMessages` and `useThread`, so fields a
51
+ payload leaves out survive; `edit()` merges the server's row the same way.
52
+ - A deleted message — from `message:deleted` or an optimistic `delete()` —
53
+ becomes the server's tombstone (no body, mentions, reactions, attachments,
54
+ link previews or quote; thread fields kept), and messages quoting it get
55
+ `quoted_message.deleted_at` / `body: null`. A deleted reply lowers its
56
+ root's `reply_count` using the event's `thread_root_id` (it never did for
57
+ replies before, as replies aren't in the main list).
58
+
7
59
  ## [3.4.0] - 2026-11-21
8
60
 
9
61
  - No changes; released with the other `@poolse/*` packages at 3.4.0.
package/README.md CHANGED
@@ -62,27 +62,29 @@ new `key` to switch user.
62
62
 
63
63
  ## Hooks
64
64
 
65
- | Hook | Returns |
66
- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
67
- | `usePoolse()` | The `Poolse` instance. |
68
- | `useMe()` | `{ me, loading, error }` |
69
- | `useConversation(id \| null)` | `{ conversation, loading, error, refetch }` |
70
- | `useConversations()` | `{ conversations, loading, error, refetch, create, unreadCounts, mentionUnreadCounts, markConversationRead }` |
71
- | `useMessages(conversationId)` | `{ messages, loading, error, hasMore, loadMore, loadUntil(messageId), send, edit, delete, markReadUpTo, refetch }`, oldest first |
72
- | `useThread(conversationId, rootId)` | `{ replies, loading, error, hasMore, loadMore, sendReply, edit, delete }` |
73
- | `useReactions(messageId, { conversationId, initialReactions?, currentUserId? })` | `{ reactions, addReaction, removeReaction }` |
74
- | `useTyping(conversationId)` | `{ typing: Set<externalId>, signalTyping }` |
75
- | `usePresence(conversationId)` | `{ online: Set<externalId> }` |
76
- | `useMembers(conversationId)` | `{ members, loading, error, refetch, addMembers(externalIds, { role? }), removeMember(externalId) }` |
77
- | `useAttachmentUpload()` | `{ queue, attachment, uploading, error, upload(input), uploadAll(inputs), cancel(localId), remove(localId), reset }` |
78
- | `useAttachmentUrl(id \| null)` | `{ url, loading, error }` (not renewed; URLs last one hour) |
79
- | `useUser(externalId)` | `{ profile, loading }` |
80
- | `useAppEvent(handler)` | Calls `handler({ type, data })` for each `app:event` sent to the user |
81
- | `useRealtimeStatus()` | `'idle' \| 'connecting' \| 'connected' \| 'reconnecting' \| 'closed'` |
82
- | `useReadReceipts()` | `{ visible, mode, shared, canChange, setShared }` |
83
- | `useLiveCall(conversationId \| null)` | `{ call, participantIds, refresh }` |
84
- | `useRoom(conversationId \| null, { livekit })` | `{ live, presentIds, joined, joining, join, leave, media, error }` |
85
- | `useCallRoom(conversationId \| null, { livekit, … })` | Call media: participants, mic, camera, devices |
65
+ | Hook | Returns |
66
+ | -------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
67
+ | `usePoolse()` | The `Poolse` instance. |
68
+ | `useMe()` | `{ me, loading, error }` |
69
+ | `useConversation(id \| null)` | `{ conversation, loading, error, refetch }` |
70
+ | `useConversations()` | `{ conversations, loading, error, refetch, hasMore, loadingMore, loadMore, create, unreadCounts, mentionUnreadCounts, markConversationRead }` |
71
+ | `useMessages(conversationId)` | `{ messages, loading, error, hasMore, loadMore, loadUntil(messageId), send, edit, delete, markReadUpTo, refetch }`, oldest first |
72
+ | `useThread(conversationId, rootId)` | `{ replies, loading, error, hasMore, loadMore, sendReply, edit, delete }` |
73
+ | `useReactions(messageId, { conversationId, initialReactions?, currentUserId? })` | `{ reactions, addReaction, removeReaction }` |
74
+ | `useTyping(conversationId)` | `{ typing: Set<externalId>, signalTyping }` |
75
+ | `usePresence(conversationId)` / `useConversationPresence` | `{ online: Set<externalId> }` — who has the conversation open |
76
+ | `useUserPresence(id \| null)` | `Presence \| null` — `state`: `online`, `away`, `in_call`, `offline` |
77
+ | `usePresenceMany(ids)` | `Record<id, Presence>` (known ids only) |
78
+ | `useMembers(conversationId)` | `{ members, loading, error, refetch, addMembers(externalIds, { role? }), removeMember(externalId) }` |
79
+ | `useAttachmentUpload()` | `{ queue, attachment, uploading, error, upload(input), uploadAll(inputs), cancel(localId), remove(localId), reset }` |
80
+ | `useAttachmentUrl(id \| null)` | `{ url, loading, error }` (not renewed; URLs last one hour) |
81
+ | `useUser(externalId)` | `{ profile, loading }` |
82
+ | `useAppEvent(handler)` | Calls `handler({ type, data })` for each `app:event` sent to the user |
83
+ | `useRealtimeStatus()` | `'idle' \| 'connecting' \| 'connected' \| 'reconnecting' \| 'closed'` |
84
+ | `useReadReceipts()` | `{ visible, mode, shared, canChange, setShared }` |
85
+ | `useLiveCall(conversationId \| null)` | `{ call, participantIds, refresh }` |
86
+ | `useRoom(conversationId \| null, { livekit })` | `{ live, presentIds, joined, joining, join, leave, media, error }` |
87
+ | `useCallRoom(conversationId \| null, { livekit, … })` | Call media: participants, mic, camera, devices |
86
88
 
87
89
  Helpers: `canEditOwnMessage`, `EDIT_WINDOW_MS`, `receiptsOf`,
88
90
  `computeGroupPosition`, `sameGroup`, `sameDay`, `formatDayLabel`, plus
@@ -108,6 +110,17 @@ Notes that trip people up:
108
110
  screen until the new one lands.
109
111
  - If the user is removed from a conversation, its mounted hooks stop
110
112
  updating; hooks mounted later join a fresh channel.
113
+ - `useUserPresence` / `usePresenceMany` take user ids or external ids and
114
+ share one store per provider: hooks mounted together make one lookup, and
115
+ `presence:changed` keeps them live. `<PoolseProvider>` reports the browser
116
+ tab `active` / `idle` (`trackActivity`, on by default; a no-op in React
117
+ Native, where you call `usePoolse().presence.setActivity()` from `AppState`).
118
+ - `useConversations` loads the first page (50); call `loadMore()` while
119
+ `hasMore` for the rest.
120
+ - `useMessages` / `useThread` merge `message:updated` (edits, link previews
121
+ arriving in `link_previews`), keep deleted messages as tombstones
122
+ (`deleted_at` set, `body: null`) and apply `thread:updated` to the root's
123
+ `reply_count`, `last_reply_at` and `thread_participants`.
111
124
 
112
125
  ## Links
113
126
 
package/dist/index.cjs CHANGED
@@ -13,11 +13,22 @@ var ConversationsStore = class {
13
13
  this.chat = chat;
14
14
  }
15
15
  chat;
16
- state = { conversations: [], loading: true, error: null };
16
+ state = {
17
+ conversations: [],
18
+ loading: true,
19
+ error: null,
20
+ hasMore: false,
21
+ loadingMore: false
22
+ };
17
23
  listeners = /* @__PURE__ */ new Set();
18
24
  loaded = false;
19
25
  inflight = null;
26
+ moreInflight = null;
20
27
  unbind = null;
28
+ /** Cursor of the next page not yet loaded; null when there is none. */
29
+ nextCursor = null;
30
+ /** Whether rows beyond the first page are held. */
31
+ pagedBeyondFirst = false;
21
32
  getSnapshot() {
22
33
  return this.state;
23
34
  }
@@ -33,6 +44,33 @@ var ConversationsStore = class {
33
44
  refetch() {
34
45
  return this.load(true);
35
46
  }
47
+ /**
48
+ * Append the next page. Resolves at once when there is none or one
49
+ * is already loading. Rows already held (moved up by realtime) are
50
+ * not duplicated.
51
+ */
52
+ loadMore() {
53
+ if (this.moreInflight) return this.moreInflight;
54
+ const cursor = this.nextCursor;
55
+ if (!cursor) return Promise.resolve();
56
+ this.set({ ...this.state, loadingMore: true });
57
+ const run = this.chat.conversations.list({ cursor }).then((page) => {
58
+ if (this.nextCursor !== cursor) return;
59
+ this.nextCursor = page.next_cursor ?? null;
60
+ this.pagedBeyondFirst = true;
61
+ const have = new Set(this.state.conversations.map((c) => c.id));
62
+ this.set({
63
+ ...this.state,
64
+ conversations: [...this.state.conversations, ...page.data.filter((c) => !have.has(c.id))],
65
+ hasMore: this.nextCursor !== null
66
+ });
67
+ }).finally(() => {
68
+ if (this.moreInflight === run) this.moreInflight = null;
69
+ this.set({ ...this.state, loadingMore: false });
70
+ });
71
+ this.moreInflight = run;
72
+ return run;
73
+ }
36
74
  async create(attrs) {
37
75
  const conv = await this.chat.conversations.create(attrs);
38
76
  this.setConversations((prev) => prepend(prev, conv));
@@ -119,7 +157,23 @@ var ConversationsStore = class {
119
157
  const run = this.chat.conversations.list().then(
120
158
  (list) => {
121
159
  this.loaded = true;
122
- this.set({ conversations: list.data, loading: false, error: null });
160
+ let conversations = list.data;
161
+ if (this.pagedBeyondFirst) {
162
+ const fresh = new Set(list.data.map((c) => c.id));
163
+ conversations = [
164
+ ...list.data,
165
+ ...this.state.conversations.filter((c) => !fresh.has(c.id))
166
+ ];
167
+ } else {
168
+ this.nextCursor = list.next_cursor ?? null;
169
+ }
170
+ this.set({
171
+ ...this.state,
172
+ conversations,
173
+ loading: false,
174
+ error: null,
175
+ hasMore: this.nextCursor !== null
176
+ });
123
177
  },
124
178
  (err) => {
125
179
  this.set({
@@ -179,7 +233,7 @@ function mergeUpdated(prev, next, fromMe) {
179
233
  return [merged, ...rest];
180
234
  }
181
235
  var PoolseContext = react.createContext(null);
182
- function PoolseProvider({ config, children }) {
236
+ function PoolseProvider({ config, trackActivity = true, children }) {
183
237
  const configRef = react.useRef(config);
184
238
  configRef.current = config;
185
239
  const initialConnectionRef = react.useRef(null);
@@ -227,6 +281,12 @@ function PoolseProvider({ config, children }) {
227
281
  chat.destroy();
228
282
  };
229
283
  }, [chat]);
284
+ const trackActivityRef = react.useRef(trackActivity);
285
+ react.useEffect(() => {
286
+ const opts = trackActivityRef.current;
287
+ if (opts === false) return;
288
+ return chat.presence.trackActivity(opts === true ? {} : opts);
289
+ }, [chat]);
230
290
  const value = react.useMemo(() => ({ chat, conversations: new ConversationsStore(chat) }), [chat]);
231
291
  return /* @__PURE__ */ jsxRuntime.jsx(PoolseContext.Provider, { value, children });
232
292
  }
@@ -322,12 +382,13 @@ function useConversations() {
322
382
  return off;
323
383
  }, [store]);
324
384
  const refetch = react.useCallback(() => store.refetch(), [store]);
385
+ const loadMore = react.useCallback(() => store.loadMore(), [store]);
325
386
  const create = react.useCallback((attrs) => store.create(attrs), [store]);
326
387
  const markConversationRead = react.useCallback(
327
388
  (conversationId) => store.markRead(conversationId),
328
389
  [store]
329
390
  );
330
- const { conversations, loading, error } = snapshot;
391
+ const { conversations, loading, error, hasMore, loadingMore } = snapshot;
331
392
  const unreadCounts = react.useMemo(() => countsOf(conversations, "unread_count"), [conversations]);
332
393
  const mentionUnreadCounts = react.useMemo(
333
394
  () => countsOf(conversations, "mention_unread_count"),
@@ -338,6 +399,9 @@ function useConversations() {
338
399
  loading,
339
400
  error,
340
401
  refetch,
402
+ hasMore,
403
+ loadingMore,
404
+ loadMore,
341
405
  create,
342
406
  unreadCounts,
343
407
  mentionUnreadCounts,
@@ -506,22 +570,23 @@ function useMessages(conversationId) {
506
570
  setMessages((prev) => upsertById(prev, msg));
507
571
  });
508
572
  const offUpdated = conv.onMessageUpdated((msg) => {
509
- setMessages((prev) => prev.map((m) => m.id === msg.id ? msg : m));
573
+ setMessages((prev) => patchById(prev, msg.id, (m) => sdk.mergeMessage(m, msg)));
510
574
  });
511
575
  const offDeleted = conv.onMessageDeleted((evt) => {
512
576
  setMessages((prev) => {
513
- const target = prev.find((m) => m.id === evt.id);
514
- const updated = prev.map(
515
- (m) => m.id === evt.id ? { ...m, deleted_at: evt.deleted_at, body: null } : m
516
- );
517
- if (target?.thread_root_id) {
518
- return updated.map(
519
- (m) => m.id === target.thread_root_id ? { ...m, reply_count: Math.max(0, (m.reply_count ?? 0) - 1) } : m
520
- );
521
- }
522
- return updated;
577
+ const rootId = evt.thread_root_id ?? prev.find((m) => m.id === evt.id)?.thread_root_id;
578
+ return prev.map((m) => {
579
+ if (m.id === evt.id) return sdk.toTombstone(m, evt.deleted_at);
580
+ if (rootId && m.id === rootId) {
581
+ m = { ...m, reply_count: Math.max(0, (m.reply_count ?? 0) - 1) };
582
+ }
583
+ return sdk.markQuoteDeleted(m, evt.id, evt.deleted_at);
584
+ });
523
585
  });
524
586
  });
587
+ const offThread = conv.onThreadUpdated((evt) => {
588
+ setMessages((prev) => patchById(prev, evt.message_id, (m) => sdk.applyThreadUpdate(m, evt)));
589
+ });
525
590
  let wasConnected = chat.realtime.getStatus() === "connected";
526
591
  let connectedBefore = wasConnected;
527
592
  const offStatus = chat.realtime.onStatus((status) => {
@@ -539,6 +604,7 @@ function useMessages(conversationId) {
539
604
  offNew();
540
605
  offUpdated();
541
606
  offDeleted();
607
+ offThread();
542
608
  offStatus();
543
609
  };
544
610
  }, [chat, conversationId]);
@@ -554,9 +620,15 @@ function useMessages(conversationId) {
554
620
  return;
555
621
  }
556
622
  const older = [...page.data].reverse();
557
- setMessages((prev) => [...older, ...prev]);
623
+ setMessages((prev) => {
624
+ const have = new Set(prev.map((m) => m.id));
625
+ return [...older.filter((m) => !have.has(m.id)), ...prev];
626
+ });
558
627
  setHasMore(page.data.length === PAGE_SIZE);
559
- oldestSequenceRef.current = older[0]?.sequence ?? oldestSequenceRef.current;
628
+ const first = older[0]?.sequence;
629
+ const current = oldestSequenceRef.current;
630
+ if (first != null)
631
+ oldestSequenceRef.current = current == null ? first : Math.min(current, first);
560
632
  }, [chat, conversationId, hasMore, loading]);
561
633
  const loadUntil = react.useCallback(
562
634
  async (messageId, maxPages = 20) => {
@@ -639,7 +711,7 @@ function useMessages(conversationId) {
639
711
  );
640
712
  try {
641
713
  const updated = await chat.messages.one(messageId).update({ body });
642
- setMessages((prev) => prev.map((m) => m.id === messageId ? updated : m));
714
+ setMessages((prev) => patchById(prev, messageId, (m) => sdk.mergeMessage(m, updated)));
643
715
  return updated;
644
716
  } catch (err) {
645
717
  if (previous) {
@@ -658,7 +730,7 @@ function useMessages(conversationId) {
658
730
  (prev) => prev.map((m) => {
659
731
  if (m.id !== messageId) return m;
660
732
  previous = m;
661
- return { ...m, body: null, deleted_at: (/* @__PURE__ */ new Date()).toISOString() };
733
+ return sdk.toTombstone(m, (/* @__PURE__ */ new Date()).toISOString());
662
734
  })
663
735
  );
664
736
  try {
@@ -699,6 +771,13 @@ function useMessages(conversationId) {
699
771
  refetch
700
772
  };
701
773
  }
774
+ function patchById(prev, id, fn) {
775
+ const idx = prev.findIndex((m) => m.id === id);
776
+ if (idx === -1) return prev;
777
+ const next = prev.slice();
778
+ next[idx] = fn(prev[idx]);
779
+ return next;
780
+ }
702
781
  function upsertById(prev, msg) {
703
782
  const idx = prev.findIndex((m) => m.id === msg.id);
704
783
  if (idx === -1) return [...prev, msg];
@@ -810,11 +889,13 @@ function useThread(conversationId, rootMessageId) {
810
889
  });
811
890
  const offUpdated = conv.onMessageUpdated((msg) => {
812
891
  if (msg.thread_root_id !== rootMessageId) return;
813
- setReplies((prev) => prev.map((m) => m.id === msg.id ? msg : m));
892
+ setReplies((prev) => prev.map((m) => m.id === msg.id ? sdk.mergeMessage(m, msg) : m));
814
893
  });
815
894
  const offDeleted = conv.onMessageDeleted((evt) => {
816
895
  setReplies(
817
- (prev) => prev.map((m) => m.id === evt.id ? { ...m, deleted_at: evt.deleted_at, body: null } : m)
896
+ (prev) => prev.map(
897
+ (m) => m.id === evt.id ? sdk.toTombstone(m, evt.deleted_at) : sdk.markQuoteDeleted(m, evt.id, evt.deleted_at)
898
+ )
818
899
  );
819
900
  });
820
901
  return () => {
@@ -886,7 +967,7 @@ function useThread(conversationId, rootMessageId) {
886
967
  );
887
968
  try {
888
969
  const updated = await chat.messages.one(messageId).update({ body });
889
- setReplies((prev) => prev.map((m) => m.id === messageId ? updated : m));
970
+ setReplies((prev) => prev.map((m) => m.id === messageId ? sdk.mergeMessage(m, updated) : m));
890
971
  return updated;
891
972
  } catch (err) {
892
973
  if (previous) {
@@ -905,7 +986,7 @@ function useThread(conversationId, rootMessageId) {
905
986
  (prev) => prev.map((m) => {
906
987
  if (m.id !== messageId) return m;
907
988
  previous = m;
908
- return { ...m, body: null, deleted_at: (/* @__PURE__ */ new Date()).toISOString() };
989
+ return sdk.toTombstone(m, (/* @__PURE__ */ new Date()).toISOString());
909
990
  })
910
991
  );
911
992
  try {
@@ -1103,6 +1184,48 @@ function usePresence(conversationId) {
1103
1184
  }, [chat, conversationId]);
1104
1185
  return { online };
1105
1186
  }
1187
+ var useConversationPresence = usePresence;
1188
+ function useUserPresence(id) {
1189
+ const chat = usePoolse();
1190
+ const [presence, setPresence] = react.useState(
1191
+ () => id ? chat.presence.peek(id) ?? null : null
1192
+ );
1193
+ react.useEffect(() => {
1194
+ if (!id) {
1195
+ setPresence(null);
1196
+ return;
1197
+ }
1198
+ setPresence(chat.presence.peek(id) ?? null);
1199
+ return chat.presence.subscribe(id, () => setPresence(chat.presence.peek(id) ?? null));
1200
+ }, [chat, id]);
1201
+ return presence;
1202
+ }
1203
+ function usePresenceMany(ids) {
1204
+ const chat = usePoolse();
1205
+ const key = react.useMemo(
1206
+ () => JSON.stringify([...new Set(ids.filter((id) => !!id))].sort()),
1207
+ [ids]
1208
+ );
1209
+ const [presences, setPresences] = react.useState(
1210
+ () => collect(chat.presence.peek.bind(chat.presence), JSON.parse(key))
1211
+ );
1212
+ react.useEffect(() => {
1213
+ const list = JSON.parse(key);
1214
+ const read = () => setPresences(collect(chat.presence.peek.bind(chat.presence), list));
1215
+ read();
1216
+ if (list.length === 0) return;
1217
+ return chat.presence.subscribe(list, read);
1218
+ }, [chat, key]);
1219
+ return presences;
1220
+ }
1221
+ function collect(peek, ids) {
1222
+ const out = {};
1223
+ for (const id of ids) {
1224
+ const p = peek(id);
1225
+ if (p) out[id] = p;
1226
+ }
1227
+ return out;
1228
+ }
1106
1229
  function useRealtimeStatus() {
1107
1230
  const chat = usePoolse();
1108
1231
  const [status, setStatus] = react.useState(chat.realtime.getStatus());
@@ -1691,6 +1814,14 @@ Object.defineProperty(exports, "isMessageVisibleTo", {
1691
1814
  enumerable: true,
1692
1815
  get: function () { return sdk.isMessageVisibleTo; }
1693
1816
  });
1817
+ Object.defineProperty(exports, "isTombstone", {
1818
+ enumerable: true,
1819
+ get: function () { return sdk.isTombstone; }
1820
+ });
1821
+ Object.defineProperty(exports, "mergeMessage", {
1822
+ enumerable: true,
1823
+ get: function () { return sdk.mergeMessage; }
1824
+ });
1694
1825
  Object.defineProperty(exports, "parseCallLog", {
1695
1826
  enumerable: true,
1696
1827
  get: function () { return sdk.parseCallLog; }
@@ -1699,6 +1830,10 @@ Object.defineProperty(exports, "parseCallLogBody", {
1699
1830
  enumerable: true,
1700
1831
  get: function () { return sdk.parseCallLogBody; }
1701
1832
  });
1833
+ Object.defineProperty(exports, "toTombstone", {
1834
+ enumerable: true,
1835
+ get: function () { return sdk.toTombstone; }
1836
+ });
1702
1837
  exports.EDIT_WINDOW_MS = EDIT_WINDOW_MS;
1703
1838
  exports.PoolseProvider = PoolseProvider;
1704
1839
  exports.canEditOwnMessage = canEditOwnMessage;
@@ -1712,6 +1847,7 @@ exports.useAttachmentUpload = useAttachmentUpload;
1712
1847
  exports.useAttachmentUrl = useAttachmentUrl;
1713
1848
  exports.useCallRoom = useCallRoom;
1714
1849
  exports.useConversation = useConversation;
1850
+ exports.useConversationPresence = useConversationPresence;
1715
1851
  exports.useConversations = useConversations;
1716
1852
  exports.useLiveCall = useLiveCall;
1717
1853
  exports.useMe = useMe;
@@ -1720,6 +1856,7 @@ exports.useMessageStreams = useMessageStreams;
1720
1856
  exports.useMessages = useMessages;
1721
1857
  exports.usePoolse = usePoolse;
1722
1858
  exports.usePresence = usePresence;
1859
+ exports.usePresenceMany = usePresenceMany;
1723
1860
  exports.useReactions = useReactions;
1724
1861
  exports.useReadReceipts = useReadReceipts;
1725
1862
  exports.useRealtimeStatus = useRealtimeStatus;
@@ -1727,5 +1864,6 @@ exports.useRoom = useRoom;
1727
1864
  exports.useThread = useThread;
1728
1865
  exports.useTyping = useTyping;
1729
1866
  exports.useUser = useUser;
1867
+ exports.useUserPresence = useUserPresence;
1730
1868
  //# sourceMappingURL=index.cjs.map
1731
1869
  //# sourceMappingURL=index.cjs.map