feat: support chatflow start node custom input field hidden (#19678)

This commit is contained in:
Panpan 2025-05-21 13:52:21 +08:00 • committed by GitHub
commit ef3569e667
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 76 additions and 18 deletions

View file

@ -53,6 +53,7 @@ export type EmbeddedChatbotContextValue = {
setIsResponding: (state: boolean) => void,
currentConversationInputs: Record<string, any> | null,
setCurrentConversationInputs: (v: Record<string, any>) => void,
allInputsHidden: boolean
}
export const EmbeddedChatbotContext = createContext<EmbeddedChatbotContextValue>({
@ -82,5 +83,6 @@ export const EmbeddedChatbotContext = createContext<EmbeddedChatbotContextValue>
setIsResponding: noop,
currentConversationInputs: {},
setCurrentConversationInputs: noop,
allInputsHidden: false,
})
export const useEmbeddedChatbotContext = () => useContext(EmbeddedChatbotContext)