Socket
Socket
Sign inDemoInstall

react-fast-marquee

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-fast-marquee - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

32

dist/components/Marquee.d.ts
import * as React from "react";
import "./Marquee.scss";
interface IMarqueeProps {
interface MarqueeProps {
/**
* Inline style for the container div
* Value: object
* Type: object
* Default: {}

@@ -12,3 +12,3 @@ */

* Class name to style the container div
* Value: string
* Type: string
* Default: ""

@@ -19,3 +19,3 @@ */

* Whether to play or pause the marquee
* Value: boolean
* Type: boolean
* Default: true

@@ -26,3 +26,3 @@ */

* Whether to pause the marquee when hovered
* Value: boolean
* Type: boolean
* Default: false

@@ -33,3 +33,3 @@ */

* Whether to pause the marquee when clicked
* Value: boolean
* Type: boolean
* Default: false

@@ -40,9 +40,9 @@ */

* The direction the marquee is sliding
* Value: "left" or "right"
* Type: "left" or "right"
* Default: "left"
*/
direction: "left" | "right";
direction?: "left" | "right";
/**
* Speed calculated as pixels/second
* Value: number
* Type: number
* Default: 20

@@ -53,3 +53,3 @@ */

* Duration to delay the animation after render, in seconds
* Value: number
* Type: number
* Default: 0

@@ -60,9 +60,9 @@ */

* Whether to show the gradient or not
* Value: boolean
* Type: boolean
* Default: true
*/
gradient?: Array<number>;
gradient?: boolean;
/**
* The rgb color of the gradient as an array of length 3
* Value: Array<number> of length 3
* Type: Array<number> of length 3
* Default: [255, 255, 255]

@@ -73,3 +73,3 @@ */

* The width of the gradient on either side
* Value: number or string
* Type: string
* Default: 200

@@ -80,3 +80,3 @@ */

* The children rendered inside the marquee
* Value: ReactNode
* Type: ReactNode
* Default: null

@@ -86,3 +86,3 @@ */

}
declare const Marquee: React.FC<IMarqueeProps>;
declare const Marquee: React.FC<MarqueeProps>;
export default Marquee;

@@ -74,3 +74,5 @@

_c["--gradient-color"] = rgbaGradientColor + ", 1), " + rgbaGradientColor + ", 0)",
_c["--gradient-width"] = typeof gradientWidth === "number" ? gradientWidth + "px" : gradientWidth,
_c["--gradient-width"] = typeof gradientWidth === "number"
? gradientWidth + "px"
: gradientWidth,
_c), className: "overlay" })),

@@ -77,0 +79,0 @@ React.createElement("div", { ref: marqueeRef, style: (_d = {},

{
"name": "react-fast-marquee",
"version": "1.0.7",
"version": "1.0.8",
"description": "A lightweight React component that utilizes the power of CSS animations to create silky smooth marquees.",

@@ -9,4 +9,35 @@ "main": "dist/index.js",

"start": "rollup -c -w",
"lint": "eslint \"src/**/*.{js,tsx}\" --fix --quiet"
"lint": "eslint \"src/**/*.{js,tsx}\" --fix --quiet",
"pretest": "npm run lint",
"test": "node ./__tests__/tests.js",
"no-watch-test": "node ./__tests__/tests.js --no-watch"
},
"jest": {
"globals": {
"ts-jest": {}
},
"transform": {
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
"^.+\\.tsx?$": "ts-jest"
},
"testMatch": [
"**/?(*.)+(spec|test).js?(x)"
],
"moduleNameMapper": {
"\\.(scss)$": "<rootDir>/__tests__/styleMock.js",
"^(components/.+)$": "<rootDir>/src/$1/"
},
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx"
],
"automock": false,
"setupFiles": [
"./__tests__/setupJest.js"
],
"coverageDirectory": "./coverage/",
"collectCoverage": true
},
"repository": {

@@ -32,2 +63,8 @@ "type": "git",

"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/preset-env": "^7.12.11",
"@babel/preset-react": "^7.12.10",
"@babel/preset-typescript": "^7.12.7",
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/jest": "^26.0.20",
"@types/react": "^16.9.52",

@@ -39,2 +76,4 @@ "@types/react-dom": "^16.9.8",

"babel-runtime": "^6.26.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.5",
"eslint": "^7.11.0",

@@ -44,8 +83,12 @@ "eslint-config-prettier": "^6.13.0",

"eslint-plugin-react": "^7.21.4",
"jest": "^26.6.3",
"jest-fetch-mock": "^3.0.3",
"prettier": "^2.1.2",
"react": "^16.14.0",
"react-dom": "^16.14.0",
"react-test-renderer": "^16.14.0",
"rollup": "^2.31.0",
"rollup-plugin-sass": "^1.2.2",
"rollup-plugin-typescript2": "^0.27.3",
"ts-jest": "^26.4.4",
"typescript": "^4.0.3"

@@ -57,3 +100,2 @@ },

},
"dependencies": {},
"husky": {

@@ -74,3 +116,6 @@ "hooks": {

"example": "examples"
},
"dependencies": {
"@testing-library/jest-dom": "^5.11.9"
}
}

@@ -6,3 +6,5 @@ # React Fast Marquee

[![npm](https://img.shields.io/npm/v/react-fast-marquee.svg)](https://www.npmjs.com/package/react-fast-marquee)
[![npm downloads](https://img.shields.io/npm/dw/react-fast-marquee.svg)](https://www.npmjs.com/package/react-fast-marquee)
[![npm downloads](https://img.shields.io/npm/dt/react-fast-marquee.svg)](https://www.npmjs.com/package/react-fast-marquee)
[![justin-chu](https://circleci.com/gh/justin-chu/react-fast-marquee.svg?style=svg)](https://circleci.com/gh/justin-chu/react-fast-marquee)
[![codecov](https://codecov.io/gh/justin-chu/react-fast-marquee/branch/master/graph/badge.svg?token=52Q4YZYFME)](https://codecov.io/gh/justin-chu/react-fast-marquee)
[![npm license](https://img.shields.io/npm/l/react-fast-marquee.svg)](https://www.npmjs.com/package/react-fast-marquee)

@@ -9,0 +11,0 @@ [![npm bundle size](https://img.shields.io/bundlephobia/min/react-fast-marquee.svg)](https://bundlephobia.com/result?p=react-fast-marquee)

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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