UNPKG

react-joyride

Version:

Create guided tours for your apps

52 lines (47 loc) 994 B
export const ACTIONS = { INIT: 'init', START: 'start', STOP: 'stop', RESET: 'reset', PREV: 'prev', NEXT: 'next', GO: 'go', CLOSE: 'close', SKIP: 'skip', UPDATE: 'update', } as const; export const EVENTS = { TOUR_START: 'tour:start', STEP_BEFORE: 'step:before', BEACON: 'beacon', TOOLTIP: 'tooltip', STEP_AFTER: 'step:after', TOUR_END: 'tour:end', TOUR_STATUS: 'tour:status', TARGET_NOT_FOUND: 'error:target_not_found', ERROR: 'error', } as const; export const LIFECYCLE = { INIT: 'init', READY: 'ready', BEACON: 'beacon', TOOLTIP: 'tooltip', COMPLETE: 'complete', ERROR: 'error', } as const; export const ORIGIN = { BUTTON_CLOSE: 'button_close', BUTTON_PRIMARY: 'button_primary', KEYBOARD: 'keyboard', OVERLAY: 'overlay', } as const; export const STATUS = { IDLE: 'idle', READY: 'ready', WAITING: 'waiting', RUNNING: 'running', PAUSED: 'paused', SKIPPED: 'skipped', FINISHED: 'finished', ERROR: 'error', } as const;