@sanity/schema 5.0.0-next-major.12 → 5.0.0-next-major.6

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.
@@ -545,7 +545,7 @@ const OVERRIDABLE_FIELDS$d = [...DEFAULT_OVERRIDEABLE_FIELDS], BOOLEAN_CORE = {
545
545
  };
546
546
  }
547
547
  }
548
- }, DEFAULT_MAX_FIELD_DEPTH = 5, stringFieldsSymbols = {}, getStringFieldSymbol = (maxDepth) => (stringFieldsSymbols[maxDepth] || (stringFieldsSymbols[maxDepth] = Symbol(`__cachedStringFields_${maxDepth}`)), stringFieldsSymbols[maxDepth]), isReference = (type) => type.type && type.type.name === "reference", portableTextFields = ["style", "list"], isPortableTextBlock = (type) => type.name === "block" || type.type && isPortableTextBlock(type.type), isPortableTextArray = (type) => type.jsonType === "array" && Array.isArray(type.of) && type.of.some(isPortableTextBlock);
548
+ }, DEFAULT_MAX_FIELD_DEPTH = 5, stringFieldsSymbols = {}, getStringFieldSymbol = (maxDepth) => (stringFieldsSymbols[maxDepth] || (stringFieldsSymbols[maxDepth] = /* @__PURE__ */ Symbol(`__cachedStringFields_${maxDepth}`)), stringFieldsSymbols[maxDepth]), isReference = (type) => type.type && type.type.name === "reference", portableTextFields = ["style", "list"], isPortableTextBlock = (type) => type.name === "block" || type.type && isPortableTextBlock(type.type), isPortableTextArray = (type) => type.jsonType === "array" && Array.isArray(type.of) && type.of.some(isPortableTextBlock);
549
549
  function reduceType(type, reducer, acc, path = [], maxDepth) {
550
550
  if (maxDepth < 0)
551
551
  return acc;
@@ -1511,7 +1511,7 @@ class DeprecatedDefaultSchema extends Schema {
1511
1511
  console.warn(stack);
1512
1512
  }
1513
1513
  }
1514
- const FIELD_REF = Symbol("FIELD_REF"), ruleConstraintTypes = [
1514
+ const FIELD_REF = /* @__PURE__ */ Symbol("FIELD_REF"), ruleConstraintTypes = [
1515
1515
  "Array",
1516
1516
  "Boolean",
1517
1517
  "Date",