@eloquentai/chat-sdk 0.36.2-dev.4 → 0.36.2-dev.5
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/components/chat-interface/use-reply-announcement.d.ts +18 -0
- package/dist/index.mjs +1 -1
- package/dist/{skeleton-Z5UOdvDS.js → skeleton-C-hcwPZ1.js} +2172 -2132
- package/dist/skeleton-C-hcwPZ1.js.map +1 -0
- package/dist/ui.mjs +1 -1
- package/package.json +1 -1
- package/dist/skeleton-Z5UOdvDS.js.map +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { Message } from '../../types/message';
|
|
3
|
+
type Announcement = Readonly<{
|
|
4
|
+
id: number;
|
|
5
|
+
text: string;
|
|
6
|
+
}>;
|
|
7
|
+
/**
|
|
8
|
+
* Text for a polite status region: the replies that just arrived, or a reply
|
|
9
|
+
* that was just rewritten. The transcript itself is not a live region, because
|
|
10
|
+
* then anything that re-renders in it (remounted bubbles, sender headers, the
|
|
11
|
+
* rating prompt, the user's own text) would be read out too.
|
|
12
|
+
*
|
|
13
|
+
* Not announced: the first render (history restored on open), and a list that
|
|
14
|
+
* shares no message with the previous one (a cleared chat, or a host swapping
|
|
15
|
+
* in another transcript).
|
|
16
|
+
*/
|
|
17
|
+
export declare function useReplyAnnouncement(messages: Message[] | undefined, containerRef: RefObject<HTMLElement | null>): Announcement | null;
|
|
18
|
+
export {};
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { L as Mt, c as nt, u as At, g as ct, X as Pt, i as Ot, A as Ut, d as H, e as Ze, f as jt, h as Dt, r as $t, t as Bt, j as Lt, N as at, k as $e, l as Nt, H as Zt, w as ut, m as Kt, s as Vt, n as Wt, o as Ht, E as Ft, p as Jt, S as Gt, C as Yt, T as Xt } from "./skeleton-
|
|
2
|
+
import { L as Mt, c as nt, u as At, g as ct, X as Pt, i as Ot, A as Ut, d as H, e as Ze, f as jt, h as Dt, r as $t, t as Bt, j as Lt, N as at, k as $e, l as Nt, H as Zt, w as ut, m as Kt, s as Vt, n as Wt, o as Ht, E as Ft, p as Jt, S as Gt, C as Yt, T as Xt } from "./skeleton-C-hcwPZ1.js";
|
|
3
3
|
import { jsx as C, jsxs as Be, Fragment as Qt } from "react/jsx-runtime";
|
|
4
4
|
import { useState as S, useEffect as F, useMemo as et, useCallback as v, useRef as N } from "react";
|
|
5
5
|
import { createPortal as tt } from "react-dom";
|