@lottiefiles/dotlottie-react
Advanced tools
Comparing version 0.5.9 to 0.6.0
@@ -16,2 +16,21 @@ import { Config, DotLottie } from '@lottiefiles/dotlottie-web'; | ||
export { DotLottieReact, type DotLottieReactProps }; | ||
/** | ||
* Copyright 2023 Design Barn Inc. | ||
*/ | ||
type DotLottieConfig = Omit<Config, 'canvas'> & { | ||
autoResizeCanvas?: boolean; | ||
playOnHover?: boolean; | ||
}; | ||
interface UseDotLottieResult { | ||
DotLottieComponent: (props: ComponentProps<'canvas'>) => JSX.Element; | ||
canvas: HTMLCanvasElement | null; | ||
container: HTMLDivElement | null; | ||
dotLottie: DotLottie | null; | ||
setCanvasRef: RefCallback<HTMLCanvasElement>; | ||
setContainerRef: RefCallback<HTMLDivElement>; | ||
} | ||
declare const useDotLottie: (config?: DotLottieConfig) => UseDotLottieResult; | ||
declare const setWasmUrl: (url: string) => void; | ||
export { type DotLottieConfig, DotLottieReact, type DotLottieReactProps, type UseDotLottieResult, setWasmUrl, useDotLottie }; |
{ | ||
"name": "@lottiefiles/dotlottie-react", | ||
"version": "0.5.9", | ||
"version": "0.6.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "React wrapper around the dotlottie-web library", |
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
96133
2059