react-arborist 3.0.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.js CHANGED
@@ -1790,21 +1790,21 @@ class $bfece7c4aed4e9c4$export$e2da3477247342d1 {
1790
1790
  if (this.isFiltered) return false;
1791
1791
  const parentNode = this.get(this.state.dnd.parentId) ?? this.root;
1792
1792
  const dragNodes = this.dragNodes;
1793
- const check = this.props.disableDrop;
1793
+ const isDisabled = this.props.disableDrop;
1794
1794
  for (const drag of dragNodes){
1795
1795
  if (!drag) return false;
1796
1796
  if (!parentNode) return false;
1797
1797
  if (drag.isInternal && $0e6083160f4b36ed$exports.isDecendent(parentNode, drag)) return false;
1798
1798
  }
1799
1799
  // Allow the user to insert their own logic
1800
- if (typeof check == "function") return check({
1800
+ if (typeof isDisabled == "function") return !isDisabled({
1801
1801
  parentNode: parentNode,
1802
1802
  dragNodes: this.dragNodes,
1803
1803
  index: this.state.dnd.index
1804
1804
  });
1805
- else if (typeof check == "string") // @ts-ignore
1806
- return !!parentNode.data[check];
1807
- else if (typeof check === "boolean") return check;
1805
+ else if (typeof isDisabled == "string") // @ts-ignore
1806
+ return !parentNode.data[isDisabled];
1807
+ else if (typeof isDisabled === "boolean") return !isDisabled;
1808
1808
  else return true;
1809
1809
  }
1810
1810
  hideCursor() {
@@ -2323,7 +2323,7 @@ Use the data prop if you want to provide your own handlers.`);
2323
2323
  }
2324
2324
 
2325
2325
 
2326
- const $2ba43033bb8eb39d$export$7fbedc92909ed28e = /*#__PURE__*/ (0, $g00cZ$forwardRef)(function Tree(props, ref) {
2326
+ function $2ba43033bb8eb39d$var$TreeComponent(props, ref) {
2327
2327
  const treeProps = (0, $c881d1adb735dfd0$export$d227906824a13416)(props);
2328
2328
  return /*#__PURE__*/ (0, $g00cZ$jsxs)((0, $dac24389e46ba09d$export$c49dab5eb1b4ce0c), {
2329
2329
  treeProps: treeProps,
@@ -2335,7 +2335,8 @@ const $2ba43033bb8eb39d$export$7fbedc92909ed28e = /*#__PURE__*/ (0, $g00cZ$forwa
2335
2335
  /*#__PURE__*/ (0, $g00cZ$jsx)((0, $8f8be4c9bb5ab52a$export$3e21b60650ec7e55), {})
2336
2336
  ]
2337
2337
  });
2338
- });
2338
+ }
2339
+ const $2ba43033bb8eb39d$export$7fbedc92909ed28e = /*#__PURE__*/ (0, $g00cZ$forwardRef)($2ba43033bb8eb39d$var$TreeComponent);
2339
2340
 
2340
2341
 
2341
2342
  var $8c5b0bb55f55c0d2$exports = {};