const { requestUserInput } = window.aparte;
// Each field's header names its tab; the last one makes the composer's button send.
requestUserInput({
message: 'Two things before I start:',
schema: {
type: 'object',
properties: {
audience: {
type: 'enum', header: 'Audience', title: 'Who will read it?',
options: [{ value: 'dev', label: 'Developers' }, { value: 'team', label: 'The whole team' }],
},
sections: {
type: 'enum', header: 'Sections', title: 'What should it cover?', multiple: true,
options: [{ value: 'fixes', label: 'Fixes' }, { value: 'features', label: 'Features' }, { value: 'upgrade', label: 'How to upgrade' }],
},
},
},
}).catch(() => {});