@blade-hq/agent-react 1.2.1-beta.9 → 2608.0.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/README.md +20 -7
- package/dist/components/AssistantTurnBlock.d.ts +3 -1
- package/dist/components/ChatView.d.ts +2 -0
- package/dist/components/FileCard.d.ts +16 -0
- package/dist/components/MarkdownContent.d.ts +8 -4
- package/dist/components/MessageList.d.ts +3 -1
- package/dist/components/ToolCallBlock.d.ts +17 -0
- package/dist/embed/blade-chat-element.d.ts +1 -1
- package/dist/index.js +459 -176
- package/dist/index.js.map +1 -1
- package/dist/lib/media-tags.d.ts +24 -0
- package/dist/style.css +148 -4
- package/dist/style.full.css +675 -0
- package/package.json +4 -3
- package/public-api.md +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blade-hq/agent-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2608.0.0",
|
|
4
4
|
"description": "Blade Agent React 绑定:BladeProvider、useAgentSession、开箱即用的 ChatView 聊天界面。",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"import": "./dist/index.js"
|
|
16
16
|
},
|
|
17
|
-
"./style.css": "./dist/style.css"
|
|
17
|
+
"./style.css": "./dist/style.css",
|
|
18
|
+
"./style.full.css": "./dist/style.full.css"
|
|
18
19
|
},
|
|
19
20
|
"files": [
|
|
20
21
|
"dist",
|
|
@@ -28,7 +29,7 @@
|
|
|
28
29
|
"access": "public"
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|
|
31
|
-
"@blade-hq/agent-client": "
|
|
32
|
+
"@blade-hq/agent-client": "2608.0.0"
|
|
32
33
|
},
|
|
33
34
|
"bundledDependencies": [],
|
|
34
35
|
"peerDependencies": {
|
package/public-api.md
CHANGED
|
@@ -306,6 +306,7 @@ placeholder: string | undefined
|
|
|
306
306
|
renderers: ChatViewRenderers | undefined
|
|
307
307
|
sessionId: string | undefined
|
|
308
308
|
slots: ChatViewSlots | undefined
|
|
309
|
+
theme: "light" | "dark" | undefined
|
|
309
310
|
```
|
|
310
311
|
|
|
311
312
|
## `ChatViewRenderers` (interface)
|
|
@@ -593,7 +594,7 @@ user: { id?: string; username?: string; display_name?: string; } | undefined
|
|
|
593
594
|
## `MarkdownContent` (function)
|
|
594
595
|
|
|
595
596
|
```ts
|
|
596
|
-
MarkdownContent: ({ children, className, mode }: MarkdownContentProps) => JSX.Element
|
|
597
|
+
MarkdownContent: ({ children, className, mode, sessionId }: MarkdownContentProps) => JSX.Element
|
|
597
598
|
```
|
|
598
599
|
|
|
599
600
|
## `MarkdownContentProps` (interface)
|
|
@@ -602,6 +603,7 @@ MarkdownContent: ({ children, className, mode }: MarkdownContentProps) => JSX.El
|
|
|
602
603
|
children: string
|
|
603
604
|
className: string | undefined
|
|
604
605
|
mode: "streaming" | "static" | undefined
|
|
606
|
+
sessionId: string | undefined
|
|
605
607
|
```
|
|
606
608
|
|
|
607
609
|
## `MemoryRef` (interface)
|