Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-joyride

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-joyride - npm Package Compare versions

Comparing version 0.7.2 to 0.7.3

46

lib/scripts/Mixin.js

@@ -19,2 +19,3 @@ var React = require('react/addons'),

options: {
debug: false,
keyboardNavigation: true,

@@ -328,2 +329,8 @@ locale: {

return newSteps;
},
log: function (items) {
if (this.options.debug) {
console.log(items);
}
}

@@ -343,2 +350,6 @@ };

if (joyride.options.debug) {
joyride.log(['joyride:initialized']);
}
this._target = document.createElement('div');

@@ -401,2 +412,6 @@ this._target.className = 'joyride';

if (joyride.options.debug) {
joyride.log(['joyrideStart', 'autorun:', autorun]);
}
this.setState({

@@ -416,2 +431,7 @@ _joyrideShowTooltip: autorun,

if (joyride.options.debug) {
joyride.log(['joyrideAddSteps', 'steps:', steps, 'start:', start]);
}
joyride.steps = joyride.steps.concat(joyride.parseSteps(steps));

@@ -433,2 +453,6 @@

if (joyride.options.debug) {
joyride.log(['joyrideReplaceSteps', 'steps:', steps, 'restart:', restart]);
}
joyride.steps = joyride.parseSteps(steps);

@@ -451,2 +475,6 @@ joyride.skipped = false;

joyrideGetProgress: function () {
if (joyride.options.debug) {
joyride.log(['joyrideGetProgress', 'steps:', joyride.steps]);
}
return {

@@ -464,2 +492,5 @@ index: this.state._joyrideCurrentIndex,

joyrideSetOptions: function (opts) {
if (joyride.options.debug) {
joyride.log(['joyrideSetOptions', 'opts:', opts]);
}
Object.keys(joyride.options).forEach(function (o) {

@@ -473,4 +504,8 @@ if (opts[o] !== undefined) {

_joyrideRenderLayer: function () {
if (joyride.options.debug) {
joyride.log(['_joyrideRenderLayer', 'step:', joyride.steps[this.state._joyrideCurrentIndex]]);
}
var state = this.state,
component = this._joyrideRenderStep();
component = this._joyrideRenderComponent();

@@ -491,6 +526,9 @@ if (!joyride.initialized) {

_joyrideUnrenderLayer: function () {
if (joyride.options.debug) {
joyride.log(['_joyrideUnrenderLayer']);
}
React.unmountComponentAtNode(this._target);
},
_joyrideRenderStep: function () {
_joyrideRenderComponent: function () {
var state = this.state,

@@ -505,2 +543,6 @@ component,

if (joyride.options.debug) {
joyride.log(['_joyrideRenderComponent', 'stage:', state._joyrideShowTooltip ? 'Tooltip' : 'Beacon']);
}
if (target) {

@@ -507,0 +549,0 @@ if (state._joyrideShowTooltip) {

2

package.json
{
"name": "react-joyride",
"version": "0.7.2",
"version": "0.7.3",
"description": "Create walkthroughs and guided tours for your apps",

@@ -5,0 +5,0 @@ "author": "Gil Barbara <gilbarbara@gmail.com>",

React Joyride
===
<a href="https://www.npmjs.com/package/react-joyride" target="_blank">![](https://badge.fury.io/js/react-joyride.svg)</a> <a href="https://travis-ci.org/gilbarbara/react-joyride" target="_blank">![](https://travis-ci.org/gilbarbara/react-joyride.svg)</a>
<a href="https://codeclimate.com/github/gilbarbara/react-joyride">![](https://codeclimate.com/github/gilbarbara/react-joyride/badges/gpa.svg)</a>
<a href="https://www.npmjs.com/package/react-joyride" target="_blank">![](https://badge.fury.io/js/react-joyride.svg)</a> <a href="https://travis-ci.org/gilbarbara/react-joyride" target="_blank">![](https://travis-ci.org/gilbarbara/react-joyride.svg)</a> <a href="https://codeclimate.com/github/gilbarbara/react-joyride">![](https://codeclimate.com/github/gilbarbara/react-joyride/badges/gpa.svg)</a> <a href="https://gitter.im/gilbarbara/react-joyride?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge">![Join the chat at https://gitter.im/gilbarbara/react-joyride](https://badges.gitter.im/Join%20Chat.svg)</a>

@@ -94,2 +93,4 @@ <a href="http://gilbarbara.github.io/react-joyride/" target="_blank">![](http://gilbarbara.github.io/react-joyride/media/example.png)</a>

**debug** {bool}: Console.log Joyride's inner actions. Defaults to `false`
Example:

@@ -96,0 +97,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc