-
-
Notifications
You must be signed in to change notification settings - Fork 650
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add EventOptions interface, tweak data format (#2631)
* 🐛 Add additional interface for tour and step assignment * Move assignment back to shepherd.ts * Tweak data format --------- Co-authored-by: Robert Wagner <[email protected]>
- Loading branch information
1 parent
ebb15af
commit 68dc797
Showing
4 changed files
with
43 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
import { Shepherd } from './tour'; | ||
import { Shepherd, Tour } from './tour'; | ||
import { NoOp } from './utils/general'; | ||
import { Step } from './step'; | ||
|
||
const isServerSide = typeof window === 'undefined'; | ||
|
||
Shepherd.Step = isServerSide ? NoOp : Step; | ||
Shepherd.Tour = isServerSide ? NoOp : Tour; | ||
|
||
export default Shepherd; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters