@react-stately/layout
Advanced tools
Comparing version 3.13.10-nightly.4709 to 3.13.10-nightly.4718
@@ -134,3 +134,2 @@ var $iId4j$reactstatelycollections = require("@react-stately/collections"); | ||
let layoutNode = this.buildNode(node, x, y); | ||
layoutNode.node = node; | ||
layoutNode.layoutInfo.parentKey = parentKey !== null && parentKey !== void 0 ? parentKey : null; | ||
@@ -193,3 +192,4 @@ this.layoutNodes.set(node.key, layoutNode); | ||
children: children, | ||
validRect: layoutInfo.rect.intersection(this.requestedRect) | ||
validRect: layoutInfo.rect.intersection(this.requestedRect), | ||
node: node | ||
}; | ||
@@ -225,3 +225,4 @@ } | ||
children: [], | ||
validRect: header.rect.intersection(this.requestedRect) | ||
validRect: header.rect.intersection(this.requestedRect), | ||
node: node | ||
}; | ||
@@ -253,3 +254,5 @@ } | ||
layoutInfo: layoutInfo, | ||
validRect: layoutInfo.rect | ||
children: [], | ||
validRect: layoutInfo.rect, | ||
node: node | ||
}; | ||
@@ -256,0 +259,0 @@ } |
@@ -128,3 +128,2 @@ import {getChildNodes as $img26$getChildNodes} from "@react-stately/collections"; | ||
let layoutNode = this.buildNode(node, x, y); | ||
layoutNode.node = node; | ||
layoutNode.layoutInfo.parentKey = parentKey !== null && parentKey !== void 0 ? parentKey : null; | ||
@@ -187,3 +186,4 @@ this.layoutNodes.set(node.key, layoutNode); | ||
children: children, | ||
validRect: layoutInfo.rect.intersection(this.requestedRect) | ||
validRect: layoutInfo.rect.intersection(this.requestedRect), | ||
node: node | ||
}; | ||
@@ -219,3 +219,4 @@ } | ||
children: [], | ||
validRect: header.rect.intersection(this.requestedRect) | ||
validRect: header.rect.intersection(this.requestedRect), | ||
node: node | ||
}; | ||
@@ -247,3 +248,5 @@ } | ||
layoutInfo: layoutInfo, | ||
validRect: layoutInfo.rect | ||
children: [], | ||
validRect: layoutInfo.rect, | ||
node: node | ||
}; | ||
@@ -250,0 +253,0 @@ } |
@@ -86,3 +86,4 @@ var $fe69e47e38ed0ac4$exports = require("./ListLayout.main.js"); | ||
children: children, | ||
validRect: layoutInfo.rect | ||
validRect: layoutInfo.rect, | ||
node: this.collection.head | ||
}; | ||
@@ -110,3 +111,4 @@ } | ||
children: columns, | ||
validRect: rect | ||
validRect: rect, | ||
node: headerRow | ||
}; | ||
@@ -169,3 +171,5 @@ } | ||
layoutInfo: layoutInfo, | ||
validRect: layoutInfo.rect | ||
children: [], | ||
validRect: layoutInfo.rect, | ||
node: node | ||
}; | ||
@@ -211,3 +215,4 @@ } | ||
children: children, | ||
validRect: layoutInfo.rect.intersection(this.requestedRect) | ||
validRect: layoutInfo.rect.intersection(this.requestedRect), | ||
node: this.collection.body | ||
}; | ||
@@ -246,3 +251,3 @@ } | ||
x += layoutNode.layoutInfo.rect.width; | ||
} | ||
} else break; | ||
} else { | ||
@@ -263,3 +268,4 @@ let layoutNode = this.buildChild(child, x, y, layoutInfo.key); | ||
children: children, | ||
validRect: rect.intersection(this.requestedRect) | ||
validRect: rect.intersection(this.requestedRect), | ||
node: node | ||
}; | ||
@@ -277,3 +283,5 @@ } | ||
layoutInfo: layoutInfo, | ||
validRect: rect | ||
children: [], | ||
validRect: rect, | ||
node: node | ||
}; | ||
@@ -280,0 +288,0 @@ } |
@@ -80,3 +80,4 @@ import {ListLayout as $61ef60fc9b1041f4$export$cacbb3924155d68e} from "./ListLayout.module.js"; | ||
children: children, | ||
validRect: layoutInfo.rect | ||
validRect: layoutInfo.rect, | ||
node: this.collection.head | ||
}; | ||
@@ -104,3 +105,4 @@ } | ||
children: columns, | ||
validRect: rect | ||
validRect: rect, | ||
node: headerRow | ||
}; | ||
@@ -163,3 +165,5 @@ } | ||
layoutInfo: layoutInfo, | ||
validRect: layoutInfo.rect | ||
children: [], | ||
validRect: layoutInfo.rect, | ||
node: node | ||
}; | ||
@@ -205,3 +209,4 @@ } | ||
children: children, | ||
validRect: layoutInfo.rect.intersection(this.requestedRect) | ||
validRect: layoutInfo.rect.intersection(this.requestedRect), | ||
node: this.collection.body | ||
}; | ||
@@ -240,3 +245,3 @@ } | ||
x += layoutNode.layoutInfo.rect.width; | ||
} | ||
} else break; | ||
} else { | ||
@@ -257,3 +262,4 @@ let layoutNode = this.buildChild(child, x, y, layoutInfo.key); | ||
children: children, | ||
validRect: rect.intersection(this.requestedRect) | ||
validRect: rect.intersection(this.requestedRect), | ||
node: node | ||
}; | ||
@@ -271,3 +277,5 @@ } | ||
layoutInfo: layoutInfo, | ||
validRect: rect | ||
children: [], | ||
validRect: rect, | ||
node: node | ||
}; | ||
@@ -274,0 +282,0 @@ } |
{ | ||
"name": "@react-stately/layout", | ||
"version": "3.13.10-nightly.4709+4fc70174a", | ||
"version": "3.13.10-nightly.4718+4b27a0c02", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,8 +25,8 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-stately/collections": "3.0.0-nightly.2997+4fc70174a", | ||
"@react-stately/table": "3.11.9-nightly.4709+4fc70174a", | ||
"@react-stately/virtualizer": "3.7.2-nightly.4709+4fc70174a", | ||
"@react-types/grid": "3.2.7-nightly.4709+4fc70174a", | ||
"@react-types/shared": "3.0.0-nightly.2997+4fc70174a", | ||
"@react-types/table": "3.9.6-nightly.4709+4fc70174a", | ||
"@react-stately/collections": "3.0.0-nightly.3006+4b27a0c02", | ||
"@react-stately/table": "3.11.9-nightly.4718+4b27a0c02", | ||
"@react-stately/virtualizer": "3.7.2-nightly.4718+4b27a0c02", | ||
"@react-types/grid": "3.2.7-nightly.4718+4b27a0c02", | ||
"@react-types/shared": "3.0.0-nightly.3006+4b27a0c02", | ||
"@react-types/table": "3.9.6-nightly.4718+4b27a0c02", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -40,3 +40,3 @@ }, | ||
}, | ||
"gitHead": "4fc70174ac35a5ebf06379f5cafaf943519a1eac" | ||
"gitHead": "4b27a0c027f4fbab9ed1070c748966c902b13429" | ||
} |
@@ -247,3 +247,2 @@ /* | ||
let layoutNode = this.buildNode(node, x, y); | ||
layoutNode.node = node; | ||
@@ -314,3 +313,4 @@ layoutNode.layoutInfo.parentKey = parentKey ?? null; | ||
children, | ||
validRect: layoutInfo.rect.intersection(this.requestedRect) | ||
validRect: layoutInfo.rect.intersection(this.requestedRect), | ||
node | ||
}; | ||
@@ -352,3 +352,4 @@ } | ||
children: [], | ||
validRect: header.rect.intersection(this.requestedRect) | ||
validRect: header.rect.intersection(this.requestedRect), | ||
node | ||
}; | ||
@@ -386,3 +387,5 @@ } | ||
layoutInfo, | ||
validRect: layoutInfo.rect | ||
children: [], | ||
validRect: layoutInfo.rect, | ||
node | ||
}; | ||
@@ -389,0 +392,0 @@ } |
@@ -116,3 +116,4 @@ /* | ||
children, | ||
validRect: layoutInfo.rect | ||
validRect: layoutInfo.rect, | ||
node: this.collection.head | ||
}; | ||
@@ -147,3 +148,4 @@ } | ||
children: columns, | ||
validRect: rect | ||
validRect: rect, | ||
node: headerRow | ||
}; | ||
@@ -213,3 +215,5 @@ } | ||
layoutInfo, | ||
validRect: layoutInfo.rect | ||
children: [], | ||
validRect: layoutInfo.rect, | ||
node | ||
}; | ||
@@ -265,3 +269,4 @@ } | ||
children, | ||
validRect: layoutInfo.rect.intersection(this.requestedRect) | ||
validRect: layoutInfo.rect.intersection(this.requestedRect), | ||
node: this.collection.body | ||
}; | ||
@@ -303,2 +308,4 @@ } | ||
x += layoutNode.layoutInfo.rect.width; | ||
} else { | ||
break; | ||
} | ||
@@ -323,3 +330,4 @@ } else { | ||
children, | ||
validRect: rect.intersection(this.requestedRect) | ||
validRect: rect.intersection(this.requestedRect), | ||
node | ||
}; | ||
@@ -339,3 +347,5 @@ } | ||
layoutInfo, | ||
validRect: rect | ||
children: [], | ||
validRect: rect, | ||
node | ||
}; | ||
@@ -342,0 +352,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
382195
4150