New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

morse-react-tables

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

morse-react-tables - npm Package Compare versions

Comparing version 0.4.6 to 0.4.7

1

dist/components/ExpandableDatasetTable.d.ts

@@ -15,2 +15,3 @@ import React, { ComponentProps } from "react";

expandedRowContent: (item: T) => React.ReactNode;
uniqueColumn?: keyof T;
};

@@ -17,0 +18,0 @@ declare type ExpandableDatasetTableState<T> = {

9

dist/components/ExpandableDatasetTable.js

@@ -103,5 +103,10 @@ "use strict";

var _this = this;
var _a = this.props, expandedRowContent = _a.expandedRowContent, ref = _a.ref, datasetTableProps = __rest(_a, ["expandedRowContent", "ref"]);
var _a = this.props, uniqueColumn = _a.uniqueColumn, expandedRowContent = _a.expandedRowContent, ref = _a.ref, datasetTableProps = __rest(_a, ["uniqueColumn", "expandedRowContent", "ref"]);
return (react_1.default.createElement(DatasetTable_1.DatasetTable, __assign({}, datasetTableProps, { rowRender: function (item, rowElements, index) {
return (react_1.default.createElement(exports.ExpandableRow, { key: "expanded-table-row-" + index, expandedRowContent: _this.props.expandedRowContent(item), toggleExpanded: function () { return _this.toggleOrSetExpanded(item); }, expanded: _this.state && item === _this.state.expandedItem }, rowElements));
var isExpanded = _this.state && _this.state.expandedItem
? (uniqueColumn
? item[uniqueColumn] === _this.state.expandedItem[uniqueColumn]
: item === _this.state.expandedItem)
: false;
return (react_1.default.createElement(exports.ExpandableRow, { key: "expanded-table-row-" + index, expandedRowContent: _this.props.expandedRowContent(item), toggleExpanded: function () { return _this.toggleOrSetExpanded(item); }, expanded: isExpanded }, rowElements));
} })));

@@ -108,0 +113,0 @@ };

{
"name": "morse-react-tables",
"version": "0.4.6",
"version": "0.4.7",
"description": "Patterns for building tables",

@@ -38,3 +38,3 @@ "repository": {

],
"gitHead": "6be06c4f635fd7c3affe5c610bf7c4740b24c477"
"gitHead": "939bbfa1cf375c1ef3f2f45eb6c710f0cd31c8e0"
}

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