@alexkroman1/aai-ui 1.0.5 → 1.1.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/aai-logo-BqFv6JU6.js +21 -0
- package/dist/components/aai-logo.d.ts +11 -0
- package/dist/components/chat-view.js +2 -5
- package/dist/components/message-list.js +1 -1
- package/dist/components/start-screen.js +2 -1
- package/dist/components/tool-call-block.js +1 -1
- package/dist/default-client/assets/default-client-7xxp5zMu.js +49 -0
- package/dist/default-client/assets/{default-client-BK1ItCvw.css → default-client-BZqVGR2o.css} +1 -1
- package/dist/default-client/default-client.html +2 -2
- package/dist/define-client.js +1 -1
- package/dist/hooks.d.ts +1 -0
- package/dist/hooks.js +19 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/session-core.d.ts +11 -0
- package/dist/session-core.js +12 -0
- package/package.json +2 -2
- package/dist/default-client/assets/default-client-AeJhjHfj.js +0 -49
- /package/dist/{tool-call-block-CCuChsFm.js → tool-call-block-wby_jyoY.js} +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { useTheme } from "./context.js";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region components/aai-logo.tsx
|
|
4
|
+
/**
|
|
5
|
+
* The AAI ANSI art logo, rendered as a styled `<pre>` block.
|
|
6
|
+
*
|
|
7
|
+
* @param size - Font size in px. Defaults to 10.
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
function AaiLogo({ size = 10 }) {
|
|
11
|
+
return /* @__PURE__ */ jsx("pre", {
|
|
12
|
+
className: "font-aai-mono leading-[1.1] font-bold m-0",
|
|
13
|
+
style: {
|
|
14
|
+
color: useTheme().primary,
|
|
15
|
+
fontSize: `${size}px`
|
|
16
|
+
},
|
|
17
|
+
children: "▄▀█ ▄▀█ █\n█▀█ █▀█ █"
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { AaiLogo as t };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** @jsxImportSource react */
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* The AAI ANSI art logo, rendered as a styled `<pre>` block.
|
|
5
|
+
*
|
|
6
|
+
* @param size - Font size in px. Defaults to 10.
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export declare function AaiLogo({ size }: {
|
|
10
|
+
size?: number;
|
|
11
|
+
}): ReactNode;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useSession, useTheme } from "../context.js";
|
|
2
|
+
import { t as AaiLogo } from "../aai-logo-BqFv6JU6.js";
|
|
2
3
|
import { Controls } from "./controls.js";
|
|
3
4
|
import { MessageList } from "./message-list.js";
|
|
4
5
|
import clsx from "clsx";
|
|
@@ -65,11 +66,7 @@ function ChatView({ icon, title, className }) {
|
|
|
65
66
|
className: "text-sm font-semibold",
|
|
66
67
|
style: { color: theme.primary },
|
|
67
68
|
children: title
|
|
68
|
-
}) : !icon && /* @__PURE__ */ jsx(
|
|
69
|
-
className: "font-aai-mono text-[10px] leading-[1.1] font-bold m-0",
|
|
70
|
-
style: { color: theme.primary },
|
|
71
|
-
children: "▄▀█ ▄▀█ █\n█▀█ █▀█ █"
|
|
72
|
-
}),
|
|
69
|
+
}) : !icon && /* @__PURE__ */ jsx(AaiLogo, {}),
|
|
73
70
|
/* @__PURE__ */ jsx("div", {
|
|
74
71
|
className: "ml-auto",
|
|
75
72
|
children: /* @__PURE__ */ jsxs("div", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useSession, useTheme } from "../context.js";
|
|
2
|
-
import { t as ToolCallBlock } from "../tool-call-block-
|
|
2
|
+
import { t as ToolCallBlock } from "../tool-call-block-wby_jyoY.js";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { useEffect, useMemo, useRef } from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useSession, useTheme } from "../context.js";
|
|
2
2
|
import { Button } from "./button.js";
|
|
3
|
+
import { t as AaiLogo } from "../aai-logo-BqFv6JU6.js";
|
|
3
4
|
import clsx from "clsx";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
//#region components/start-screen.tsx
|
|
@@ -35,7 +36,7 @@ function StartScreen({ children, icon, title, subtitle, buttonText = "Start", cl
|
|
|
35
36
|
borderColor: theme.border
|
|
36
37
|
},
|
|
37
38
|
children: [
|
|
38
|
-
icon,
|
|
39
|
+
icon ?? (!title && /* @__PURE__ */ jsx(AaiLogo, { size: 20 })),
|
|
39
40
|
title && /* @__PURE__ */ jsx("h1", {
|
|
40
41
|
className: "font-semibold m-0",
|
|
41
42
|
style: { color: theme.primary },
|