react-dynamic-help
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -188,2 +188,6 @@ "use strict"; | ||
(0, DynamicHelp_1.log)(this.props.debug, "Enabling flow:", flowId, enable); | ||
if (!this.systemState.flows[flowId]) { | ||
console.error("Unrecogised help flow:", flowId); | ||
return; | ||
} | ||
const flow = this.systemState.flows[flowId]; | ||
@@ -198,2 +202,6 @@ const initialItem = flow.items[0]; | ||
(0, DynamicHelp_1.log)(this.props.debug, "Trigger flow:", flowId); | ||
if (!this.systemState.userState.flows[flowId]) { | ||
console.error("Unrecogised help flow:", flowId); | ||
return; | ||
} | ||
if (!this.systemState.userState.flows[flowId].seen) { | ||
@@ -200,0 +208,0 @@ this.enableFlow(flowId, true); |
@@ -162,2 +162,6 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime"; | ||
log(this.props.debug, "Enabling flow:", flowId, enable); | ||
if (!this.systemState.flows[flowId]) { | ||
console.error("Unrecogised help flow:", flowId); | ||
return; | ||
} | ||
const flow = this.systemState.flows[flowId]; | ||
@@ -172,2 +176,6 @@ const initialItem = flow.items[0]; | ||
log(this.props.debug, "Trigger flow:", flowId); | ||
if (!this.systemState.userState.flows[flowId]) { | ||
console.error("Unrecogised help flow:", flowId); | ||
return; | ||
} | ||
if (!this.systemState.userState.flows[flowId].seen) { | ||
@@ -174,0 +182,0 @@ this.enableFlow(flowId, true); |
{ | ||
"name": "react-dynamic-help", | ||
"description": "React Dynamic Help - Create flows of helpful popups in your React App", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -10,3 +10,3 @@ # react-dynamic-help | ||
V 2.2.0 - As integrated with [online-go.com](https://online-go.com). | ||
V 2.3.0 - As integrated with [online-go.com](https://online-go.com). | ||
@@ -13,0 +13,0 @@ Demo at https://github.com/GreenAsJade/react-dynamic-help-demo |
119319
2573