@industry-theme/file-city-panel 0.2.49 → 0.2.50
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/panels.bundle.js +11 -2
- package/dist/panels.bundle.js.map +1 -1
- package/package.json +2 -2
package/dist/panels.bundle.js
CHANGED
|
@@ -9630,6 +9630,12 @@ var useContainerHeight = (initialHeight = 600) => {
|
|
|
9630
9630
|
}, []);
|
|
9631
9631
|
return [containerRef, containerHeight];
|
|
9632
9632
|
};
|
|
9633
|
+
var getDndProps = (enableDragAndDrop = false) => {
|
|
9634
|
+
return {
|
|
9635
|
+
disableDrag: !enableDragAndDrop,
|
|
9636
|
+
disableDrop: !enableDragAndDrop
|
|
9637
|
+
};
|
|
9638
|
+
};
|
|
9633
9639
|
function TreeNode({
|
|
9634
9640
|
node,
|
|
9635
9641
|
style: style2,
|
|
@@ -9854,8 +9860,10 @@ var GitStatusFileTree = ({
|
|
|
9854
9860
|
onNodeHover,
|
|
9855
9861
|
openByDefault,
|
|
9856
9862
|
initialHeight = 600,
|
|
9857
|
-
autoHeight = false
|
|
9863
|
+
autoHeight = false,
|
|
9864
|
+
enableDragAndDrop = false
|
|
9858
9865
|
}) => {
|
|
9866
|
+
const dndProps = getDndProps(enableDragAndDrop);
|
|
9859
9867
|
const gitStatusMap = useMemo(() => {
|
|
9860
9868
|
const map = /* @__PURE__ */ new Map();
|
|
9861
9869
|
gitStatusData.forEach((item) => {
|
|
@@ -9977,7 +9985,8 @@ var GitStatusFileTree = ({
|
|
|
9977
9985
|
...openByDefault !== void 0 && { openByDefault },
|
|
9978
9986
|
width: "100%",
|
|
9979
9987
|
height: containerHeight,
|
|
9980
|
-
rowHeight: 28
|
|
9988
|
+
rowHeight: 28,
|
|
9989
|
+
...dndProps
|
|
9981
9990
|
}, NodeRenderer2)));
|
|
9982
9991
|
};
|
|
9983
9992
|
React.createContext(null);
|