sanity-plugin-utils 1.7.0 → 1.8.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sanity-plugin-utils",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "Handy hooks and clever components for Sanity Studio v3",
5
5
  "keywords": [
6
6
  "sanity",
@@ -88,7 +88,7 @@
88
88
  "peerDependencies": {
89
89
  "react": "^18 || ^19",
90
90
  "rxjs": "^7.8.1",
91
- "sanity": "^3.67.1 || ^4.0.0",
91
+ "sanity": "^3.67.1 || ^4.0.0 || ^5.0.0",
92
92
  "styled-components": "^6.1"
93
93
  },
94
94
  "engines": {
@@ -4,7 +4,7 @@ import type {ImageUrlBuilder, SourceClientOptions} from 'sanity'
4
4
  import {useClient} from 'sanity'
5
5
 
6
6
  export function useImageUrlBuilder(
7
- clientOptions?: SourceClientOptions
7
+ clientOptions: SourceClientOptions
8
8
  ): ImageUrlBuilder | null {
9
9
  const client = useClient(clientOptions)
10
10
  const builder = useMemo(() => createImageUrlBuilder(client), [client])
@@ -6,7 +6,7 @@ import {useImageUrlBuilder} from './useImageUrlBuilder'
6
6
 
7
7
  export function useImageUrlBuilderImage(
8
8
  source: SanityImageSource,
9
- clientOptions?: SourceClientOptions
9
+ clientOptions: SourceClientOptions
10
10
  ): ImageUrlBuilder | null {
11
11
  const builder = useImageUrlBuilder(clientOptions)
12
12
  const image = useMemo(