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

react-awesome-ticker

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-awesome-ticker - npm Package Compare versions

Comparing version 1.1.0-canary.2 to 1.1.0-canary.3

lib/types/index.d.ts

6

lib/index.esm.js

@@ -1,2 +0,2 @@

import t,{useLayoutEffect as e,useEffect as a,useMemo as i}from"react";import{useResizeDetector as n}from"react-resize-detector";import r,{keyframes as o}from"styled-components";
import e,{useLayoutEffect as t,useEffect as a,useMemo as i}from"react";import{useResizeDetector as n}from"react-resize-detector";import r,{keyframes as o}from"styled-components";
/*! *****************************************************************************

@@ -15,3 +15,3 @@ Copyright (c) Microsoft Corporation.

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */const s="undefined"!=typeof window?e:a,c=o`
***************************************************************************** */const s="undefined"!=typeof window?t:a,c=o`
from {

@@ -103,3 +103,3 @@ transform: translateX(0%);

}
`,f=t.forwardRef(((e,a)=>{var{children:r,play:o=!0,mode:c="repeat",pauseOnHover:l=!1,pauseOnFocus:f=!1,pauseOnClick:p=!1,direction:m="left",speed:u=40,delay:y=0,style:h,className:v,contentWrapperProps:k}=e,g=function(t,e){var a={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(a[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(a[i[n]]=t[i[n]])}return a}(e,["children","play","mode","pauseOnHover","pauseOnFocus","pauseOnClick","direction","speed","delay","style","className","contentWrapperProps"]);const{width:b,ref:w}=n({handleWidth:!0,handleHeight:!1}),{width:O,ref:x}=n({handleWidth:!0,handleHeight:!1});let j=0;O&&u&&(j=O/u);const P=i((()=>Object.assign(Object.assign({},h||{}),{"--ticker-animation-duration":`${j||0}s`,"--ticker-animation-delay":`${y||0}s`})),[h,j,y]);let E=0;"loop"===c?E=1:"repeat"===c&&b&&O&&(E=Math.ceil(b/O));const H=i((()=>E>0?Array.from(Array(E).keys()).map((e=>t.createElement("div",{"aria-hidden":"true",key:e},r))):null),[r,E]);return((t,e)=>{s((()=>{var e;try{null===(e=null==t?void 0:t.current)||void 0===e||e.childNodes.forEach((t=>{t.style.animation="none",t.offsetHeight,t.style.animation=""}))}catch(t){}}),e||[])})(w,[O,E,j,u,m]),t.createElement(d,Object.assign({className:`react-awesome-ticker ${v||""}`,style:P,"data-play":!!o,"data-mode":c,"data-direction":m,"data-pause-on-hover":!!l,"data-pause-on-focus":!!f,"data-pause-on-click":!!p,"data-visible":!!b},g,{ref:(N=[a,w],t=>N.forEach((e=>{"function"==typeof e?e(t):e&&"object"==typeof e&&(e.current=t)})))}),t.createElement("div",Object.assign({},k||{},{ref:x}),r),H);var N}));f.displayName="Ticker";var p=t.memo(f);export{p as default};
`,f=e.forwardRef(((t,a)=>{var{children:r,play:o=!0,mode:c="repeat",pauseOnHover:l=!1,pauseOnFocus:f=!1,pauseOnClick:p=!1,direction:m="left",speed:u=40,delay:y=0,style:h,className:v,contentWrapperProps:k}=t,g=function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(a[i[n]]=e[i[n]])}return a}(t,["children","play","mode","pauseOnHover","pauseOnFocus","pauseOnClick","direction","speed","delay","style","className","contentWrapperProps"]);const{width:b,ref:w}=n({handleWidth:!0,handleHeight:!1}),{width:O,ref:x}=n({handleWidth:!0,handleHeight:!1});let j=0;O&&u&&(j=O/u);const E=i((()=>Object.assign(Object.assign({},h||{}),{"--ticker-animation-duration":`${j||0}s`,"--ticker-animation-delay":`${y||0}s`})),[h,j,y]);let H=0;"loop"===c?H=1:"repeat"===c&&b&&O&&(H=Math.ceil(b/O));const P=i((()=>H>0?Array.from(Array(H).keys()).map((t=>e.createElement("div",{"aria-hidden":"true",key:t},r))):null),[r,H]);return((e,t)=>{s((()=>{var t;try{null===(t=null==e?void 0:e.current)||void 0===t||t.childNodes.forEach((e=>{e instanceof HTMLElement&&(e.style.animation="none",e.offsetHeight,e.style.animation="")}))}catch(e){}}),t||[])})(w,[O,H,j,u,m]),e.createElement(d,Object.assign({className:`react-awesome-ticker ${v||""}`,style:E,"data-play":!!o,"data-mode":c,"data-direction":m,"data-pause-on-hover":!!l,"data-pause-on-focus":!!f,"data-pause-on-click":!!p,"data-visible":!!b},g,{ref:(N=[a,w],e=>N.forEach((t=>{"function"==typeof t?t(e):t&&"object"==typeof t&&(t.current=e)})))}),e.createElement("div",Object.assign({},k||{},{ref:x}),r),P);var N}));f.displayName="Ticker";var p=e.memo(f);export{p as default};
//# sourceMappingURL=index.esm.js.map

@@ -103,3 +103,3 @@ "use strict";var e=require("react"),t=require("react-resize-detector"),a=require("styled-components");const i="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,n=a.keyframes`

