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

react-super-components

Package Overview
Dependencies
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-super-components - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

dist/BaseList.js

7

dist/index.js

@@ -6,3 +6,3 @@ 'use strict';

});
exports.Animations = exports.Layout = exports.Stack = exports.permanentlySubscribe = exports.Subscriptions = exports.List = exports.Image = undefined;
exports.Animations = exports.Layout = exports.Stack = exports.permanentlySubscribe = exports.Subscriptions = exports.RegularList = exports.List = exports.Image = undefined;

@@ -17,2 +17,6 @@ var _Image = require('./Image.js');

var _RegularList = require('./RegularList.js');
var _RegularList2 = _interopRequireDefault(_RegularList);
var _Subscriptions = require('./Subscriptions.js');

@@ -38,2 +42,3 @@

exports.List = _List2.default;
exports.RegularList = _RegularList2.default;
exports.Subscriptions = _Subscriptions2.default;

@@ -40,0 +45,0 @@ exports.permanentlySubscribe = _Subscriptions.permanentlySubscribe;

22

dist/List.js

@@ -116,3 +116,7 @@ 'use strict';

key: 'rowRenderer',
value: function rowRenderer(index, data) {
value: function rowRenderer(_ref) {
var index = _ref.index;
var data = _ref.data;
var hasKey = _ref.hasKey;
var itemType = this.checkTypesAndReturnMatchingItemType(index, data);

@@ -122,2 +126,6 @@ var ListItemComponent = itemType.component;

if (hasKey) {
props.key = index;
}
return _react2.default.createElement(ListItemComponent, props);

@@ -146,5 +154,5 @@ }

null,
function (_ref) {
var height = _ref.height;
var width = _ref.width;
function (_ref2) {
var height = _ref2.height;
var width = _ref2.width;
return _react2.default.createElement(_reactVirtualized.VirtualScroll, {

@@ -154,4 +162,4 @@ className: className,

overscanRowsCount: thresholdRows,
ref: function ref(_ref2) {
_this2._virtualScroll = _ref2;
ref: function ref(_ref3) {
_this2._virtualScroll = _ref3;
},

@@ -163,3 +171,3 @@ rowsCount: data.length,

rowRenderer: function rowRenderer(index) {
return _this2.rowRenderer(index, data);
return _this2.rowRenderer({ index: index, data: data });
},

@@ -166,0 +174,0 @@ scrollToIndex: _this2.props.scrollIndex,

@@ -46,3 +46,3 @@ {

},
"version": "1.1.0"
"version": "1.2.0"
}
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