@datocms/astro 0.5.1 → 0.5.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/package.json +1 -1
- package/src/Image/Image.astro +1 -1
- package/src/Image/README.md +1 -1
- package/src/Image/types.ts +1 -1
package/package.json
CHANGED
package/src/Image/Image.astro
CHANGED
package/src/Image/README.md
CHANGED
|
@@ -122,4 +122,4 @@ Here's a complete recap of what `responsiveImage` offers:
|
|
|
122
122
|
| sizes | string | undefined | :x: | The HTML5 [`sizes`](https://web.dev/learn/design/responsive-images/#sizes) attribute for the image (will be used `data.sizes` as a fallback) |
|
|
123
123
|
| usePlaceholder | Boolean | true | :x: | Whether the image should use a blurred image placeholder |
|
|
124
124
|
| srcSetCandidates | Array<number> | [0.25, 0.5, 0.75, 1, 1.5, 2, 3, 4] | :x: | If `data` does not contain `srcSet`, the candidates for the `srcset` attribute of the image will be auto-generated based on these width multipliers |
|
|
125
|
-
| referrerPolicy | string | `
|
|
125
|
+
| referrerPolicy | string | `no-referrer-when-downgrade` | :x: | Defines which referrer is sent when fetching the image. Defaults to `no-referrer-when-downgrade` to give more useful stats in DatoCMS Project Usages |
|
package/src/Image/types.ts
CHANGED
|
@@ -67,7 +67,7 @@ export type ImageProps = {
|
|
|
67
67
|
* Defines which referrer is sent when fetching the image
|
|
68
68
|
* Read more: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#referrerpolicy
|
|
69
69
|
*
|
|
70
|
-
* Defaults to `
|
|
70
|
+
* Defaults to `no-referrer-when-downgrade` to give more useful stats in DatoCMS Project Usages
|
|
71
71
|
**/
|
|
72
72
|
referrerPolicy?: JSX.HTMLAttributeReferrerPolicy;
|
|
73
73
|
};
|