sanity 6.4.1-next.6 → 6.4.1-next.7

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.
@@ -10486,9 +10486,12 @@ interface DocumentValidationStatus extends ValidationStatus {
10486
10486
  hasError: boolean;
10487
10487
  }
10488
10488
  /**
10489
- * TODO: Rename this fo DocumentInBundle, adapt in releases and variants to it's own specific types.
10489
+ * A document in a bundle (a set of documents resolved by a GROQ filter, e.g. a release or a
10490
+ * variant), along with its validation status. Shared by the release- and variant-specific types.
10491
+ *
10492
+ * @public
10490
10493
  */
10491
- interface DocumentInRelease {
10494
+ interface BundleDocument {
10492
10495
  memoKey: string;
10493
10496
  isPending?: boolean;
10494
10497
  document: SanityDocument & {
@@ -10496,6 +10499,13 @@ interface DocumentInRelease {
10496
10499
  };
10497
10500
  validation: DocumentValidationStatus;
10498
10501
  }
10502
+ /**
10503
+ * A single document in a release, along with its validation status.
10504
+ * Returned by {@link useReleaseDocuments}.
10505
+ *
10506
+ * @public
10507
+ */
10508
+ type DocumentInRelease = BundleDocument;
10499
10509
  /**
10500
10510
  * Gets all the releases ids
10501
10511
  * @internal