@sanity/assist 3.1.0 → 3.1.1

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/assist",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "You create the instructions; Sanity AI Assist does the rest.",
5
5
  "keywords": [
6
6
  "sanity",
@@ -81,7 +81,7 @@
81
81
  "react": "^18.2.0",
82
82
  "react-dom": "^18.2.0",
83
83
  "rimraf": "^5.0.5",
84
- "sanity": "^3.69.0",
84
+ "sanity": "^3.74.1",
85
85
  "semantic-release": "^23.0.8",
86
86
  "styled-components": "^6.1.8",
87
87
  "typescript": "^5.7.2",
@@ -18,11 +18,7 @@ export const ImageContext = createContext<ImageContextValue>({})
18
18
  export function ImageContextProvider(props: InputProps) {
19
19
  const {schemaType, path, value, readOnly} = props
20
20
  const assetRef = (value as any)?.asset?._ref
21
- const {
22
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
23
- // @ts-ignore this is a valid option available in `corel` - Remove after corel is merged to next
24
- selectedReleaseId,
25
- } = useDocumentPane()
21
+ const {selectedReleaseId} = useDocumentPane()
26
22
  const [assetRefState, setAssetRefState] = useState<string | undefined>(assetRef)
27
23
 
28
24
  const {assistableDocumentId, documentSchemaType} = useAssistDocumentContext()
@@ -33,9 +29,7 @@ export function ImageContextProvider(props: InputProps) {
33
29
  const {isSyncing} = useSyncState(
34
30
  getPublishedId(assistableDocumentId),
35
31
  documentSchemaType.name,
36
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
37
- // @ts-ignore this is a valid option available in `corel` - Remove after corel is merged to next
38
- selectedReleaseId ? {version: selectedReleaseId} : undefined,
32
+ selectedReleaseId,
39
33
  )
40
34
 
41
35
  const router = usePaneRouter()