diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..9deec6a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,17 @@
+# Logs
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+
+# Dependency directories
+node_modules/
+
+# Output of 'npm pack'
+*.tgz
+
+# Yarn Integrity file
+.yarn-integrity
+
+# dotenv environment variables file
+.env
+.env.test
diff --git a/.npmignore b/.npmignore
new file mode 100644
index 0000000..2f88269
--- /dev/null
+++ b/.npmignore
@@ -0,0 +1 @@
+/docs
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..09cec61
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,109 @@
+# Changelog
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
+
+## [Unreleased]
+
+## [0.3.1]
+
+### Added
+ - Added .gitignore
+ - Added .npmignore
+ - Added package.json
+ - Created CHANGELOG
+
+### Changed
+ - Updated README
+
+### Removed
+ - Removed comments from bootstrap-tourist.js
+
+## [0.3.0]
+
+### Added
+ - Added `showIfUnintendedOrphan` to show a tour step as an orphan if its element doesn't exist, overriding `onElementUnavailable`
+
+### Changed
+ - New method of backdrop and highlight added, with major effort and code from [@ibastevan](https://github.com/ibastevan):
+ - Overlay divs and customizable transitions between tour steps, [read more here](https://github.com/IGreatlyDislikeJavascript/bootstrap-tourist/pull/24)
+ - In short, previous versions of Tourist (and original Tour) used 4 divs to bracket the tour step elements. Tourist now uses overlays to produce the same effect. This solves many problems and enables many new features, including customizable transitions between tour steps.
+
+## 0.2.1
+
+### Changed
+ - `delayOnElement` option now waits for elements not yet created in the DOM (thanks to [@lukaszmn](https://github.com/lukaszmn))
+
+## [0.2.0]
+
+### Fixed
+ - fix bug preventing `element: function(){...}` feature under BS4/popper.js
+
+## [0.0.12-beta]:
+
+### Fixed
+ - fixes to the button text change code and better prep for localization (thanks to [@DancingDad](https://github.com/DancingDad), [@thenewbeat](https://github.com/thenewbeat), [@bardware](https://github.com/bardware))
+ - fixed css for BS4 progress text to correctly use float-right (thanks to [@macroscian](https://github.com/macroscian), [@thenewbeat](https://github.com/thenewbeat))
+
+## [0.0.10-beta]:
+
+### Added
+ - added support for changing button texts (thanks to [@vneri](https://github.com/vneri))
+ - added dummy `init()` to support drop-in replacement for Tour (thanks to [@pau1phi11ips](https://github.com/pau1phi11ips))
+
+## 0.0.9-beta:
+
+### Added
+ - default params compatibility for IE
+
+### Changed
+ - major change to manipulation of BS4 popper.js for orphan steps
+ - change to implementation of backdrop
+
+### Removed
+ - `smartPlacement` option removed, deprecated
+
+### Fixed
+ - auto progress bar was killed in changes 0.7 -> 0.8 due to Bootstrap sanitizer, this is readded
+
+## 0.0.8-beta:
+
+### Changed
+ - Improved BS4 support and template switching. Changed options for framework vs template.
+
+### Fixed
+ - Fix in 0.0.7-beta didn't work for Bootstrap 4. This release is to ensure fully working popovers in BS4. Issue is that the Bootstrap CDN doesn't actually have the whitelist property, so developing against it is basically useless :(
+
+## 0.0.7-beta:
+
+### Fixed
+ - Fix breaking change in Bootstrap 3.4.1, fixes this issue: https://github.com/sorich87/bootstrap-tour/issues/723#issuecomment-471107788. Issue is caused by the BS sanitizer, to avoid this reoccurring the "sanitizeWhitelist:" and "sanitizeFunction:" global options added
+
+## 0.0.6-beta:
+
+### Added
+ - Added `onPreviouslyEnded()` callback: https://github.com/sorich87/bootstrap-tour/issues/720
+ - Added selector to switch between bootstrap3 and bootstrap4 or custom template, thanks to: https://github.com/sorich87/bootstrap-tour/pull/643
+
+### Fixed
+ - Fixed invalid call to debug in `showNextStep()`
+
+## 0.0.5-beta:
+
+### Added
+ - Added "unfix" for bootstrap selectpicker to revert zindex after step that includes this plugin
+
+### Changed
+ - Improved the background overlay and scroll handling, unnecessary work removed
+
+### Fixed
+ - Fixed issue with Bootstrap dialogs. Handling of dialogs is now robust
+ - Fixed issue with BootstrapDialog plugin: https://nakupanda.github.io/bootstrap3-dialog/ . See notes below for help.
+
+
+[unreleased]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.3.1...HEAD
+[0.3.1]: https://github.com/IGreatlyDislikeJavascript/bootstrap-tourist/compare/v0.3.0...v0.3.1
+[0.3.0]: https://github.com/IGreatlyDislikeJavascript/bootstrap-tourist/compare/v0.2.0...v0.3.0
+[0.2.0]: https://github.com/IGreatlyDislikeJavascript/bootstrap-tourist/compare/0.2.0...v0.2.0
+[0.0.12-beta]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.10-beta...0.2.0
+[0.0.10-beta]: https://github.com/IGreatlyDislikeJavascript/bootstrap-tourist/releases/tag/v0.10-beta
diff --git a/README.md b/README.md
index b665039..c23b731 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# Bootstrap Tourist
+# Bootstrap Tourist [![NPM Version](http://img.shields.io/npm/v/bootstrap-tourist.svg?style=flat)](https://www.npmjs.org/)
Quick and easy way to build your product tours with Bootstrap Popovers for Bootstrap 3 and 4.
@@ -9,139 +9,697 @@ The original Bootstrap Tour was written in coffeescript, and had a number of ope
Tourist works with Bootstrap 3.4 and 4.3 (specify "framework" option), however the "standalone" non-Bootstrap version is not available
-## Minimum Bootstrap / jquery requirements
+## Minimum Bootstrap / jQuery requirements
There are some bugs in earlier BS3 and BS4, and jquery versions, that cause problems with Tourist. Please use minimum Bootstrap 3.4.x or 4.3.x, jquery 3.3.1 to avoid. Earlier versions may work, but try for yourself.
-
-## Changelog from previous version:
-
-Changes in v0.3.0
-- MAJOR REVISION: new method of backdrop and highlight added, with major effort and code from @ibastevan.
-
-Full changelog can be found in the top of bootstrap-tourist.js
-
-v0.3.0 represents a significant change to Bootstrap Tourist.
-
-Tourist is still completely drop-in replacement compatible with original Tour,
-however @ibastevan and @IGreatlyDislikeJavascript have made significant changes
-to how the backdrop works. You can read the conversation here:
-https://github.com/IGreatlyDislikeJavascript/bootstrap-tourist/pull/24
-
-In short, previous versions of Tourist (and original Tour) used 4 divs to bracket
-the tour step elements.
-
-From v0.3.0, Tourist now uses overlays to produce the same effect. This solves
-many problems and enables many new features, including customizable transitions
-between tour steps.
-
-There may be residual bugs from this change so please report them in
-the repo!
-
## Getting started with Bootstrap Tourist
-Simply include bootstrap-tourist.js and bootstrap-tourist.css into your page. A minified version is not provided because the entire purpose of this repo is to enable fixes, features and native port to ES6. If you are uncomfortable with this, please use the original Bootstrap Tour!
-
-```html
-
-....
-
-```
-
-Next, set up and start your tour with some steps:
-```javascript
-var tour = new Tour({
- framework: "bootstrap3", // or "bootstrap4" depending on your version of bootstrap
- steps:
- [
- {
- element: "#my-element",
- title: "Title of my step",
- content: "Content of my step"
- },
- {
- element: "#my-other-element",
- title: "Title of my step",
- content: "Content of my step"
- }
- ]
- });
-
-// Start the tour - note, no call to .init() required
-tour.start();
-```
+If you are new to Bootstrap Tourist, and don't have Bootstrap Tour working, it's as simple as doing the following:
+1. Simply include bootstrap-tourist.js and bootstrap-tourist.css into your page:
+ ```html
+
+
+ ...
+
+
+ ```
+1. Next, set up and start your tour with some steps:
+ ```js
+ var tour = new Tour({
+ framework: 'bootstrap3', // or "bootstrap4" depending on your version of bootstrap
+ steps: [
+ {
+ element: '#my-element',
+ title: 'Title of my step',
+ content: 'Content of my step'
+ },
+ {
+ element: '#my-other-element',
+ title: 'Title of my step',
+ content: 'Content of my step'
+ }
+ ]
+ });
+
+ // Start the tour - note, no call to .init() is required
+ tour.start();
+ ```
+
+**NOTE**: A minified version is not provided because the entire purpose of this repo is to enable fixes, features and native port to ES6. If you are uncomfortable with this, please use the original Bootstrap Tour!
## Switching from Tour to Tourist
If you already have a working tour using Bootstrap Tour, and you want to move to Tourist (because it has some fixes etc), perform the following steps:
-
1. Copy over the Tourist CSS and JS, include them instead of Bootstrap Tour
-2. If you are using Bootstrap 4, add the following option to your initialization code:
-
-```framework: "bootstrap4"```
-
-For example:
-
-```
-var tour = new Tour({
- name: "tourist",
- steps:[...steps go here...],
- debug: true, // you may wish to turn on debug for the first run through
- framework: "bootstrap4", // set Tourist to use BS4 compatibility
- });
-```
-
-3. Remove the call to tour.init() - this is not required
-
-4. Add a call to tour.start() to start the tour, and optionally add a call to tour.restart() to force restart the tour
-
+ - If you are using Bootstrap 4, add the `framework: 'bootstrap4'` option to your initialization code.
+ - Example:
+ ```js
+ const tour = new Tour({
+ name: 'tourist',
+ steps: [...steps go here...],
+ debug: true, // you may wish to turn on debug for the first run through
+ framework: 'bootstrap4', // set Tourist to use BS4 compatibility
+ });
+ ```
+1. Remove the call to `tour.init()` - this is not required
+1. Add a call to `tour.start()` to start the tour, and optionally add a call to `tour.restart()` to force restart the tour
## Basic Demo and Documentation
-Tourist now has documentation included in the repo /docs/ folder. Take a look!
-
-# Documentation note
-In bootstrap-tourist.js, you will find comprehensive documentation and examples at the very top of the file.
-
-## Added features & fixes: Summary
-The entire purpose of Tourist is to add features and fixes, and migrate to native ES6. Here is a list of all additional features and fixes in Tourist (compared to original Tour). All original Tour options are still available, unless superseded by the documentation below:
-
- 1. onNext/onPrevious - prevent auto-move to next step, allow .goTo
- 2. *** Do not call Tour.init *** - fixed tours with hidden elements on page reload
- 3. Dynamically determine step element by function
- 4. Only continue tour when reflex element is clicked using reflexOnly
- 5. Call onElementUnavailable if step element is missing
- 6. Scroll flicker/continual step reload fixed
- 7. Magic progress bar and progress text, plus options to customize per step
- 8. Prevent user interaction with element using preventInteraction
- 9. Wait for arbitrary DOM element to be visible before showing tour step/crapping out due to missing element, using delayOnElement
- 10. Handle bootstrap modal dialogs better - autodetect modals or children of modals, and call onModalHidden to handle when user dismisses modal without following tour steps
- 11. Automagically fixes drawing issues with Bootstrap Selectpicker (https://github.com/snapappointments/bootstrap-select/)
- 12. Call onPreviouslyEnded if tour.start() is called for a tour that has previously ended (see docs)
- 13. Switch between Bootstrap 3 or 4 (popover template) automatically using tour options
- 14. Added sanitizeWhitelist and sanitizeFunction global options, fixed Bootstrap 3.4.1 breaking change
- 15. Added support for changing button texts
-
-from v0.3.0:
-
- 16. Added showIfUnintendedOrphan to show a tour step as an orphan if its element doesn't exist, overriding onElementUnavailable
- 17. Overlay divs and customizable transitions between tour steps
-
+Tourist now has documentation included in the repo under the `/docs/` folder. Take a look!
+1. Control flow from `onNext()` / `onPrevious()` options:
+ - Returning false from onNext/onPrevious handler will prevent Tour from automatically moving to the next/previous step.
+ - Tour flow methods (Tour.goTo etc) now also work correctly in onNext/onPrevious.
+ - Option is available per step or globally:
+ ```js
+ var tourSteps = [
+ {
+ element: "#inputBanana",
+ title: "Bananas!",
+ content: "Bananas are yellow, except when they're not",
+ onNext: function (tour) {
+ if ($("#inputBanana").val() !== "banana") {
+
+ // no banana? highlight the banana field
+ $("#inputBanana").css("background-color", "red");
+
+ // do not jump to the next tour step!
+ return false;
+ }
+ }
+ }
+ ];
+
+ var tour = new Tour({
+ steps: tourSteps,
+ framework: "bootstrap3", // or "bootstrap4" depending on your version of bootstrap
+ buttonTexts: { // customize or localize button texts
+ nextButton: "go on",
+ endTourButton: "ok it's over",
+ },
+ onNext: function(tour) {
+ if (someVar = true) {
+ // force the tour to jump to slide 3
+ tour.goTo(3);
+ // Prevent default move to next step - important!
+ return false;
+ }
+ }
+ });
+ ```
+1. Do not call `tour.init()`:
+ - When setting up Tour, do not call `tour.init()`. Call `tour.start()` to start/resume the Tour from previous step. Call `tour.restart()` to always start Tour from the first step
+ `tour.init()` was a redundant method that caused conflict with hidden Tour elements.
+ - As of Tourist v0.11, calling `tour.init()` will generate a warning in the console (thanks to [@pau1phi11ips](https://github.com/pau1phi11ips)).
+1. Dynamically determine element by function:
+ - Step "element:" option allows element to be determined programmatically. Return a jquery object. The following is possible:
+ ```js
+ var tourSteps = [
+ {
+ element: function () {
+ return $(document).find(".something");
+ },
+ title: "Dynamic",
+ content: "Element found by function"
+ },
+ {
+ element: "#static",
+ title: "Static",
+ content: "Element found by static ID"
+ }
+ ];
+ ```
+1. Only continue tour when reflex element is clicked:
+ - Use step option reflexOnly in conjunction with step option reflex to automagically hide the "next" button in the tour, and only continue when the user clicks the element:
+ ```js
+ var tourSteps = [
+ {
+ element: "#myButton",
+ reflex: true,
+ reflexOnly: true,
+ title: "Click it",
+ content: "Click to continue, or you're stuck"
+ }
+ ];
+ ```
+1. Call function when element is missing:
+ - If the element specified in the step (static or dynamically determined as per feature #3), `onElementUnavailable` is called.
+ - Function signature: `function(tour, stepNumber) {}`
+ - Option is available at global and per step levels:
+ - Use it per step to have a step-specific error handler:
+ ```js
+ function tourStepBroken(tour, stepNumber) {
+ alert("Uhoh, the tour broke on the #btnMagic element");
+ }
+
+ var tourSteps = [
+ {
+ element: "#btnMagic",
+ onElementUnavailable: tourStepBroken,
+ title: "Hold my beer",
+ content: "now watch this"
+ }
+ ];
+ ```
+ - Use it globally, and optionally override per step, to have a robust and comprehensive error handler:
+ ```js
+ function tourBroken(tour, stepNumber) {
+ alert('The default error handler: tour element is done broke on step number ' + stepNumber);
+ }
+
+ var tourSteps = [
+ {
+ element: "#btnThis",
+ // onElementUnavailable: COMMENTED OUT, therefore default global handler used
+ title: "Some button",
+ content: "Some content"
+ },
+ {
+ element: "#btnThat",
+ onElementUnavailable: function (tour, stepNumber) {
+ // override the default global handler for this step only
+ alert("The tour broke on #btnThat step");
+ },
+ title: "Another button",
+ content: "More content"
+ }
+ ];
+
+ var tour = new Tour({
+ steps: tourSteps,
+ framework: "bootstrap3", // or "bootstrap4" depending on your version of bootstrap
+ onElementUnavailable: tourBroken, // default "element unavailable" handler for all tour steps
+ });
+ ```
+1. Scroll flicker / continue reload fixed:
+ - Original Tour constantly reloaded the current tour step on scroll & similar events. This produced flickering, constant reloads and therefore constant calls to all the step function calls. This is now fixed. Scrolling the browser window does not cause the tour step to reload.
+ - **IMPORTANT**: orphan steps are stuck to the center of the screen. However steps linked to elements ALWAYS stay stuck to their element, even if user scrolls the element & tour popover off the screen. This is my personal preference, as original functionality of tour step moving with the scroll even when the element was off the viewport seemed strange.
+1. Customizable progress bar & text
+ 1. Progress bar & progress text:
+ - With thanks to [@macroscian](](https://github.com/macroscian), [@thenewbeat](](https://github.com/thenewbeat) for fixes to this code, incorporated in Tourist v0.12
+ - Use the following options globally or per step to show tour progress:
+ - `showProgressBar`: shows a bootstrap progress bar for tour progress at the top of the tour content
+ - `showProgressText`: shows a textual progress (N/X, i.e.: 1/24 for slide 1 of 24) in the tour title
+ - example:
+ ```js
+ var tourSteps = [
+ {
+ element: "#inputBanana",
+ title: "Bananas!",
+ content: "Bananas are yellow, except when they're not",
+ },
+ {
+ element: "#inputOranges",
+ title: "Oranges!",
+ content: "Oranges are not bananas",
+ showProgressBar: false, // don't show the progress bar on this step only
+ showProgressText: false, // don't show the progress text on this step only
+ }
+ ];
+
+ var tour = new Tour({
+ framework: "bootstrap3", // or "bootstrap4" depending on your version of bootstrap
+ steps: tourSteps,
+ showProgressBar: true, // default show progress bar
+ showProgressText: true, // default show progress text
+ });
+ ```
+ 1. Customize the progressbar/progress text:
+ - In conjunction with 7a, provide the following functions globally or per step to draw your own progressbar/progress text:
+ - `getProgressBarHTML(percent)`
+ - `getProgressTextHTML(stepNumber, percent, stepCount)`
+ - These will be called when each step is shown, with the appropriate percentage/step number etc passed to your function. Return an HTML string of a "drawn" progress bar/progress text which will be directly inserted into the tour step.
+ - example:
+ ```js
+ var tourSteps = [
+ {
+ element: "#inputBanana",
+ title: "Bananas!",
+ content: "Bananas are yellow, except when they're not",
+ },
+ {
+ element: "#inputOranges",
+ title: "Oranges!",
+ content: "Oranges are not bananas",
+ getProgressBarHTML: function(percent) {
+ // override the global progress bar function for this step
+ return '
You\'re ' + percent + ' of the way through!
';
+ }
+ }
+ ];
+
+ var tour = new Tour({
+ steps: tourSteps,
+ showProgressBar: true, // default show progress bar
+ showProgressText: true, // default show progress text
+ getProgressBarHTML: function(percent) {
+ // default progress bar for all steps. Return valid HTML to draw the progress bar you want
+ return '';
+ },
+ getProgressTextHTML: function(stepNumber, percent, stepCount) {
+ // default progress text for all steps
+ return 'Slide ' + stepNumber + "/" + stepCount;
+ }
+ });
+ ```
+1. Prevent interaction with element
+ - Sometimes you want to highlight a DOM element (button, input field) for a tour step, but don't want the user to be able to interact with it. Use preventInteraction to stop the user touching the element:
+ ```js
+ var tourSteps = [
+ {
+ element: "#btnMCHammer",
+ preventInteraction: true,
+ title: "Hammer Time",
+ content: "You can't touch this"
+ }
+ ];
+ ```
+1. Wait for an element to appear before continuing tour:
+ - Sometimes a tour step element might not be immediately ready because of transition effects etc. This is a specific issue with bootstrap select, which is relatively slow to show the selectpicker dropdown after clicking. Use delayOnElement to instruct Tour to wait for **ANY** element to appear before showing the step (or crapping out due to missing element). Yes this means the tour step element can be one DOM element, but the delay will wait for a completely separate DOM element to appear. This is really useful for hidden divs etc.
+ - Use in conjunction with onElementUnavailable for robust tour step handling.
+ - `delayOnElement` is an object with the following:
+ ```js
+ delayOnElement: {
+ delayElement: "#waitForMe", // the element to wait to become visible, or the string literal "element" to use the step element, or a function
+ maxDelay: 2000 // optional milliseconds to wait/timeout for the element, before crapping out. If maxDelay is not specified, this is 2000ms by default,
+ }
+ ```
+ - example:
+ ```js
+ var tourSteps = [
+ {
+ element: "#btnPrettyTransition",
+ delayOnElement: {
+ delayElement: "element" // use string literal "element" to wait for this step's element, i.e.: #btnPrettyTransition
+ },
+ title: "Ages",
+ content: "This button takes ages to appear"
+ },
+ {
+ element: "#btnPrettyTransition",
+ delayOnElement: {
+ delayElement: function() {
+ return $("#btnPrettyTransition"); // return a jquery object to wait for, in this case #btnPrettyTransition
+ }
+ },
+ title: "Function",
+ content: "This button takes ages to appear, we're waiting for an element returned by function"
+ },
+ {
+ element: "#inputUnrelated",
+ delayOnElement: {
+ delayElement: "#divStuff" // wait until DOM element "divStuff" is visible before showing this tour step against DOM element "inputUnrelated"
+ },
+ title: "Waiting",
+ content: "This input is nice, but you only see this step when the other div appears"
+ },
+ {
+ element: "#btnDontForgetThis",
+ delayOnElement: {
+ delayElement: "element", // use string literal "element" to wait for this step's element, i.e.: #btnDontForgetThis
+ maxDelay: 5000 // wait 5 seconds for it to appear before timing out
+ },
+ title: "Cool",
+ content: "Remember the onElementUnavailable option!",
+ onElementUnavailable: function(tour, stepNumber) {
+ // This will be called if btnDontForgetThis is not visible after 5 seconds
+ console.log("Well that went badly wrong");
+ }
+ },
+ ];
+ ```
+1. Trigger when modal closes:
+ - If tour element is a modal, or is a DOM element inside a modal, the element can disappear "at random" if the user dismisses the dialog.
+ - In this case, onModalHidden global and per step function is called. Only functional when step is not an orphan.
+ - This is useful if a tour includes a step that launches a modal, and the tour requires the user to take some actions inside the modal before OK'ing it and moving to the next tour step:
+ - Return (int) step number to immediately move to that step
+ - Return exactly false to not change tour state in any way - this is useful if you need to reshow the modal because some validation failed
+ - Return anything else to move to the next step
+ - element === Bootstrap modal, or element parent === bootstrap modal is automatically detected.
+ - example:
+ ```js
+ var tour = new Tour({
+ steps: tourSteps,
+ framework: "bootstrap3", // or "bootstrap4" depending on your version of bootstrap
+ onModalHidden: function(tour, stepNumber) {
+ console.log("Well damn, this step's element was a modal, or inside a modal, and the modal just done got dismissed y'all. Moving to step 3.");
+
+ // move to step number 3
+ return 3;
+ },
+ });
+
+ var tour = new Tour({
+ steps: tourSteps,
+ onModalHidden: function(tour, stepNumber) {
+ if (validateSomeModalContent() == false) {
+ // The validation failed, user dismissed modal without properly taking actions.
+ // Show the modal again
+ showModalAgain();
+
+ // Instruct tour to stay on same step
+ return false;
+ } else {
+ // Content was valid. Return null or do nothing to instruct tour to continue to next step
+ }
+ },
+ });
+ ```
+1. Handle Dialogs and BootstrapDialog plugin better https://nakupanda.github.io/bootstrap3-dialog/
+ - Plugin makes creating dialogs very easy, but it does some extra stuff to the dialogs and dynamically creates/destroys them. This causes issues with plugins that want to include a modal dialog in the steps using this plugin.
+ - To use Tour to highlight an element in a dialog, just use the element ID as you would for any normal step. The dialog will be automatically detected and handled.
+ - To use Tour to highlight an entire dialog, set the step element to the dialog div. Tour will automatically realize this is a dialog, and shift the element to use the modal-content div inside the dialog. This makes life friendly, because you can do this:
+ ```html
+
+ ```
+ - Then use element myModal in the Tour.
+ - **FOR BOOTSTRAPDIALOG PLUGIN**:
+ - This plugin creates random UUIDs for the dialog DOM ID. You need to fix the ID to something you know. Do this:
+ ```js
+ dlg = new BootstrapDialog.confirm({
+ ...all the options...
+ });
+
+ // BootstrapDialog gives a random GUID ID for dialog. Give it a proper one
+ $objModal = dlg.getModal();
+ $objModal.attr("id", "myModal");
+ dlg.setId("myModal");
+ ```
+ - Now you can use element myModal in the tour, even when the dialog is created by BootstrapDialog plugin.
+1. Fix conflict with Bootstrap Selectpicker: https://github.com/snapappointments/bootstrap-select/
+ - Selectpicker draws a custom select. Tour now automagically finds and adjusts the selectpicker dropdown so that it appears correctly within the tour
+1. Call `onPreviouslyEnded` if `tour.start()` is called for a tour that has previously ended:
+ - See the following github issue: https://github.com/sorich87/bootstrap-tour/issues/720
+ - Original behavior for a tour that had previously ended was to call onStart() callback, and then abort without calling onEnd(). This has been altered so that calling start() on a tour that has previously ended (cookie step set to end etc) will now ONLY call onPreviouslyEnded().
+ - This restores the functionality that allows app JS to simply call tour.start() on page load, and the Tour will now only call onStart() / onEnd() when
+ the tour really is started or ended.
+ - example:
+ ```js
+ var tour = new Tour({
+ steps: [ ... ],
+ framework: "bootstrap3", // or "bootstrap4" depending on your version of bootstrap
+ onPreviouslyEnded: function(tour) {
+ console.log("Looks like this tour has already ended");
+ },
+ });
+
+ tour.start();
+ ```
+1. Switch between Bootstrap 3 or 4 (popover methods, template) automatically using tour options, or use a custom template:
+ - With thanks to this thread: https://github.com/sorich87/bootstrap-tour/pull/643
+ - Tour is compatible with bootstrap 3 and 4 if the right template and framework is used for the popover. Bootstrap3 framework compatibility is used by default.
+ - To select the correct template and framework, use the "framework" global option. Note this option does more than just select a template, it also changes which methods are used to manage the Tour popovers to be BS3 or BS4 compatible.
+ ```js
+ var tour = new Tour({
+ steps: tourSteps,
+ template: null, // template option is null by default. Tourist will use the appropriate template for the framework version, in this case BS3 as per next option
+ framework: "bootstrap3", // can be string literal "bootstrap3" or "bootstrap4"
+ });
+ ```
+ - To use a custom template, use the "template" global option:
+ ```js
+ var tour = new Tour({
+ steps: tourSteps,
+ framework: "bootstrap4", // can be string literal "bootstrap3" or "bootstrap4"
+ template: '....blah....
'
+ });
+ ```
+ - Review the following logic:
+ - If template == null, default framework template is used based on whether framework is set to "bootstrap3" or "bootstrap4"
+ - If template != null, the specified template is always used
+ - If framework option is not literal "bootstrap3" or "bootstrap4", error will occur
+ - To add additional templates, search the code for "PLACEHOLDER: TEMPLATES LOCATION". This will take you to an array that contains the templates, simply edit or add as required.
+1. Options to manipulate the Bootstrap sanitizer, and fix the sanitizer related breaking change in BS 3.4.x:
+ - BS 3.4.1 added a sanitizer to popover and tooltips - this breaking change strips non-whitelisted DOM elements from popover content, title etc.
+ - See: https://getbootstrap.com/docs/3.4/javascript/#js-sanitizer and https://blog.getbootstrap.com/2019/02/13/bootstrap-4-3-1-and-3-4-1/
+ - This Bootstrap change resulted in Tour navigation buttons being killed from the DOM: https://github.com/sorich87/bootstrap-tour/issues/723#issuecomment-471107788
+ - This has been fixed in code, Tour navigation buttons now appear and work by default.
+ - To prevent future similar reoccurrences, and also allow the manipulation of the sanitizer "allowed list" for Tours that want to add extra content into tour steps, two features added to global options. To understand the purpose and operation of these features, review the following information on the Bootstrap sanitizer: https://getbootstrap.com/docs/3.4/javascript/#js-sanitizer
+ - _**IMPORTANT NOTE** SECURITY RISK_: if you do not understand the purpose of the sanitizer, why it exists in bootstrap or how it relates to Tour, do not use these options.
+ - Global options:
+ - `sanitizeWhitelist`: specify an object that will be merged with the Bootstrap Popover default whitelist. Use the same structure as the default Bootstrap whitelist.
+ - `sanitizeFunction`: specify a function that will be used to sanitize Tour content, with the following signature: string function(content). Specifying a function for this option will cause sanitizeWhitelist to be ignored. Specifying anything other than a function for this option will be ignored, and sanitizeWhitelist will be used
+ - Examples:
+ - Allow tour step content to include a button with attributes `data-someplugin1="..."` and `data-somethingelse="..."`. Allow content to include a selectpicker.
+ ```js
+ var tour=new Tour({
+ steps: tourSteps,
+ sanitizeWhitelist: {
+ "button" : ["data-someplugin1", "data-somethingelse"], // allows
+ "select" : [] // allows
+ }
+ });
+ ```
+ - Use a custom whitelist function for sanitizing tour steps:
+ ```js
+ var tour = new Tour({
+ steps: tourSteps,
+ sanitizeFunction: function(stepContent) {
+ // Bypass Bootstrap sanitizer using custom function to clean the tour step content.
+ // stepContent will contain the content of the step, i.e.: tourSteps[n].content. You must
+ // clean this content to prevent XSS and other vulnerabilities. Use your own code or a lib like DOMPurify
+ return DOMPurify.sanitize(stepContent);
+ }
+ });
+ ```
+ - Note: if you have complete control over the tour content (i.e.: no risk of XSS or similar attacks), you can use sanitizeFunction to bypass all sanitization and use your step content exactly as is by simply returning the content:
+ ```js
+ var tour = new Tour({
+ steps: tourSteps,
+ sanitizeFunction: function(stepContent) {
+ // POTENTIAL SECURITY RISK
+ // bypass Bootstrap sanitizer, perform no sanitization, tour step content will be exactly as templated in tourSteps.
+ return stepContent;
+ }
+ });
+ ```
+1. Change text for the buttons in the popup (also, preparation for future localization options):
+ - With thanks to [@vneri](https://github.com/vneri) (https://github.com/IGreatlyDislikeJavascript/bootstrap-tourist/pull/8) for the original change
+ - With thanks to [@DancingDad](https://github.com/DancingDad), [@thenewbeat](https://github.com/thenewbeat), [@bardware](https://github.com/bardware) for the fixes/updates
+ - You can now change the text displayed for the buttons used in the tour step popups. For this, there is a new object you can pass to the options, called "localization". This option only applies to the default templates. If you specify your own custom template, the localization.buttonTexts option has no effect on the basis that you will make any changes to your own template directly.
+ ```js
+ var tour = new Tour({
+ framework: "bootstrap3", // or "bootstrap4" depending on your version of bootstrap
+ steps: [ ..... ],
+ localization: {
+ buttonTexts: {
+ prevButton: 'Back',
+ nextButton: 'Go',
+ pauseButton: 'Wait',
+ resumeButton: 'Continue',
+ endTourButton: 'Ok, enough'
+ }
+ }
+ });
+ ```
+ - You may specify only the labels you want to change. Unspecified labels will remain at their defaults:
+ ```js
+ var tour = new Tour({
+ localization: {
+ buttonTexts: {
+ endTourButton: 'Adios muchachos'
+ }
+ }
+ });
+ ```
+1. Added `showIfUnintendedOrphan`:
+ - With thanks to [@diesl](https://github.com/diesl)
+ - To show a tour step as an orphan if its element doesn't exist, overriding `onElementUnavailable`
+ - If a tour step specifies an element, and the element doesn't exist, `showIfUnintendedOrphan` will show the tour step as an orphan. This ensures your tour step will always be shown.
+ - `delayOnElement` takes priority over `showIfUnintendedOrphan`, i.e. if you specify both delayOnElement and showIfUnintendedOrphan, the delay will timeout before the step will be shown as an orphan.
+ - This option is available globally and per step.
+ ```js
+ var tourSteps = [
+ {
+ element: "#btnSomething",
+ showIfUnintendedOrphan: true,
+ title: "Always",
+ content: "This tour step will always appear, either against element btnSomething if it exists, or as an orphan if it doesn't"
+ },
+ {
+ element: "#btnSomethingElse",
+ showIfUnintendedOrphan: true,
+ delayOnElement: {
+ delayElement: "element" // use string literal "element" to wait for this step's element, i.e.: #btnSomethingElse
+ },
+ title: "Always after a delay",
+ content: "This tour step will always appear. If element btnSomethingElse doesn't exist, delayOnElement will wait until it exists. If delayOnElement times out, step will show as an orphan"
+ },
+ {
+ element: "#btnDoesntExist",
+ showIfUnintendedOrphan: true,
+ title: "Always",
+ content: "This tour step will always appear",
+ onElementUnavailable: function() {
+ console.log("this will never get called as showIfUnintendedOrphan will show step as an orphan");
+ }
+ },
+ ];
+ ````
+1. Overlay divs and customizable transitions between tour steps:
+ - With huge thanks to [@ibastevan](https://github.com/ibastevan), who provided a lot of the code and input to getting this working. Read more here: https://github.com/IGreatlyDislikeJavascript/bootstrap-tourist/pull/24
+ - Tourist now uses overlays to highlight tour step elements. A single backdrop div provides the dark/black background, and a highlight div is used to highlight the element of a tour step. Each tour step element is then adjusted by zindex to pop to the top.
+ - This option could be considered not exactly simple to understand initially, so please play around with it.
+ - A new set of options called backdropOptions has been added globally, and can be overridden per step.
+ - `backdropOptions` is an object structured as follows (these are the default options, used if you do not set this option in your tour):
+ ```js
+ backdropOptions: {
+ highlightOpacity: 0.8,
+ highlightColor: '#FFF',
+ animation: {
+ // can be string of css class or function signature: function(domElement, step) {}
+ backdropShow: function(domElement) {
+ domElement.fadeIn();
+ },
+ backdropHide: function(domElement) {
+ domElement.fadeOut("slow")
+ },
+ highlightShow: function(domElement, step) {
+ step.fnPositionHighlight();
+ domElement.fadeIn();
+ },
+ highlightTransition: "tour-highlight-animation",
+ highlightHide: function(domElement) {
+ domElement.fadeOut("slow");
+ }
+ },
+ }
+ ```
+ - `backdropOptions.highlightOpacity`: the alpha value of the div used to highlight the step element. You can control how visible/occluded the element is.
+ - `backdropOptions.highlightColor`: the hex color code for the highlight. Normally you will want to use a white highlight (#FFF). However if your step element has a dark or black background, you may want to use a black highlight (#000). Experiment with the best colors for your UX.
+ - `backdropOptions.animation`: The options can be either string literals specifying a CSS class, or a function. The application of these features work in exactly the same way for all backdropOptions.animation options. These options apply as per the following:
+ - `backdropShow`: when a previously hidden backdrop is shown
+ - `backdropHide`: when a previously visible backdrop is hidden
+ - `highlightShow`: when step N did not have an element, and step N+1 does have an element
+ - `highlightHide`: when step N has an element, and step N+1 does not have an element
+ - `highlightTransition`: when both step N and step N+1 have an element, and the highlight is visibly moved from one to the other
+ - The highlight is the div that creates the "visibility" effect over a tour step element. This option is how a nice slide/move/transition effect between steps is possible. They also now allow handling of rotated elements etc.
+ - If a CSS class name (as a string literal) is provided:
+ - If you provide a CSS class, this class will be applied to the specified element at the specified time and removed afterwards. You can use this class to add transition effects. For example, assume you create a class in your CSS that animates an effect as follows:
+ ```css
+ .my-custom-animation {
+ -webkit-transition: all .5s ease-out;
+ -moz-transition: all .5s ease-out;
+ -ms-transition: all .5s ease-out;
+ -o-transition: all .5s ease-out;
+ transition: all .5s ease-out;
+ }
+ ```
+ - You can then use this effect every time the background overlay div is shown by specifying it as follows:
+ ```js
+ var tour = new Tour({
+ steps: [ ..... ],
+ backdropOptions: {
+ animation: {
+ backdropShow: "my-custom-animation"
+ },
+ }
+ });
+ ```
+ - Now, when moving between step N where step option backdrop == false, and step N + 1 where step option backdrop == true, your class will be used to implement the transition. The class will be added before the backdrop is shown, and removed when the transition is complete. In other words, specifying a CSS class for backdropShow is functionally equivalent to the following code executed when the tour moves between steps:
+ ```js
+ $(backdropOptions element).addClass("my-custom-animation");
+ $(backdropOptions element).show(0, function() {
+ $(this).removeClass("my-custom-animation");
+ });
+ ```
+ - Note that the class is removed after the element is visible, therefore only use this option for CSS transitions - do not use it for "persistent" CSS changes.
+ - The same approach applies to all the other options, i.e.: if a class is specified for highlightTransition, the class is applied, the highlight div is moved to its new position, and the class is removed.
+ - If a function is provided:
+ - If you provide a function, your code is 100% responsible for positioning and showing the highlight overlay element.
+ - It's more hassle - why would you want to do this? Simply, Tourist can only provide a fairly standard/default set of transitions, especially where
+ the highlightTransition option is concerned. If you want your tour to have an especially fancy or featured/custom transition, you can use this option
+ to achieve that. You can also work with rotated or transformed elements using this feature.
+ - Most of the time you will not need to use this option, and specifying a CSS class will be sufficient. But the option is here if you need it.
+ - When specifying a function, it must have the following signature:
+ ```js
+ function(domElement, step) {
+ }
+ ```
+ - The domElement parameter provides a jquery object for the element you must manipulate. For example, if you have specified a function for `backdropOptions.animation.highlightShow`, then domElement will be the highlighting div. You must then correctly position and show this div over the step element.
+ - The step parameter provides an object with information about the step, to help you decide how to execute the transition. It has the following props, most of which are taken from your tour step. They are re-provided to you for ease, in case you want to create some clever central animation feature etc:
+ ```js
+ step = {
+ element: // the actual step element, even if the tour uses a function for this step.element option
+ container: // the container option (string) as specified in the step or globally, to help you decide how to set up the transition
+ backdrop: // as per step option (bool),
+ preventInteraction: // as per step option (bool),
+ isOrphan: // whether is step is actually an orphan, because the element was wrong and showIfUnintendedOrphan == true or for some other reason (bool),
+ orphan: // as per step option (bool),
+ showIfUnintendedOrphan: // as per step option (bool),
+ duration: // as per step option (bool),
+ delay: // as per step option (bool),
+ fnPositionHighlight: // a helper function to position the highlight element
+ };
+ ```
+ - The `fnPositionHighlight` option is provided to make it easy for you to automatically position the highlight div on top of the tour step element. The function simply performs the following:
+ ```js
+ function fnPositionHighlight() {
+ $(DOMID_HIGHLIGHT).width(_stepElement.outerWidth())
+ .height(_stepElement.outerHeight())
+ .offset(_stepElement.offset());
+ }
+ ```
+ - This allows you to do the following in your customized transition code:
+ ```js
+ function(domElement, step) {
+ // do whatever setup for your custom transition
+ step.fnPositionHighlight();
+ }
+ ```
+ - It simply saves some typing.
+ - An example of implementing `backdropOptions`:
+ - Per step option:
+ ```js
+ var tourSteps = [
+ {
+ element: "#btnSomething",
+ title: "Default",
+ content: "This tour step will use the default Tour.backdropOptions settings"
+ },
+ {
+ orphan: true,
+ title: "Default",
+ content: "This tour step will use the per step transitions as specified"
+ backdropOptions: {
+ // specify some options and use the defaults for the rest
+ highlightColor: #000, // this step element has a black background, so this RGB looks better
+ animation: {
+ // use a function to manually hide the highlight - of course this will only apply
+ // because this step is an orphan == true, and therefore there is no highlight to hide
+ highlightHide: function(domElement, step) {
+ domElement.fadeOut("slow")
+ }
+ },
+ }
+ },
+ ````
+ - Global options:
+ ```js
+ var tour = new Tour({
+ steps: [ ..... ],
+ backdropOptions: {
+ // default for all Tour steps
+ }
+ });
+ ```
## Policy on NPM, semantic versioning, releases, code structure etc
I'm a self-taught C++/x86 asm coder from the 80's and 90's. I'm not a web developer, I only have basic html, js, jquery knowledge that I pretty much taught myself over a couple of weeks or so. This isn't my full time job, or even my part time job. I inherited the need to fix some stuff in Bootstrap Tour, and I simply published my fixes on github. I never intended to take on maintenance of a product, or become responsible for it in any way. I even said this in the Tour repo when I published my first fixes.
All of that info is to set your expectations. Tourist works, and it's been thoroughly tested, but I keep getting tripped up by the niceties of modern coding. Tourist is offered as a non-minified, simple download-and-drop-in tool for you to use if you want to. I will do my best to follow coding standards, publish to npm when I remember, keep to a coding style, follow semantic versioning and all that stuff that makes it easy for you to use this plugin. However please fully expect that:
-
1. I will probably fail, so you'll need to tell me what I've done wrong and most importantly how to fix it
-2. The github repo will always have the latest in-progress version
-3. The github release will always be the latest stable version
-4. Anything else is a bonus.
+1. The github repo will always have the latest in-progress version
+1. The github release will always be the latest stable version
+1. Anything else is a bonus.
As a side note, Bootstrap Tour was made in coffeescript (which I'd never heard of). So when I started working on Tourist, it was using a codebase without comments, odd transpilation structures and approaches, and much more. So if you're looking at the source and scratching your head as to why something is done in a certain way - yes, welcome to my world :-)
-
## Contributing
Feel free to contribute with pull requests, bug reports or enhancement suggestions.
-
## License
-
-Code licensed under the [MIT license](https://opensource.org/licenses/MIT).
-Documentation licensed under [CC BY 3.0](http://creativecommons.org/licenses/by/3.0/).
+Code licensed under the [MIT license](https://opensource.org/licenses/MIT). Documentation licensed under [CC BY 3.0](http://creativecommons.org/licenses/by/3.0/).
diff --git a/bootstrap-tourist.js b/bootstrap-tourist.js
index 30d295f..7f48751 100755
--- a/bootstrap-tourist.js
+++ b/bootstrap-tourist.js
@@ -42,872 +42,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
* ========================================================================
- *
- * Updated for CS by FFS 2019
- *
- * Changes in v0.3.0
- * - MAJOR REVISION: new method of backdrop and highlight added, with major effort and code from @ibastevan.
- * - Also added many other features
- *
- * Please read the documentation below, titled "v0.3.0 CHANGE NOTE"
- *
- * Changes in v0.2.1
- * - delayOnElement option now waits for elements not yet created in the DOM (thanks to @lukaszmn)
- * - published as release
- *
- * Changes in v0.2.0
- * - Version update as major fix to bug preventing element: function(){...} feature under BS4/popper.js
- * - published as release
- *
- * Changes IN v0.12 FROM v0.11:
- * - note version labelling change in this changelog!
- * - fixes to the button text change code and better prep for localization (thanks to @DancingDad, @thenewbeat, @bardware)
- * - fixed css for BS4 progress text to correctly use float-right (thanks to @macroscian, @thenewbeat)
- *
- * Changes from v0.10:
- * - added support for changing button texts (thanks to @vneri)
- * - added dummy init() to support drop-in replacement for Tour (thanks to @pau1phi11ips)
- *
- * Changes from 0.9:
- * - smartPlacement option removed, deprecated
- * - default params compatibility for IE
- * - auto progress bar was killed in changes 0.7 -> 0.8 due to Bootstrap sanitizer, this is readded
- * - major change to manipulation of BS4 popper.js for orphan steps
- * - change to implementation of backdrop
- *
- * Changes from 0.8:
- * - The fast fix in v0.7 didn't work for Bootstrap 4. This release is to ensure fully working popovers in BS4. Issue is that the Bootstrap CDN
- * doesn't actually have the whitelist property, so developing against it is basically useless :(
- * - Improved BS4 support and template switching. Changed options for framework vs template.
- *
- * Changes from 0.7:
- * - Fast release to fix breaking change in Bootstrap 3.4.1, fixes this issue: https://github.com/sorich87/bootstrap-tour/issues/723#issuecomment-471107788
- * Issue is caused by the BS sanitizer, to avoid this reoccurring the "sanitizeWhitelist:" and "sanitizeFunction:" global options added
- *
- * Changes from 0.6:
- * - Fixed invalid call to debug in _showNextStep()
- * - Added onPreviouslyEnded() callback: https://github.com/sorich87/bootstrap-tour/issues/720
- * - Added selector to switch between bootstrap3 and bootstrap4 or custom template, thanks to: https://github.com/sorich87/bootstrap-tour/pull/643
- *
- * Changes from 0.5:
- * - Added "unfix" for bootstrap selectpicker to revert zindex after step that includes this plugin
- * - Fixed issue with Bootstrap dialogs. Handling of dialogs is now robust
- * - Fixed issue with BootstrapDialog plugin: https://nakupanda.github.io/bootstrap3-dialog/ . See notes below for help.
- * - Improved the background overlay and scroll handling, unnecessary work removed
-
-
- ---------
-
-********************** v0.3.0 CHANGE NOTE *************************
-*
-* v0.3.0 represents a significant change to Bootstrap Tourist.
-*
-* Tourist is still completely drop-in replacement compatible with original Tour,
-* however @ibastevan and @IGreatlyDislikeJavascript have made significant changes
-* to how the backdrop works. You can read the conversation here:
-* https://github.com/IGreatlyDislikeJavascript/bootstrap-tourist/pull/24
-*
-* In short, previous versions of Tourist (and original Tour) used 4 divs to bracket
-* the tour step elements.
-*
-* From v0.3.0, Tourist now uses overlays to produce the same effect. This solves
-* many problems and enables many new features, including customizable transitions
-* between tour steps.
-*
-* There may be residual bugs from this change so please report them in
-* the repo!
-*
-********************************************************************
-
-
- ---------
-
-
- This fork and code adds following features to Bootstrap Tour
-
- 1. onNext/onPrevious - prevent auto-move to next step, allow .goTo
- 2. *** Do not call Tour.init *** - fixed tours with hidden elements on page reload
- 3. Dynamically determine step element by function
- 4. Only continue tour when reflex element is clicked using reflexOnly
- 5. Call onElementUnavailable if step element is missing
- 6. Scroll flicker/continual step reload fixed
- 7. Magic progress bar and progress text, plus options to customize per step
- 8. Prevent user interaction with element using preventInteraction
- 9. Wait for arbitrary DOM element to be visible before showing tour step/crapping out due to missing element, using delayOnElement
- 10. Handle bootstrap modal dialogs better - autodetect modals or children of modals, and call onModalHidden to handle when user dismisses modal without following tour steps
- 11. Automagically fixes drawing issues with Bootstrap Selectpicker (https://github.com/snapappointments/bootstrap-select/)
- 12. Call onPreviouslyEnded if tour.start() is called for a tour that has previously ended (see docs)
- 13. Switch between Bootstrap 3 or 4 (popover methods and template) automatically using tour options
- 14. Added sanitizeWhitelist and sanitizeFunction global options
- 15. Added support for changing button texts
-
-from v0.3.0:
-
- 16. Added showIfUnintendedOrphan to show a tour step as an orphan if its element doesn't exist, overriding onElementUnavailable
- 17. Overlay divs and customizable transitions between tour steps
-
- --------------
- 1. Control flow from onNext() / onPrevious() options:
- Returning false from onNext/onPrevious handler will prevent Tour from automatically moving to the next/previous step.
- Tour flow methods (Tour.goTo etc) now also work correctly in onNext/onPrevious.
- Option is available per step or globally:
-
- var tourSteps = [
- {
- element: "#inputBanana",
- title: "Bananas!",
- content: "Bananas are yellow, except when they're not",
- onNext: function(tour){
- if($('#inputBanana').val() !== "banana")
- {
- // no banana? highlight the banana field
- $('#inputBanana').css("background-color", "red");
- // do not jump to the next tour step!
- return false;
- }
- }
- }
- ];
-
- var Tour=new Tour({
- steps: tourSteps,
- framework: "bootstrap3", // or "bootstrap4" depending on your version of bootstrap
- buttonTexts:{ // customize or localize button texts
- nextButton:"go on",
- endTourButton:"ok it's over",
- }
- onNext: function(tour)
- {
- if(someVar = true)
- {
- // force the tour to jump to slide 3
- tour.goTo(3);
- // Prevent default move to next step - important!
- return false;
- }
- }
- });
-
- --------------
- 2. Do not call Tour.init
- When setting up Tour, do not call Tour.init().
- Call Tour.start() to start/resume the Tour from previous step
- Call Tour.restart() to always start Tour from first step
-
- Tour.init() was a redundant method that caused conflict with hidden Tour elements.
-
- As of Tourist v0.11, calling Tour.init() will generate a warning in the console (thanks to @pau1phi11ips).
-
----------------
- 3. Dynamically determine element by function
- Step "element:" option allows element to be determined programmatically. Return a jquery object.
- The following is possible:
-
- var tourSteps = [
- {
- element: function() { return $(document).find("...something..."); },
- title: "Dynamic",
- content: "Element found by function"
- },
- {
- element: "#static",
- title: "Static",
- content: "Element found by static ID"
- }
- ];
-
----------------
- 4. Only continue tour when reflex element is clicked
- Use step option reflexOnly in conjunction with step option reflex to automagically hide the "next" button in the tour, and only continue when the user clicks the element:
- var tourSteps = [
- {
- element: "#myButton",
- reflex: true,
- reflexOnly: true,
- title: "Click it",
- content: "Click to continue, or you're stuck"
- }
- ];
-
-----------------
- 5. Call function when element is missing
- If the element specified in the step (static or dynamically determined as per feature #3), onElementUnavailable is called.
- Function signature: function(tour, stepNumber) {}
- Option is available at global and per step levels.
-
- Use it per step to have a step-specific error handler:
- function tourStepBroken(tour, stepNumber)
- {
- alert("Uhoh, the tour broke on the #btnMagic element);
- }
-
- var tourSteps = [
- {
- element: "#btnMagic",
- onElementUnavailable: tourStepBroken,
- title: "Hold my beer",
- content: "now watch this"
- }
- ];
-
-
- Use it globally, and optionally override per step, to have a robust and comprehensive error handler:
- function tourBroken(tour, stepNumber)
- {
- alert("The default error handler: tour element is done broke on step number " + stepNumber);
- }
-
- var tourSteps = [
- {
- element: "#btnThis",
- //onElementUnavailable: COMMENTED OUT, therefore default global handler used
- title: "Some button",
- content: "Some content"
- },
- {
- element: "#btnThat",
- onElementUnavailable: function(tour, stepNumber)
- {
- // override the default global handler for this step only
- alert("The tour broke on #btnThat step");
- },
- title: "Another button",
- content: "More content"
- }
- ];
-
- var Tour=new Tour({
- steps: tourSteps,
- framework: "bootstrap3", // or "bootstrap4" depending on your version of bootstrap
- onElementUnavailable: tourBroken, // default "element unavailable" handler for all tour steps
- });
-
----------------
- 6. Scroll flicker / continue reload fixed
- Original Tour constantly reloaded the current tour step on scroll & similar events. This produced flickering, constant reloads and therefore constant calls to all the step function calls.
- This is now fixed. Scrolling the browser window does not cause the tour step to reload.
-
- IMPORTANT: orphan steps are stuck to the center of the screen. However steps linked to elements ALWAYS stay stuck to their element, even if user scrolls the element & tour popover
- off the screen. This is my personal preference, as original functionality of tour step moving with the scroll even when the element was off the viewport seemed strange.
-
----------------
- 7. Progress bar & progress text:
- With thanks to @macroscian, @thenewbeat for fixes to this code, incorporated in Tourist v0.12
-
- Use the following options globally or per step to show tour progress:
- showProgressBar - shows a bootstrap progress bar for tour progress at the top of the tour content
- showProgressText - shows a textual progress (N/X, i.e.: 1/24 for slide 1 of 24) in the tour title
-
- var tourSteps = [
- {
- element: "#inputBanana",
- title: "Bananas!",
- content: "Bananas are yellow, except when they're not",
- },
- {
- element: "#inputOranges",
- title: "Oranges!",
- content: "Oranges are not bananas",
- showProgressBar: false, // don't show the progress bar on this step only
- showProgressText: false, // don't show the progress text on this step only
- }
- ];
- var Tour=new Tour({
- framework: "bootstrap3", // or "bootstrap4" depending on your version of bootstrap
- steps: tourSteps,
- showProgressBar: true, // default show progress bar
- showProgressText: true, // default show progress text
- });
-
- 7b. Customize the progressbar/progress text:
- In conjunction with 7a, provide the following functions globally or per step to draw your own progressbar/progress text:
-
- getProgressBarHTML(percent)
- getProgressTextHTML(stepNumber, percent, stepCount)
-
- These will be called when each step is shown, with the appropriate percentage/step number etc passed to your function. Return an HTML string of a "drawn" progress bar/progress text
- which will be directly inserted into the tour step.
-
- Example:
- var tourSteps = [
- {
- element: "#inputBanana",
- title: "Bananas!",
- content: "Bananas are yellow, except when they're not",
- },
- {
- element: "#inputOranges",
- title: "Oranges!",
- content: "Oranges are not bananas",
- getProgressBarHTML: function(percent)
- {
- // override the global progress bar function for this step
- return 'You're ' + percent + ' of the way through!
';
- }
- }
- ];
- var Tour=new Tour({
- steps: tourSteps,
- showProgressBar: true, // default show progress bar
- showProgressText: true, // default show progress text
- getProgressBarHTML: function(percent)
- {
- // default progress bar for all steps. Return valid HTML to draw the progress bar you want
- return '';
- },
- getProgressTextHTML: function(stepNumber, percent, stepCount)
- {
- // default progress text for all steps
- return 'Slide ' + stepNumber + "/" + stepCount;
- },
-
- });
-
-----------------
- 8. Prevent interaction with element
- Sometimes you want to highlight a DOM element (button, input field) for a tour step, but don't want the user to be able to interact with it.
- Use preventInteraction to stop the user touching the element:
-
- var tourSteps = [
- {
- element: "#btnMCHammer",
- preventInteraction: true,
- title: "Hammer Time",
- content: "You can't touch this"
- }
- ];
-
-----------------
- 9. Wait for an element to appear before continuing tour
- Sometimes a tour step element might not be immediately ready because of transition effects etc. This is a specific issue with bootstrap select, which is relatively slow to show the selectpicker
- dropdown after clicking.
- Use delayOnElement to instruct Tour to wait for **ANY** element to appear before showing the step (or crapping out due to missing element). Yes this means the tour step element can be one DOM
- element, but the delay will wait for a completely separate DOM element to appear. This is really useful for hidden divs etc.
- Use in conjunction with onElementUnavailable for robust tour step handling.
-
- delayOnElement is an object with the following:
- delayOnElement: {
- delayElement: "#waitForMe", // the element to wait to become visible, or the string literal "element" to use the step element, or a function
- maxDelay: 2000 // optional milliseconds to wait/timeout for the element, before crapping out. If maxDelay is not specified, this is 2000ms by default,
- }
-
- var tourSteps = [
- {
- element: "#btnPrettyTransition",
- delayOnElement: {
- delayElement: "element" // use string literal "element" to wait for this step's element, i.e.: #btnPrettyTransition
- },
- title: "Ages",
- content: "This button takes ages to appear"
- },
- {
- element: "#btnPrettyTransition",
- delayOnElement: {
- delayElement: function() { return $("#btnPrettyTransition"); } // return a jquery object to wait for, in this case #btnPrettyTransition
- },
- title: "Function",
- content: "This button takes ages to appear, we're waiting for an element returned by function"
- },
- {
- element: "#inputUnrelated",
- delayOnElement: {
- delayElement: "#divStuff" // wait until DOM element "divStuff" is visible before showing this tour step against DOM element "inputUnrelated"
- },
- title: "Waiting",
- content: "This input is nice, but you only see this step when the other div appears"
- },
- {
- element: "#btnDontForgetThis",
- delayOnElement: {
- delayElement: "element", // use string literal "element" to wait for this step's element, i.e.: #btnDontForgetThis
- maxDelay: 5000 // wait 5 seconds for it to appear before timing out
- },
- title: "Cool",
- content: "Remember the onElementUnavailable option!",
- onElementUnavailable: function(tour, stepNumber)
- {
- // This will be called if btnDontForgetThis is not visible after 5 seconds
- console.log("Well that went badly wrong");
- }
- },
- ];
-
-----------------
- 10. Trigger when modal closes
- If tour element is a modal, or is a DOM element inside a modal, the element can disappear "at random" if the user dismisses the dialog.
- In this case, onModalHidden global and per step function is called. Only functional when step is not an orphan.
- This is useful if a tour includes a step that launches a modal, and the tour requires the user to take some actions inside the modal before OK'ing it and moving to the next
- tour step.
-
- Return (int) step number to immediately move to that step
- Return exactly false to not change tour state in any way - this is useful if you need to reshow the modal because some validation failed
- Return anything else to move to the next step
-
- element === Bootstrap modal, or element parent === bootstrap modal is automatically detected.
-
- var Tour=new Tour({
- steps: tourSteps,
- framework: "bootstrap3", // or "bootstrap4" depending on your version of bootstrap
- onModalHidden: function(tour, stepNumber)
- {
- console.log("Well damn, this step's element was a modal, or inside a modal, and the modal just done got dismissed y'all. Moving to step 3.");
-
- // move to step number 3
- return 3;
- },
- });
-
-
- var Tour=new Tour({
- steps: tourSteps,
- onModalHidden: function(tour, stepNumber)
- {
- if(validateSomeModalContent() == false)
- {
- // The validation failed, user dismissed modal without properly taking actions.
- // Show the modal again
- showModalAgain();
-
- // Instruct tour to stay on same step
- return false;
- }
- else
- {
- // Content was valid. Return null or do nothing to instruct tour to continue to next step
- }
- },
- });
-
-
-
- 10b. Handle Dialogs and BootstrapDialog plugin better https://nakupanda.github.io/bootstrap3-dialog/
- Plugin makes creating dialogs very easy, but it does some extra stuff to the dialogs and dynamically creates/destroys them. This
- causes issues with plugins that want to include a modal dialog in the steps using this plugin.
-
- To use Tour to highlight an element in a dialog, just use the element ID as you would for any normal step. The dialog will be automatically
- detected and handled.
-
- To use Tour to highlight an entire dialog, set the step element to the dialog div. Tour will automatically realize this is a dialog, and
- shift the element to use the modal-content div inside the dialog. This makes life friendly, because you can do this:
-
-
-
- Then use element: myModal in the Tour.
-
-
- FOR BOOTSTRAPDIALOG PLUGIN: this plugin creates random UUIDs for the dialog DOM ID. You need to fix the ID to something you know. Do this:
-
- dlg = new BootstrapDialog.confirm({
- ....all the options...
- });
-
- // BootstrapDialog gives a random GUID ID for dialog. Give it a proper one
- $objModal = dlg.getModal();
- $objModal.attr("id", "myModal");
- dlg.setId("myModal");
-
-
- Now you can use element: myModal in the tour, even when the dialog is created by BootstrapDialog plugin.
-
-
-----------------
- 11. Fix conflict with Bootstrap Selectpicker: https://github.com/snapappointments/bootstrap-select/
- Selectpicker draws a custom select. Tour now automagically finds and adjusts the selectpicker dropdown so that it appears correctly within the tour
-
-
-----------------
- 12. Call onPreviouslyEnded if tour.start() is called for a tour that has previously ended
- See the following github issue: https://github.com/sorich87/bootstrap-tour/issues/720
- Original behavior for a tour that had previously ended was to call onStart() callback, and then abort without calling onEnd(). This has been altered so
- that calling start() on a tour that has previously ended (cookie step set to end etc) will now ONLY call onPreviouslyEnded().
-
- This restores the functionality that allows app JS to simply call tour.start() on page load, and the Tour will now only call onStart() / onEnd() when
- the tour really is started or ended.
-
- var Tour=new Tour({
- steps: [ ..... ],
- framework: "bootstrap3", // or "bootstrap4" depending on your version of bootstrap
- onPreviouslyEnded: function(tour)
- {
- console.log("Looks like this tour has already ended");
- },
- });
-
- tour.start();
-
-----------------
- 13. Switch between Bootstrap 3 or 4 (popover methods, template) automatically using tour options, or use a custom template
- With thanks to this thread: https://github.com/sorich87/bootstrap-tour/pull/643
-
- Tour is compatible with bootstrap 3 and 4 if the right template and framework is used for the popover. Bootstrap3 framework compatibility is used by default.
-
- To select the correct template and framework, use the "framework" global option. Note this option does more than just select a template, it also changes which
- methods are used to manage the Tour popovers to be BS3 or BS4 compatible.
-
- var Tour=new Tour({
- steps: tourSteps,
- template: null, // template option is null by default. Tourist will use the appropriate template
- // for the framework version, in this case BS3 as per next option
- framework: "bootstrap3", // can be string literal "bootstrap3" or "bootstrap4"
- });
-
-
- To use a custom template, use the "template" global option:
-
- var Tour=new Tour({
- steps: tourSteps,
- framework: "bootstrap4", // can be string literal "bootstrap3" or "bootstrap4"
- template: '....blah....
'
- });
-
- Review the following logic:
- - If template == null, default framework template is used based on whether framework is set to "bootstrap3" or "bootstrap4"
- - If template != null, the specified template is always used
- - If framework option is not literal "bootstrap3" or "bootstrap4", error will occur
-
-
- To add additional templates, search the code for "PLACEHOLDER: TEMPLATES LOCATION". This will take you to an array that contains the templates, simply edit
- or add as required.
-
-
-----------------
- 14. Options to manipulate the Bootstrap sanitizer, and fix the sanitizer related breaking change in BS 3.4.x
- BS 3.4.1 added a sanitizer to popover and tooltips - this breaking change strips non-whitelisted DOM elements from popover content, title etc.
- See: https://getbootstrap.com/docs/3.4/javascript/#js-sanitizer and https://blog.getbootstrap.com/2019/02/13/bootstrap-4-3-1-and-3-4-1/
-
- This Bootstrap change resulted in Tour navigation buttons being killed from the DOM: https://github.com/sorich87/bootstrap-tour/issues/723#issuecomment-471107788
-
- This has been fixed in code, Tour navigation buttons now appear and work by default.
-
- To prevent future similar reoccurrences, and also allow the manipulation of the sanitizer "allowed list" for Tours that want to add extra content into
- tour steps, two features added to global options. To understand the purpose and operation of these features, review the following information on the Bootstrap
- sanitizer: https://getbootstrap.com/docs/3.4/javascript/#js-sanitizer
-
- --IMPORTANT NOTE-- SECURITY RISK: if you do not understand the purpose of the sanitizer, why it exists in bootstrap or how it relates to Tour, do not use these options.
-
- Global options:
-
- sanitizeWhitelist: specify an object that will be merged with the Bootstrap Popover default whitelist. Use the same structure as the default Bootstrap
- whitelist.
-
- sanitizeFunction: specify a function that will be used to sanitize Tour content, with the following signature: string function(content).
- Specifying a function for this option will cause sanitizeWhitelist to be ignored.
- Specifying anything other than a function for this option will be ignored, and sanitizeWhitelist will be used
-
- Examples:
-
- Allow tour step content to include a button with attributes data-someplugin1="..." and data-somethingelse="...". Allow content to include a selectpicker.
- var Tour=new Tour({
- steps: tourSteps,
- sanitizeWhitelist: {
- "button" : ["data-someplugin1", "data-somethingelse"], // allows
- "select" : [] // allows
- }
- });
-
-
- Use a custom whitelist function for sanitizing tour steps:
- var Tour=new Tour({
- steps: tourSteps,
- sanitizeFunction: function(stepContent)
- {
- // Bypass Bootstrap sanitizer using custom function to clean the tour step content.
- // stepContent will contain the content of the step, i.e.: tourSteps[n].content. You must
- // clean this content to prevent XSS and other vulnerabilities. Use your own code or a lib like DOMPurify
- return DOMPurify.sanitize(stepContent);
- }
- });
-
-
- Note: if you have complete control over the tour content (i.e.: no risk of XSS or similar attacks), you can use sanitizeFunction to bypass all sanitization
- and use your step content exactly as is by simply returning the content:
-
- var Tour=new Tour({
- steps: tourSteps,
- sanitizeFunction: function(stepContent)
- {
- // POTENTIAL SECURITY RISK
- // bypass Bootstrap sanitizer, perform no sanitization, tour step content will be exactly as templated in tourSteps.
- return stepContent;
- }
- });
-
-----------------
- 15. Change text for the buttons in the popup (also, preparation for future localization options)
- With thanks to @vneri (https://github.com/IGreatlyDislikeJavascript/bootstrap-tourist/pull/8) for the original change
- With thanks to @DancingDad, @thenewbeat, @bardware for the fixes/updates
-
- You can now change the text displayed for the buttons used in the tour step popups. For this, there is a new object you can pass to the options, called "localization".
- This option only applies to the default templates. If you specify your own custom template, the localization.buttonTexts option has no effect on the basis that
- you will make any changes to your own template directly.
-
- var tour = new Tour({
- framework: "bootstrap3", // or "bootstrap4" depending on your version of bootstrap
- steps: [ ..... ],
- localization:
- {
- buttonTexts: {
- prevButton: 'Back',
- nextButton: 'Go',
- pauseButton: 'Wait',
- resumeButton: 'Continue',
- endTourButton: 'Ok, enough'
- }
- }
- });
-
- You may specify only the labels you want to change. Unspecified labels will remain at their defaults:
-
- var tour = new Tour({
- localization:
- {
- buttonTexts: {
- endTourButton: 'Adios muchachos'
- }
- }
- });
-
-
-----------------
- 16. Added showIfUnintendedOrphan
- With thanks to @diesl
-
- If a tour step specifies an element, and the element doesn't exist, showIfUnintendedOrphan will show the tour step as an orphan. This ensures
- your tour step will always be shown.
-
- delayOnElement takes priority over showIfUnintendedOrphan. I.e.: if you specify both delayOnElement and showIfUnintendedOrphan, the delay will timeout
- before the step will be shown as an orphan.
-
- This option is available globally and per step.
-
- var tourSteps = [
- {
- element: "#btnSomething",
- showIfUnintendedOrphan: true,
- title: "Always",
- content: "This tour step will always appear, either against element btnSomething if it exists, or as an orphan if it doesn't"
- },
- {
- element: "#btnSomethingElse",
- showIfUnintendedOrphan: true,
- delayOnElement: {
- delayElement: "element" // use string literal "element" to wait for this step's element, i.e.: #btnSomethingElse
- },
- title: "Always after a delay",
- content: "This tour step will always appear. If element btnSomethingElse doesn't exist, delayOnElement will wait until it exists. If delayOnElement times out, step will show as an orphan"
- },
- {
- element: "#btnDoesntExist",
- showIfUnintendedOrphan: true,
- title: "Always",
- content: "This tour step will always appear",
- onElementUnavailable: function() { console.log("this will never get called as showIfUnintendedOrphan will show step as an orphan"); }
- },
- ]
-
-
-----------------
-
- 17. Overlay divs and customizable transitions between tour steps
- With huge thanks to @ibastevan, who provided a lot of the code and input to getting this working. Read more here:
- https://github.com/IGreatlyDislikeJavascript/bootstrap-tourist/pull/24
-
- Tourist now uses overlays to highlight tour step elements. A single backdrop div provides the dark/black background, and a highlight div is used
- to highlight the element of a tour step. Each tour step element is then adjusted by zindex to pop to the top.
-
- This option could be considered not exactly simple to understand initially, so please play around with it.
-
- A new set of options called backdropOptions has been added globally, and can be overridden per step.
-
- backdropOptions is an object structured as follows (these are the default options, used if you do not set this option in your tour):
-
- backdropOptions: {
- highlightOpacity: 0.8,
- highlightColor: #FFF,
- animation: {
- // can be string of css class or function signature: function(domElement, step) {}
- backdropShow: function(domElement) { domElement.fadeIn(); },
- backdropHide: function(domElement) { domElement.fadeOut("slow") },
- highlightShow: function(domElement, step)
- {
- step.fnPositionHighlight();
- domElement.fadeIn();
- },
- highlightTransition: "tour-highlight-animation",
- highlightHide: function(domElement) { domElement.fadeOut("slow") }
- },
- }
-
- - Explanation - backdropOptions:
-
- backdropOptions.highlightOpacity - the alpha value of the div used to highlight the step element. You can control how visible/occluded the element is.
- backdropOptions.highlightColor - the hex color code for the highlight. Normally you will want to use a white highlight (#FFF). However if your step element
- has a dark or black background, you may want to use a black highlight (#000). Experiment with the best colors for your UX.
-
-
- - Explanation - backdropOptions.animation:
-
- The options within backdropOptions.animation can be either string literals specifying a CSS class, or a function. The application of these
- features work in exactly the same way for all backdropOptions.animation options.
-
- These options apply as per the following:
- backdropShow: when a previously hidden backdrop is shown
- backdropHide: when a previously visible backdrop is hidden
- highlightShow: when step N did not have an element, and step N+1 does have an element
- highlightHide: when step N has an element, and step N+1 does not have an element
- highlightTransition: when both step N and step N+1 have an element, and the highlight is visibly moved from one to the other
-
-
- The highlight is the div that creates the "visibility" effect over a tour step element. This option is how a nice slide/move/transition effect
- between steps is possible. They also now allow handling of rotated elements etc.
-
-
- - If a CSS class name (as a string literal) is provided:
- If you provide a CSS class, this class will be applied to the specified element at the specified time and removed afterwards. You can use this
- class to add transition effects.
-
- For example, assume you create a class in your CSS that animates an effect as follows:
-
- .my-custom-animation {
- -webkit-transition: all .5s ease-out;
- -moz-transition: all .5s ease-out;
- -ms-transition: all .5s ease-out;
- -o-transition: all .5s ease-out;
- transition: all .5s ease-out;
- }
-
- You can then use this effect every time the background overlay div is shown by specifying it as follows:
-
- var tour = new Tour({
- steps: [ ..... ],
- backdropOptions: {
- animation: {
- backdropShow: "my-custom-animation"
- },
- }
- });
-
- Now, when moving between step N where step option backdrop == false, and step N + 1 where step option backdrop == true, your class will be used
- to implement the transition. The class will be added before the backdrop is shown, and removed when the transition is complete. In other words,
- specifying a CSS class for backdropShow is functionally equivalent to the following code executed when the tour moves between steps:
-
- $(backdropOptions element).addClass("my-custom-animation");
- $(backdropOptions element).show(0, function()
- {
- $(this).removeClass("my-custom-animation");
- });
-
- Note that the class is removed after the element is visible, therefore only use this option for CSS transitions - do not use it for
- "persistent" CSS changes.
-
- The same approach applies to all the other options, i.e.: if a class is specified for highlightTransition, the class is applied, the highlight
- div is moved to its new position, and the class is removed.
-
-
-
- - If a function is provided:
-
- If you provide a function, your code is 100% responsible for positioning and showing the highlight overlay element.
-
- It's more hassle - why would you want to do this? Simply, Tourist can only provide a fairly standard/default set of transitions, especially where
- the highlightTransition option is concerned. If you want your tour to have an especially fancy or featured/custom transition, you can use this option
- to achieve that. You can also work with rotated or transformed elements using this feature.
-
- Most of the time you will not need to use this option, and specifying a CSS class will be sufficient. But the option is here if you need it.
-
- When specifying a function, it must have the following signature:
- function(domElement, step)
- {
- }
-
- The domElement parameter provides a jquery object for the element you must manipulate. For example, if you have specified a function for
- backdropOptions.animation.highlightShow, then domElement will be the highlighting div. You must then correctly position and show this div over the
- step element.
-
- The step parameter provides an object with information about the step, to help you decide how to execute the transition. It has the following props,
- most of which are taken from your tour step. They are re-provided to you for ease, in case you want to create some clever central animation
- feature etc:
-
- step = {
- element: the actual step element, even if the tour uses a function for this step.element option
- container: the container option (string) as specified in the step or globally, to help you decide how to set up the transition
- backdrop: as per step option (bool),
- preventInteraction: as per step option (bool),
- isOrphan: whether is step is actually an orphan, because the element was wrong and showIfUnintendedOrphan == true or for some other reason (bool),
- orphan: as per step option (bool),
- showIfUnintendedOrphan: as per step option (bool),
- duration: as per step option (bool),
- delay: as per step option (bool),
- fnPositionHighlight: a helper function to position the highlight element
- };
-
- The fnPositionHighlight option is provided to make it easy for you to automatically position the highlight div on top of the tour step element. The
- function simply performs the following:
-
- function fnPositionHighlight()
- {
- $(DOMID_HIGHLIGHT).width(_stepElement.outerWidth()).height(_stepElement.outerHeight()).offset(_stepElement.offset());
- }
-
- This allows you to do the following in your customized transition code:
-
- function(domElement, step)
- {
- // do whatever setup for your custom transition
- step.fnPositionHighlight();
- }
-
- It simply saves some typing.
-
-
- An example of implementing backdropOptions -
-
- Per step option:
-
- var tourSteps = [
- {
- element: "#btnSomething",
- title: "Default",
- content: "This tour step will use the default Tour.backdropOptions settings"
- },
- {
- orphan: true,
- title: "Default",
- content: "This tour step will use the per step transitions as specified"
- backdropOptions: {
- // specify some options and use the defaults for the rest
- highlightColor: #000, // this step element has a black background, so this RGB looks better
- animation: {
- // use a function to manually hide the highlight - of course this will only apply
- // because this step is an orphan == true, and therefore there is no highlight to hide
- highlightHide: function(domElement, step)
- {
- domElement.fadeOut("slow")
- }
- },
- }
- },
-
-
- Global options:
-
- var tour = new Tour({
- steps: [ ..... ],
- backdropOptions: {
- // default for all Tour steps
- }
- });
- *
*/
-
-
-
(function (window, factory) {
if (typeof define === 'function' && define.amd) {
return define(['jquery'], function (jQuery) {
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..1b999ef
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,1787 @@
+{
+ "name": "bootstrap-tourist",
+ "version": "0.3.1",
+ "lockfileVersion": 1,
+ "requires": true,
+ "dependencies": {
+ "JSONStream": {
+ "version": "1.3.5",
+ "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz",
+ "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==",
+ "dev": true,
+ "requires": {
+ "jsonparse": "^1.2.0",
+ "through": ">=2.2.7 <3"
+ }
+ },
+ "ansi-regex": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz",
+ "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==",
+ "dev": true
+ },
+ "ansi-styles": {
+ "version": "3.2.1",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",
+ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",
+ "dev": true,
+ "requires": {
+ "color-convert": "^1.9.0"
+ }
+ },
+ "array-find-index": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz",
+ "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=",
+ "dev": true
+ },
+ "array-ify": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/array-ify/-/array-ify-1.0.0.tgz",
+ "integrity": "sha1-nlKHYrSpBmrRY6aWKjZEGOlibs4=",
+ "dev": true
+ },
+ "arrify": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz",
+ "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=",
+ "dev": true
+ },
+ "balanced-match": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz",
+ "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=",
+ "dev": true
+ },
+ "brace-expansion": {
+ "version": "1.1.11",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
+ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
+ "dev": true,
+ "requires": {
+ "balanced-match": "^1.0.0",
+ "concat-map": "0.0.1"
+ }
+ },
+ "buffer-from": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz",
+ "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==",
+ "dev": true
+ },
+ "camelcase": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz",
+ "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=",
+ "dev": true
+ },
+ "camelcase-keys": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-4.2.0.tgz",
+ "integrity": "sha1-oqpfsa9oh1glnDLBQUJteJI7m3c=",
+ "dev": true,
+ "requires": {
+ "camelcase": "^4.1.0",
+ "map-obj": "^2.0.0",
+ "quick-lru": "^1.0.0"
+ }
+ },
+ "chalk": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",
+ "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^3.2.1",
+ "escape-string-regexp": "^1.0.5",
+ "supports-color": "^5.3.0"
+ }
+ },
+ "cliui": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/cliui/-/cliui-5.0.0.tgz",
+ "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==",
+ "dev": true,
+ "requires": {
+ "string-width": "^3.1.0",
+ "strip-ansi": "^5.2.0",
+ "wrap-ansi": "^5.1.0"
+ }
+ },
+ "color-convert": {
+ "version": "1.9.3",
+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",
+ "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",
+ "dev": true,
+ "requires": {
+ "color-name": "1.1.3"
+ }
+ },
+ "color-name": {
+ "version": "1.1.3",
+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
+ "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=",
+ "dev": true
+ },
+ "commander": {
+ "version": "2.20.3",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
+ "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
+ "dev": true,
+ "optional": true
+ },
+ "compare-func": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/compare-func/-/compare-func-1.3.2.tgz",
+ "integrity": "sha1-md0LpFfh+bxyKxLAjsM+6rMfpkg=",
+ "dev": true,
+ "requires": {
+ "array-ify": "^1.0.0",
+ "dot-prop": "^3.0.0"
+ }
+ },
+ "concat-map": {
+ "version": "0.0.1",
+ "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
+ "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=",
+ "dev": true
+ },
+ "concat-stream": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-2.0.0.tgz",
+ "integrity": "sha512-MWufYdFw53ccGjCA+Ol7XJYpAlW6/prSMzuPOTRnJGcGzuhLn4Scrz7qf6o8bROZ514ltazcIFJZevcfbo0x7A==",
+ "dev": true,
+ "requires": {
+ "buffer-from": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^3.0.2",
+ "typedarray": "^0.0.6"
+ }
+ },
+ "conventional-changelog": {
+ "version": "3.1.9",
+ "resolved": "https://registry.npmjs.org/conventional-changelog/-/conventional-changelog-3.1.9.tgz",
+ "integrity": "sha512-JbNVm1iGZ3aXxcFZjqKNDNfdgchQjSltWc8rvSniMrkHLsub9Wn20/JLdJNTBM74dt1IA2M+v/mzServ6N37YA==",
+ "dev": true,
+ "requires": {
+ "conventional-changelog-angular": "^5.0.3",
+ "conventional-changelog-atom": "^2.0.1",
+ "conventional-changelog-codemirror": "^2.0.1",
+ "conventional-changelog-conventionalcommits": "^4.0.0",
+ "conventional-changelog-core": "^3.2.3",
+ "conventional-changelog-ember": "^2.0.2",
+ "conventional-changelog-eslint": "^3.0.2",
+ "conventional-changelog-express": "^2.0.1",
+ "conventional-changelog-jquery": "^3.0.4",
+ "conventional-changelog-jshint": "^2.0.1",
+ "conventional-changelog-preset-loader": "^2.1.1"
+ }
+ },
+ "conventional-changelog-angular": {
+ "version": "5.0.5",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-angular/-/conventional-changelog-angular-5.0.5.tgz",
+ "integrity": "sha512-RrkdWnL/TVyWV1ayWmSsrWorsTDqjL/VwG5ZSEneBQrd65ONcfeA1cW7FLtNweQyMiKOyriCMTKRSlk18DjTrw==",
+ "dev": true,
+ "requires": {
+ "compare-func": "^1.3.1",
+ "q": "^1.5.1"
+ }
+ },
+ "conventional-changelog-atom": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-atom/-/conventional-changelog-atom-2.0.3.tgz",
+ "integrity": "sha512-szZe2ut97qNO6vCCMkm1I/tWu6ol4Rr8a9Lx0y/VlpDnpY0PNp+oGpFgU55lplhx+I3Lro9Iv4/gRj0knfgjzg==",
+ "dev": true,
+ "requires": {
+ "q": "^1.5.1"
+ }
+ },
+ "conventional-changelog-codemirror": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-codemirror/-/conventional-changelog-codemirror-2.0.3.tgz",
+ "integrity": "sha512-t2afackdgFV2yBdHhWPqrKbpaQeVnz2hSJKdWqjasPo5EpIB6TBL0er3cOP1mnGQmuzk9JSvimNSuqjWGDtU5Q==",
+ "dev": true,
+ "requires": {
+ "q": "^1.5.1"
+ }
+ },
+ "conventional-changelog-config-spec": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-config-spec/-/conventional-changelog-config-spec-2.0.0.tgz",
+ "integrity": "sha512-zQmcBP/pR8tN5MSv+nXG9hOmy+Z6rgEquBerpoEbOKTFPLoxBy/adeUUpshrMpqdZ/ycqbT2AgdTtiIu/9IHGg==",
+ "dev": true
+ },
+ "conventional-changelog-conventionalcommits": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.2.1.tgz",
+ "integrity": "sha512-vC02KucnkNNap+foDKFm7BVUSDAXktXrUJqGszUuYnt6T0J2azsbYz/w9TDc3VsrW2v6JOtiQWVcgZnporHr4Q==",
+ "dev": true,
+ "requires": {
+ "compare-func": "^1.3.1",
+ "lodash": "^4.2.1",
+ "q": "^1.5.1"
+ }
+ },
+ "conventional-changelog-core": {
+ "version": "3.2.3",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-core/-/conventional-changelog-core-3.2.3.tgz",
+ "integrity": "sha512-LMMX1JlxPIq/Ez5aYAYS5CpuwbOk6QFp8O4HLAcZxe3vxoCtABkhfjetk8IYdRB9CDQGwJFLR3Dr55Za6XKgUQ==",
+ "dev": true,
+ "requires": {
+ "conventional-changelog-writer": "^4.0.6",
+ "conventional-commits-parser": "^3.0.3",
+ "dateformat": "^3.0.0",
+ "get-pkg-repo": "^1.0.0",
+ "git-raw-commits": "2.0.0",
+ "git-remote-origin-url": "^2.0.0",
+ "git-semver-tags": "^2.0.3",
+ "lodash": "^4.2.1",
+ "normalize-package-data": "^2.3.5",
+ "q": "^1.5.1",
+ "read-pkg": "^3.0.0",
+ "read-pkg-up": "^3.0.0",
+ "through2": "^3.0.0"
+ },
+ "dependencies": {
+ "git-semver-tags": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/git-semver-tags/-/git-semver-tags-2.0.3.tgz",
+ "integrity": "sha512-tj4FD4ww2RX2ae//jSrXZzrocla9db5h0V7ikPl1P/WwoZar9epdUhwR7XHXSgc+ZkNq72BEEerqQuicoEQfzA==",
+ "dev": true,
+ "requires": {
+ "meow": "^4.0.0",
+ "semver": "^6.0.0"
+ }
+ }
+ }
+ },
+ "conventional-changelog-ember": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-ember/-/conventional-changelog-ember-2.0.4.tgz",
+ "integrity": "sha512-q1u73sO9uCnxN4TSw8xu6MRU8Y1h9kpwtcdJuNRwu/LSKI1IE/iuNSH5eQ6aLlQ3HTyrIpTfUuVybW4W0F17rA==",
+ "dev": true,
+ "requires": {
+ "q": "^1.5.1"
+ }
+ },
+ "conventional-changelog-eslint": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-eslint/-/conventional-changelog-eslint-3.0.4.tgz",
+ "integrity": "sha512-CPwTUENzhLGl3auunrJxiIEWncAGaby7gOFCdj2gslIuOFJ0KPJVOUhRz4Da/I53sdo/7UncUJkiLg94jEsjxg==",
+ "dev": true,
+ "requires": {
+ "q": "^1.5.1"
+ }
+ },
+ "conventional-changelog-express": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-express/-/conventional-changelog-express-2.0.1.tgz",
+ "integrity": "sha512-G6uCuCaQhLxdb4eEfAIHpcfcJ2+ao3hJkbLrw/jSK/eROeNfnxCJasaWdDAfFkxsbpzvQT4W01iSynU3OoPLIw==",
+ "dev": true,
+ "requires": {
+ "q": "^1.5.1"
+ }
+ },
+ "conventional-changelog-jquery": {
+ "version": "3.0.6",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-jquery/-/conventional-changelog-jquery-3.0.6.tgz",
+ "integrity": "sha512-gHAABCXUNA/HjnZEm+vxAfFPJkgtrZvCDIlCKfdPVXtCIo/Q0lN5VKpx8aR5p8KdVRQFF3OuTlvv5kv6iPuRqA==",
+ "dev": true,
+ "requires": {
+ "q": "^1.5.1"
+ }
+ },
+ "conventional-changelog-jshint": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-jshint/-/conventional-changelog-jshint-2.0.3.tgz",
+ "integrity": "sha512-Pc2PnMPcez634ckzr4EOWviwRSpZcURaK7bjyD9oK6N5fsC/a+3G7LW5m/JpcHPhA9ZxsfIbm7uqZ3ZDGsQ/sw==",
+ "dev": true,
+ "requires": {
+ "compare-func": "^1.3.1",
+ "q": "^1.5.1"
+ }
+ },
+ "conventional-changelog-preset-loader": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-preset-loader/-/conventional-changelog-preset-loader-2.2.0.tgz",
+ "integrity": "sha512-zXB+5vF7D5Y3Cb/rJfSyCCvFphCVmF8mFqOdncX3BmjZwAtGAPfYrBcT225udilCKvBbHgyzgxqz2GWDB5xShQ==",
+ "dev": true
+ },
+ "conventional-changelog-writer": {
+ "version": "4.0.9",
+ "resolved": "https://registry.npmjs.org/conventional-changelog-writer/-/conventional-changelog-writer-4.0.9.tgz",
+ "integrity": "sha512-2Y3QfiAM37WvDMjkVNaRtZgxVzWKj73HE61YQ/95T53yle+CRwTVSl6Gbv/lWVKXeZcM5af9n9TDVf0k7Xh+cw==",
+ "dev": true,
+ "requires": {
+ "compare-func": "^1.3.1",
+ "conventional-commits-filter": "^2.0.2",
+ "dateformat": "^3.0.0",
+ "handlebars": "^4.4.0",
+ "json-stringify-safe": "^5.0.1",
+ "lodash": "^4.2.1",
+ "meow": "^4.0.0",
+ "semver": "^6.0.0",
+ "split": "^1.0.0",
+ "through2": "^3.0.0"
+ }
+ },
+ "conventional-commits-filter": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/conventional-commits-filter/-/conventional-commits-filter-2.0.2.tgz",
+ "integrity": "sha512-WpGKsMeXfs21m1zIw4s9H5sys2+9JccTzpN6toXtxhpw2VNF2JUXwIakthKBy+LN4DvJm+TzWhxOMWOs1OFCFQ==",
+ "dev": true,
+ "requires": {
+ "lodash.ismatch": "^4.4.0",
+ "modify-values": "^1.0.0"
+ }
+ },
+ "conventional-commits-parser": {
+ "version": "3.0.5",
+ "resolved": "https://registry.npmjs.org/conventional-commits-parser/-/conventional-commits-parser-3.0.5.tgz",
+ "integrity": "sha512-qVz9+5JwdJzsbt7JbJ6P7NOXBGt8CyLFJYSjKAuPSgO+5UGfcsbk9EMR+lI8Unlvx6qwIc2YDJlrGIfay2ehNA==",
+ "dev": true,
+ "requires": {
+ "JSONStream": "^1.0.4",
+ "is-text-path": "^2.0.0",
+ "lodash": "^4.2.1",
+ "meow": "^4.0.0",
+ "split2": "^2.0.0",
+ "through2": "^3.0.0",
+ "trim-off-newlines": "^1.0.0"
+ }
+ },
+ "conventional-recommended-bump": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/conventional-recommended-bump/-/conventional-recommended-bump-6.0.0.tgz",
+ "integrity": "sha512-iIHkDOuWCC49J/E4WXvXBCCrO2NoGqwjfhm2iUOHPPEik8TVHxczt/hFaWY+4MXeZ/nC53BNfjmlr8+EXOrlvA==",
+ "dev": true,
+ "requires": {
+ "concat-stream": "^2.0.0",
+ "conventional-changelog-preset-loader": "^2.2.0",
+ "conventional-commits-filter": "^2.0.2",
+ "conventional-commits-parser": "^3.0.3",
+ "git-raw-commits": "2.0.0",
+ "git-semver-tags": "^3.0.0",
+ "meow": "^4.0.0",
+ "q": "^1.5.1"
+ }
+ },
+ "core-util-is": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
+ "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=",
+ "dev": true
+ },
+ "currently-unhandled": {
+ "version": "0.4.1",
+ "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz",
+ "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=",
+ "dev": true,
+ "requires": {
+ "array-find-index": "^1.0.1"
+ }
+ },
+ "dargs": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/dargs/-/dargs-4.1.0.tgz",
+ "integrity": "sha1-A6nbtLXC8Tm/FK5T8LiipqhvThc=",
+ "dev": true,
+ "requires": {
+ "number-is-nan": "^1.0.0"
+ }
+ },
+ "dateformat": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz",
+ "integrity": "sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q==",
+ "dev": true
+ },
+ "decamelize": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
+ "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=",
+ "dev": true
+ },
+ "decamelize-keys": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/decamelize-keys/-/decamelize-keys-1.1.0.tgz",
+ "integrity": "sha1-0XGoeTMlKAfrPLYdwcFEXQeN8tk=",
+ "dev": true,
+ "requires": {
+ "decamelize": "^1.1.0",
+ "map-obj": "^1.0.0"
+ },
+ "dependencies": {
+ "map-obj": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz",
+ "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=",
+ "dev": true
+ }
+ }
+ },
+ "detect-indent": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-6.0.0.tgz",
+ "integrity": "sha512-oSyFlqaTHCItVRGK5RmrmjB+CmaMOW7IaNA/kdxqhoa6d17j/5ce9O9eWXmV/KEdRwqpQA+Vqe8a8Bsybu4YnA==",
+ "dev": true
+ },
+ "detect-newline": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.0.0.tgz",
+ "integrity": "sha512-JAP22dVPAqvhdRFFxK1G5GViIokyUn0UWXRNW0ztK96fsqi9cuM8w8ESbSk+T2w5OVorcMcL6m7yUg1RrX+2CA==",
+ "dev": true
+ },
+ "dot-prop": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-3.0.0.tgz",
+ "integrity": "sha1-G3CK8JSknJoOfbyteQq6U52sEXc=",
+ "dev": true,
+ "requires": {
+ "is-obj": "^1.0.0"
+ }
+ },
+ "dotgitignore": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/dotgitignore/-/dotgitignore-2.1.0.tgz",
+ "integrity": "sha512-sCm11ak2oY6DglEPpCB8TixLjWAxd3kJTs6UIcSasNYxXdFPV+YKlye92c8H4kKFqV5qYMIh7d+cYecEg0dIkA==",
+ "dev": true,
+ "requires": {
+ "find-up": "^3.0.0",
+ "minimatch": "^3.0.4"
+ },
+ "dependencies": {
+ "find-up": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
+ "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
+ "dev": true,
+ "requires": {
+ "locate-path": "^3.0.0"
+ }
+ },
+ "locate-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
+ "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
+ "dev": true,
+ "requires": {
+ "p-locate": "^3.0.0",
+ "path-exists": "^3.0.0"
+ }
+ },
+ "p-limit": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz",
+ "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==",
+ "dev": true,
+ "requires": {
+ "p-try": "^2.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
+ "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
+ "dev": true,
+ "requires": {
+ "p-limit": "^2.0.0"
+ }
+ },
+ "p-try": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
+ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
+ "dev": true
+ }
+ }
+ },
+ "emoji-regex": {
+ "version": "7.0.3",
+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz",
+ "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==",
+ "dev": true
+ },
+ "error-ex": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
+ "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
+ "dev": true,
+ "requires": {
+ "is-arrayish": "^0.2.1"
+ }
+ },
+ "escape-string-regexp": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
+ "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=",
+ "dev": true
+ },
+ "figures": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/figures/-/figures-3.0.0.tgz",
+ "integrity": "sha512-HKri+WoWoUgr83pehn/SIgLOMZ9nAWC6dcGj26RY2R4F50u4+RTUz0RCrUlOV3nKRAICW1UGzyb+kcX2qK1S/g==",
+ "dev": true,
+ "requires": {
+ "escape-string-regexp": "^1.0.5"
+ }
+ },
+ "find-up": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",
+ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",
+ "dev": true,
+ "requires": {
+ "locate-path": "^5.0.0",
+ "path-exists": "^4.0.0"
+ },
+ "dependencies": {
+ "locate-path": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
+ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",
+ "dev": true,
+ "requires": {
+ "p-locate": "^4.1.0"
+ }
+ },
+ "p-limit": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz",
+ "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==",
+ "dev": true,
+ "requires": {
+ "p-try": "^2.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",
+ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",
+ "dev": true,
+ "requires": {
+ "p-limit": "^2.2.0"
+ }
+ },
+ "p-try": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
+ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
+ "dev": true
+ },
+ "path-exists": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
+ "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",
+ "dev": true
+ }
+ }
+ },
+ "fs-access": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/fs-access/-/fs-access-1.0.1.tgz",
+ "integrity": "sha1-1qh/JiJxzv6+wwxVNAf7mV2od3o=",
+ "dev": true,
+ "requires": {
+ "null-check": "^1.0.0"
+ }
+ },
+ "get-caller-file": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
+ "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
+ "dev": true
+ },
+ "get-pkg-repo": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/get-pkg-repo/-/get-pkg-repo-1.4.0.tgz",
+ "integrity": "sha1-xztInAbYDMVTbCyFP54FIyBWly0=",
+ "dev": true,
+ "requires": {
+ "hosted-git-info": "^2.1.4",
+ "meow": "^3.3.0",
+ "normalize-package-data": "^2.3.0",
+ "parse-github-repo-url": "^1.3.0",
+ "through2": "^2.0.0"
+ },
+ "dependencies": {
+ "camelcase": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz",
+ "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=",
+ "dev": true
+ },
+ "camelcase-keys": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz",
+ "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=",
+ "dev": true,
+ "requires": {
+ "camelcase": "^2.0.0",
+ "map-obj": "^1.0.0"
+ }
+ },
+ "find-up": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz",
+ "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=",
+ "dev": true,
+ "requires": {
+ "path-exists": "^2.0.0",
+ "pinkie-promise": "^2.0.0"
+ }
+ },
+ "indent-string": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz",
+ "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=",
+ "dev": true,
+ "requires": {
+ "repeating": "^2.0.0"
+ }
+ },
+ "load-json-file": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
+ "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "parse-json": "^2.2.0",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0",
+ "strip-bom": "^2.0.0"
+ }
+ },
+ "map-obj": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz",
+ "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=",
+ "dev": true
+ },
+ "meow": {
+ "version": "3.7.0",
+ "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz",
+ "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=",
+ "dev": true,
+ "requires": {
+ "camelcase-keys": "^2.0.0",
+ "decamelize": "^1.1.2",
+ "loud-rejection": "^1.0.0",
+ "map-obj": "^1.0.1",
+ "minimist": "^1.1.3",
+ "normalize-package-data": "^2.3.4",
+ "object-assign": "^4.0.1",
+ "read-pkg-up": "^1.0.1",
+ "redent": "^1.0.0",
+ "trim-newlines": "^1.0.0"
+ }
+ },
+ "minimist": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
+ "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
+ "dev": true
+ },
+ "parse-json": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz",
+ "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=",
+ "dev": true,
+ "requires": {
+ "error-ex": "^1.2.0"
+ }
+ },
+ "path-exists": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz",
+ "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=",
+ "dev": true,
+ "requires": {
+ "pinkie-promise": "^2.0.0"
+ }
+ },
+ "path-type": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz",
+ "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "pify": "^2.0.0",
+ "pinkie-promise": "^2.0.0"
+ }
+ },
+ "pify": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
+ "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
+ "dev": true
+ },
+ "read-pkg": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz",
+ "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=",
+ "dev": true,
+ "requires": {
+ "load-json-file": "^1.0.0",
+ "normalize-package-data": "^2.3.2",
+ "path-type": "^1.0.0"
+ }
+ },
+ "read-pkg-up": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz",
+ "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=",
+ "dev": true,
+ "requires": {
+ "find-up": "^1.0.0",
+ "read-pkg": "^1.0.0"
+ }
+ },
+ "readable-stream": {
+ "version": "2.3.6",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
+ "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "redent": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz",
+ "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=",
+ "dev": true,
+ "requires": {
+ "indent-string": "^2.1.0",
+ "strip-indent": "^1.0.1"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
+ "dev": true
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
+ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "strip-bom": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz",
+ "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=",
+ "dev": true,
+ "requires": {
+ "is-utf8": "^0.2.0"
+ }
+ },
+ "strip-indent": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz",
+ "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=",
+ "dev": true,
+ "requires": {
+ "get-stdin": "^4.0.1"
+ }
+ },
+ "through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dev": true,
+ "requires": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ },
+ "trim-newlines": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz",
+ "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=",
+ "dev": true
+ }
+ }
+ },
+ "get-stdin": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz",
+ "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=",
+ "dev": true
+ },
+ "git-raw-commits": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/git-raw-commits/-/git-raw-commits-2.0.0.tgz",
+ "integrity": "sha512-w4jFEJFgKXMQJ0H0ikBk2S+4KP2VEjhCvLCNqbNRQC8BgGWgLKNCO7a9K9LI+TVT7Gfoloje502sEnctibffgg==",
+ "dev": true,
+ "requires": {
+ "dargs": "^4.0.1",
+ "lodash.template": "^4.0.2",
+ "meow": "^4.0.0",
+ "split2": "^2.0.0",
+ "through2": "^2.0.0"
+ },
+ "dependencies": {
+ "readable-stream": {
+ "version": "2.3.6",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
+ "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
+ "dev": true
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
+ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dev": true,
+ "requires": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ }
+ }
+ },
+ "git-remote-origin-url": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/git-remote-origin-url/-/git-remote-origin-url-2.0.0.tgz",
+ "integrity": "sha1-UoJlna4hBxRaERJhEq0yFuxfpl8=",
+ "dev": true,
+ "requires": {
+ "gitconfiglocal": "^1.0.0",
+ "pify": "^2.3.0"
+ },
+ "dependencies": {
+ "pify": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",
+ "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=",
+ "dev": true
+ }
+ }
+ },
+ "git-semver-tags": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/git-semver-tags/-/git-semver-tags-3.0.0.tgz",
+ "integrity": "sha512-T4C/gJ9k2Bnxz+PubtcyiMtUUKrC+Nh9Q4zaECcnmVMwJgPhrNyP/Rf+YpdRqsJbCV/+kYrCH24Xg+IeAmbOPg==",
+ "dev": true,
+ "requires": {
+ "meow": "^4.0.0",
+ "semver": "^6.0.0"
+ }
+ },
+ "gitconfiglocal": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/gitconfiglocal/-/gitconfiglocal-1.0.0.tgz",
+ "integrity": "sha1-QdBF84UaXqiPA/JMocYXgRRGS5s=",
+ "dev": true,
+ "requires": {
+ "ini": "^1.3.2"
+ }
+ },
+ "graceful-fs": {
+ "version": "4.2.3",
+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz",
+ "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==",
+ "dev": true
+ },
+ "handlebars": {
+ "version": "4.5.1",
+ "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.5.1.tgz",
+ "integrity": "sha512-C29UoFzHe9yM61lOsIlCE5/mQVGrnIOrOq7maQl76L7tYPCgC1og0Ajt6uWnX4ZTxBPnjw+CUvawphwCfJgUnA==",
+ "dev": true,
+ "requires": {
+ "neo-async": "^2.6.0",
+ "optimist": "^0.6.1",
+ "source-map": "^0.6.1",
+ "uglify-js": "^3.1.4"
+ }
+ },
+ "has-flag": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz",
+ "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=",
+ "dev": true
+ },
+ "hosted-git-info": {
+ "version": "2.8.5",
+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.5.tgz",
+ "integrity": "sha512-kssjab8CvdXfcXMXVcvsXum4Hwdq9XGtRD3TteMEvEbq0LXyiNQr6AprqKqfeaDXze7SxWvRxdpwE6ku7ikLkg==",
+ "dev": true
+ },
+ "indent-string": {
+ "version": "3.2.0",
+ "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-3.2.0.tgz",
+ "integrity": "sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok=",
+ "dev": true
+ },
+ "inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "dev": true
+ },
+ "ini": {
+ "version": "1.3.5",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz",
+ "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==",
+ "dev": true
+ },
+ "is-arrayish": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",
+ "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=",
+ "dev": true
+ },
+ "is-finite": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz",
+ "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=",
+ "dev": true,
+ "requires": {
+ "number-is-nan": "^1.0.0"
+ }
+ },
+ "is-fullwidth-code-point": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
+ "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
+ "dev": true
+ },
+ "is-obj": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz",
+ "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=",
+ "dev": true
+ },
+ "is-plain-obj": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz",
+ "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=",
+ "dev": true
+ },
+ "is-text-path": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/is-text-path/-/is-text-path-2.0.0.tgz",
+ "integrity": "sha512-+oDTluR6WEjdXEJMnC2z6A4FRwFoYuvShVVEGsS7ewc0UTi2QtAKMDJuL4BDEVt+5T7MjFo12RP8ghOM75oKJw==",
+ "dev": true,
+ "requires": {
+ "text-extensions": "^2.0.0"
+ }
+ },
+ "is-utf8": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz",
+ "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=",
+ "dev": true
+ },
+ "isarray": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
+ "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=",
+ "dev": true
+ },
+ "json-parse-better-errors": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz",
+ "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==",
+ "dev": true
+ },
+ "json-stringify-safe": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz",
+ "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=",
+ "dev": true
+ },
+ "jsonparse": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz",
+ "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=",
+ "dev": true
+ },
+ "load-json-file": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-4.0.0.tgz",
+ "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=",
+ "dev": true,
+ "requires": {
+ "graceful-fs": "^4.1.2",
+ "parse-json": "^4.0.0",
+ "pify": "^3.0.0",
+ "strip-bom": "^3.0.0"
+ }
+ },
+ "locate-path": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz",
+ "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=",
+ "dev": true,
+ "requires": {
+ "p-locate": "^2.0.0",
+ "path-exists": "^3.0.0"
+ }
+ },
+ "lodash": {
+ "version": "4.17.15",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz",
+ "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==",
+ "dev": true
+ },
+ "lodash._reinterpolate": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz",
+ "integrity": "sha1-DM8tiRZq8Ds2Y8eWU4t1rG4RTZ0=",
+ "dev": true
+ },
+ "lodash.ismatch": {
+ "version": "4.4.0",
+ "resolved": "https://registry.npmjs.org/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz",
+ "integrity": "sha1-dWy1FQyjum8RCFp4hJZF8Yj4Xzc=",
+ "dev": true
+ },
+ "lodash.template": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/lodash.template/-/lodash.template-4.5.0.tgz",
+ "integrity": "sha512-84vYFxIkmidUiFxidA/KjjH9pAycqW+h980j7Fuz5qxRtO9pgB7MDFTdys1N7A5mcucRiDyEq4fusljItR1T/A==",
+ "dev": true,
+ "requires": {
+ "lodash._reinterpolate": "^3.0.0",
+ "lodash.templatesettings": "^4.0.0"
+ }
+ },
+ "lodash.templatesettings": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz",
+ "integrity": "sha512-stgLz+i3Aa9mZgnjr/O+v9ruKZsPsndy7qPZOchbqk2cnTU1ZaldKK+v7m54WoKIyxiuMZTKT2H81F8BeAc3ZQ==",
+ "dev": true,
+ "requires": {
+ "lodash._reinterpolate": "^3.0.0"
+ }
+ },
+ "loud-rejection": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz",
+ "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=",
+ "dev": true,
+ "requires": {
+ "currently-unhandled": "^0.4.1",
+ "signal-exit": "^3.0.0"
+ }
+ },
+ "map-obj": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-2.0.0.tgz",
+ "integrity": "sha1-plzSkIepJZi4eRJXpSPgISIqwfk=",
+ "dev": true
+ },
+ "meow": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/meow/-/meow-4.0.1.tgz",
+ "integrity": "sha512-xcSBHD5Z86zaOc+781KrupuHAzeGXSLtiAOmBsiLDiPSaYSB6hdew2ng9EBAnZ62jagG9MHAOdxpDi/lWBFJ/A==",
+ "dev": true,
+ "requires": {
+ "camelcase-keys": "^4.0.0",
+ "decamelize-keys": "^1.0.0",
+ "loud-rejection": "^1.0.0",
+ "minimist": "^1.1.3",
+ "minimist-options": "^3.0.1",
+ "normalize-package-data": "^2.3.4",
+ "read-pkg-up": "^3.0.0",
+ "redent": "^2.0.0",
+ "trim-newlines": "^2.0.0"
+ },
+ "dependencies": {
+ "minimist": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz",
+ "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=",
+ "dev": true
+ }
+ }
+ },
+ "minimatch": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz",
+ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==",
+ "dev": true,
+ "requires": {
+ "brace-expansion": "^1.1.7"
+ }
+ },
+ "minimist": {
+ "version": "0.0.10",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz",
+ "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=",
+ "dev": true
+ },
+ "minimist-options": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/minimist-options/-/minimist-options-3.0.2.tgz",
+ "integrity": "sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ==",
+ "dev": true,
+ "requires": {
+ "arrify": "^1.0.1",
+ "is-plain-obj": "^1.1.0"
+ }
+ },
+ "modify-values": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/modify-values/-/modify-values-1.0.1.tgz",
+ "integrity": "sha512-xV2bxeN6F7oYjZWTe/YPAy6MN2M+sL4u/Rlm2AHCIVGfo2p1yGmBHQ6vHehl4bRTZBdHu3TSkWdYgkwpYzAGSw==",
+ "dev": true
+ },
+ "neo-async": {
+ "version": "2.6.1",
+ "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.1.tgz",
+ "integrity": "sha512-iyam8fBuCUpWeKPGpaNMetEocMt364qkCsfL9JuhjXX6dRnguRVOfk2GZaDpPjcOKiiXCPINZC1GczQ7iTq3Zw==",
+ "dev": true
+ },
+ "normalize-package-data": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz",
+ "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==",
+ "dev": true,
+ "requires": {
+ "hosted-git-info": "^2.1.4",
+ "resolve": "^1.10.0",
+ "semver": "2 || 3 || 4 || 5",
+ "validate-npm-package-license": "^3.0.1"
+ },
+ "dependencies": {
+ "semver": {
+ "version": "5.7.1",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
+ "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
+ "dev": true
+ }
+ }
+ },
+ "null-check": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/null-check/-/null-check-1.0.0.tgz",
+ "integrity": "sha1-l33/1xdgErnsMNKjnbXPcqBDnt0=",
+ "dev": true
+ },
+ "number-is-nan": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
+ "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=",
+ "dev": true
+ },
+ "object-assign": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
+ "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=",
+ "dev": true
+ },
+ "optimist": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz",
+ "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=",
+ "dev": true,
+ "requires": {
+ "minimist": "~0.0.1",
+ "wordwrap": "~0.0.2"
+ }
+ },
+ "p-limit": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz",
+ "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==",
+ "dev": true,
+ "requires": {
+ "p-try": "^1.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz",
+ "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=",
+ "dev": true,
+ "requires": {
+ "p-limit": "^1.1.0"
+ }
+ },
+ "p-try": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz",
+ "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=",
+ "dev": true
+ },
+ "parse-github-repo-url": {
+ "version": "1.4.1",
+ "resolved": "https://registry.npmjs.org/parse-github-repo-url/-/parse-github-repo-url-1.4.1.tgz",
+ "integrity": "sha1-nn2LslKmy2ukJZUGC3v23z28H1A=",
+ "dev": true
+ },
+ "parse-json": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz",
+ "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=",
+ "dev": true,
+ "requires": {
+ "error-ex": "^1.3.1",
+ "json-parse-better-errors": "^1.0.1"
+ }
+ },
+ "path-exists": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
+ "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
+ "dev": true
+ },
+ "path-parse": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz",
+ "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==",
+ "dev": true
+ },
+ "path-type": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/path-type/-/path-type-3.0.0.tgz",
+ "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==",
+ "dev": true,
+ "requires": {
+ "pify": "^3.0.0"
+ }
+ },
+ "pify": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz",
+ "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=",
+ "dev": true
+ },
+ "pinkie": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz",
+ "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=",
+ "dev": true
+ },
+ "pinkie-promise": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz",
+ "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=",
+ "dev": true,
+ "requires": {
+ "pinkie": "^2.0.0"
+ }
+ },
+ "process-nextick-args": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
+ "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
+ "dev": true
+ },
+ "q": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz",
+ "integrity": "sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc=",
+ "dev": true
+ },
+ "quick-lru": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/quick-lru/-/quick-lru-1.1.0.tgz",
+ "integrity": "sha1-Q2CxfGETatOAeDl/8RQW4Ybc+7g=",
+ "dev": true
+ },
+ "read-pkg": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-3.0.0.tgz",
+ "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=",
+ "dev": true,
+ "requires": {
+ "load-json-file": "^4.0.0",
+ "normalize-package-data": "^2.3.2",
+ "path-type": "^3.0.0"
+ }
+ },
+ "read-pkg-up": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-3.0.0.tgz",
+ "integrity": "sha1-PtSWaF26D4/hGNBpHcUfSh/5bwc=",
+ "dev": true,
+ "requires": {
+ "find-up": "^2.0.0",
+ "read-pkg": "^3.0.0"
+ },
+ "dependencies": {
+ "find-up": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz",
+ "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=",
+ "dev": true,
+ "requires": {
+ "locate-path": "^2.0.0"
+ }
+ }
+ }
+ },
+ "readable-stream": {
+ "version": "3.4.0",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.4.0.tgz",
+ "integrity": "sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==",
+ "dev": true,
+ "requires": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ }
+ },
+ "redent": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/redent/-/redent-2.0.0.tgz",
+ "integrity": "sha1-wbIAe0LVfrE4kHmzyDM2OdXhzKo=",
+ "dev": true,
+ "requires": {
+ "indent-string": "^3.0.0",
+ "strip-indent": "^2.0.0"
+ }
+ },
+ "repeating": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz",
+ "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=",
+ "dev": true,
+ "requires": {
+ "is-finite": "^1.0.0"
+ }
+ },
+ "require-directory": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",
+ "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=",
+ "dev": true
+ },
+ "require-main-filename": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz",
+ "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==",
+ "dev": true
+ },
+ "resolve": {
+ "version": "1.12.0",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.12.0.tgz",
+ "integrity": "sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w==",
+ "dev": true,
+ "requires": {
+ "path-parse": "^1.0.6"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.0.tgz",
+ "integrity": "sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg==",
+ "dev": true
+ },
+ "semver": {
+ "version": "6.3.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",
+ "dev": true
+ },
+ "set-blocking": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
+ "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=",
+ "dev": true
+ },
+ "signal-exit": {
+ "version": "3.0.2",
+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz",
+ "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=",
+ "dev": true
+ },
+ "source-map": {
+ "version": "0.6.1",
+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
+ "dev": true
+ },
+ "spdx-correct": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz",
+ "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==",
+ "dev": true,
+ "requires": {
+ "spdx-expression-parse": "^3.0.0",
+ "spdx-license-ids": "^3.0.0"
+ }
+ },
+ "spdx-exceptions": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz",
+ "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==",
+ "dev": true
+ },
+ "spdx-expression-parse": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz",
+ "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==",
+ "dev": true,
+ "requires": {
+ "spdx-exceptions": "^2.1.0",
+ "spdx-license-ids": "^3.0.0"
+ }
+ },
+ "spdx-license-ids": {
+ "version": "3.0.5",
+ "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz",
+ "integrity": "sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q==",
+ "dev": true
+ },
+ "split": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz",
+ "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==",
+ "dev": true,
+ "requires": {
+ "through": "2"
+ }
+ },
+ "split2": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz",
+ "integrity": "sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw==",
+ "dev": true,
+ "requires": {
+ "through2": "^2.0.2"
+ },
+ "dependencies": {
+ "readable-stream": {
+ "version": "2.3.6",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz",
+ "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==",
+ "dev": true,
+ "requires": {
+ "core-util-is": "~1.0.0",
+ "inherits": "~2.0.3",
+ "isarray": "~1.0.0",
+ "process-nextick-args": "~2.0.0",
+ "safe-buffer": "~5.1.1",
+ "string_decoder": "~1.1.1",
+ "util-deprecate": "~1.0.1"
+ }
+ },
+ "safe-buffer": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
+ "dev": true
+ },
+ "string_decoder": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
+ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.1.0"
+ }
+ },
+ "through2": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz",
+ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==",
+ "dev": true,
+ "requires": {
+ "readable-stream": "~2.3.6",
+ "xtend": "~4.0.1"
+ }
+ }
+ }
+ },
+ "standard-version": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/standard-version/-/standard-version-7.0.0.tgz",
+ "integrity": "sha512-pbFXM9vutnxTkSGkqSWQeYCMYqWmFBaLUNdEc/sJDQnMgwB0Csw3CZeeDhi62VoVS3P8mQiYbvXGZWyOBWxUbw==",
+ "dev": true,
+ "requires": {
+ "chalk": "2.4.2",
+ "conventional-changelog": "3.1.9",
+ "conventional-changelog-config-spec": "2.0.0",
+ "conventional-recommended-bump": "6.0.0",
+ "detect-indent": "6.0.0",
+ "detect-newline": "3.0.0",
+ "dotgitignore": "2.1.0",
+ "figures": "3.0.0",
+ "find-up": "4.1.0",
+ "fs-access": "1.0.1",
+ "git-semver-tags": "3.0.0",
+ "semver": "6.3.0",
+ "stringify-package": "1.0.0",
+ "yargs": "13.3.0"
+ }
+ },
+ "string-width": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz",
+ "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==",
+ "dev": true,
+ "requires": {
+ "emoji-regex": "^7.0.1",
+ "is-fullwidth-code-point": "^2.0.0",
+ "strip-ansi": "^5.1.0"
+ }
+ },
+ "string_decoder": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
+ "dev": true,
+ "requires": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "stringify-package": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/stringify-package/-/stringify-package-1.0.0.tgz",
+ "integrity": "sha512-JIQqiWmLiEozOC0b0BtxZ/AOUtdUZHCBPgqIZ2kSJJqGwgb9neo44XdTHUC4HZSGqi03hOeB7W/E8rAlKnGe9g==",
+ "dev": true
+ },
+ "strip-ansi": {
+ "version": "5.2.0",
+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
+ "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==",
+ "dev": true,
+ "requires": {
+ "ansi-regex": "^4.1.0"
+ }
+ },
+ "strip-bom": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",
+ "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=",
+ "dev": true
+ },
+ "strip-indent": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-2.0.0.tgz",
+ "integrity": "sha1-XvjbKV0B5u1sv3qrlpmNeCJSe2g=",
+ "dev": true
+ },
+ "supports-color": {
+ "version": "5.5.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
+ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==",
+ "dev": true,
+ "requires": {
+ "has-flag": "^3.0.0"
+ }
+ },
+ "text-extensions": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/text-extensions/-/text-extensions-2.0.0.tgz",
+ "integrity": "sha512-F91ZqLgvi1E0PdvmxMgp+gcf6q8fMH7mhdwWfzXnl1k+GbpQDmi8l7DzLC5JTASKbwpY3TfxajAUzAXcv2NmsQ==",
+ "dev": true
+ },
+ "through": {
+ "version": "2.3.8",
+ "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
+ "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=",
+ "dev": true
+ },
+ "through2": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/through2/-/through2-3.0.1.tgz",
+ "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==",
+ "dev": true,
+ "requires": {
+ "readable-stream": "2 || 3"
+ }
+ },
+ "trim-newlines": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-2.0.0.tgz",
+ "integrity": "sha1-tAPQuRvlDDMd/EuC7s6yLD3hbSA=",
+ "dev": true
+ },
+ "trim-off-newlines": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz",
+ "integrity": "sha1-n5up2e+odkw4dpi8v+sshI8RrbM=",
+ "dev": true
+ },
+ "typedarray": {
+ "version": "0.0.6",
+ "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz",
+ "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=",
+ "dev": true
+ },
+ "uglify-js": {
+ "version": "3.6.7",
+ "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.6.7.tgz",
+ "integrity": "sha512-4sXQDzmdnoXiO+xvmTzQsfIiwrjUCSA95rSP4SEd8tDb51W2TiDOlL76Hl+Kw0Ie42PSItCW8/t6pBNCF2R48A==",
+ "dev": true,
+ "optional": true,
+ "requires": {
+ "commander": "~2.20.3",
+ "source-map": "~0.6.1"
+ }
+ },
+ "util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=",
+ "dev": true
+ },
+ "validate-npm-package-license": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",
+ "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==",
+ "dev": true,
+ "requires": {
+ "spdx-correct": "^3.0.0",
+ "spdx-expression-parse": "^3.0.0"
+ }
+ },
+ "which-module": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz",
+ "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=",
+ "dev": true
+ },
+ "wordwrap": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz",
+ "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=",
+ "dev": true
+ },
+ "wrap-ansi": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-5.1.0.tgz",
+ "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==",
+ "dev": true,
+ "requires": {
+ "ansi-styles": "^3.2.0",
+ "string-width": "^3.0.0",
+ "strip-ansi": "^5.0.0"
+ }
+ },
+ "xtend": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
+ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
+ "dev": true
+ },
+ "y18n": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.0.tgz",
+ "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==",
+ "dev": true
+ },
+ "yargs": {
+ "version": "13.3.0",
+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-13.3.0.tgz",
+ "integrity": "sha512-2eehun/8ALW8TLoIl7MVaRUrg+yCnenu8B4kBlRxj3GJGDKU1Og7sMXPNm1BYyM1DOJmTZ4YeN/Nwxv+8XJsUA==",
+ "dev": true,
+ "requires": {
+ "cliui": "^5.0.0",
+ "find-up": "^3.0.0",
+ "get-caller-file": "^2.0.1",
+ "require-directory": "^2.1.1",
+ "require-main-filename": "^2.0.0",
+ "set-blocking": "^2.0.0",
+ "string-width": "^3.0.0",
+ "which-module": "^2.0.0",
+ "y18n": "^4.0.0",
+ "yargs-parser": "^13.1.1"
+ },
+ "dependencies": {
+ "find-up": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz",
+ "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==",
+ "dev": true,
+ "requires": {
+ "locate-path": "^3.0.0"
+ }
+ },
+ "locate-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz",
+ "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==",
+ "dev": true,
+ "requires": {
+ "p-locate": "^3.0.0",
+ "path-exists": "^3.0.0"
+ }
+ },
+ "p-limit": {
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz",
+ "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==",
+ "dev": true,
+ "requires": {
+ "p-try": "^2.0.0"
+ }
+ },
+ "p-locate": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz",
+ "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==",
+ "dev": true,
+ "requires": {
+ "p-limit": "^2.0.0"
+ }
+ },
+ "p-try": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",
+ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",
+ "dev": true
+ }
+ }
+ },
+ "yargs-parser": {
+ "version": "13.1.1",
+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-13.1.1.tgz",
+ "integrity": "sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ==",
+ "dev": true,
+ "requires": {
+ "camelcase": "^5.0.0",
+ "decamelize": "^1.2.0"
+ },
+ "dependencies": {
+ "camelcase": {
+ "version": "5.3.1",
+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",
+ "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",
+ "dev": true
+ }
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..d88a537
--- /dev/null
+++ b/package.json
@@ -0,0 +1,29 @@
+{
+ "name": "bootstrap-tourist",
+ "version": "0.3.1",
+ "description": "Quick and easy way to build your product tours with Bootstrap Popovers for Bootstrap 3 and 4",
+ "main": "bootstrap-tourist.js",
+ "scripts": {
+ "test": "echo \"Error: no test specified\" && exit 1",
+ "release": "standard-version"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/IGreatlyDislikeJavascript/bootstrap-tourist.git"
+ },
+ "keywords": [
+ "bootstrap",
+ "tour",
+ "js"
+ ],
+ "author": "IGreatlyDislikeJavascript",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/IGreatlyDislikeJavascript/bootstrap-tourist/issues"
+ },
+ "homepage": "https://github.com/IGreatlyDislikeJavascript/bootstrap-tourist#readme",
+ "devDependencies": {
+ "standard-version": "^7.0.0"
+ },
+ "dependencies": {}
+}