@m6d/cortex-web 0.2.0 → 0.3.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/index.d.ts +4 -0
- package/dist/index.js +753 -510
- package/dist/styles.css +389 -68
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -149,6 +149,8 @@ export type CortexHeaderContext = {
|
|
|
149
149
|
* locale, else the built-in "New Chat"; empty while the handshake is out.
|
|
150
150
|
*/
|
|
151
151
|
title: string;
|
|
152
|
+
/** The URL of the agent's icon, drawn before the title on the chat screen once a thread is open; undefined otherwise, and for an agent without one. */
|
|
153
|
+
icon?: string;
|
|
152
154
|
/** How many conversations the history lists; undefined while the first load is out. */
|
|
153
155
|
threadCount: number | undefined;
|
|
154
156
|
isWorking: boolean;
|
|
@@ -176,6 +178,8 @@ export type CortexHeaderContext = {
|
|
|
176
178
|
export type LandingContext<View> = {
|
|
177
179
|
/** The agent's greeting in the widget's locale, or the built-in one; empty until the handshake answers. */
|
|
178
180
|
greeting: string;
|
|
181
|
+
/** The URL of the agent's icon, drawn large in place of the landing's glyph; undefined for an agent without one. */
|
|
182
|
+
icon?: string;
|
|
179
183
|
/** Empty until the handshake answers, and for an agent that takes no messages. */
|
|
180
184
|
suggestions: Suggestion[];
|
|
181
185
|
/** Newest first; undefined while the first load is out. */
|