@m6d/cortex-angular 0.9.1 → 0.11.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m6d/cortex-angular",
3
- "version": "0.9.1",
3
+ "version": "0.11.0",
4
4
  "description": "Reusable AI agent chat UI library for Angular",
5
5
  "license": "MIT",
6
6
  "sideEffects": false,
package/theme.css CHANGED
@@ -37,8 +37,6 @@
37
37
  --cortex-color-user-surface: var(--cortex-color-surface-subtle);
38
38
  --cortex-color-user-border: var(--cortex-color-border);
39
39
 
40
- /* Code blocks sit a step below the bubble they are in, in either scheme. */
41
- --cortex-color-code-surface: light-dark(#e8edf3, #111111);
42
40
  --cortex-color-code-text: light-dark(#334155, #e5e5e5);
43
41
 
44
42
  --cortex-color-success: light-dark(#059669, #34d399);
@@ -64,12 +62,15 @@
64
62
  --cortex-font-size: 0.8125rem;
65
63
 
66
64
  /* These read --cortex-font-size (or the color named) when unset, so they ship
67
- * unset: declaring one here gives that part its own value.
65
+ * unset: declaring one here gives that part its own value. Code blocks default
66
+ * to a tint of the heading color, so they stand a step off whatever they sit
67
+ * on: the transcript, the user's bubble, or a host's own surface.
68
68
  *
69
- * --cortex-font-size-message: 0.875rem; message bubbles and the composer
69
+ * --cortex-font-size-message: 0.875rem; message text and the composer
70
70
  * --cortex-font-size-header: 0.875rem; the chat and history titles
71
71
  * --cortex-color-send-empty: transparent; the send button with nothing to send
72
72
  * --cortex-color-send-empty-text: var(--cortex-color-text-muted);
73
+ * --cortex-color-code-surface: color-mix(in oklab, var(--cortex-color-text-heading) 8%, transparent);
73
74
  */
74
75
 
75
76
  /* The widget's headings read --cortex-font-display and fall back to `inherit`,
@@ -79,6 +79,7 @@ export type CortexTransport = {
79
79
  export type ColorScheme = "light" | "dark";
80
80
  export type MediaRenderContext = {
81
81
  scheme: ColorScheme;
82
+ locale: Locale;
82
83
  };
83
84
  /**
84
85
  * Draws a closed media fence's `source` into `host`, resolves once drawn, and
@@ -206,6 +207,8 @@ export type LandingContext<View> = {
206
207
  */
207
208
  send: (prompt: string) => void;
208
209
  openThread: (thread: ThreadSummary) => void;
210
+ /** Shows the whole history: its screen, or the sidebar in full mode, as the header's `openHistory`. */
211
+ openHistory: () => void;
209
212
  };
210
213
  /** What the history's list receives, the host's own or the widget's. Its header is the header slot. */
211
214
  export type CortexThreadListContext = {
@@ -436,6 +439,7 @@ export declare class CortexChatWidgetComponent implements OnInit {
436
439
  threads: ThreadSummary[] | undefined;
437
440
  composer: TemplateRef<unknown>;
438
441
  openThread: (thread: ThreadSummary) => void;
442
+ openHistory: () => void;
439
443
  greeting: string;
440
444
  suggestions: Suggestion[];
441
445
  send: (prompt: string) => void;