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

rc-tree

Package Overview
Dependencies
Maintainers
10
Versions
308
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-tree - npm Package Compare versions

Comparing version 5.3.4 to 5.3.5

8

es/TreeNode.js

@@ -10,3 +10,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

import _createSuper from "@babel/runtime/helpers/esm/createSuper";
var _excluded = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragOverGapBottom", "isLeaf", "isStart", "isEnd", "expanded", "selected", "checked", "halfChecked", "loading", "domRef", "active", "data", "onMouseMove"];
var _excluded = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragOverGapBottom", "isLeaf", "isStart", "isEnd", "expanded", "selected", "checked", "halfChecked", "loading", "domRef", "active", "data", "onMouseMove", "selectable"];
import * as React from 'react';

@@ -451,2 +451,3 @@ import classNames from 'classnames';

onMouseMove = _this$props8.onMouseMove,
selectable = _this$props8.selectable,
otherProps = _objectWithoutProperties(_this$props8, _excluded);

@@ -474,2 +475,5 @@

var dragging = draggingNodeKey === eventKey;
var ariaSelected = selectable !== undefined ? {
'aria-selected': !!selectable
} : undefined;
return /*#__PURE__*/React.createElement("div", _extends({

@@ -490,3 +494,3 @@ ref: domRef,

onMouseMove: onMouseMove
}, dataOrAriaAttributeProps), /*#__PURE__*/React.createElement(Indent, {
}, ariaSelected, dataOrAriaAttributeProps), /*#__PURE__*/React.createElement(Indent, {
prefixCls: prefixCls,

@@ -493,0 +497,0 @@ level: level,

@@ -42,3 +42,3 @@ "use strict";

var _excluded = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragOverGapBottom", "isLeaf", "isStart", "isEnd", "expanded", "selected", "checked", "halfChecked", "loading", "domRef", "active", "data", "onMouseMove"];
var _excluded = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragOverGapBottom", "isLeaf", "isStart", "isEnd", "expanded", "selected", "checked", "halfChecked", "loading", "domRef", "active", "data", "onMouseMove", "selectable"];
var ICON_OPEN = 'open';

@@ -476,2 +476,3 @@ var ICON_CLOSE = 'close';

onMouseMove = _this$props8.onMouseMove,
selectable = _this$props8.selectable,
otherProps = (0, _objectWithoutProperties2.default)(_this$props8, _excluded);

@@ -498,2 +499,5 @@ var _this$props$context5 = this.props.context,

var dragging = draggingNodeKey === eventKey;
var ariaSelected = selectable !== undefined ? {
'aria-selected': !!selectable
} : undefined;
return /*#__PURE__*/React.createElement("div", (0, _extends2.default)({

@@ -514,3 +518,3 @@ ref: domRef,

onMouseMove: onMouseMove
}, dataOrAriaAttributeProps), /*#__PURE__*/React.createElement(_Indent.default, {
}, ariaSelected, dataOrAriaAttributeProps), /*#__PURE__*/React.createElement(_Indent.default, {
prefixCls: prefixCls,

@@ -517,0 +521,0 @@ level: level,

{
"name": "rc-tree",
"version": "5.3.4",
"version": "5.3.5",
"description": "tree ui component for react",

@@ -5,0 +5,0 @@ "engines": {

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