sanity 6.4.0-next.38 → 6.4.0-next.39
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/lib/_chunks-es/index2.js
CHANGED
|
@@ -82238,6 +82238,11 @@ function findMostSpecificTarget(targetType, id2, values2) {
|
|
|
82238
82238
|
if (values2.has(lessSpecificExactId))
|
|
82239
82239
|
return values2.get(lessSpecificExactId);
|
|
82240
82240
|
}
|
|
82241
|
+
let closestDescendant;
|
|
82242
|
+
for (const [targetId, target] of values2)
|
|
82243
|
+
!("path" in target) || !targetId.startsWith(targetType) || target.isChanged && target.path.length > path.length && PathUtils.numEqualSegments(path, target.path) === path.length && (!closestDescendant || target.path.length < closestDescendant.path.length) && (closestDescendant = target);
|
|
82244
|
+
if (closestDescendant)
|
|
82245
|
+
return closestDescendant;
|
|
82241
82246
|
let mostSpecific;
|
|
82242
82247
|
for (const [targetId, target] of values2) {
|
|
82243
82248
|
if (!("path" in target) || !targetId.startsWith(targetType))
|