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

rc-tree-select

Package Overview
Dependencies
Maintainers
7
Versions
264
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-tree-select - npm Package Compare versions

Comparing version 5.3.0 to 5.4.0

CHANGELOG.md

6

es/OptionList.js

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

onSelect = _React$useContext.onSelect,
dropdownMatchSelectWidth = _React$useContext.dropdownMatchSelectWidth;
dropdownMatchSelectWidth = _React$useContext.dropdownMatchSelectWidth,
treeExpandAction = _React$useContext.treeExpandAction;

@@ -266,3 +267,4 @@ var _React$useContext2 = React.useContext(LegacyContext),

onLoad: onTreeLoad,
filterTreeNode: filterTreeNode
filterTreeNode: filterTreeNode,
expandAction: treeExpandAction
})));

@@ -269,0 +271,0 @@ };

import * as React from 'react';
import type { IconType } from 'rc-tree/lib/interface';
import type { ExpandAction } from 'rc-tree/lib/Tree';
import type { BaseSelectRef, BaseSelectPropsWithoutPrivate, SelectProps } from 'rc-select';

@@ -100,2 +101,3 @@ import TreeNode from './TreeNode';

onTreeExpand?: (expandedKeys: React.Key[]) => void;
treeExpandAction?: ExpandAction;
virtual?: boolean;

@@ -102,0 +104,0 @@ listHeight?: number;

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

import _typeof from "@babel/runtime/helpers/esm/typeof";
var _excluded = ["id", "prefixCls", "value", "defaultValue", "onChange", "onSelect", "onDeselect", "searchValue", "inputValue", "onSearch", "autoClearSearchValue", "filterTreeNode", "treeNodeFilterProp", "showCheckedStrategy", "treeNodeLabelProp", "multiple", "treeCheckable", "treeCheckStrictly", "labelInValue", "fieldNames", "treeDataSimpleMode", "treeData", "children", "loadData", "treeLoadedKeys", "onTreeLoad", "treeDefaultExpandAll", "treeExpandedKeys", "treeDefaultExpandedKeys", "onTreeExpand", "virtual", "listHeight", "listItemHeight", "onDropdownVisibleChange", "dropdownMatchSelectWidth", "treeLine", "treeIcon", "showTreeIcon", "switcherIcon", "treeMotion"];
var _excluded = ["id", "prefixCls", "value", "defaultValue", "onChange", "onSelect", "onDeselect", "searchValue", "inputValue", "onSearch", "autoClearSearchValue", "filterTreeNode", "treeNodeFilterProp", "showCheckedStrategy", "treeNodeLabelProp", "multiple", "treeCheckable", "treeCheckStrictly", "labelInValue", "fieldNames", "treeDataSimpleMode", "treeData", "children", "loadData", "treeLoadedKeys", "onTreeLoad", "treeDefaultExpandAll", "treeExpandedKeys", "treeDefaultExpandedKeys", "onTreeExpand", "treeExpandAction", "virtual", "listHeight", "listItemHeight", "onDropdownVisibleChange", "dropdownMatchSelectWidth", "treeLine", "treeIcon", "showTreeIcon", "switcherIcon", "treeMotion"];
import * as React from 'react';

@@ -69,2 +69,3 @@ import { BaseSelect } from 'rc-select';

onTreeExpand = props.onTreeExpand,
treeExpandAction = props.treeExpandAction,
virtual = props.virtual,

@@ -463,5 +464,6 @@ _props$listHeight = props.listHeight,

fieldNames: mergedFieldNames,
onSelect: onOptionSelect
onSelect: onOptionSelect,
treeExpandAction: treeExpandAction
};
}, [virtual, dropdownMatchSelectWidth, listHeight, listItemHeight, filteredTreeData, mergedFieldNames, onOptionSelect]); // ======================= Legacy Context =======================
}, [virtual, dropdownMatchSelectWidth, listHeight, listItemHeight, filteredTreeData, mergedFieldNames, onOptionSelect, treeExpandAction]); // ======================= Legacy Context =======================

@@ -468,0 +470,0 @@ var legacyContext = React.useMemo(function () {

import * as React from 'react';
import type { ExpandAction } from 'rc-tree/lib/Tree';
import type { DefaultOptionType, InternalFieldName, OnInternalSelect } from './TreeSelect';

@@ -11,4 +12,5 @@ export interface TreeSelectContextProps {

onSelect: OnInternalSelect;
treeExpandAction?: ExpandAction;
}
declare const TreeSelectContext: React.Context<TreeSelectContextProps>;
export default TreeSelectContext;

@@ -61,3 +61,4 @@ "use strict";

onSelect = _React$useContext.onSelect,
dropdownMatchSelectWidth = _React$useContext.dropdownMatchSelectWidth;
dropdownMatchSelectWidth = _React$useContext.dropdownMatchSelectWidth,
treeExpandAction = _React$useContext.treeExpandAction;

@@ -288,3 +289,4 @@ var _React$useContext2 = React.useContext(_LegacyContext.default),

onLoad: onTreeLoad,
filterTreeNode: filterTreeNode
filterTreeNode: filterTreeNode,
expandAction: treeExpandAction
})));

