next-sanity 4.2.2-dev.1 → 4.2.2-dev.2
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 +6 -11
- package/package.json +1 -1
- package/src/index.ts +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import {ClientConfig} from '@sanity/client'
|
|
2
|
-
import {ClientConfig as ClientConfig_3} from '@sanity/preview-kit/client'
|
|
1
|
+
import {ClientConfig as ClientConfig_2} from '@sanity/preview-kit/client'
|
|
3
2
|
import {createClient as createClient_2} from '@sanity/preview-kit/client'
|
|
4
3
|
import {default as groq} from 'groq'
|
|
5
|
-
import {SanityClient} from '@sanity/client'
|
|
6
|
-
|
|
7
|
-
export {ClientConfig}
|
|
8
4
|
|
|
9
5
|
/** @public */
|
|
10
|
-
declare interface
|
|
6
|
+
export declare interface ClientConfig
|
|
7
|
+
extends Omit<ClientConfig_2, 'studioUrl' | 'encodeSourceMap'> {
|
|
11
8
|
/**
|
|
12
9
|
* Where the Studio is hosted.
|
|
13
10
|
* If it's embedded in the app, use the base path for example `/studio`.
|
|
@@ -15,24 +12,22 @@ declare interface ClientConfig_2 extends Omit<ClientConfig_3, 'studioUrl' | 'enc
|
|
|
15
12
|
* @defaultValue process.env.NEXT_PUBLIC_SANITY_STUDIO_URL
|
|
16
13
|
* @alpha
|
|
17
14
|
*/
|
|
18
|
-
studioUrl?:
|
|
15
|
+
studioUrl?: ClientConfig_2['studioUrl']
|
|
19
16
|
/**
|
|
20
17
|
* If there's no `studioUrl` then the default value is `none` and the normal `@sanity/client` will be used. If `studioUrl` is set, then it's `auto` by default.
|
|
21
18
|
* @defaultValue process.env.MEXT_PUBLIC_SANITY_SOURCE_MAP || studioUrl ? 'auto' : 'none'
|
|
22
19
|
* @alpha
|
|
23
20
|
*/
|
|
24
|
-
encodeSourceMap?:
|
|
21
|
+
encodeSourceMap?: ClientConfig_2['encodeSourceMap']
|
|
25
22
|
}
|
|
26
23
|
|
|
27
24
|
/**
|
|
28
25
|
* @public
|
|
29
26
|
*/
|
|
30
|
-
export declare function createClient(config:
|
|
27
|
+
export declare function createClient(config: ClientConfig): ReturnType<typeof createClient_2>
|
|
31
28
|
|
|
32
29
|
export {groq}
|
|
33
30
|
|
|
34
|
-
export {SanityClient}
|
|
35
|
-
|
|
36
31
|
export * from '@sanity/preview-kit/client'
|
|
37
32
|
|
|
38
33
|
export {}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED