Comparing version 1.1.4 to 1.1.5
# Changelog | ||
## v1.1.5 | ||
- Fix an issue where spaces were being passed as children when not asked for. This would result in using things like <Pause> inserting a space! | ||
## v1.1.4 | ||
@@ -4,0 +8,0 @@ |
import React from "react"; | ||
import { memberIsWindup, lastPlayedMember, isUnplayed } from "../Windup"; | ||
import { memberIsWindup, lastPlayedMember, isUnplayed, } from "../Windup"; | ||
const OnChar = ({ children }) => { | ||
@@ -13,3 +13,3 @@ return React.createElement(React.Fragment, null, children); | ||
export function onCharsFromWindup(windup) { | ||
const [_played, remaining, metadata] = windup; | ||
const [, remaining, metadata] = windup; | ||
const lastPlayed = lastPlayedMember(windup); | ||
@@ -16,0 +16,0 @@ const [firstRemaining] = remaining; |
@@ -62,3 +62,3 @@ import React, { useContext, useMemo } from "react"; | ||
...keyProp, | ||
props: {}, | ||
props: { children: undefined }, | ||
pace: () => children.props.ms, | ||
@@ -73,3 +73,3 @@ }), | ||
element: children.type, | ||
props: restProps, | ||
props: { ...restProps, children: undefined }, | ||
...keyProp, | ||
@@ -76,0 +76,0 @@ ...paceMetaData, |
@@ -195,3 +195,3 @@ import React, { useReducer, useRef, useCallback, useEffect, useMemo, useDebugValue, useContext, isValidElement } from 'react'; | ||
function onCharsFromWindup(windup) { | ||
const [_played, remaining, metadata] = windup; | ||
const [, remaining, metadata] = windup; | ||
const lastPlayed = lastPlayedMember(windup); | ||
@@ -444,3 +444,3 @@ const [firstRemaining] = remaining; | ||
...keyProp, | ||
props: {}, | ||
props: { children: undefined }, | ||
pace: () => children.props.ms, | ||
@@ -455,3 +455,3 @@ }), | ||
element: children.type, | ||
props: restProps, | ||
props: { ...restProps, children: undefined }, | ||
...keyProp, | ||
@@ -458,0 +458,0 @@ ...paceMetaData, |
{ | ||
"name": "windups", | ||
"description": "A typewriter effect library for React.", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
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
103183
0