@@ -291,0 +293,0 @@ };

import * as React from 'react';
import type { IconType } from 'rc-tree/lib/interface';
import type { ExpandAction } from 'rc-tree/lib/Tree';
import type { BaseSelectRef, BaseSelectPropsWithoutPrivate, SelectProps } from 'rc-select';

@@ -100,2 +101,3 @@ import TreeNode from './TreeNode';

onTreeExpand?: (expandedKeys: React.Key[]) => void;
treeExpandAction?: ExpandAction;
virtual?: boolean;

@@ -102,0 +104,0 @@ listHeight?: number;

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

var _excluded = ["id", "prefixCls", "value", "defaultValue", "onChange", "onSelect", "onDeselect", "searchValue", "inputValue", "onSearch", "autoClearSearchValue", "filterTreeNode", "treeNodeFilterProp", "showCheckedStrategy", "treeNodeLabelProp", "multiple", "treeCheckable", "treeCheckStrictly", "labelInValue", "fieldNames", "treeDataSimpleMode", "treeData", "children", "loadData", "treeLoadedKeys", "onTreeLoad", "treeDefaultExpandAll", "treeExpandedKeys", "treeDefaultExpandedKeys", "onTreeExpand", "virtual", "listHeight", "listItemHeight", "onDropdownVisibleChange", "dropdownMatchSelectWidth", "treeLine", "treeIcon", "showTreeIcon", "switcherIcon", "treeMotion"];
var _excluded = ["id", "prefixCls", "value", "defaultValue", "onChange", "onSelect", "onDeselect", "searchValue", "inputValue", "onSearch", "autoClearSearchValue", "filterTreeNode", "treeNodeFilterProp", "showCheckedStrategy", "treeNodeLabelProp", "multiple", "treeCheckable", "treeCheckStrictly", "labelInValue", "fieldNames", "treeDataSimpleMode", "treeData", "children", "loadData", "treeLoadedKeys", "onTreeLoad", "treeDefaultExpandAll", "treeExpandedKeys", "treeDefaultExpandedKeys", "onTreeExpand", "treeExpandAction", "virtual", "listHeight", "listItemHeight", "onDropdownVisibleChange", "dropdownMatchSelectWidth", "treeLine", "treeIcon", "showTreeIcon", "switcherIcon", "treeMotion"];

@@ -106,2 +106,3 @@ function isRawValue(value) {

onTreeExpand = props.onTreeExpand,
treeExpandAction = props.treeExpandAction,
virtual = props.virtual,

@@ -499,5 +500,6 @@ _props$listHeight = props.listHeight,

fieldNames: mergedFieldNames,
onSelect: onOptionSelect
onSelect: onOptionSelect,
treeExpandAction: treeExpandAction
};
}, [virtual, dropdownMatchSelectWidth, listHeight, listItemHeight, filteredTreeData, mergedFieldNames, onOptionSelect]); // ======================= Legacy Context =======================
}, [virtual, dropdownMatchSelectWidth, listHeight, listItemHeight, filteredTreeData, mergedFieldNames, onOptionSelect, treeExpandAction]); // ======================= Legacy Context =======================

@@ -504,0 +506,0 @@ var legacyContext = React.useMemo(function () {

import * as React from 'react';
import type { ExpandAction } from 'rc-tree/lib/Tree';
import type { DefaultOptionType, InternalFieldName, OnInternalSelect } from './TreeSelect';

@@ -11,4 +12,5 @@ export interface TreeSelectContextProps {

onSelect: OnInternalSelect;
treeExpandAction?: ExpandAction;
}
declare const TreeSelectContext: React.Context<TreeSelectContextProps>;
export default TreeSelectContext;
{
"name": "rc-tree-select",
"version": "5.3.0",
"version": "5.4.0",
"description": "tree-select ui component for react",

@@ -72,5 +72,5 @@ "keywords": [

"rc-select": "~14.1.0",
"rc-tree": "~5.5.0",
"rc-tree": "~5.6.1",
"rc-util": "^5.16.1"
}
}

@@ -84,2 +84,3 @@ # rc-tree-select

|treeExpandedKeys | set tree expanded keys | Array<String> | - |
|treeExpandAction | Tree open logic, optional: false \| `click` \| `doubleClick`, same as `expandAction` of `rc-tree` | string \| boolean | `click` |
|treeCheckable | whether tree show checkbox (select callback will not fire) | bool | false |

@@ -86,0 +87,0 @@ |treeCheckStrictly | check node precisely, parent and children nodes are not associated| bool | false |

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