sanity 5.20.0-next.3 → 5.20.0-next.4

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.
@@ -7572,8 +7572,8 @@ declare function useScheduleAction(props: DocumentActionProps): {
7572
7572
  icon: react.ForwardRefExoticComponent<Omit<react.SVGProps<SVGSVGElement>, "ref"> & react.RefAttributes<SVGSVGElement>>;
7573
7573
  label: string;
7574
7574
  title: react.JSX.Element;
7575
- dialog?: undefined;
7576
7575
  onHandle?: undefined;
7576
+ dialog?: undefined;
7577
7577
  } | {
7578
7578
  dialog: false | DocumentActionModalDialogProps;
7579
7579
  disabled: boolean;
@@ -1,4 +1,4 @@
1
- var version = "5.20.0-next.3+611e177ebc";
1
+ var version = "5.20.0-next.4+80e57e96f8";
2
2
  let buildVersion;
3
3
  try {
4
4
  buildVersion = process.env.PKG_BUILD_VERSION;
@@ -7,7 +7,7 @@ try {
7
7
  try {
8
8
  buildVersion = buildVersion || // This is replaced by `@sanity/pkg-utils` at build time
9
9
  // and must always be references by its full static name, e.g. no optional chaining, no `if (process && process.env)` etc.
10
- "5.20.0-next.3+611e177ebc";
10
+ "5.20.0-next.4+80e57e96f8";
11
11
  } catch {
12
12
  }
13
13
  const SANITY_VERSION = buildVersion || `${version}-dev`;
package/lib/index.js CHANGED
@@ -45262,7 +45262,7 @@ function createPreviewObserver(context) {
45262
45262
  }));
45263
45263
  }
45264
45264
  if (isReferenceSchemaType(type))
45265
- return isReference(value) ? observeDocumentTypeFromId(value._ref).pipe(switchMap((typeName) => {
45265
+ return isReference(value) ? observeDocumentTypeFromId(value._ref, void 0, perspective).pipe(switchMap((typeName) => {
45266
45266
  if (typeName) {
45267
45267
  const refType = type.to.find((toType) => toType.name === typeName);
45268
45268
  if (refType)