sanity 6.3.0-next.31 → 6.3.0-next.33

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.
@@ -31,6 +31,17 @@ interface BaseStructureToolPaneProps<T extends PaneNode['type']> {
31
31
  */
32
32
  key?: string;
33
33
  }
34
+ /**
35
+ * The reference counts known at the point a delete is confirmed, surfaced so
36
+ * callers can record telemetry about how heavily referenced a document was.
37
+ *
38
+ * @internal
39
+ */
40
+ interface DeleteReferenceCounts {
41
+ totalReferenceCount: number;
42
+ internalReferenceCount: number;
43
+ crossDatasetReferenceCount: number;
44
+ }
34
45
  /** @internal */
35
46
  interface ConfirmDeleteDialogProps {
36
47
  /**
@@ -49,7 +60,7 @@ interface ConfirmDeleteDialogProps {
49
60
  */
50
61
  action?: 'delete' | 'unpublish';
51
62
  onCancel: () => void;
52
- onConfirm: (versions: string[]) => void;
63
+ onConfirm: (versions: string[], referenceCounts: DeleteReferenceCounts) => void;
53
64
  }
54
65
  /** @internal */
55
66
  declare function ConfirmDeleteDialogContainer(props: ConfirmDeleteDialogProps): import("react").JSX.Element;