Add Ableton Live version selection and validation for export options

This commit is contained in:
2026-07-13 04:44:26 +02:00
parent fe0b578373
commit d50781ed57
5 changed files with 13 additions and 19 deletions

View File

@@ -10,6 +10,7 @@ const FORMAT_IDS: [ExportFormatId, ...ExportFormatId[]] = [
export const exportFormSchema = z.object({
format: z.enum(FORMAT_IDS),
abletonVersion: z.enum(['10', '11']),
projectName: z.string(),
includeArchivedSamples: z.boolean(),
exportAllPadsWithSamples: z.boolean(),
@@ -28,6 +29,7 @@ export type ExportFormValues = z.infer<typeof exportFormSchema>;
export const PERSISTED_FIELDS: (keyof ExportFormValues)[] = [
'format',
'abletonVersion',
'includeArchivedSamples',
'exportAllPadsWithSamples',
'clips',