@m6d/cortex-react-native 0.1.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 CHANGED
@@ -151,6 +151,8 @@ export type CortexHeaderContext = {
151
151
  * locale, else the built-in "New Chat"; empty while the handshake is out.
152
152
  */
153
153
  title: string;
154
+ /** 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. */
155
+ icon?: string;
154
156
  /** How many conversations the history lists; undefined while the first load is out. */
155
157
  threadCount: number | undefined;
156
158
  isWorking: boolean;
@@ -178,6 +180,8 @@ export type CortexHeaderContext = {
178
180
  export type LandingContext<View> = {
179
181
  /** The agent's greeting in the widget's locale, or the built-in one; empty until the handshake answers. */
180
182
  greeting: string;
183
+ /** The URL of the agent's icon, drawn large in place of the landing's glyph; undefined for an agent without one. */
184
+ icon?: string;
181
185
  /** Empty until the handshake answers, and for an agent that takes no messages. */
182
186
  suggestions: Suggestion[];
183
187
  /** Newest first; undefined while the first load is out. */
@@ -638,7 +642,8 @@ export declare function CortexChatWidget({ config, style, slots, }: {
638
642
  }): import("react").JSX.Element;
639
643
  /**
640
644
  * The default header, drawn from the same context a consumer's own receives. On
641
- * the chat: history, title, debug switch, new chat. History opens the drawer or
645
+ * the chat: history, the agent's icon once a thread is open, title, debug
646
+ * switch, new chat. History opens the drawer or
642
647
  * the history screen, whichever the layout has. On the history: back, title and
643
648
  * count, new chat. Where full mode's history stands beside the chat, the
644
649
  * buttons that would reach it are gone.