@react-spring/animated
Advanced tools
Comparing version 9.0.0-canary.808.14.192785c to 9.0.0-canary.808.15.d4e5904
@@ -439,3 +439,3 @@ 'use strict'; | ||
// re-rendered on every animation frame. | ||
!shared.is.fun(Component) || Component.prototype.isReactComponent; | ||
!shared.is.fun(Component) || Component.prototype && Component.prototype.isReactComponent; | ||
var forceUpdate = shared.useForceUpdate(); | ||
@@ -491,4 +491,6 @@ var props = new AnimatedProps(function () { | ||
var extendAnimated = function extendAnimated(withAnimated, components, lowercase) { | ||
components.forEach(function (Component) { | ||
var key = getDisplayName(Component); | ||
shared.each(components, function (Component, key) { | ||
if (!shared.is.str(key)) { | ||
key = getDisplayName(Component); | ||
} | ||
@@ -495,0 +497,0 @@ if (lowercase) { |
@@ -126,3 +126,5 @@ import { FluidValue, Indexable, FluidObserver, FluidEvent, ElementType } from '@react-spring/shared'; | ||
*/ | ||
declare const extendAnimated: (withAnimated: WithAnimated, components: AnimatableComponent[], lowercase?: boolean | undefined) => any; | ||
declare const extendAnimated: (withAnimated: WithAnimated, components: { | ||
[key: string]: AnimatableComponent; | ||
} | AnimatableComponent[], lowercase?: boolean | undefined) => any; | ||
@@ -129,0 +131,0 @@ declare type AnimatedType<T = any> = Function & { |
@@ -325,3 +325,3 @@ import { defineHidden, each, getFluidConfig, Globals, is, createInterpolator, isAnimatedString, useForceUpdate } from '@react-spring/shared'; | ||
// re-rendered on every animation frame. | ||
!is.fun(Component) || Component.prototype.isReactComponent; | ||
!is.fun(Component) || Component.prototype && Component.prototype.isReactComponent; | ||
const forceUpdate = useForceUpdate(); | ||
@@ -370,4 +370,6 @@ const props = new AnimatedProps(() => { | ||
const extendAnimated = (withAnimated, components, lowercase) => { | ||
components.forEach(Component => { | ||
let key = getDisplayName(Component); | ||
each(components, (Component, key) => { | ||
if (!is.str(key)) { | ||
key = getDisplayName(Component); | ||
} | ||
@@ -374,0 +376,0 @@ if (lowercase) { |
{ | ||
"name": "@react-spring/animated", | ||
"version": "9.0.0-canary.808.14.192785c", | ||
"version": "9.0.0-canary.808.15.d4e5904", | ||
"description": "Animated component props for React", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"@babel/runtime": "^7.3.1", | ||
"@react-spring/shared": "9.0.0-canary.808.14.192785c", | ||
"@react-spring/shared": "9.0.0-canary.808.15.d4e5904", | ||
"react-layout-effect": "^1.0.1" | ||
@@ -34,0 +34,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
64809
1255
+ Added@react-spring/shared@9.0.0-canary.808.15.d4e5904(transitive)
- Removed@react-spring/shared@9.0.0-canary.808.14.192785c(transitive)