UNPKG

@rently-team/shepherd.js

Version:

Guide your users through a tour of your app.

16 lines (12 loc) 559 B
import { Shepherd, Tour } from './tour.ts'; import { StepNoOp, TourNoOp } from './utils/general.ts'; import { Step } from './step.ts'; const isServerSide = typeof window === 'undefined'; Shepherd.Step = (isServerSide ? StepNoOp : Step) as unknown as typeof Step; Shepherd.Tour = (isServerSide ? TourNoOp : Tour) as unknown as typeof Tour; export { ShepherdBase } from './tour.ts'; export default Shepherd; // Reexport types so they can be more easily used. export type * from './evented.ts'; export type * from './step.ts'; export type * from './tour.ts';