react-final-marquee
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -0,1 +1,2 @@ | ||
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".react-final-marquee{height:100%;overflow:hidden;white-space:nowrap;position:relative}.react-final-marquee-wrapper{width:10000px;position:absolute}.react-final-marquee-wrapper[data-direction=rightToLeft]{left:0px}.react-final-marquee-wrapper[data-direction=leftToRight]{right:0px}.react-final-marquee:hover .react-final-marquee-item{animation-play-state:var(--pause-on-hover)}.react-final-marquee-item{float:left;animation-play-state:var(--play);animation-duration:var(--duration);animation-iteration-count:infinite;animation-timing-function:linear}.react-final-marquee-wrapper[data-direction=rightToLeft] .react-final-marquee-item{transform:translate(100%);padding-right:var(--space);animation-name:marqee-rightToLeft}.react-final-marquee-wrapper[data-direction=leftToRight] .react-final-marquee-item{padding-left:var(--space);animation-name:marqee-leftToRight;float:right}@keyframes marqee-rightToLeft{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes marqee-leftToRight{0%{transform:translate(0)}to{transform:translate(100%)}}")),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})(); | ||
import Ce, { useRef as _e } from "react"; | ||
@@ -2,0 +3,0 @@ var W = {}, ur = { |
@@ -1,2 +0,4 @@ | ||
(function(y,R){typeof exports=="object"&&typeof module<"u"?module.exports=R(require("react")):typeof define=="function"&&define.amd?define(["react"],R):(y=typeof globalThis<"u"?globalThis:y||self,y.Marquee=R(y.React))})(this,function(y){"use strict";var R={},Ce={get exports(){return R},set exports(h){R=h}},A={};/** | ||
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".react-final-marquee{height:100%;overflow:hidden;white-space:nowrap;position:relative}.react-final-marquee-wrapper{width:10000px;position:absolute}.react-final-marquee-wrapper[data-direction=rightToLeft]{left:0px}.react-final-marquee-wrapper[data-direction=leftToRight]{right:0px}.react-final-marquee:hover .react-final-marquee-item{animation-play-state:var(--pause-on-hover)}.react-final-marquee-item{float:left;animation-play-state:var(--play);animation-duration:var(--duration);animation-iteration-count:infinite;animation-timing-function:linear}.react-final-marquee-wrapper[data-direction=rightToLeft] .react-final-marquee-item{transform:translate(100%);padding-right:var(--space);animation-name:marqee-rightToLeft}.react-final-marquee-wrapper[data-direction=leftToRight] .react-final-marquee-item{padding-left:var(--space);animation-name:marqee-leftToRight;float:right}@keyframes marqee-rightToLeft{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes marqee-leftToRight{0%{transform:translate(0)}to{transform:translate(100%)}}")),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})(); | ||
(function(y,x){typeof exports=="object"&&typeof module<"u"?module.exports=x(require("react")):typeof define=="function"&&define.amd?define(["react"],x):(y=typeof globalThis<"u"?globalThis:y||self,y.Marquee=x(y.React))})(this,function(y){"use strict";var x=document.createElement("style");x.textContent=`.react-final-marquee{height:100%;overflow:hidden;white-space:nowrap;position:relative}.react-final-marquee-wrapper{width:10000px;position:absolute}.react-final-marquee-wrapper[data-direction=rightToLeft]{left:0px}.react-final-marquee-wrapper[data-direction=leftToRight]{right:0px}.react-final-marquee:hover .react-final-marquee-item{animation-play-state:var(--pause-on-hover)}.react-final-marquee-item{float:left;animation-play-state:var(--play);animation-duration:var(--duration);animation-iteration-count:infinite;animation-timing-function:linear}.react-final-marquee-wrapper[data-direction=rightToLeft] .react-final-marquee-item{transform:translate(100%);padding-right:var(--space);animation-name:marqee-rightToLeft}.react-final-marquee-wrapper[data-direction=leftToRight] .react-final-marquee-item{padding-left:var(--space);animation-name:marqee-leftToRight;float:right}@keyframes marqee-rightToLeft{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes marqee-leftToRight{0%{transform:translate(0)}to{transform:translate(100%)}} | ||
`,document.head.appendChild(x);var A={},Ce={get exports(){return A},set exports(h){A=h}},q={};/** | ||
* @license React | ||
@@ -9,3 +11,3 @@ * react-jsx-runtime.production.min.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/var Z;function Se(){if(Z)return A;Z=1;var h=y,C=Symbol.for("react.element"),W=Symbol.for("react.fragment"),T=Object.prototype.hasOwnProperty,P=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,x={key:!0,ref:!0,__self:!0,__source:!0};function S(E,l,O){var c,m={},g=null,j=null;O!==void 0&&(g=""+O),l.key!==void 0&&(g=""+l.key),l.ref!==void 0&&(j=l.ref);for(c in l)T.call(l,c)&&!x.hasOwnProperty(c)&&(m[c]=l[c]);if(E&&E.defaultProps)for(c in l=E.defaultProps,l)m[c]===void 0&&(m[c]=l[c]);return{$$typeof:C,type:E,key:g,ref:j,props:m,_owner:P.current}}return A.Fragment=W,A.jsx=S,A.jsxs=S,A}var I={};/** | ||
*/var Q;function xe(){if(Q)return q;Q=1;var h=y,w=Symbol.for("react.element"),W=Symbol.for("react.fragment"),b=Object.prototype.hasOwnProperty,S=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,P={key:!0,ref:!0,__self:!0,__source:!0};function O(R,l,T){var c,m={},g=null,j=null;T!==void 0&&(g=""+T),l.key!==void 0&&(g=""+l.key),l.ref!==void 0&&(j=l.ref);for(c in l)b.call(l,c)&&!P.hasOwnProperty(c)&&(m[c]=l[c]);if(R&&R.defaultProps)for(c in l=R.defaultProps,l)m[c]===void 0&&(m[c]=l[c]);return{$$typeof:w,type:R,key:g,ref:j,props:m,_owner:S.current}}return q.Fragment=W,q.jsx=O,q.jsxs=O,q}var I={};/** | ||
* @license React | ||
@@ -18,12 +20,12 @@ * react-jsx-runtime.development.js | ||
* LICENSE file in the root directory of this source tree. | ||
*/var Q;function we(){return Q||(Q=1,process.env.NODE_ENV!=="production"&&function(){var h=y,C=Symbol.for("react.element"),W=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),E=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),ee=Symbol.iterator,Pe="@@iterator";function xe(e){if(e===null||typeof e!="object")return null;var r=ee&&e[ee]||e[Pe];return typeof r=="function"?r:null}var k=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];je("error",e,t)}}function je(e,r,t){{var n=k.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var ke=!1,De=!1,Fe=!1,Ae=!1,Ie=!1,re;re=Symbol.for("react.module.reference");function We(e){return!!(typeof e=="string"||typeof e=="function"||e===T||e===x||Ie||e===P||e===O||e===c||Ae||e===j||ke||De||Fe||typeof e=="object"&&e!==null&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===S||e.$$typeof===E||e.$$typeof===l||e.$$typeof===re||e.getModuleId!==void 0))}function Ye(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function te(e){return e.displayName||"Context"}function b(e){if(e==null)return null;if(typeof e.tag=="number"&&d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case T:return"Fragment";case W:return"Portal";case x:return"Profiler";case P:return"StrictMode";case O:return"Suspense";case c:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return te(r)+".Consumer";case S:var t=e;return te(t._context)+".Provider";case l:return Ye(e,e.render,"ForwardRef");case m:var n=e.displayName||null;return n!==null?n:b(e.type)||"Memo";case g:{var o=e,u=o._payload,i=o._init;try{return b(i(u))}catch{return null}}}return null}var w=Object.assign,Y=0,ne,ae,ie,oe,ue,se,fe;function le(){}le.__reactDisabledLog=!0;function Ne(){{if(Y===0){ne=console.log,ae=console.info,ie=console.warn,oe=console.error,ue=console.group,se=console.groupCollapsed,fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:le,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function $e(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:w({},e,{value:ne}),info:w({},e,{value:ae}),warn:w({},e,{value:ie}),error:w({},e,{value:oe}),group:w({},e,{value:ue}),groupCollapsed:w({},e,{value:se}),groupEnd:w({},e,{value:fe})})}Y<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var q=k.ReactCurrentDispatcher,B;function $(e,r,t){{if(B===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);B=n&&n[1]||""}return` | ||
`+B+e}}var J=!1,M;{var Me=typeof WeakMap=="function"?WeakMap:Map;M=new Me}function ce(e,r){if(!e||J)return"";{var t=M.get(e);if(t!==void 0)return t}var n;J=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=q.current,q.current=null,Ne();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(_){n=_}Reflect.construct(e,[],i)}else{try{i.call()}catch(_){n=_}e.call(i.prototype)}}else{try{throw Error()}catch(_){n=_}e()}}catch(_){if(_&&n&&typeof _.stack=="string"){for(var a=_.stack.split(` | ||
`),v=n.stack.split(` | ||
`),s=a.length-1,f=v.length-1;s>=1&&f>=0&&a[s]!==v[f];)f--;for(;s>=1&&f>=0;s--,f--)if(a[s]!==v[f]){if(s!==1||f!==1)do if(s--,f--,f<0||a[s]!==v[f]){var p=` | ||
`+a[s].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),typeof e=="function"&&M.set(e,p),p}while(s>=1&&f>=0);break}}}finally{J=!1,q.current=u,$e(),Error.prepareStackTrace=o}var F=e?e.displayName||e.name:"",Oe=F?$(F):"";return typeof e=="function"&&M.set(e,Oe),Oe}function Le(e,r,t){return ce(e,!1)}function Ve(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function L(e,r,t){if(e==null)return"";if(typeof e=="function")return ce(e,Ve(e));if(typeof e=="string")return $(e);switch(e){case O:return $("Suspense");case c:return $("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Le(e.render);case m:return L(e.type,r,t);case g:{var n=e,o=n._payload,u=n._init;try{return L(u(o),r,t)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,de={},ve=k.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,t=L(e.type,e._source,r?r.type:null);ve.setExtraStackFrame(t)}else ve.setExtraStackFrame(null)}function Ue(e,r,t,n,o){{var u=Function.call.bind(V);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var v=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(U(o),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),U(null)),a instanceof Error&&!(a.message in de)&&(de[a.message]=!0,U(o),d("Failed %s type: %s",t,a.message),U(null))}}}var qe=Array.isArray;function G(e){return qe(e)}function Be(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Je(e){try{return pe(e),!1}catch{return!0}}function pe(e){return""+e}function me(e){if(Je(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Be(e)),pe(e)}var N=k.ReactCurrentOwner,Ge={key:!0,ref:!0,__self:!0,__source:!0},he,ge,z;z={};function ze(e){if(V.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ke(e){if(V.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function He(e,r){if(typeof e.ref=="string"&&N.current&&r&&N.current.stateNode!==r){var t=b(N.current.type);z[t]||(d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',b(N.current.type),e.ref),z[t]=!0)}}function Xe(e,r){{var t=function(){he||(he=!0,d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Ze(e,r){{var t=function(){ge||(ge=!0,d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Qe=function(e,r,t,n,o,u,i){var a={$$typeof:C,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function er(e,r,t,n,o){{var u,i={},a=null,v=null;t!==void 0&&(me(t),a=""+t),Ke(r)&&(me(r.key),a=""+r.key),ze(r)&&(v=r.ref,He(r,o));for(u in r)V.call(r,u)&&!Ge.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||v){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&Xe(i,f),v&&Ze(i,f)}return Qe(e,a,v,o,n,N.current,i)}}var K=k.ReactCurrentOwner,ye=k.ReactDebugCurrentFrame;function D(e){if(e){var r=e._owner,t=L(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}var H;H=!1;function X(e){return typeof e=="object"&&e!==null&&e.$$typeof===C}function Re(){{if(K.current){var e=b(K.current.type);if(e)return` | ||
*/var ee;function Se(){return ee||(ee=1,process.env.NODE_ENV!=="production"&&function(){var h=y,w=Symbol.for("react.element"),W=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),R=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),j=Symbol.for("react.offscreen"),re=Symbol.iterator,Pe="@@iterator";function je(e){if(e===null||typeof e!="object")return null;var r=re&&e[re]||e[Pe];return typeof r=="function"?r:null}var k=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];ke("error",e,t)}}function ke(e,r,t){{var a=k.ReactDebugCurrentFrame,o=a.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var De=!1,Fe=!1,Ae=!1,qe=!1,Ie=!1,te;te=Symbol.for("react.module.reference");function We(e){return!!(typeof e=="string"||typeof e=="function"||e===b||e===P||Ie||e===S||e===T||e===c||qe||e===j||De||Fe||Ae||typeof e=="object"&&e!==null&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===O||e.$$typeof===R||e.$$typeof===l||e.$$typeof===te||e.getModuleId!==void 0))}function Ye(e,r,t){var a=e.displayName;if(a)return a;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function ae(e){return e.displayName||"Context"}function _(e){if(e==null)return null;if(typeof e.tag=="number"&&d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case b:return"Fragment";case W:return"Portal";case P:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case c:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case R:var r=e;return ae(r)+".Consumer";case O:var t=e;return ae(t._context)+".Provider";case l:return Ye(e,e.render,"ForwardRef");case m:var a=e.displayName||null;return a!==null?a:_(e.type)||"Memo";case g:{var o=e,u=o._payload,i=o._init;try{return _(i(u))}catch{return null}}}return null}var C=Object.assign,Y=0,ne,ie,oe,ue,se,fe,le;function ce(){}ce.__reactDisabledLog=!0;function Le(){{if(Y===0){ne=console.log,ie=console.info,oe=console.warn,ue=console.error,se=console.group,fe=console.groupCollapsed,le=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Y++}}function Ne(){{if(Y--,Y===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:C({},e,{value:ne}),info:C({},e,{value:ie}),warn:C({},e,{value:oe}),error:C({},e,{value:ue}),group:C({},e,{value:se}),groupCollapsed:C({},e,{value:fe}),groupEnd:C({},e,{value:le})})}Y<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var B=k.ReactCurrentDispatcher,J;function N(e,r,t){{if(J===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);J=a&&a[1]||""}return` | ||
`+J+e}}var G=!1,$;{var $e=typeof WeakMap=="function"?WeakMap:Map;$=new $e}function de(e,r){if(!e||G)return"";{var t=$.get(e);if(t!==void 0)return t}var a;G=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=B.current,B.current=null,Le();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(E){a=E}Reflect.construct(e,[],i)}else{try{i.call()}catch(E){a=E}e.call(i.prototype)}}else{try{throw Error()}catch(E){a=E}e()}}catch(E){if(E&&a&&typeof E.stack=="string"){for(var n=E.stack.split(` | ||
`),v=a.stack.split(` | ||
`),s=n.length-1,f=v.length-1;s>=1&&f>=0&&n[s]!==v[f];)f--;for(;s>=1&&f>=0;s--,f--)if(n[s]!==v[f]){if(s!==1||f!==1)do if(s--,f--,f<0||n[s]!==v[f]){var p=` | ||
`+n[s].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),typeof e=="function"&&$.set(e,p),p}while(s>=1&&f>=0);break}}}finally{G=!1,B.current=u,Ne(),Error.prepareStackTrace=o}var F=e?e.displayName||e.name:"",Oe=F?N(F):"";return typeof e=="function"&&$.set(e,Oe),Oe}function Me(e,r,t){return de(e,!1)}function Ve(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function M(e,r,t){if(e==null)return"";if(typeof e=="function")return de(e,Ve(e));if(typeof e=="string")return N(e);switch(e){case T:return N("Suspense");case c:return N("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case l:return Me(e.render);case m:return M(e.type,r,t);case g:{var a=e,o=a._payload,u=a._init;try{return M(u(o),r,t)}catch{}}}return""}var V=Object.prototype.hasOwnProperty,ve={},pe=k.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,t=M(e.type,e._source,r?r.type:null);pe.setExtraStackFrame(t)}else pe.setExtraStackFrame(null)}function Ue(e,r,t,a,o){{var u=Function.call.bind(V);for(var i in e)if(u(e,i)){var n=void 0;try{if(typeof e[i]!="function"){var v=Error((a||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw v.name="Invariant Violation",v}n=e[i](r,i,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){n=s}n&&!(n instanceof Error)&&(U(o),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,i,typeof n),U(null)),n instanceof Error&&!(n.message in ve)&&(ve[n.message]=!0,U(o),d("Failed %s type: %s",t,n.message),U(null))}}}var Be=Array.isArray;function z(e){return Be(e)}function Je(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ge(e){try{return me(e),!1}catch{return!0}}function me(e){return""+e}function he(e){if(Ge(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(e)),me(e)}var L=k.ReactCurrentOwner,ze={key:!0,ref:!0,__self:!0,__source:!0},ge,ye,K;K={};function Ke(e){if(V.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function He(e){if(V.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Xe(e,r){if(typeof e.ref=="string"&&L.current&&r&&L.current.stateNode!==r){var t=_(L.current.type);K[t]||(d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',_(L.current.type),e.ref),K[t]=!0)}}function Ze(e,r){{var t=function(){ge||(ge=!0,d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Qe(e,r){{var t=function(){ye||(ye=!0,d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var er=function(e,r,t,a,o,u,i){var n={$$typeof:w,type:e,key:r,ref:t,props:i,_owner:u};return n._store={},Object.defineProperty(n._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(n,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(n,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(n.props),Object.freeze(n)),n};function rr(e,r,t,a,o){{var u,i={},n=null,v=null;t!==void 0&&(he(t),n=""+t),He(r)&&(he(r.key),n=""+r.key),Ke(r)&&(v=r.ref,Xe(r,o));for(u in r)V.call(r,u)&&!ze.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(n||v){var f=typeof e=="function"?e.displayName||e.name||"Unknown":e;n&&Ze(i,f),v&&Qe(i,f)}return er(e,n,v,o,a,L.current,i)}}var H=k.ReactCurrentOwner,Re=k.ReactDebugCurrentFrame;function D(e){if(e){var r=e._owner,t=M(e.type,e._source,r?r.type:null);Re.setExtraStackFrame(t)}else Re.setExtraStackFrame(null)}var X;X=!1;function Z(e){return typeof e=="object"&&e!==null&&e.$$typeof===w}function _e(){{if(H.current){var e=_(H.current.type);if(e)return` | ||
Check the render method of \``+e+"`."}return""}}function rr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return` | ||
Check the render method of \``+e+"`."}return""}}function tr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return` | ||
Check your code at `+r+":"+t+"."}return""}}var Ee={};function tr(e){{var r=Re();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=` | ||
Check your code at `+r+":"+t+"."}return""}}var Ee={};function ar(e){{var r=_e();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=` | ||
Check the top-level render call using <`+t+">.")}return r}}function be(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=tr(r);if(Ee[t])return;Ee[t]=!0;var n="";e&&e._owner&&e._owner!==K.current&&(n=" It was passed a child from "+b(e._owner.type)+"."),D(e),d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),D(null)}}function _e(e,r){{if(typeof e!="object")return;if(G(e))for(var t=0;t<e.length;t++){var n=e[t];X(n)&&be(n,r)}else if(X(e))e._store&&(e._store.validated=!0);else if(e){var o=xe(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)X(i.value)&&be(i.value,r)}}}function nr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===l||r.$$typeof===m))t=r.propTypes;else return;if(t){var n=b(r);Ue(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!H){H=!0;var o=b(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ar(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){D(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),D(null);break}}e.ref!==null&&(D(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),D(null))}}function Te(e,r,t,n,o,u){{var i=We(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var v=rr(o);v?a+=v:a+=Re();var s;e===null?s="null":G(e)?s="array":e!==void 0&&e.$$typeof===C?(s="<"+(b(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var f=er(e,r,t,o,u);if(f==null)return f;if(i){var p=r.children;if(p!==void 0)if(n)if(G(p)){for(var F=0;F<p.length;F++)_e(p[F],e);Object.freeze&&Object.freeze(p)}else d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else _e(p,e)}return e===T?ar(f):nr(f),f}}function ir(e,r,t){return Te(e,r,t,!0)}function or(e,r,t){return Te(e,r,t,!1)}var ur=or,sr=ir;I.Fragment=T,I.jsx=ur,I.jsxs=sr}()),I}(function(h){process.env.NODE_ENV==="production"?h.exports=Se():h.exports=we()})(Ce);const fr="";return({style:h={},className:C="",paused:W=!1,pauseOnHover:T=!0,direction:P="leftToRight",duration:x=2,space:S=20,repeat:E=2,children:l})=>{const O=y.useRef(null),c=y.useRef(null),m={["--play"]:W?"paused":"running",["--duration"]:`${x}s`,["--space"]:`${S}px`,["--pause-on-hover"]:T?"paused":"running",...h};return R.jsx("div",{className:`${C} react-final-marquee`,ref:O,children:R.jsx("div",{className:"react-final-marquee-wrapper","data-direction":P,children:Array.from({length:E},(g,j)=>j).map(g=>R.jsx("div",{className:"react-final-marquee-item",ref:c,style:{...m},children:l},g))})})}}); | ||
Check the top-level render call using <`+t+">.")}return r}}function be(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ar(r);if(Ee[t])return;Ee[t]=!0;var a="";e&&e._owner&&e._owner!==H.current&&(a=" It was passed a child from "+_(e._owner.type)+"."),D(e),d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),D(null)}}function Te(e,r){{if(typeof e!="object")return;if(z(e))for(var t=0;t<e.length;t++){var a=e[t];Z(a)&&be(a,r)}else if(Z(e))e._store&&(e._store.validated=!0);else if(e){var o=je(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)Z(i.value)&&be(i.value,r)}}}function nr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===l||r.$$typeof===m))t=r.propTypes;else return;if(t){var a=_(r);Ue(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!X){X=!0;var o=_(r);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ir(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){D(e),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),D(null);break}}e.ref!==null&&(D(e),d("Invalid attribute `ref` supplied to `React.Fragment`."),D(null))}}function we(e,r,t,a,o,u){{var i=We(e);if(!i){var n="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(n+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var v=tr(o);v?n+=v:n+=_e();var s;e===null?s="null":z(e)?s="array":e!==void 0&&e.$$typeof===w?(s="<"+(_(e.type)||"Unknown")+" />",n=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,n)}var f=rr(e,r,t,o,u);if(f==null)return f;if(i){var p=r.children;if(p!==void 0)if(a)if(z(p)){for(var F=0;F<p.length;F++)Te(p[F],e);Object.freeze&&Object.freeze(p)}else d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Te(p,e)}return e===b?ir(f):nr(f),f}}function or(e,r,t){return we(e,r,t,!0)}function ur(e,r,t){return we(e,r,t,!1)}var sr=ur,fr=or;I.Fragment=b,I.jsx=sr,I.jsxs=fr}()),I}(function(h){process.env.NODE_ENV==="production"?h.exports=xe():h.exports=Se()})(Ce);const lr="";return({style:h={},className:w="",paused:W=!1,pauseOnHover:b=!0,direction:S="leftToRight",duration:P=2,space:O=20,repeat:R=2,children:l})=>{const T=y.useRef(null),c=y.useRef(null),m={["--play"]:W?"paused":"running",["--duration"]:`${P}s`,["--space"]:`${O}px`,["--pause-on-hover"]:b?"paused":"running",...h};return A.jsx("div",{className:`${w} react-final-marquee`,ref:T,children:A.jsx("div",{className:"react-final-marquee-wrapper","data-direction":S,children:Array.from({length:R},(g,j)=>j).map(g=>A.jsx("div",{className:"react-final-marquee-item",ref:c,style:{...m},children:l},g))})})}}); |
@@ -9,5 +9,7 @@ { | ||
}, | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"files": [ | ||
"dist" | ||
"dist", | ||
"LICENSE", | ||
"README.md" | ||
], | ||
@@ -35,3 +37,4 @@ "repository": { | ||
"react": ">= 16.8.0 || 18.0.0", | ||
"react-dom": ">= 16.8.0 || 18.0.0" | ||
"react-dom": ">= 16.8.0 || 18.0.0", | ||
"vite-plugin-css-injected-by-js": "^3.1.0" | ||
}, | ||
@@ -43,2 +46,3 @@ "devDependencies": { | ||
"@vitejs/plugin-react": "^3.1.0", | ||
"rollup-plugin-sass": "^1.12.19", | ||
"rollup-plugin-typescript2": "^0.34.1", | ||
@@ -45,0 +49,0 @@ "tslib": "^2.5.0", |
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
45581
805
5
10
6
6
+ Added@esbuild/aix-ppc64@0.24.0(transitive)
+ Added@esbuild/android-arm@0.24.0(transitive)
+ Added@esbuild/android-arm64@0.24.0(transitive)
+ Added@esbuild/android-x64@0.24.0(transitive)
+ Added@esbuild/darwin-arm64@0.24.0(transitive)
+ Added@esbuild/darwin-x64@0.24.0(transitive)
+ Added@esbuild/freebsd-arm64@0.24.0(transitive)
+ Added@esbuild/freebsd-x64@0.24.0(transitive)
+ Added@esbuild/linux-arm@0.24.0(transitive)
+ Added@esbuild/linux-arm64@0.24.0(transitive)
+ Added@esbuild/linux-ia32@0.24.0(transitive)
+ Added@esbuild/linux-loong64@0.24.0(transitive)
+ Added@esbuild/linux-mips64el@0.24.0(transitive)
+ Added@esbuild/linux-ppc64@0.24.0(transitive)
+ Added@esbuild/linux-riscv64@0.24.0(transitive)
+ Added@esbuild/linux-s390x@0.24.0(transitive)
+ Added@esbuild/linux-x64@0.24.0(transitive)
+ Added@esbuild/netbsd-x64@0.24.0(transitive)
+ Added@esbuild/openbsd-arm64@0.24.0(transitive)
+ Added@esbuild/openbsd-x64@0.24.0(transitive)
+ Added@esbuild/sunos-x64@0.24.0(transitive)
+ Added@esbuild/win32-arm64@0.24.0(transitive)
+ Added@esbuild/win32-ia32@0.24.0(transitive)
+ Added@esbuild/win32-x64@0.24.0(transitive)
+ Added@rollup/rollup-android-arm-eabi@4.27.4(transitive)
+ Added@rollup/rollup-android-arm64@4.27.4(transitive)
+ Added@rollup/rollup-darwin-arm64@4.27.4(transitive)
+ Added@rollup/rollup-darwin-x64@4.27.4(transitive)
+ Added@rollup/rollup-freebsd-arm64@4.27.4(transitive)
+ Added@rollup/rollup-freebsd-x64@4.27.4(transitive)
+ Added@rollup/rollup-linux-arm-gnueabihf@4.27.4(transitive)
+ Added@rollup/rollup-linux-arm-musleabihf@4.27.4(transitive)
+ Added@rollup/rollup-linux-arm64-gnu@4.27.4(transitive)
+ Added@rollup/rollup-linux-arm64-musl@4.27.4(transitive)
+ Added@rollup/rollup-linux-powerpc64le-gnu@4.27.4(transitive)
+ Added@rollup/rollup-linux-riscv64-gnu@4.27.4(transitive)
+ Added@rollup/rollup-linux-s390x-gnu@4.27.4(transitive)
+ Added@rollup/rollup-linux-x64-gnu@4.27.4(transitive)
+ Added@rollup/rollup-linux-x64-musl@4.27.4(transitive)
+ Added@rollup/rollup-win32-arm64-msvc@4.27.4(transitive)
+ Added@rollup/rollup-win32-ia32-msvc@4.27.4(transitive)
+ Added@rollup/rollup-win32-x64-msvc@4.27.4(transitive)
+ Added@types/estree@1.0.6(transitive)
+ Addedesbuild@0.24.0(transitive)
+ Addedfsevents@2.3.3(transitive)
+ Addednanoid@3.3.8(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpostcss@8.4.49(transitive)
+ Addedrollup@4.27.4(transitive)
+ Addedsource-map-js@1.2.1(transitive)
+ Addedvite@6.0.1(transitive)
+ Addedvite-plugin-css-injected-by-js@3.5.2(transitive)