react-groove
Advanced tools
Comparing version 0.1.1 to 0.2.0
12
index.js
@@ -10,3 +10,3 @@ 'use strict'; | ||
var Workflow = function Workflow(_ref) { | ||
var Groove = function Groove(_ref) { | ||
var children = _ref.children, | ||
@@ -18,3 +18,3 @@ _ref$step = _ref.step, | ||
Workflow.Step = function (_ref2) { | ||
Groove.Step = function (_ref2) { | ||
var children = _ref2.children; | ||
@@ -107,3 +107,3 @@ return React__default.createElement(React__default.Fragment, null, children); | ||
function useWorkflow(steps) { | ||
function useGroove(steps) { | ||
var initialState = React.useMemo(function () { | ||
@@ -125,3 +125,3 @@ return isNaN(steps) ? steps[0]() : {}; | ||
var next = React.useCallback(function () { | ||
if (state.active >= length - 1) return; // consider implicit reset at end? | ||
if (state.active >= length - 1) return; // consider implicit reset at end? | ||
@@ -150,3 +150,3 @@ dispatch(state.active + 1); | ||
exports.Workflow = Workflow; | ||
exports.useWorkflow = useWorkflow; | ||
exports.Groove = Groove; | ||
exports.useGroove = useGroove; |
{ | ||
"name": "react-groove", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Simple and reusable React procedures", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
5125