@react-spring/konva
Advanced tools
Comparing version 9.0.0-canary.808.14.192785c to 9.0.0-canary.808.15.d4e5904
@@ -20,3 +20,3 @@ import { ElementType, ForwardRefExoticComponent, CSSProperties } from 'react'; | ||
declare type AnimatedProps<Props extends object> = { | ||
[P in keyof Props]: (P extends 'ref' | 'key' ? Props[P] : AnimatedProp<Props[P]>); | ||
[P in keyof Props]: P extends 'ref' | 'key' ? Props[P] : AnimatedProp<Props[P]>; | ||
}; | ||
@@ -32,4 +32,4 @@ declare type AnimatedProp<T> = [T, T] extends [infer T, infer DT] ? [DT] extends [never] ? never : DT extends void ? undefined : DT extends object ? [AssignableKeys<DT, CSSProperties>] extends [never] ? DT extends ReadonlyArray<any> ? AnimatedStyles<DT> : DT : AnimatedStyle<T> : DT | AnimatedLeaf<T> : never; | ||
} : DT | AnimatedLeaf<T> : never; | ||
declare type AnimatedLeaf<T> = [T] extends [object] ? never : FluidValue<Exclude<T, object | void>>; | ||
declare type AnimatedLeaf<T> = Exclude<T, object | void> | Extract<T, ReadonlyArray<number | string>> extends infer U ? [U] extends [never] ? never : FluidValue<U | Exclude<T, object | void>> : never; | ||
export { AnimatedComponent, AnimatedProps, animated as a, animated }; |
{ | ||
"name": "@react-spring/konva", | ||
"version": "9.0.0-canary.808.14.192785c", | ||
"version": "9.0.0-canary.808.15.d4e5904", | ||
"description": "Cross-platform animation engine for React", | ||
@@ -31,5 +31,5 @@ "keywords": [ | ||
"@babel/runtime": "^7.3.1", | ||
"@react-spring/animated": "9.0.0-canary.808.14.192785c", | ||
"@react-spring/core": "9.0.0-canary.808.14.192785c", | ||
"@react-spring/shared": "9.0.0-canary.808.14.192785c" | ||
"@react-spring/animated": "9.0.0-canary.808.15.d4e5904", | ||
"@react-spring/core": "9.0.0-canary.808.15.d4e5904", | ||
"@react-spring/shared": "9.0.0-canary.808.15.d4e5904" | ||
}, | ||
@@ -36,0 +36,0 @@ "devDependencies": { |
@@ -34,5 +34,5 @@ import { CSSProperties, ForwardRefExoticComponent } from 'react' | ||
export type AnimatedProps<Props extends object> = { | ||
[P in keyof Props]: (P extends 'ref' | 'key' | ||
[P in keyof Props]: P extends 'ref' | 'key' | ||
? Props[P] | ||
: AnimatedProp<Props[P]>) | ||
: AnimatedProp<Props[P]> | ||
} | ||
@@ -79,5 +79,9 @@ | ||
// An animated value that is not an object | ||
type AnimatedLeaf<T> = [T] extends [object] | ||
? never | ||
: FluidValue<Exclude<T, object | void>> | ||
// An animated primitive (or an array of them) | ||
type AnimatedLeaf<T> = | ||
| Exclude<T, object | void> | ||
| Extract<T, ReadonlyArray<number | string>> extends infer U | ||
? [U] extends [never] | ||
? never | ||
: FluidValue<U | Exclude<T, object | void>> | ||
: never |
Sorry, the diff of this file is not supported yet
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
12159
198
+ Added@react-spring/animated@9.0.0-canary.808.15.d4e5904(transitive)
+ Added@react-spring/core@9.0.0-canary.808.15.d4e5904(transitive)
+ Added@react-spring/shared@9.0.0-canary.808.15.d4e5904(transitive)
- Removed@react-spring/animated@9.0.0-canary.808.14.192785c(transitive)
- Removed@react-spring/core@9.0.0-canary.808.14.192785c(transitive)
- Removed@react-spring/shared@9.0.0-canary.808.14.192785c(transitive)