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

@jswork/react-list

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jswork/react-list - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

dist/components/index.d.ts

6

dist/index.js

@@ -5,7 +5,7 @@ /**

* homepage:
* version: 1.2.0
* date: 2022-11-26T00:24:43.211Z
* version: 1.2.1
* date: 2022-11-26T00:45:47.921Z
* license: MIT
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@jswork/noop"),require("classnames"),require("react"),require("@jswork/class-imperative-handle")):"function"==typeof define&&define.amd?define(["exports","@jswork/noop","classnames","react","@jswork/class-imperative-handle"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactList={},e.noop,e.classNames,e.React,e.classImperativeHandle)}(this,(function(e,t,r,n,o){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=a(t),l=a(r),s=a(n),p=a(o),f=function(e,t){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},f(e,t)};var c=function(){return c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)};var u="react-list",d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.root=s.default.createRef(),t.handleRef=function(e){var r=t.props.forwardedRef;p.default(r,e),t.root=e},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),Object.defineProperty(t.prototype,"children",{get:function(){var e=this.props,t=e.items,r=e.template;return t.map((function(e,n){return r({items:t,item:e,index:n})}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){var e=this.props,t=e.className,r=e.as;e.items,e.template,e.children,e.sizeKey,e.allowEmpty,e.forwardedRef;var o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["className","as","items","template","children","sizeKey","allowEmpty","forwardedRef"]);return r===n.Fragment?null:c({"data-component":u,ref:this.handleRef,className:l.default(u,t)},o)},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.props,t=e.as,r=e.items,n=e.sizeKey;return e.allowEmpty||r&&r[n]?s.default.createElement(t,this.properties,this.children):null},t.displayName=u,t.version="1.2.0",t.defaultProps={items:[],sizeKey:"length",as:n.Fragment,template:i.default,allowEmpty:!1},t}(n.Component),y=s.default.forwardRef((function(e,t){return s.default.createElement(d,c({},e,{ref:t}))}));e.default=y,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@jswork/noop"),require("classnames"),require("react"),require("@jswork/class-imperative-handle")):"function"==typeof define&&define.amd?define(["exports","@jswork/noop","classnames","react","@jswork/class-imperative-handle"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ReactList={},e.noop,e.classNames,e.React,e.classImperativeHandle)}(this,(function(e,t,r,n,o){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=a(t),l=a(r),s=a(n),p=a(o),f=function(e,t){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},f(e,t)};var c=function(){return c=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)};var u="react-list",d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRef=function(e){var r=t.props.forwardedRef;p.default(r,e)},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),Object.defineProperty(t.prototype,"children",{get:function(){var e=this.props,t=e.items,r=e.template;return t.map((function(e,n){return r({items:t,item:e,index:n})}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){var e=this.props,t=e.className,r=e.as;e.items,e.template,e.children,e.sizeKey,e.allowEmpty,e.forwardedRef;var o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["className","as","items","template","children","sizeKey","allowEmpty","forwardedRef"]);return r===n.Fragment?null:c({"data-component":u,ref:this.handleRef,className:l.default(u,t)},o)},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.props,t=e.as,r=e.items,n=e.sizeKey;return e.allowEmpty||r&&r[n]?s.default.createElement(t,this.properties,this.children):null},t.displayName=u,t.version="1.2.1",t.defaultProps={items:[],sizeKey:"length",as:n.Fragment,template:i.default,allowEmpty:!1},t}(n.Component),y=s.default.forwardRef((function(e,t){return s.default.createElement(d,c({},e,{ref:t}))}));e.default=y,Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "@jswork/react-list",
"version": "1.2.0",
"version": "1.2.1",
"description": "A list component for react.",

@@ -5,0 +5,0 @@ "license": "MIT",

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