***************************************************************************** */
function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(a[i[n]]=e[i[n]])}return a}(a,["children","play","mode","pauseOnHover","pauseOnFocus","pauseOnClick","direction","speed","delay","style","className","contentWrapperProps"]);const{width:g,ref:b}=t.useResizeDetector({handleWidth:!0,handleHeight:!1}),{width:w,ref:O}=t.useResizeDetector({handleWidth:!0,handleHeight:!1});let x=0;w&&m&&(x=w/m);const j=e.useMemo((()=>Object.assign(Object.assign({},y||{}),{"--ticker-animation-duration":`${x||0}s`,"--ticker-animation-delay":`${p||0}s`})),[y,x,p]);let E=0;"loop"===c?E=1:"repeat"===c&&g&&w&&(E=Math.ceil(g/w));const P=e.useMemo((()=>E>0?Array.from(Array(E).keys()).map((t=>e.createElement("div",{"aria-hidden":"true",key:t},r))):null),[r,E]);return((e,t)=>{i((()=>{var t;try{null===(t=null==e?void 0:e.current)||void 0===t||t.childNodes.forEach((e=>{e.style.animation="none",e.offsetHeight,e.style.animation=""}))}catch(e){}}),t||[])})(b,[w,E,x,m,f]),e.createElement(o,Object.assign({className:`react-awesome-ticker ${h||""}`,style:j,"data-play":!!s,"data-mode":c,"data-direction":f,"data-pause-on-hover":!!l,"data-pause-on-focus":!!d,"data-pause-on-click":!!u,"data-visible":!!g},k,{ref:(H=[n,b],e=>H.forEach((t=>{"function"==typeof t?t(e):t&&"object"==typeof t&&(t.current=e)})))}),e.createElement("div",Object.assign({},v||{},{ref:O}),r),P);var H}));s.displayName="Ticker";var c=e.memo(s);module.exports=c;
function(e,t){var a={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(a[i[n]]=e[i[n]])}return a}(a,["children","play","mode","pauseOnHover","pauseOnFocus","pauseOnClick","direction","speed","delay","style","className","contentWrapperProps"]);const{width:g,ref:b}=t.useResizeDetector({handleWidth:!0,handleHeight:!1}),{width:w,ref:O}=t.useResizeDetector({handleWidth:!0,handleHeight:!1});let x=0;w&&m&&(x=w/m);const j=e.useMemo((()=>Object.assign(Object.assign({},y||{}),{"--ticker-animation-duration":`${x||0}s`,"--ticker-animation-delay":`${p||0}s`})),[y,x,p]);let E=0;"loop"===c?E=1:"repeat"===c&&g&&w&&(E=Math.ceil(g/w));const H=e.useMemo((()=>E>0?Array.from(Array(E).keys()).map((t=>e.createElement("div",{"aria-hidden":"true",key:t},r))):null),[r,E]);return((e,t)=>{i((()=>{var t;try{null===(t=null==e?void 0:e.current)||void 0===t||t.childNodes.forEach((e=>{e instanceof HTMLElement&&(e.style.animation="none",e.offsetHeight,e.style.animation="")}))}catch(e){}}),t||[])})(b,[w,E,x,m,f]),e.createElement(o,Object.assign({className:`react-awesome-ticker ${h||""}`,style:j,"data-play":!!s,"data-mode":c,"data-direction":f,"data-pause-on-hover":!!l,"data-pause-on-focus":!!d,"data-pause-on-click":!!u,"data-visible":!!g},k,{ref:(P=[n,b],e=>P.forEach((t=>{"function"==typeof t?t(e):t&&"object"==typeof t&&(t.current=e)})))}),e.createElement("div",Object.assign({},v||{},{ref:O}),r),H);var P}));s.displayName="Ticker";var c=e.memo(s);module.exports=c;
//# sourceMappingURL=index.js.map
{
"name": "react-awesome-ticker",
"version": "1.1.0-canary.2",
"version": "1.1.0-canary.3",
"description": "🐍 Smart Modern Lightweight Fully-Typed CSS React Ticker",

@@ -18,3 +18,3 @@ "repository": "https://github.com/snelsi/react-awesome-ticker",

"module": "lib/index.esm.js",
"types": "lib/index.d.ts",
"types": "lib/types/index.d.ts",
"files": [

@@ -39,17 +39,17 @@ "lib"

"devDependencies": {
"@rollup/plugin-commonjs": "^23.0.2",
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.1.0",
"@rollup/plugin-typescript": "^9.0.2",
"@types/node": "^18.11.9",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.9",
"@rollup/plugin-terser": "^0.3.0",
"@rollup/plugin-typescript": "^11.0.0",
"@types/node": "^18.11.18",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@types/styled-components": "^5.1.26",
"@typescript-eslint/eslint-plugin": "^5.44.0",
"@typescript-eslint/parser": "^5.44.0",
"eslint": "^8.28.0",
"eslint-config-prettier": "^8.5.0",
"husky": "^8.0.2",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"eslint": "^8.31.0",
"eslint-config-prettier": "^8.6.0",
"husky": "^8.0.3",
"lint-staged": "^13.1.0",
"prettier": "^2.8.1",
"pretty-quick": "^3.1.3",

@@ -59,6 +59,6 @@ "react": "^18.2.0",

"react-resize-detector": "^7.1.2",
"rollup": "^3.4.0",
"rollup": "^3.9.1",
"rollup-plugin-peer-deps-external": "^2.2.4",
"styled-components": "^5.3.6",
"typescript": "^4.9.3"
"typescript": "^4.9.4"
},

@@ -65,0 +65,0 @@ "lint-staged": {

Sorry, the diff of this file is not supported yet

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