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

@jswork/react-list

Package Overview
Dependencies
Maintainers
0
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.5 to 1.2.6

2

dist/index.cjs.js

@@ -1,4 +0,4 @@

"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var y=Object.defineProperty,z=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var m=(s,t,e)=>t in s?y(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,n=(s,t)=>{for(var e in t||(t={}))E.call(t,e)&&m(s,e,t[e]);if(a)for(var e of a(t))R.call(t,e)&&m(s,e,t[e]);return s},w=(s,t)=>z(s,K(t)),l=(s,t)=>y(s,"name",{value:t,configurable:!0});var g=(s,t)=>{var e={};for(var r in s)E.call(s,r)&&t.indexOf(r)<0&&(e[r]=s[r]);if(s!=null&&a)for(var r of a(s))t.indexOf(r)<0&&R.call(s,r)&&(e[r]=s[r]);return e};var o=(s,t,e)=>(m(s,typeof t!="symbol"?t+"":t,e),e);var _noop = require('@jswork/noop'); var _noop2 = _interopRequireDefault(_noop);var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);var _react = require('react'); var _react2 = _interopRequireDefault(_react);var _classimperativehandle = require('@jswork/class-imperative-handle'); var _classimperativehandle2 = _interopRequireDefault(_classimperativehandle);var c="react-list",p,A=(p=class extends _react.Component{constructor(){super(...arguments);o(this,"handleRef",l(e=>{let{forwardedRef:r}=this.props;_classimperativehandle2.default.call(void 0, r,e)},"handleRef"))}get children(){let{items:e,template:r,options:i}=this.props;return e.map((d,h)=>r({items:e,item:d,index:h,options:i}))}get emptyView(){let{items:e,templateEmpty:r,options:i}=this.props;return r({items:e,item:null,index:-1,options:i})}get properties(){let u=this.props,{className:e,as:r,items:i,template:d,templateEmpty:h,sizeKey:C,forwardedRef:I,options:L}=u,_=g(u,["className","as","items","template","templateEmpty","sizeKey","forwardedRef","options"]);return r===_react.Fragment?null:n({"data-component":c,ref:this.handleRef,className:_classnames2.default.call(void 0, c,e)},_)}render(){let{as:e,items:r,sizeKey:i}=this.props;return!r||!r[i]?this.emptyView:_react2.default.createElement(e,this.properties,this.children)}},l(p,"ReactList"),o(p,"displayName",c),o(p,"version","__VERSION__"),o(p,"defaultProps",{items:[],sizeKey:"length",as:_react.Fragment,template:_noop2.default,templateEmpty:_noop2.default,allowEmpty:!1}),p),b= exports.default =_react2.default.forwardRef((s,t)=>_react2.default.createElement(A,w(n({},s),{ref:t})));exports.default = b;
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var y=Object.defineProperty,z=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var n=(s,t,e)=>t in s?y(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,m=(s,t)=>{for(var e in t||(t={}))R.call(t,e)&&n(s,e,t[e]);if(a)for(var e of a(t))E.call(t,e)&&n(s,e,t[e]);return s},g=(s,t)=>z(s,K(t)),l=(s,t)=>y(s,"name",{value:t,configurable:!0});var w=(s,t)=>{var e={};for(var r in s)R.call(s,r)&&t.indexOf(r)<0&&(e[r]=s[r]);if(s!=null&&a)for(var r of a(s))t.indexOf(r)<0&&E.call(s,r)&&(e[r]=s[r]);return e};var o=(s,t,e)=>(n(s,typeof t!="symbol"?t+"":t,e),e);var _noop = require('@jswork/noop'); var _noop2 = _interopRequireDefault(_noop);var _classnames = require('classnames'); var _classnames2 = _interopRequireDefault(_classnames);var _react = require('react'); var _react2 = _interopRequireDefault(_react);var _classimperativehandle = require('@jswork/class-imperative-handle'); var _classimperativehandle2 = _interopRequireDefault(_classimperativehandle);var c="react-list",i,A=(i=class extends _react.Component{constructor(){super(...arguments);o(this,"handleRef",l(e=>{let{forwardedRef:r}=this.props;_classimperativehandle2.default.call(void 0, r,e)},"handleRef"))}get children(){let{items:e,template:r,options:p}=this.props;return e.map((d,h)=>r({items:e,item:d,index:h,options:p}))}get emptyView(){let{items:e,templateEmpty:r,options:p}=this.props;return r({items:e,item:null,index:-1,options:p})}get properties(){let u=this.props,{className:e,as:r,items:p,template:d,templateEmpty:h,sizeKey:C,forwardedRef:I,options:L}=u,_=w(u,["className","as","items","template","templateEmpty","sizeKey","forwardedRef","options"]);return r===_react.Fragment?null:m({"data-component":c,ref:this.handleRef,className:_classnames2.default.call(void 0, c,e)},_)}render(){let{as:e,items:r,sizeKey:p}=this.props;return!r||!r[p]?this.emptyView:_react2.default.createElement(e,this.properties,this.children)}},l(i,"ReactList"),o(i,"displayName",c),o(i,"version","__VERSION__"),o(i,"defaultProps",{items:[],sizeKey:"length",as:_react.Fragment,template:_noop2.default,templateEmpty:_noop2.default}),i),b= exports.default =_react2.default.forwardRef((s,t)=>_react2.default.createElement(A,g(m({},s),{ref:t})));exports.default = b;
module.exports = exports.default;
//# sourceMappingURL=index.cjs.js.map

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

var y=Object.defineProperty,z=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var E=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var m=(s,t,e)=>t in s?y(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,n=(s,t)=>{for(var e in t||(t={}))E.call(t,e)&&m(s,e,t[e]);if(a)for(var e of a(t))R.call(t,e)&&m(s,e,t[e]);return s},w=(s,t)=>z(s,K(t)),l=(s,t)=>y(s,"name",{value:t,configurable:!0});var g=(s,t)=>{var e={};for(var r in s)E.call(s,r)&&t.indexOf(r)<0&&(e[r]=s[r]);if(s!=null&&a)for(var r of a(s))t.indexOf(r)<0&&R.call(s,r)&&(e[r]=s[r]);return e};var o=(s,t,e)=>(m(s,typeof t!="symbol"?t+"":t,e),e);import N from"@jswork/noop";import S from"classnames";import f,{Component as V,Fragment as x}from"react";import v from"@jswork/class-imperative-handle";var c="react-list",p,A=(p=class extends V{constructor(){super(...arguments);o(this,"handleRef",l(e=>{let{forwardedRef:r}=this.props;v(r,e)},"handleRef"))}get children(){let{items:e,template:r,options:i}=this.props;return e.map((d,h)=>r({items:e,item:d,index:h,options:i}))}get emptyView(){let{items:e,templateEmpty:r,options:i}=this.props;return r({items:e,item:null,index:-1,options:i})}get properties(){let u=this.props,{className:e,as:r,items:i,template:d,templateEmpty:h,sizeKey:C,forwardedRef:I,options:L}=u,_=g(u,["className","as","items","template","templateEmpty","sizeKey","forwardedRef","options"]);return r===x?null:n({"data-component":c,ref:this.handleRef,className:S(c,e)},_)}render(){let{as:e,items:r,sizeKey:i}=this.props;return!r||!r[i]?this.emptyView:f.createElement(e,this.properties,this.children)}},l(p,"ReactList"),o(p,"displayName",c),o(p,"version","__VERSION__"),o(p,"defaultProps",{items:[],sizeKey:"length",as:x,template:N,templateEmpty:N,allowEmpty:!1}),p),b=f.forwardRef((s,t)=>f.createElement(A,w(n({},s),{ref:t})));export{b as default};
var y=Object.defineProperty,z=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var n=(s,t,e)=>t in s?y(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,m=(s,t)=>{for(var e in t||(t={}))R.call(t,e)&&n(s,e,t[e]);if(a)for(var e of a(t))E.call(t,e)&&n(s,e,t[e]);return s},g=(s,t)=>z(s,K(t)),l=(s,t)=>y(s,"name",{value:t,configurable:!0});var w=(s,t)=>{var e={};for(var r in s)R.call(s,r)&&t.indexOf(r)<0&&(e[r]=s[r]);if(s!=null&&a)for(var r of a(s))t.indexOf(r)<0&&E.call(s,r)&&(e[r]=s[r]);return e};var o=(s,t,e)=>(n(s,typeof t!="symbol"?t+"":t,e),e);import N from"@jswork/noop";import S from"classnames";import f,{Component as V,Fragment as x}from"react";import v from"@jswork/class-imperative-handle";var c="react-list",i,A=(i=class extends V{constructor(){super(...arguments);o(this,"handleRef",l(e=>{let{forwardedRef:r}=this.props;v(r,e)},"handleRef"))}get children(){let{items:e,template:r,options:p}=this.props;return e.map((d,h)=>r({items:e,item:d,index:h,options:p}))}get emptyView(){let{items:e,templateEmpty:r,options:p}=this.props;return r({items:e,item:null,index:-1,options:p})}get properties(){let u=this.props,{className:e,as:r,items:p,template:d,templateEmpty:h,sizeKey:C,forwardedRef:I,options:L}=u,_=w(u,["className","as","items","template","templateEmpty","sizeKey","forwardedRef","options"]);return r===x?null:m({"data-component":c,ref:this.handleRef,className:S(c,e)},_)}render(){let{as:e,items:r,sizeKey:p}=this.props;return!r||!r[p]?this.emptyView:f.createElement(e,this.properties,this.children)}},l(i,"ReactList"),o(i,"displayName",c),o(i,"version","__VERSION__"),o(i,"defaultProps",{items:[],sizeKey:"length",as:x,template:N,templateEmpty:N}),i),b=f.forwardRef((s,t)=>f.createElement(A,g(m({},s),{ref:t})));export{b as default};
//# sourceMappingURL=index.esm.js.map
{
"name": "@jswork/react-list",
"version": "1.2.5",
"version": "1.2.6",
"main": "dist/index.cjs.js",

@@ -5,0 +5,0 @@ "module": "dist/index.esm.js",

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