Changed droppable to connectionDroppable

This commit is contained in:
Emir Karabeg
2025-01-30 19:39:02 -08:00
parent 3d147dc8bf
commit 678134b559
4 changed files with 4 additions and 4 deletions

View File

@@ -89,7 +89,7 @@ export function LongInput({
className={cn(
'w-full resize-none placeholder:text-muted-foreground/50 allow-scroll text-transparent caret-foreground break-words whitespace-pre-wrap',
isConnecting &&
config?.droppable !== false &&
config?.connectionDroppable !== false &&
'focus-visible:ring-blue-500 ring-2 ring-blue-500 ring-offset-2'
)}
rows={4}

View File

@@ -110,7 +110,7 @@ export function ShortInput({
className={cn(
'w-full placeholder:text-muted-foreground/50 allow-scroll text-transparent caret-foreground',
isConnecting &&
config?.droppable !== false &&
config?.connectionDroppable !== false &&
'focus-visible:ring-blue-500 ring-2 ring-blue-500 ring-offset-2'
)}
placeholder={placeholder ?? ''}

View File

@@ -98,7 +98,7 @@ export const AgentBlock: BlockConfig<ChatResponse> = {
layout: "full",
placeholder: "Enter your API key",
password: true,
droppable: false
connectionDroppable: false
},
{
id: 'responseFormat',

View File

@@ -45,7 +45,7 @@ export interface SubBlockConfig {
columns?: string[]
placeholder?: string
password?: boolean
droppable?: boolean
connectionDroppable?: boolean
}
export interface BlockConfig<T extends ToolResponse = ToolResponse> {