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.2.6 to 0.3.0

19

dist/index.d.ts

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

3

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

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