@sanity/types 4.16.0-next.24 → 4.16.0-next.26

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/index.d.mts CHANGED
@@ -5,6 +5,7 @@ import {ComponentType} from 'react'
5
5
  import {ElementType} from 'react'
6
6
  import {ReactNode} from 'react'
7
7
  import {SanityClient} from '@sanity/client'
8
+ import {StackablePerspective} from '@sanity/client'
8
9
 
9
10
  /**
10
11
  * Types of array actions that can be performed
@@ -2765,6 +2766,7 @@ export declare interface ReferenceFilterResolverContext {
2765
2766
  document: SanityDocument
2766
2767
  parent?: Record<string, unknown> | Record<string, unknown>[]
2767
2768
  parentPath: Path
2769
+ perspective: StackablePerspective[]
2768
2770
  getClient: (options: {apiVersion: string}) => SanityClient
2769
2771
  }
2770
2772
 
@@ -2781,7 +2783,7 @@ export declare type ReferenceFilterSearchOptions = {
2781
2783
  tag?: string
2782
2784
  maxFieldDepth?: number
2783
2785
  strategy?: SearchStrategy
2784
- perspective?: ClientPerspective
2786
+ perspective?: Exclude<ClientPerspective, 'raw' | 'previewDrafts'>
2785
2787
  }
2786
2788
 
2787
2789
  /**
package/lib/index.d.ts CHANGED
@@ -5,6 +5,7 @@ import {ComponentType} from 'react'
5
5
  import {ElementType} from 'react'
6
6
  import {ReactNode} from 'react'
7
7
  import {SanityClient} from '@sanity/client'
8
+ import {StackablePerspective} from '@sanity/client'
8
9
 
9
10
  /**
10
11
  * Types of array actions that can be performed
@@ -2765,6 +2766,7 @@ export declare interface ReferenceFilterResolverContext {
2765
2766
  document: SanityDocument
2766
2767
  parent?: Record<string, unknown> | Record<string, unknown>[]
2767
2768
  parentPath: Path
2769
+ perspective: StackablePerspective[]
2768
2770
  getClient: (options: {apiVersion: string}) => SanityClient
2769
2771
  }
2770
2772
 
@@ -2781,7 +2783,7 @@ export declare type ReferenceFilterSearchOptions = {
2781
2783
  tag?: string
2782
2784
  maxFieldDepth?: number
2783
2785
  strategy?: SearchStrategy
2784
- perspective?: ClientPerspective
2786
+ perspective?: Exclude<ClientPerspective, 'raw' | 'previewDrafts'>
2785
2787
  }
2786
2788
 
2787
2789
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/types",
3
- "version": "4.16.0-next.24+668d982dd5",
3
+ "version": "4.16.0-next.26+22123ed113",
4
4
  "description": "Type definitions for common Sanity data structures",
5
5
  "keywords": [
6
6
  "sanity",
@@ -52,10 +52,10 @@
52
52
  "react": "^19.1.1",
53
53
  "rimraf": "^5.0.10",
54
54
  "vitest": "^3.2.4",
55
- "@repo/eslint-config": "4.16.0-next.24+668d982dd5",
56
- "@repo/test-config": "4.16.0-next.24+668d982dd5",
57
- "@repo/package.config": "4.16.0-next.24+668d982dd5",
58
- "@repo/tsconfig": "4.16.0-next.24+668d982dd5"
55
+ "@repo/eslint-config": "4.16.0-next.26+22123ed113",
56
+ "@repo/test-config": "4.16.0-next.26+22123ed113",
57
+ "@repo/package.config": "4.16.0-next.26+22123ed113",
58
+ "@repo/tsconfig": "4.16.0-next.26+22123ed113"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@types/react": "18 || 19"