Comparing version 2.7.0 to 2.7.1
@@ -41,3 +41,5 @@ "use strict"; | ||
const squashTextNodes = node => { | ||
// If parent container is `<Box>`, text nodes will be treated as separate nodes in | ||
if (node.childNodes.length === 0) { | ||
return ''; | ||
} // If parent container is `<Box>`, text nodes will be treated as separate nodes in | ||
// the tree and will have their own coordinates in the layout. | ||
@@ -48,2 +50,4 @@ // To ensure text nodes are aligned correctly, take X and Y of the first text node | ||
// so their coordinates will be relative to the first node anyway | ||
const offsetX = node.childNodes[0].yogaNode.getComputedLeft(); | ||
@@ -50,0 +54,0 @@ const offsetY = node.childNodes[0].yogaNode.getComputedTop(); |
{ | ||
"name": "ink", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "React for CLI", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
119780
36
2261