@sanity/cli 3.77.3-server-side-schemas.26 → 3.78.0

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.
@@ -35943,7 +35943,7 @@ function requirePrinter() {
35943
35943
  return decoratorsLines.isEmpty() ? options2.avoidRootParens || (shouldAddParens = path2.needsParens()) : parts.push(decoratorsLines), shouldAddParens && parts.unshift("("), parts.push(linesWithoutParens), shouldAddParens && parts.push(")"), (0, lines_1.concat)(parts);
35944
35944
  }
35945
35945
  function genericPrintNoParens(path2, options2, print) {
35946
- var n = path2.getValue();
35946
+ var _a, _b, _c, n = path2.getValue();
35947
35947
  if (!n)
35948
35948
  return (0, lines_1.fromString)("");
35949
35949
  if (typeof n == "string")
@@ -36113,10 +36113,10 @@ function requirePrinter() {
36113
36113
  }
36114
36114
  case "ReturnStatement": {
36115
36115
  if (parts.push("return"), n.argument) {
36116
- var argLines = path2.call(print, "argument");
36117
- argLines.startsWithComment() || argLines.length > 1 && namedTypes2.JSXElement && namedTypes2.JSXElement.check(n.argument) ? parts.push(` (
36118
- `, argLines.indent(options2.tabWidth), `
36119
- )`) : parts.push(" ", argLines);
36116
+ var argIsJsxElement = ((_a = namedTypes2.JSXElement) === null || _a === void 0 ? void 0 : _a.check(n.argument)) || ((_b = namedTypes2.JSXFragment) === null || _b === void 0 ? void 0 : _b.check(n.argument)), argLines = path2.call(print, "argument");
36117
+ argLines.startsWithComment() || argLines.length > 1 && argIsJsxElement ? (argIsJsxElement && (!((_c = n.argument.extra) === null || _c === void 0) && _c.parenthesized) && (n.argument.extra.parenthesized = !1, argLines = path2.call(print, "argument"), n.argument.extra.parenthesized = !0), parts.push(" ", (0, lines_1.concat)([`(
36118
+ `, argLines]).indentTail(options2.tabWidth), `
36119
+ )`)) : parts.push(" ", argLines);
36120
36120
  }
36121
36121
  return parts.push(";"), (0, lines_1.concat)(parts);
36122
36122
  }
@@ -36466,7 +36466,7 @@ while`), parts.push(" (", path2.call(print, "test"), ");"), (0, lines_1.concat)(
36466
36466
  }, "quasis"), parts.push("`"), (0, lines_1.concat)(parts).lockIndentTail();
36467
36467
  }
36468
36468
  case "TaggedTemplateExpression":
36469
- return (0, lines_1.concat)([path2.call(print, "tag"), path2.call(print, "quasi")]);
36469
+ return parts.push(path2.call(print, "tag")), n.typeParameters && parts.push(path2.call(print, "typeParameters")), parts.push(path2.call(print, "quasi")), (0, lines_1.concat)(parts);
36470
36470
  // These types are unprintable because they serve as abstract
36471
36471
  // supertypes for other (printable) types.
36472
36472
  case "Node":