Skip to content

Commit be919a4

Browse files
committed
Bumps node modules
1 parent edd5738 commit be919a4

59 files changed

Lines changed: 1449 additions & 5427 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

chat-app/app/api/chat/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { streamText, UIMessage, convertToModelMessages } from 'ai';
2-
import { bedrock } from "@ai-sdk/amazon-bedrock";
2+
import { bedrock } from '@ai-sdk/amazon-bedrock';
33

44
// Allow streaming responses up to 30 seconds
55
export const maxDuration = 30;

chat-app/app/layout.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
import type { Metadata } from "next";
2-
import { Geist, Geist_Mono } from "next/font/google";
3-
import "./globals.css";
1+
import type { Metadata } from 'next';
2+
import { Geist, Geist_Mono } from 'next/font/google';
3+
import './globals.css';
44

55
const geistSans = Geist({
6-
variable: "--font-geist-sans",
7-
subsets: ["latin"],
6+
variable: '--font-geist-sans',
7+
subsets: ['latin'],
88
});
99

1010
const geistMono = Geist_Mono({
11-
variable: "--font-geist-mono",
12-
subsets: ["latin"],
11+
variable: '--font-geist-mono',
12+
subsets: ['latin'],
1313
});
1414

1515
export const metadata: Metadata = {
16-
title: "Create Next App",
17-
description: "Generated by create next app",
16+
title: 'Create Next App',
17+
description: 'Generated by create next app',
1818
};
1919

2020
export default function RootLayout({

chat-app/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const App = () => {
7272
sendMessage(
7373
{
7474
text: message.text || 'Sent with attachments',
75-
files: message.files
75+
files: message.files,
7676
},
7777
{
7878
body: {

chat-app/components/ai-elements/artifact.tsx

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
"use client";
1+
'use client';
22

3-
import { Button } from "@/components/ui/button";
3+
import { Button } from '@/components/ui/button';
44
import {
55
Tooltip,
66
TooltipContent,
77
TooltipProvider,
88
TooltipTrigger,
9-
} from "@/components/ui/tooltip";
10-
import { cn } from "@/lib/utils";
11-
import { type LucideIcon, XIcon } from "lucide-react";
12-
import type { ComponentProps, HTMLAttributes } from "react";
9+
} from '@/components/ui/tooltip';
10+
import { cn } from '@/lib/utils';
11+
import { type LucideIcon, XIcon } from 'lucide-react';
12+
import type { ComponentProps, HTMLAttributes } from 'react';
1313

1414
export type ArtifactProps = HTMLAttributes<HTMLDivElement>;
1515

1616
export const Artifact = ({ className, ...props }: ArtifactProps) => (
1717
<div
1818
className={cn(
19-
"flex flex-col overflow-hidden rounded-lg border bg-background shadow-sm",
20-
className
19+
'flex flex-col overflow-hidden rounded-lg border bg-background shadow-sm',
20+
className,
2121
)}
2222
{...props}
2323
/>
@@ -31,8 +31,8 @@ export const ArtifactHeader = ({
3131
}: ArtifactHeaderProps) => (
3232
<div
3333
className={cn(
34-
"flex items-center justify-between border-b bg-muted/50 px-4 py-3",
35-
className
34+
'flex items-center justify-between border-b bg-muted/50 px-4 py-3',
35+
className,
3636
)}
3737
{...props}
3838
/>
@@ -43,14 +43,14 @@ export type ArtifactCloseProps = ComponentProps<typeof Button>;
4343
export const ArtifactClose = ({
4444
className,
4545
children,
46-
size = "sm",
47-
variant = "ghost",
46+
size = 'sm',
47+
variant = 'ghost',
4848
...props
4949
}: ArtifactCloseProps) => (
5050
<Button
5151
className={cn(
52-
"size-8 p-0 text-muted-foreground hover:text-foreground",
53-
className
52+
'size-8 p-0 text-muted-foreground hover:text-foreground',
53+
className,
5454
)}
5555
size={size}
5656
type="button"
@@ -66,7 +66,7 @@ export type ArtifactTitleProps = HTMLAttributes<HTMLParagraphElement>;
6666

6767
export const ArtifactTitle = ({ className, ...props }: ArtifactTitleProps) => (
6868
<p
69-
className={cn("font-medium text-foreground text-sm", className)}
69+
className={cn('font-medium text-foreground text-sm', className)}
7070
{...props}
7171
/>
7272
);
@@ -77,7 +77,7 @@ export const ArtifactDescription = ({
7777
className,
7878
...props
7979
}: ArtifactDescriptionProps) => (
80-
<p className={cn("text-muted-foreground text-sm", className)} {...props} />
80+
<p className={cn('text-muted-foreground text-sm', className)} {...props} />
8181
);
8282

8383
export type ArtifactActionsProps = HTMLAttributes<HTMLDivElement>;
@@ -86,7 +86,7 @@ export const ArtifactActions = ({
8686
className,
8787
...props
8888
}: ArtifactActionsProps) => (
89-
<div className={cn("flex items-center gap-1", className)} {...props} />
89+
<div className={cn('flex items-center gap-1', className)} {...props} />
9090
);
9191

9292
export type ArtifactActionProps = ComponentProps<typeof Button> & {
@@ -101,15 +101,15 @@ export const ArtifactAction = ({
101101
icon: Icon,
102102
children,
103103
className,
104-
size = "sm",
105-
variant = "ghost",
104+
size = 'sm',
105+
variant = 'ghost',
106106
...props
107107
}: ArtifactActionProps) => {
108108
const button = (
109109
<Button
110110
className={cn(
111-
"size-8 p-0 text-muted-foreground hover:text-foreground",
112-
className
111+
'size-8 p-0 text-muted-foreground hover:text-foreground',
112+
className,
113113
)}
114114
size={size}
115115
type="button"
@@ -143,5 +143,5 @@ export const ArtifactContent = ({
143143
className,
144144
...props
145145
}: ArtifactContentProps) => (
146-
<div className={cn("flex-1 overflow-auto p-4", className)} {...props} />
146+
<div className={cn('flex-1 overflow-auto p-4', className)} {...props} />
147147
);

chat-app/components/ai-elements/canvas.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { Background, ReactFlow, type ReactFlowProps } from "@xyflow/react";
2-
import type { ReactNode } from "react";
3-
import "@xyflow/react/dist/style.css";
1+
import { Background, ReactFlow, type ReactFlowProps } from '@xyflow/react';
2+
import type { ReactNode } from 'react';
3+
import '@xyflow/react/dist/style.css';
44

55
type CanvasProps = ReactFlowProps & {
66
children?: ReactNode;
77
};
88

99
export const Canvas = ({ children, ...props }: CanvasProps) => (
1010
<ReactFlow
11-
deleteKeyCode={["Backspace", "Delete"]}
11+
deleteKeyCode={['Backspace', 'Delete']}
1212
fitView
1313
panOnDrag={false}
1414
panOnScroll

0 commit comments

Comments
 (0)