@sevenfold/setto-client 0.47.0 → 0.48.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/dist/chunks/{SettoChat-C4QpE5Gm.js → SettoChat-SqJlsGXL.js} +42 -3
- package/dist/chunks/{SettoChat-C4QpE5Gm.js.map → SettoChat-SqJlsGXL.js.map} +1 -1
- package/dist/modules/chat/SettoChat.d.ts +3 -0
- package/dist/modules/chat/realtime.d.ts +17 -0
- package/dist/setto-client.js +1 -1
- package/package.json +1 -1
|
@@ -42,6 +42,9 @@ export type NearbyHuman = {
|
|
|
42
42
|
no?: string | null;
|
|
43
43
|
en?: string | null;
|
|
44
44
|
} | null;
|
|
45
|
+
/** When they stop being online, and drop off the list (setto-server 0.121); absent from an older server. */
|
|
46
|
+
onlineUntil?: string | null;
|
|
47
|
+
nearbyUntil?: string | null;
|
|
45
48
|
};
|
|
46
49
|
/** The browser's language for the server's translation, within its 35-character limit. */
|
|
47
50
|
export declare function browserLanguage(): string | undefined;
|
|
@@ -102,3 +102,20 @@ export type RefreshTicket = {
|
|
|
102
102
|
export declare function refreshOutcome(started: RefreshTicket, current: RefreshTicket & {
|
|
103
103
|
busy: boolean;
|
|
104
104
|
}): 'apply' | 'defer' | 'drop';
|
|
105
|
+
/** Who is near the chat, read this often without the presence doorbell (as before 0.48). */
|
|
106
|
+
export declare const AVAILABILITY_POLL_MS = 30000;
|
|
107
|
+
/** And this often while it is subscribed: a safety net only. */
|
|
108
|
+
export declare const AVAILABILITY_POLL_LIVE_MS = 120000;
|
|
109
|
+
/** Only a server-issued presence topic is joined (setto-server 20261117090000). */
|
|
110
|
+
export declare function presenceTopic(value: unknown): string | null;
|
|
111
|
+
/**
|
|
112
|
+
* The next moment the list changes on its own: someone online stops being so,
|
|
113
|
+
* or someone drops off it. A lapsing lease writes nothing on the server, so
|
|
114
|
+
* nothing rings then; the widget reads the list again at this moment. Null
|
|
115
|
+
* when no such moment is ahead (an older server sends neither field).
|
|
116
|
+
*/
|
|
117
|
+
export declare function nextAvailabilityChange(humans: ReadonlyArray<{
|
|
118
|
+
online: boolean;
|
|
119
|
+
onlineUntil?: string | null;
|
|
120
|
+
nearbyUntil?: string | null;
|
|
121
|
+
}>, now: number): number | null;
|
package/dist/setto-client.js
CHANGED
|
@@ -1783,7 +1783,7 @@ const chatModule = {
|
|
|
1783
1783
|
label: "Chat"
|
|
1784
1784
|
};
|
|
1785
1785
|
const SettoChatWidget = lazy(
|
|
1786
|
-
() => import("./chunks/SettoChat-
|
|
1786
|
+
() => import("./chunks/SettoChat-SqJlsGXL.js").then((module) => ({ default: module.SettoChatWidget }))
|
|
1787
1787
|
);
|
|
1788
1788
|
class ChatBoundary extends Component {
|
|
1789
1789
|
state = { failed: false };
|