@tanstack/cta-framework-react-cra 0.38.1 → 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/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 = '560febef815f93ec3c99b747912b7b52a249a731dea9fd5c74eb3f1f6488e6d8';
3
+ export const contentChecksum = '8aaed88ef56ea1e09d465317e2368788fdcbcc8c19aa4de1bfc919b7baa4902e';
@@ -1 +1 @@
1
- export declare const contentChecksum = "560febef815f93ec3c99b747912b7b52a249a731dea9fd5c74eb3f1f6488e6d8";
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 ReactMarkdown from 'react-markdown'
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
- <ReactMarkdown
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,5 +1,6 @@
1
1
  @import "tailwindcss";
2
2
  @import "highlight.js/styles/github-dark.css";
3
+ @source "../../../../node_modules/streamdown/dist/*.js";
3
4
 
4
5
  /* Custom scrollbar styles */
5
6
  ::-webkit-scrollbar {
@@ -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 ReactMarkdown from 'react-markdown'
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
- <ReactMarkdown
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
- "react-markdown": "^10.1.0",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/cta-framework-react-cra",
3
- "version": "0.38.1",
3
+ "version": "0.39.0",
4
4
  "description": "CTA Framework for React (Create React App)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
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 = '560febef815f93ec3c99b747912b7b52a249a731dea9fd5c74eb3f1f6488e6d8'
3
+ export const contentChecksum = '8aaed88ef56ea1e09d465317e2368788fdcbcc8c19aa4de1bfc919b7baa4902e'