@@ -4,6 +4,10 @@ import { TextInputBlock } from './schema'
|
||||
export const defaultTextInputOptions = {
|
||||
isLong: false,
|
||||
labels: { button: defaultButtonLabel, placeholder: 'Type your answer...' },
|
||||
audioClip: {
|
||||
isEnabled: false,
|
||||
visibility: 'Auto',
|
||||
},
|
||||
attachments: {
|
||||
isEnabled: false,
|
||||
visibility: 'Auto',
|
||||
|
||||
@@ -17,6 +17,13 @@ export const textInputOptionsSchema = textInputOptionsBaseSchema
|
||||
.merge(
|
||||
z.object({
|
||||
isLong: z.boolean().optional(),
|
||||
audioClip: z
|
||||
.object({
|
||||
isEnabled: z.boolean().optional(),
|
||||
saveVariableId: z.string().optional(),
|
||||
visibility: z.enum(fileVisibilityOptions).optional(),
|
||||
})
|
||||
.optional(),
|
||||
attachments: z
|
||||
.object({
|
||||
isEnabled: z.boolean().optional(),
|
||||
|
||||
Reference in New Issue
Block a user