@sanity/client 7.5.0 → 7.6.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/README.md CHANGED
@@ -2138,6 +2138,13 @@ For example:
2138
2138
  - `target: {path: ['wrapper', 'title'], operation: {type: 'image-description', sourcePath: ['array', {_key: 'abc'}, 'image'] }`
2139
2139
  - `target: {path: ['wrapper'], include: ['portableTextField'], operation: {type: 'image-description', sourcePath: ['image', 'asset'] }, instruction: 'Use formatting and headings to describe the image in great detail' }`
2140
2140
 
2141
+
2142
+ ###### Targeting images outside the document (URL)
2143
+ If the source image is available on a https URL outside the target document, it is possible to get a description for it using `imageUrl`.
2144
+
2145
+ Example:
2146
+ - `target: {path: ['description'], operation: operation: {type: 'image-description', imageUrL: 'https://www.sanity.io/static/images/favicons/android-icon-192x192.png?v=2' }`
2147
+
2141
2148
  ##### Example: Field-based transformation
2142
2149
 
2143
2150
  ```ts