@bolt/components-image
Advanced tools
+8
-0
@@ -6,2 +6,10 @@ # Change Log | ||
| # [4.1.0](https://github.com/bolt-design-system/bolt/tree/master/packages/components/bolt-image/compare/v4.0.2...v4.1.0) (2021-07-19) | ||
| **Note:** Version bump only for package @bolt/components-image | ||
| # [4.0.0](https://github.com/bolt-design-system/bolt/tree/master/packages/components/bolt-image/compare/v4.0.0-beta-4...v4.0.0) (2021-06-23) | ||
@@ -8,0 +16,0 @@ |
+5
-5
| { | ||
| "name": "@bolt/components-image", | ||
| "version": "4.0.0", | ||
| "version": "4.1.0", | ||
| "description": "A container for displaying responsive image.", | ||
@@ -20,5 +20,5 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@bolt/components-ratio": "^4.0.0", | ||
| "@bolt/core-v3.x": "^4.0.0", | ||
| "@bolt/element": "^4.0.0", | ||
| "@bolt/components-ratio": "^4.1.0", | ||
| "@bolt/core-v3.x": "^4.1.0", | ||
| "@bolt/element": "^4.1.0", | ||
| "@bolt/lazy-queue": "^4.0.0", | ||
@@ -31,3 +31,3 @@ "lazysizes": "5.1.0" | ||
| }, | ||
| "gitHead": "3847f1f971440852045a0a262e5921f55ac48b46", | ||
| "gitHead": "46aa1b46fb132038ad3f7f00fb0fcf375b2b5ab3", | ||
| "maintainers": [ | ||
@@ -34,0 +34,0 @@ { |
+2
-2
@@ -8,3 +8,3 @@ {% set schema = bolt.data.components['@bolt-components-image'].schema %} | ||
| {# DEPRECATED. 'ratio' should be a string, but boolean was previously supported. Boolean is now DEPRECATED. #} | ||
| {% if ratio is sameas(false) or ratio is sameas(true) %} | ||
| {% if ratio is same as(false) or ratio is same as(true) %} | ||
| {% set _ratio_bool = ratio %} | ||
@@ -41,3 +41,3 @@ {% else %} | ||
| {% set _use_ratio = useAspectRatio or _ratio_bool ?? true %} | ||
| {% set _can_use_ratio = _use_ratio is sameas(true) and _ratio_string != 'none' and width > 0 and height > 0 and not cover %} | ||
| {% set _can_use_ratio = _use_ratio is same as(true) and _ratio_string != 'none' and width > 0 and height > 0 and not cover %} | ||
| {# Only JPGs allowed, PNGs can have transparency and may not look right layered over placeholder #} | ||
@@ -44,0 +44,0 @@ {% set _can_use_placeholder = _can_use_ratio or cover %} |
213934
0.1%Updated
Updated