import type Shepherd from 'shepherd.js' export default (tour: Shepherd.Tour) => { const steps: object[] | Shepherd.Step[] = [ { id: 'welcome', text: `
Build complex workflows from your scripts, configure them and get a clear visualization.
`, buttons: [ { text: 'See by myself', action: tour.cancel, secondary: true, classes: 'special' }, { text: 'Give me an overview', action: tour.next, classes: 'special' } ] }, { id: 'graph', text: `Know how your flow is structured at a glimpse.
`, cancelIcon: { enabled: true }, attachTo: { element: '#flow-tutorial-1', on: 'right-start' }, highlightClass: 'shepherd-highlighted-element', scrollTo: false, buttons: [ { text: 'Back', action: tour.back, secondary: true }, { text: 'Next', action: tour.next } ] }, { id: 'modules', text: `Start building by adding modules. A module can be a simple script, a loop or a branching for example.
`, cancelIcon: { enabled: true }, attachTo: { element: '#flow-tutorial-2 button', on: 'right-start' }, highlightClass: 'shepherd-highlighted-element', scrollTo: false, buttons: [ { text: 'Back', action: tour.back, secondary: true }, { text: 'Next', action: tour.next } ] }, { id: 'settings', text: `Configure schedules, authorizations, sharing parameters and many more.
`, cancelIcon: { enabled: true }, attachTo: { element: '#flow-tutorial-3', on: 'bottom-start' }, highlightClass: 'shepherd-highlighted-element', scrollTo: false, buttons: [ { text: 'Back', action: tour.back, secondary: true }, { text: 'Next', action: tour.next } ] }, { id: 'test', text: `Time to try your work! Test the flow and iterate as much as you want.
`, cancelIcon: { enabled: true }, attachTo: { element: '#flow-tutorial-4', on: 'left-start' }, highlightClass: 'shepherd-highlighted-element', scrollTo: false, buttons: [ { text: 'Back', action: tour.back, secondary: true }, { text: 'Finish', action: tour.complete } ] } ] return steps }