@athenaintel/react 0.9.9 → 0.9.11
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/README.md +0 -15
- package/dist/index.cjs +5369 -5328
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +50 -26
- package/dist/index.js +5369 -5328
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,29 +60,14 @@ import { themes } from '@athenaintel/react';
|
|
|
60
60
|
|
|
61
61
|
Preset themes: `light`, `dark`, `midnight`, `warm`, `purple`, `green`.
|
|
62
62
|
|
|
63
|
-
For solid custom surfaces like `primary`, `userBubble`, and `assistantBubble`, the SDK now auto-derives a readable black/white foreground when the paired foreground token is omitted. Explicit foreground tokens are still preferred when you need exact brand colors.
|
|
64
|
-
|
|
65
63
|
## Key Components
|
|
66
64
|
|
|
67
65
|
- **`<AthenaProvider>`** — Runtime, auth, theming, and configuration
|
|
68
66
|
- **`<AthenaChat>`** — Full chat UI with composer, messages, and tool rendering
|
|
69
|
-
- **`<AssetRenderer>`** — Render a single Athena asset anywhere with just an `assetId`
|
|
70
67
|
- **`<AthenaLayout>`** — Split-pane layout with asset panel
|
|
71
68
|
- **`<ThreadList>`** — Conversation history sidebar
|
|
72
69
|
- **`Toolkits`** — Constants for all available backend toolkits
|
|
73
70
|
|
|
74
|
-
## Assets
|
|
75
|
-
|
|
76
|
-
Use `AssetRenderer` when you want to embed a single asset outside the built-in side panel. It only needs `assetId`; the SDK resolves the correct viewer from that asset automatically.
|
|
77
|
-
|
|
78
|
-
```tsx
|
|
79
|
-
import { AssetRenderer } from '@athenaintel/react';
|
|
80
|
-
|
|
81
|
-
function PreviewPane() {
|
|
82
|
-
return <AssetRenderer assetId="asset_123" title="Quarterly report" className="min-h-[32rem]" />;
|
|
83
|
-
}
|
|
84
|
-
```
|
|
85
|
-
|
|
86
71
|
## Composer Hooks
|
|
87
72
|
|
|
88
73
|
Use `useAppendToComposer()` when you want to prefill a draft without sending it.
|