@react-spring/shared
Advanced tools
Comparing version 9.2.1 to 9.2.2
@@ -1,4 +0,5 @@ | ||
import { raf } from 'rafz'; | ||
import { raf } from '@react-spring/rafz'; | ||
import { OneOrMore, InterpolatorConfig, InterpolatorArgs } from '@react-spring/types'; | ||
import { Rafz } from 'packages/rafz'; | ||
import { FluidValue } from './fluids'; | ||
import { OneOrMore, InterpolatorConfig, InterpolatorArgs } from '@react-spring/types'; | ||
import type { OpaqueAnimation } from './FrameLoop'; | ||
@@ -29,3 +30,5 @@ export declare let createStringInterpolator: (config: InterpolatorConfig<string>) => (input: number) => string; | ||
willAdvance?: typeof willAdvance; | ||
/** sets the global frameLoop setting for the global raf instance */ | ||
frameLoop?: Rafz['frameLoop']; | ||
} | ||
export declare const assign: (globals: AnimatedGlobals) => void; |
@@ -18,3 +18,3 @@ import * as Globals from './globals'; | ||
export * from './fluids'; | ||
export { raf } from 'rafz'; | ||
export type { Timeout } from 'rafz'; | ||
export { raf } from '@react-spring/rafz'; | ||
export type { Timeout } from '@react-spring/rafz'; |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var rafz = require('rafz'); | ||
var rafz = require('@react-spring/rafz'); | ||
var React = require('react'); | ||
@@ -88,2 +88,3 @@ | ||
if (globals.willAdvance) willAdvance = globals.willAdvance; | ||
if (globals.frameLoop) rafz.raf.frameLoop = globals.frameLoop; | ||
}; | ||
@@ -554,2 +555,5 @@ | ||
constructor(get) { | ||
this[$get] = void 0; | ||
this[$observers] = void 0; | ||
if (!get && !(get = this.get)) { | ||
@@ -556,0 +560,0 @@ throw Error('Unknown getter'); |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var rafz = require('rafz'); | ||
var rafz = require('@react-spring/rafz'); | ||
var React = require('react'); | ||
@@ -88,2 +88,3 @@ | ||
if (globals.willAdvance) willAdvance = globals.willAdvance; | ||
if (globals.frameLoop) rafz.raf.frameLoop = globals.frameLoop; | ||
}; | ||
@@ -554,2 +555,5 @@ | ||
constructor(get) { | ||
this[$get] = void 0; | ||
this[$observers] = void 0; | ||
if (!get && !(get = this.get)) { | ||
@@ -556,0 +560,0 @@ throw Error('Unknown getter'); |
@@ -1,3 +0,3 @@ | ||
import { raf } from 'rafz'; | ||
export { raf } from 'rafz'; | ||
import { raf } from '@react-spring/rafz'; | ||
export { raf } from '@react-spring/rafz'; | ||
import * as React from 'react'; | ||
@@ -63,2 +63,3 @@ import { useEffect, useState, useRef } from 'react'; | ||
if (globals.willAdvance) willAdvance = globals.willAdvance; | ||
if (globals.frameLoop) raf.frameLoop = globals.frameLoop; | ||
}; | ||
@@ -529,2 +530,5 @@ | ||
constructor(get) { | ||
this[$get] = void 0; | ||
this[$observers] = void 0; | ||
if (!get && !(get = this.get)) { | ||
@@ -531,0 +535,0 @@ throw Error('Unknown getter'); |
{ | ||
"name": "@react-spring/shared", | ||
"version": "9.2.1", | ||
"version": "9.2.2", | ||
"description": "Globals and shared modules", | ||
@@ -31,4 +31,4 @@ "main": "dist/react-spring-shared.cjs.js", | ||
"dependencies": { | ||
"@react-spring/types": "~9.2.0", | ||
"rafz": "^0.1.13" | ||
"@react-spring/rafz": "~9.2.0", | ||
"@react-spring/types": "~9.2.0" | ||
}, | ||
@@ -35,0 +35,0 @@ "peerDependencies": { |
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
79839
2379
26
+ Added@react-spring/rafz@~9.2.0
+ Added@react-spring/rafz@9.2.6(transitive)
- Removedrafz@^0.1.13
- Removedrafz@0.1.14(transitive)