@crystaldesign/widget-library 25.5.0-rc.7 → 25.5.0-rc.9
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/build/esm/index.js +2 -2
- package/package.json +2 -2
package/build/esm/index.js
CHANGED
|
@@ -276,7 +276,7 @@ function useMedia(_ref) {
|
|
|
276
276
|
|
|
277
277
|
// Add product index to each media item
|
|
278
278
|
if (filteredMedia.length > 0) {
|
|
279
|
-
hasAddedMediaForProduct =
|
|
279
|
+
hasAddedMediaForProduct = functionType === 'ART';
|
|
280
280
|
newMedias = [].concat(_toConsumableArray(newMedias), _toConsumableArray(filteredMedia.map(function (media) {
|
|
281
281
|
return _objectSpread$3(_objectSpread$3({}, media), {}, {
|
|
282
282
|
productIndex: productIndex
|
|
@@ -290,7 +290,7 @@ function useMedia(_ref) {
|
|
|
290
290
|
|
|
291
291
|
// Add 3D image as fallback only if no media at all exists for this product
|
|
292
292
|
if (add3DImageAsFallback && product.image && !hasAddedMediaForProduct) {
|
|
293
|
-
newMedias.
|
|
293
|
+
newMedias.unshift({
|
|
294
294
|
url: product.image,
|
|
295
295
|
productIndex: productIndex
|
|
296
296
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/widget-library",
|
|
3
|
-
"version": "25.5.0-rc.
|
|
3
|
+
"version": "25.5.0-rc.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"storybook": "storybook dev -p 6006",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"suiteName": "widget-library",
|
|
37
37
|
"outputDirectory": "./test-reports"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "ce620c9d0b8c5cdfb21b2fa209a2d8d5b3638dc0"
|
|
40
40
|
}
|