@lottiefiles/dotlottie-react
Advanced tools
Comparing version 0.2.6 to 0.3.0
@@ -1,3 +0,16 @@ | ||
export { DotLottieComponentProps, DotLottieReact } from './dotlottie.js'; | ||
export { DotLottie } from '@lottiefiles/dotlottie-web'; | ||
import 'react'; | ||
import { Config, DotLottie } from '@lottiefiles/dotlottie-web'; | ||
export * from '@lottiefiles/dotlottie-web'; | ||
import { ComponentProps, RefCallback } from 'react'; | ||
/** | ||
* Copyright 2023 Design Barn Inc. | ||
*/ | ||
type DotLottieReactProps = Omit<Config, 'canvas'> & ComponentProps<'canvas'> & { | ||
autoResizeCanvas?: boolean; | ||
dotLottieRefCallback?: RefCallback<DotLottie>; | ||
playOnHover?: boolean; | ||
}; | ||
declare const DotLottieReact: ({ autoResizeCanvas, autoplay, backgroundColor, data, dotLottieRefCallback, loop, mode, playOnHover, renderConfig, segments, speed, src, useFrameInterpolation, ...props }: DotLottieReactProps) => JSX.Element; | ||
export { DotLottieReact, type DotLottieReactProps }; |
{ | ||
"name": "@lottiefiles/dotlottie-react", | ||
"version": "0.2.6", | ||
"version": "0.3.0", | ||
"type": "module", | ||
@@ -43,2 +43,3 @@ "description": "React wrapper around the dotlottie-web library", | ||
"dependencies": { | ||
"debounce": "^2.0.0", | ||
"@lottiefiles/dotlottie-web": "0.14.1" | ||
@@ -45,0 +46,0 @@ }, |
@@ -88,2 +88,3 @@ # @lottiefiles/dotlottie-react | ||
| `useFrameInterpolation` | boolean | | true | Determines if the animation should update on subframes. If set to false, the original AE frame rate will be maintained. If set to true, it will refresh at each requestAnimationFrame, including intermediate values. The default setting is true. | | | ||
| `autoResizeCanvas` | boolean | | true | Determines if the canvas should resize automatically to its container | | | ||
@@ -90,0 +91,0 @@ #### RenderConfig |
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
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
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
248
6
90961
4
5
1875
+ Addeddebounce@^2.0.0
+ Addeddebounce@2.2.0(transitive)