@tanstack/cta-framework-react-cra 0.37.1 → 0.37.2

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 = '2b3e74e22202e202e179f9a6a55cec0b4a0cbdcf70c6debf7a900f3405cbfad7';
3
+ export const contentChecksum = 'a42905c8800e56f1a97cdfc380ba4543e2d296e1fde95246036a4eacdaa694d7';
@@ -1 +1 @@
1
- export declare const contentChecksum = "2b3e74e22202e202e179f9a6a55cec0b4a0cbdcf70c6debf7a900f3405cbfad7";
1
+ export declare const contentChecksum = "a42905c8800e56f1a97cdfc380ba4543e2d296e1fde95246036a4eacdaa694d7";
@@ -32,7 +32,7 @@ export const Route = createFileRoute('/api/demo-chat')({
32
32
  const tools = await getTools()
33
33
 
34
34
  const result = await streamText({
35
- model: anthropic('<% if (addOnEnabled['netlify']) { %>claude-sonnet-4-5-20250929<% } else { %>claude-3-5-sonnet-latest<% } %>'),
35
+ model: anthropic('<% if (addOnEnabled['netlify']) { %>claude-sonnet-4-5-20250929<% } else { %>claude-haiku-4-5<% } %>'),
36
36
  messages: convertToModelMessages(messages),
37
37
  temperature: 0.7,
38
38
  stopWhen: stepCountIs(5),
@@ -34,7 +34,7 @@ function InitalLayout({ children }: { children: React.ReactNode }) {
34
34
 
35
35
  function ChattingLayout({ children }: { children: React.ReactNode }) {
36
36
  return (
37
- <div className="absolute bottom-0 right-0 left-64 bg-gray-900/80 backdrop-blur-sm border-t border-orange-500/10">
37
+ <div className="sticky bottom-0 left-0 right-0 bg-gray-900/80 backdrop-blur-sm border-t border-orange-500/10 z-10">
38
38
  <div className="max-w-3xl mx-auto w-full px-4 py-3">{children}</div>
39
39
  </div>
40
40
  )
@@ -55,7 +55,10 @@ function Messages({ messages }: { messages: Array<UIMessage> }) {
55
55
  }
56
56
 
57
57
  return (
58
- <div ref={messagesContainerRef} className="flex-1 overflow-y-auto pb-24">
58
+ <div
59
+ ref={messagesContainerRef}
60
+ className="flex-1 overflow-y-auto pb-4 min-h-0"
61
+ >
59
62
  <div className="max-w-3xl mx-auto w-full px-4">
60
63
  {messages.map(({ id, role, parts }) => (
61
64
  <div
@@ -131,8 +134,8 @@ function ChatPage() {
131
134
  const Layout = messages.length ? ChattingLayout : InitalLayout
132
135
 
133
136
  return (
134
- <div className="relative flex h-[calc(100vh-32px)] bg-gray-900">
135
- <div className="flex-1 flex flex-col">
137
+ <div className="relative flex h-[calc(100vh-80px)] bg-gray-900">
138
+ <div className="flex-1 flex flex-col min-h-0">
136
139
  <Messages messages={messages} />
137
140
 
138
141
  <Layout>
@@ -180,6 +183,6 @@ function ChatPage() {
180
183
  )
181
184
  }
182
185
 
183
- export const Route = createFileRoute('/example/chat')({
186
+ export const Route = createFileRoute('/demo/tanchat')({
184
187
  component: ChatPage,
185
188
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/cta-framework-react-cra",
3
- "version": "0.37.1",
3
+ "version": "0.37.2",
4
4
  "description": "CTA Framework for React (Create React App)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -23,7 +23,7 @@
23
23
  "author": "Jack Herrington <jherr@pobox.com>",
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
- "@tanstack/cta-engine": "0.37.1"
26
+ "@tanstack/cta-engine": "0.37.2"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^24.6.0",
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 = '2b3e74e22202e202e179f9a6a55cec0b4a0cbdcf70c6debf7a900f3405cbfad7'
3
+ export const contentChecksum = 'a42905c8800e56f1a97cdfc380ba4543e2d296e1fde95246036a4eacdaa694d7'