@green-on-grey/ui-kit 1.4.0 → 1.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/dist/chat/Attachments.d.ts +3 -0
- package/dist/chat/ContextMeter.d.ts +4 -2
- package/dist/chat.js +211 -155
- package/dist/chat.js.map +1 -1
- package/dist/components/Icon.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/locales/index.d.ts +5 -0
- package/dist/locales.js +10 -5
- package/dist/locales.js.map +1 -1
- package/dist/manifest.json +3 -1
- package/dist/styles.css +11 -1
- package/dist/{ui-ChXUXoIB.js → ui-DLi5afmc.js} +2 -1
- package/dist/ui-DLi5afmc.js.map +1 -0
- package/package.json +1 -1
- package/dist/ui-ChXUXoIB.js.map +0 -1
|
@@ -29,6 +29,9 @@ export declare function AttachmentList({ items, load, onOpen }: {
|
|
|
29
29
|
load?: LoadAttachment;
|
|
30
30
|
onOpen?: (a: ChatAttachment) => void;
|
|
31
31
|
}): import("react").JSX.Element;
|
|
32
|
+
/** The width a previewed page is laid out at: the one of a desktop. A narrower frame shows it scaled down, so a
|
|
33
|
+
* page made for a screen (a deck of slides) is seen whole instead of cut. */
|
|
34
|
+
export declare const PAGE_WIDTH = 1280;
|
|
32
35
|
/** The preview of an attachment: an image, the browser's PDF viewer, drawn Markdown, a table or text. */
|
|
33
36
|
export declare function AttachmentPreview({ a, load, onClose }: {
|
|
34
37
|
a: ChatAttachment;
|
|
@@ -3,9 +3,11 @@ import type { ChatContext } from "./types";
|
|
|
3
3
|
export declare function tokens(n: number, lng: string): string;
|
|
4
4
|
/** The fill of the context window by a ring next to the send button
|
|
5
5
|
* (FTR.NAB.CHAT-0001 R3, design §3.1): grey, amber from 70 %, red from 90 %.
|
|
6
|
-
* A click shows the numbers; a full context offers to compact or to reset. */
|
|
7
|
-
export declare function ContextMeter({ context, onCompact, onReset }: {
|
|
6
|
+
* A click shows the numbers; a full context (from 90 %) offers to compact or to reset, off while the agent answers. */
|
|
7
|
+
export declare function ContextMeter({ context, onCompact, onReset, busy }: {
|
|
8
8
|
context: ChatContext;
|
|
9
9
|
onCompact?: () => void;
|
|
10
10
|
onReset?: () => void;
|
|
11
|
+
/** A turn is being written: the actions wait for it. */
|
|
12
|
+
busy?: boolean;
|
|
11
13
|
}): import("react").JSX.Element;
|