@dosgato/templating 1.0.6 → 1.0.7
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/render.d.ts +7 -0
- package/package.json +1 -1
package/dist/render.d.ts
CHANGED
|
@@ -21,6 +21,13 @@ export interface PictureAttributes {
|
|
|
21
21
|
src: string;
|
|
22
22
|
/** string appropriate for the srcset attribute of the default <img> tag, or use widths array to reconstruct */
|
|
23
23
|
srcset: string;
|
|
24
|
+
/**
|
|
25
|
+
* When an image link cannot be found, we still return the src and srcset with a non-working path so that the
|
|
26
|
+
* user can more easily determine 1) that there was an image that is now broken and 2) where the image used
|
|
27
|
+
* to be.
|
|
28
|
+
* This attribute will be set to true in case the render needs any additional logic for broken links
|
|
29
|
+
*/
|
|
30
|
+
broken: boolean;
|
|
24
31
|
/** a list of available widths in case you want to filter some out and recreate the srcset */
|
|
25
32
|
widths: PictureResize[];
|
|
26
33
|
/** alternative text stored with the image in its asset repository, may be overridden by local alt text */
|