2
0

Add picture choice block

Closes #476
This commit is contained in:
Baptiste Arnaud
2023-05-04 09:20:30 -04:00
parent 65c6f66a5c
commit 035dded654
54 changed files with 6282 additions and 4938 deletions

View File

@ -11,14 +11,16 @@ export const choiceInputOptionsSchema = optionBaseSchema.merge(
buttonLabel: z.string(),
dynamicVariableId: z.string().optional(),
isSearchable: z.boolean().optional(),
searchInputPlaceholder: z.string().optional(),
})
)
export const defaultChoiceInputOptions: ChoiceInputOptions = {
export const defaultChoiceInputOptions = {
buttonLabel: defaultButtonLabel,
searchInputPlaceholder: 'Filter the options...',
isMultipleChoice: false,
isSearchable: false,
}
} as const
export const buttonItemSchema = itemBaseSchema.merge(
z.object({