@paramms/chat-widget 1.6.2 → 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/chatlist.js +2 -245
- package/dist/chatlist.js.map +1 -1
- package/dist/chatlist2.js +1417 -0
- package/dist/chatlist2.js.map +1 -0
- package/dist/core.js +10 -11
- package/dist/core.js.map +1 -1
- package/dist/embed-lite.js +5 -5
- package/dist/embed-lite.js.map +1 -1
- package/dist/embed.js +5 -5
- package/dist/embed.js.map +1 -1
- package/dist/hooks.js +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +453 -412
- package/dist/index.js.map +1 -1
- package/dist/outbox.js +1 -1
- package/package.json +1 -1
- package/dist/codec.js +0 -1174
- package/dist/codec.js.map +0 -1
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 "./
|
|
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. */
|