@sanity/client 6.1.2 → 6.1.3-perspective.0

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/dist/index.d.ts CHANGED
@@ -283,7 +283,8 @@ export declare interface ClientConfig {
283
283
  /** @defaultValue true */
284
284
  useCdn?: boolean
285
285
  token?: string
286
- perspective?: 'previewDrafts' | 'published' | 'all'
286
+ /** @defaultValue 'raw' */
287
+ perspective?: 'previewDrafts' | 'published' | 'raw'
287
288
  apiHost?: string
288
289
  apiVersion?: string
289
290
  proxy?: string
@@ -2059,6 +2060,10 @@ export declare type SanityDocument<T extends Record<string, Any> = Record<string
2059
2060
  _type: string
2060
2061
  _createdAt: string
2061
2062
  _updatedAt: string
2063
+ /**
2064
+ * Present when `perspective` is set to `previewDrafts`
2065
+ */
2066
+ _originalId?: string
2062
2067
  }
2063
2068
 
2064
2069
  /** @public */
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ export { adapter as unstable__adapter, environment as unstable__environment } fr
4
4
  import { Observable, lastValueFrom } from 'rxjs';
5
5
  import { map, filter } from 'rxjs/operators';
6
6
  var name = "@sanity/client";
7
- var version = "6.1.2";
7
+ var version = "6.1.3-perspective.0";
8
8
  const middleware = [debug({
9
9
  verbose: true,
10
10
  namespace: "sanity:client"
@@ -845,7 +845,7 @@ function _requestObservable(client, httpRequest, options) {
845
845
  ...options.query
846
846
  };
847
847
  }
848
- if (typeof config.perspective === "string" && config.perspective !== "all") {
848
+ if (typeof config.perspective === "string" && config.perspective !== "raw") {
849
849
  options.query = {
850
850
  perspective: config.perspective,
851
851
  ...options.query