react-joyride
Advanced tools
Comparing version 2.0.0-12 to 2.0.0-13
{ | ||
"name": "react-joyride", | ||
"version": "2.0.0-12", | ||
"version": "2.0.0-13", | ||
"description": "Create walkthroughs and guided tours for your apps", | ||
@@ -5,0 +5,0 @@ "author": "Gil Barbara <gilbarbara@gmail.com>", |
@@ -142,3 +142,2 @@ import React from 'react'; | ||
const stepIndexChanged = is.number(nextStepIndex) && changed('stepIndex'); | ||
let shouldStart = false; | ||
@@ -148,3 +147,3 @@ /* istanbul ignore else */ | ||
if (run) { | ||
shouldStart = true; | ||
start(nextStepIndex); | ||
} | ||
@@ -155,5 +154,2 @@ else { | ||
} | ||
if (shouldStart) { | ||
start(); | ||
} | ||
@@ -208,2 +204,4 @@ if (stepsChanged) { | ||
let currentIndex = index; | ||
if (changed('status')) { | ||
@@ -216,2 +214,3 @@ let type = EVENTS.TOUR_STATUS; | ||
step = getMergedStep(steps[prevState.index], this.props); | ||
currentIndex = prevState.index; | ||
} | ||
@@ -224,2 +223,3 @@ else if (changedFrom('status', STATUS.READY, STATUS.RUNNING)) { | ||
...this.state, | ||
index: currentIndex, | ||
step, | ||
@@ -226,0 +226,0 @@ type, |
@@ -66,3 +66,4 @@ // @flow | ||
if (/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)) { | ||
// Safari (and Chrome iOS) | ||
if (/(Version\/([0-9._]+).*Safari|CriOS)/.test(navigator.userAgent)) { | ||
return 'safari'; | ||
@@ -69,0 +70,0 @@ } |
@@ -168,3 +168,3 @@ // @flow | ||
index: is.number(nextIndex) ? nextIndex : index, | ||
}), | ||
}, true), | ||
status: size ? STATUS.RUNNING : STATUS.WAITING, | ||
@@ -171,0 +171,0 @@ }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
225197