sanity 5.20.0-next.2 → 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.
- package/lib/_chunks-es/version.js +2 -2
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +11 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var version = "5.20.0-next.
|
|
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.
|
|
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)
|