@lottiefiles/dotlottie-react
Advanced tools
Comparing version 0.10.1-alpha.0 to 0.10.1
@@ -1,9 +0,59 @@ | ||
export { DotLottieReact, DotLottieReactProps } from './dotlottie.js'; | ||
import { Config, DotLottie, DotLottieWorker } from '@lottiefiles/dotlottie-web'; | ||
export * from '@lottiefiles/dotlottie-web'; | ||
export { DotLottieWorkerReact, DotLottieWorkerReactProps } from './dotlottie-worker.js'; | ||
import './base-dotlottie-react.js'; | ||
import 'react'; | ||
import { ComponentProps, RefCallback } from 'react'; | ||
type DotLottieReactProps = Omit<Config, 'canvas'> & ComponentProps<'canvas'> & { | ||
animationId?: string; | ||
dotLottieRefCallback?: RefCallback<DotLottie>; | ||
playOnHover?: boolean; | ||
themeData?: string; | ||
themeId?: string; | ||
}; | ||
declare const DotLottieReact: ({ animationId, autoplay, backgroundColor, data, dotLottieRefCallback, loop, marker, mode, playOnHover, renderConfig, segment, speed, src, themeData, themeId, useFrameInterpolation, ...props }: DotLottieReactProps) => JSX.Element; | ||
type DotLottieConfig = Omit<Config, 'canvas'> & { | ||
animationId?: string; | ||
playOnHover?: boolean; | ||
themeData?: string; | ||
themeId?: string; | ||
}; | ||
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; | ||
type DotLottieWorkerConfig = Omit<Config, 'canvas'> & { | ||
animationId?: string; | ||
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; | ||
dotLottieRefCallback?: RefCallback<DotLottieWorker | null>; | ||
playOnHover?: boolean; | ||
themeData?: string; | ||
themeId?: string; | ||
workerId?: string; | ||
}; | ||
declare const DotLottieWorkerReact: ({ animationId, 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 { setWasmUrl }; | ||
export { type DotLottieConfig, DotLottieReact, type DotLottieReactProps, type DotLottieWorkerConfig, DotLottieWorkerReact, type DotLottieWorkerReactProps, type UseDotLottieResult, type UseDotLottieWorkerResult, setWasmUrl, useDotLottie, useDotLottieWorker }; |
{ | ||
"name": "@lottiefiles/dotlottie-react", | ||
"version": "0.10.1-alpha.0", | ||
"version": "0.10.1", | ||
"type": "module", | ||
@@ -40,3 +40,3 @@ "description": "React wrapper around the dotlottie-web library", | ||
"dependencies": { | ||
"@lottiefiles/dotlottie-web": "0.37.0" | ||
"@lottiefiles/dotlottie-web": "0.38.0" | ||
}, | ||
@@ -43,0 +43,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
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
Network access
Supply chain riskThis module accesses the network.
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
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
596377
4141
5
5
+ Added@lottiefiles/dotlottie-web@0.38.0(transitive)
- Removed@lottiefiles/dotlottie-web@0.37.0(transitive)