@react-spring/core
Advanced tools
Comparing version 9.4.5 to 9.5.0
@@ -13,3 +13,3 @@ export * from './hooks'; | ||
export { BailSignal } from './runAsync'; | ||
export { createInterpolator } from '@react-spring/shared'; | ||
export { createInterpolator, useIsomorphicLayoutEffect, useReducedMotion, } from '@react-spring/shared'; | ||
export { inferTo } from './helpers'; | ||
@@ -16,0 +16,0 @@ export * from './types'; |
@@ -1,3 +0,3 @@ | ||
import { eachProp, is, toArray, isAnimatedString, Globals, getFluidValue, useLayoutEffect, each, raf, flush, FluidValue, deprecateInterpolate, callFluidObservers, frameLoop, hasFluidValue, flushCalls, isEqual, getFluidObservers, addFluidObserver, removeFluidObserver, noop, useMemoOne, deprecateDirectCall, useForceUpdate, usePrev, useOnce, createInterpolator, createStringInterpolator } from '@react-spring/shared'; | ||
export { Globals, createInterpolator } from '@react-spring/shared'; | ||
import { eachProp, is, toArray, isAnimatedString, Globals, getFluidValue, useIsomorphicLayoutEffect, each, raf, flush, FluidValue, deprecateInterpolate, callFluidObservers, frameLoop, hasFluidValue, flushCalls, isEqual, getFluidObservers, addFluidObserver, removeFluidObserver, noop, useMemoOne, deprecateDirectCall, useForceUpdate, usePrev, useOnce, createInterpolator, createStringInterpolator } from '@react-spring/shared'; | ||
export { Globals, createInterpolator, useIsomorphicLayoutEffect, useReducedMotion } from '@react-spring/shared'; | ||
import * as React from 'react'; | ||
@@ -152,3 +152,3 @@ import { useContext, useMemo, useRef, useState } from 'react'; | ||
function useChain(refs, timeSteps, timeFrame = 1000) { | ||
useLayoutEffect(() => { | ||
useIsomorphicLayoutEffect(() => { | ||
if (timeSteps) { | ||
@@ -1999,3 +1999,3 @@ let prevDelay = 0; | ||
const hasContext = context !== prevContext && hasProps(context); | ||
useLayoutEffect(() => { | ||
useIsomorphicLayoutEffect(() => { | ||
layoutId.current++; | ||
@@ -2065,3 +2065,3 @@ state.ctrls = ctrls.current; | ||
const ref = (_passedRef = passedRef) != null ? _passedRef : result[1]; | ||
useLayoutEffect(() => { | ||
useIsomorphicLayoutEffect(() => { | ||
each(ref.current, (ctrl, i) => { | ||
@@ -2140,3 +2140,3 @@ const parent = ref.current[i + (reverse ? 1 : -1)]; | ||
const prevTransitions = reset ? null : usedTransitions.current; | ||
useLayoutEffect(() => { | ||
useIsomorphicLayoutEffect(() => { | ||
usedTransitions.current = transitions; | ||
@@ -2168,3 +2168,3 @@ }); | ||
const expired = reset && usedTransitions.current || []; | ||
useLayoutEffect(() => each(expired, ({ | ||
useIsomorphicLayoutEffect(() => each(expired, ({ | ||
ctrl, | ||
@@ -2343,3 +2343,3 @@ item, | ||
const hasContext = context !== prevContext && hasProps(context); | ||
useLayoutEffect(() => { | ||
useIsomorphicLayoutEffect(() => { | ||
if (hasContext) { | ||
@@ -2359,3 +2359,3 @@ each(transitions, t => { | ||
}); | ||
useLayoutEffect(() => { | ||
useIsomorphicLayoutEffect(() => { | ||
each(exitingTransitions.current.size ? exitingTransitions.current : changes, ({ | ||
@@ -2362,0 +2362,0 @@ phase, |
{ | ||
"name": "@react-spring/core", | ||
"version": "9.4.5", | ||
"version": "9.5.0", | ||
"main": "dist/react-spring-core.cjs.js", | ||
@@ -34,6 +34,6 @@ "module": "dist/react-spring-core.esm.js", | ||
"dependencies": { | ||
"@react-spring/animated": "~9.4.5", | ||
"@react-spring/rafz": "~9.4.5", | ||
"@react-spring/shared": "~9.4.5", | ||
"@react-spring/types": "~9.4.5" | ||
"@react-spring/animated": "~9.5.0", | ||
"@react-spring/rafz": "~9.5.0", | ||
"@react-spring/shared": "~9.5.0", | ||
"@react-spring/types": "~9.5.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
264974
8159
+ Added@react-spring/animated@9.5.5(transitive)
+ Added@react-spring/rafz@9.5.5(transitive)
+ Added@react-spring/shared@9.5.5(transitive)
+ Added@react-spring/types@9.5.5(transitive)
- Removed@react-spring/animated@9.4.5(transitive)
- Removed@react-spring/rafz@9.4.5(transitive)
- Removed@react-spring/shared@9.4.5(transitive)
- Removed@react-spring/types@9.4.5(transitive)
Updated@react-spring/rafz@~9.5.0
Updated@react-spring/shared@~9.5.0
Updated@react-spring/types@~9.5.0