Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lottiefiles/dotlottie-react

Package Overview
Dependencies
Maintainers
4
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lottiefiles/dotlottie-react - npm Package Compare versions

Comparing version 0.7.2 to 0.8.0

34

dist/index.d.ts

@@ -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 };

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc