@paramms/chat-widget 1.6.1 → 1.6.3

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/dist/hooks.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { useState as d, useEffect as R, useRef as $, useSyncExternalStore as w, useMemo as h } from "react";
2
2
  import { RelayClient as C } from "./core.js";
3
- import { r as b, p as U } from "./codec.js";
3
+ import { r as b, p as U } from "./chatlist2.js";
4
4
  function T(e) {
5
5
  var c;
6
6
  const l = `${e.url}|${e.token ?? ""}|${e.profileId}|${e.subjectId ?? ""}|${e.kind ?? ""}|${e.peerId ?? ""}`, o = $(null);
package/dist/index.d.ts CHANGED
@@ -58,6 +58,13 @@ export interface MountOptions {
58
58
  * calls this. Used by `<ChatApp>` so tapping a conversation opens the room and
59
59
  * the back arrow returns to the list — native-app style. */
60
60
  onBack?: () => void;
61
+ /** Turn this into a self-contained inbox: the back chevron opens the user's
62
+ * full thread list IN PLACE (no navigation), and picking a row opens that
63
+ * thread with a back chevron returning to the list. */
64
+ inbox?: boolean;
65
+ /** Inbox scope: 'tenant' (default) lists the user's threads across ALL your
66
+ * chatrooms; 'profile' limits to this chatroom. */
67
+ inboxScope?: 'tenant' | 'profile';
61
68
  /** If set, shows a 🌐 translate button on incoming messages that translates
62
69
  * them into this language (ISO code or language name) via the server's
63
70
  * /translate endpoint. Omit to disable the feature. */