@tanstack/cta-framework-react-cra 0.38.0 → 0.39.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/add-ons/db/package.json +0 -1
- package/dist/checksum.js +1 -1
- package/dist/types/checksum.d.ts +1 -1
- package/examples/tanchat/assets/src/components/example-AIAssistant.tsx +2 -15
- package/examples/tanchat/assets/src/routes/demo/tanchat.css +1 -0
- package/examples/tanchat/assets/src/routes/demo/tanchat.tsx +2 -15
- package/examples/tanchat/package.json +1 -5
- package/package.json +1 -1
- package/src/checksum.ts +1 -1
package/add-ons/db/package.json
CHANGED
package/dist/checksum.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file is auto-generated. Do not edit manually.
|
|
2
2
|
// Generated from add-ons, examples, hosts, project, and toolchains directories
|
|
3
|
-
export const contentChecksum = '
|
|
3
|
+
export const contentChecksum = '8aaed88ef56ea1e09d465317e2368788fdcbcc8c19aa4de1bfc919b7baa4902e';
|
package/dist/types/checksum.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const contentChecksum = "
|
|
1
|
+
export declare const contentChecksum = "8aaed88ef56ea1e09d465317e2368788fdcbcc8c19aa4de1bfc919b7baa4902e";
|
|
@@ -3,11 +3,7 @@ import { useStore } from '@tanstack/react-store'
|
|
|
3
3
|
import { Store } from '@tanstack/store'
|
|
4
4
|
|
|
5
5
|
import { Send, X, ChevronRight } from 'lucide-react'
|
|
6
|
-
import
|
|
7
|
-
import rehypeRaw from 'rehype-raw'
|
|
8
|
-
import rehypeSanitize from 'rehype-sanitize'
|
|
9
|
-
import rehypeHighlight from 'rehype-highlight'
|
|
10
|
-
import remarkGfm from 'remark-gfm'
|
|
6
|
+
import { Streamdown } from 'streamdown'
|
|
11
7
|
|
|
12
8
|
import { useChat } from '@ai-sdk/react'
|
|
13
9
|
import { DefaultChatTransport } from 'ai'
|
|
@@ -61,16 +57,7 @@ function Messages({ messages }: { messages: Array<UIMessage> }) {
|
|
|
61
57
|
</div>
|
|
62
58
|
)}
|
|
63
59
|
<div className="flex-1 min-w-0 text-white prose dark:prose-invert max-w-none prose-sm">
|
|
64
|
-
<
|
|
65
|
-
rehypePlugins={[
|
|
66
|
-
rehypeRaw,
|
|
67
|
-
rehypeSanitize,
|
|
68
|
-
rehypeHighlight,
|
|
69
|
-
remarkGfm,
|
|
70
|
-
]}
|
|
71
|
-
>
|
|
72
|
-
{part.text}
|
|
73
|
-
</ReactMarkdown>
|
|
60
|
+
<Streamdown>{part.text}</Streamdown>
|
|
74
61
|
</div>
|
|
75
62
|
</div>
|
|
76
63
|
)
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { useEffect, useRef, useState } from 'react'
|
|
2
2
|
import { createFileRoute } from '@tanstack/react-router'
|
|
3
3
|
import { Send } from 'lucide-react'
|
|
4
|
-
import
|
|
5
|
-
import rehypeRaw from 'rehype-raw'
|
|
6
|
-
import rehypeSanitize from 'rehype-sanitize'
|
|
7
|
-
import rehypeHighlight from 'rehype-highlight'
|
|
8
|
-
import remarkGfm from 'remark-gfm'
|
|
4
|
+
import { Streamdown } from 'streamdown'
|
|
9
5
|
import { useChat } from '@ai-sdk/react'
|
|
10
6
|
import { DefaultChatTransport } from 'ai'
|
|
11
7
|
|
|
@@ -87,16 +83,7 @@ function Messages({ messages }: { messages: Array<UIMessage> }) {
|
|
|
87
83
|
className="flex-1 min-w-0 prose dark:prose-invert max-w-none prose-sm"
|
|
88
84
|
key={index}
|
|
89
85
|
>
|
|
90
|
-
<
|
|
91
|
-
rehypePlugins={[
|
|
92
|
-
rehypeRaw,
|
|
93
|
-
rehypeSanitize,
|
|
94
|
-
rehypeHighlight,
|
|
95
|
-
remarkGfm,
|
|
96
|
-
]}
|
|
97
|
-
>
|
|
98
|
-
{part.text}
|
|
99
|
-
</ReactMarkdown>
|
|
86
|
+
<Streamdown>{part.text}</Streamdown>
|
|
100
87
|
</div>
|
|
101
88
|
)
|
|
102
89
|
}
|
|
@@ -6,11 +6,7 @@
|
|
|
6
6
|
"@modelcontextprotocol/sdk": "^1.8.0",
|
|
7
7
|
"ai": "^5.0.8",
|
|
8
8
|
"highlight.js": "^11.11.1",
|
|
9
|
-
"
|
|
10
|
-
"rehype-highlight": "^7.0.0",
|
|
11
|
-
"rehype-raw": "^7.0.0",
|
|
12
|
-
"rehype-sanitize": "^6.0.0",
|
|
13
|
-
"remark-gfm": "^4.0.1",
|
|
9
|
+
"streamdown": "^1.6.5",
|
|
14
10
|
"lucide-react": "^0.544.0",
|
|
15
11
|
"zod": "^4.1.11"
|
|
16
12
|
}
|
package/package.json
CHANGED
package/src/checksum.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file is auto-generated. Do not edit manually.
|
|
2
2
|
// Generated from add-ons, examples, hosts, project, and toolchains directories
|
|
3
|
-
export const contentChecksum = '
|
|
3
|
+
export const contentChecksum = '8aaed88ef56ea1e09d465317e2368788fdcbcc8c19aa4de1bfc919b7baa4902e'
|