@sanity/client 6.21.2 → 6.21.3-canary.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/_chunks-cjs/resolveEditInfo.cjs +1 -1
- package/dist/_chunks-cjs/resolveEditInfo.cjs.map +1 -1
- package/dist/_chunks-cjs/stegaEncodeSourceMap.cjs +10 -8
- package/dist/_chunks-cjs/stegaEncodeSourceMap.cjs.map +1 -1
- package/dist/_chunks-es/resolveEditInfo.js +1 -1
- package/dist/_chunks-es/resolveEditInfo.js.map +1 -1
- package/dist/_chunks-es/stegaEncodeSourceMap.js +10 -8
- package/dist/_chunks-es/stegaEncodeSourceMap.js.map +1 -1
- package/dist/index.browser.cjs +219 -174
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +12 -0
- package/dist/index.browser.d.ts +12 -0
- package/dist/index.browser.js +220 -174
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +220 -175
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +221 -175
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/SanityClient.ts +2 -2
- package/src/data/dataMethods.ts +14 -4
- package/src/types.ts +8 -0
- package/umd/sanityClient.js +980 -193
- package/umd/sanityClient.min.js +8 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
1
3
|
import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client/csm'
|
|
2
4
|
import {ContentSourceMapParsedPath} from '@sanity/client/csm'
|
|
3
5
|
import {ContentSourceMapParsedPathKeyedSegment} from '@sanity/client/csm'
|
|
@@ -2269,6 +2271,7 @@ export declare class SanityClient {
|
|
|
2269
2271
|
getDocument<R extends Record<string, Any> = Record<string, Any>>(
|
|
2270
2272
|
id: string,
|
|
2271
2273
|
options?: {
|
|
2274
|
+
signal?: AbortSignal
|
|
2272
2275
|
tag?: string
|
|
2273
2276
|
},
|
|
2274
2277
|
): Promise<SanityDocument<R> | undefined>
|
|
@@ -2284,6 +2287,7 @@ export declare class SanityClient {
|
|
|
2284
2287
|
getDocuments<R extends Record<string, Any> = Record<string, Any>>(
|
|
2285
2288
|
ids: string[],
|
|
2286
2289
|
options?: {
|
|
2290
|
+
signal?: AbortSignal
|
|
2287
2291
|
tag?: string
|
|
2288
2292
|
},
|
|
2289
2293
|
): Promise<(SanityDocument<R> | null)[]>
|
|
@@ -2758,6 +2762,10 @@ export declare interface SanityImagePalette {
|
|
|
2758
2762
|
export declare interface SanityProject {
|
|
2759
2763
|
id: string
|
|
2760
2764
|
displayName: string
|
|
2765
|
+
/**
|
|
2766
|
+
* @deprecated Use the `/user-applications` endpoint instead, which lists all deployed studios/applications
|
|
2767
|
+
* @see https://www.sanity.io/help/studio-host-user-applications
|
|
2768
|
+
*/
|
|
2761
2769
|
studioHost: string | null
|
|
2762
2770
|
organizationId: string | null
|
|
2763
2771
|
isBlocked: boolean
|
|
@@ -2770,6 +2778,10 @@ export declare interface SanityProject {
|
|
|
2770
2778
|
metadata: {
|
|
2771
2779
|
cliInitializedAt?: string
|
|
2772
2780
|
color?: string
|
|
2781
|
+
/**
|
|
2782
|
+
* @deprecated Use the `/user-applications` endpoint instead, which lists all deployed studios/applications
|
|
2783
|
+
* @see https://www.sanity.io/help/studio-host-user-applications
|
|
2784
|
+
*/
|
|
2773
2785
|
externalStudioHost?: string
|
|
2774
2786
|
}
|
|
2775
2787
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
1
3
|
import type {ContentSourceMapDocuments as ContentSourceMapDocuments_2} from '@sanity/client/csm'
|
|
2
4
|
import {ContentSourceMapParsedPath} from '@sanity/client/csm'
|
|
3
5
|
import {ContentSourceMapParsedPathKeyedSegment} from '@sanity/client/csm'
|
|
@@ -2269,6 +2271,7 @@ export declare class SanityClient {
|
|
|
2269
2271
|
getDocument<R extends Record<string, Any> = Record<string, Any>>(
|
|
2270
2272
|
id: string,
|
|
2271
2273
|
options?: {
|
|
2274
|
+
signal?: AbortSignal
|
|
2272
2275
|
tag?: string
|
|
2273
2276
|
},
|
|
2274
2277
|
): Promise<SanityDocument<R> | undefined>
|
|
@@ -2284,6 +2287,7 @@ export declare class SanityClient {
|
|
|
2284
2287
|
getDocuments<R extends Record<string, Any> = Record<string, Any>>(
|
|
2285
2288
|
ids: string[],
|
|
2286
2289
|
options?: {
|
|
2290
|
+
signal?: AbortSignal
|
|
2287
2291
|
tag?: string
|
|
2288
2292
|
},
|
|
2289
2293
|
): Promise<(SanityDocument<R> | null)[]>
|
|
@@ -2758,6 +2762,10 @@ export declare interface SanityImagePalette {
|
|
|
2758
2762
|
export declare interface SanityProject {
|
|
2759
2763
|
id: string
|
|
2760
2764
|
displayName: string
|
|
2765
|
+
/**
|
|
2766
|
+
* @deprecated Use the `/user-applications` endpoint instead, which lists all deployed studios/applications
|
|
2767
|
+
* @see https://www.sanity.io/help/studio-host-user-applications
|
|
2768
|
+
*/
|
|
2761
2769
|
studioHost: string | null
|
|
2762
2770
|
organizationId: string | null
|
|
2763
2771
|
isBlocked: boolean
|
|
@@ -2770,6 +2778,10 @@ export declare interface SanityProject {
|
|
|
2770
2778
|
metadata: {
|
|
2771
2779
|
cliInitializedAt?: string
|
|
2772
2780
|
color?: string
|
|
2781
|
+
/**
|
|
2782
|
+
* @deprecated Use the `/user-applications` endpoint instead, which lists all deployed studios/applications
|
|
2783
|
+
* @see https://www.sanity.io/help/studio-host-user-applications
|
|
2784
|
+
*/
|
|
2773
2785
|
externalStudioHost?: string
|
|
2774
2786
|
}
|
|
2775
2787
|
}
|