@lottiefiles/dotlottie-react
Advanced tools
Comparing version 0.7.2 to 0.8.0
@@ -1,2 +0,2 @@ | ||
import { Config, DotLottie } from '@lottiefiles/dotlottie-web'; | ||
import { Config, DotLottie, DotLottieWorker } from '@lottiefiles/dotlottie-web'; | ||
export * from '@lottiefiles/dotlottie-web'; | ||
@@ -31,4 +31,34 @@ import { ComponentProps, RefCallback } from 'react'; | ||
declare const useDotLottie: (config?: DotLottieConfig) => UseDotLottieResult; | ||
type DotLottieWorkerConfig = Omit<Config, 'canvas'> & { | ||
animationId?: string; | ||
autoResizeCanvas?: boolean; | ||
playOnHover?: boolean; | ||
themeData?: string; | ||
themeId?: string; | ||
workerId?: string; | ||
}; | ||
interface UseDotLottieWorkerResult { | ||
DotLottieComponent: (props: ComponentProps<'canvas'>) => JSX.Element; | ||
canvas: HTMLCanvasElement | null; | ||
container: HTMLDivElement | null; | ||
dotLottie: DotLottieWorker | null; | ||
setCanvasRef: RefCallback<HTMLCanvasElement>; | ||
setContainerRef: RefCallback<HTMLDivElement>; | ||
} | ||
declare const useDotLottieWorker: (config?: DotLottieWorkerConfig) => UseDotLottieWorkerResult; | ||
type DotLottieWorkerReactProps = Omit<Config, 'canvas'> & ComponentProps<'canvas'> & { | ||
animationId?: string; | ||
autoResizeCanvas?: boolean; | ||
dotLottieRefCallback?: RefCallback<DotLottieWorker | null>; | ||
playOnHover?: boolean; | ||
themeData?: string; | ||
themeId?: string; | ||
workerId?: string; | ||
}; | ||
declare const DotLottieWorkerReact: ({ animationId, autoResizeCanvas, autoplay, backgroundColor, data, dotLottieRefCallback, loop, marker, mode, playOnHover, renderConfig, segment, speed, src, themeData, themeId, useFrameInterpolation, workerId, ...props }: DotLottieWorkerReactProps) => JSX.Element; | ||
declare const setWasmUrl: (url: string) => void; | ||
export { type DotLottieConfig, DotLottieReact, type DotLottieReactProps, type UseDotLottieResult, setWasmUrl, useDotLottie }; | ||
export { type DotLottieConfig, DotLottieReact, type DotLottieReactProps, type DotLottieWorkerConfig, DotLottieWorkerReact, type DotLottieWorkerReactProps, type UseDotLottieResult, type UseDotLottieWorkerResult, setWasmUrl, useDotLottie, useDotLottieWorker }; |
{ | ||
"name": "@lottiefiles/dotlottie-react", | ||
"version": "0.7.2", | ||
"version": "0.8.0", | ||
"type": "module", | ||
@@ -41,3 +41,3 @@ "description": "React wrapper around the dotlottie-web library", | ||
"debounce": "^2.0.0", | ||
"@lottiefiles/dotlottie-web": "0.28.0" | ||
"@lottiefiles/dotlottie-web": "0.29.0" | ||
}, | ||
@@ -44,0 +44,0 @@ "devDependencies": { |
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
176734
2884
+ Added@lottiefiles/dotlottie-web@0.29.0(transitive)
- Removed@lottiefiles/dotlottie-web@0.28.0(transitive)