@titelmedia/bricks-gallery
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -6,2 +6,6 @@ # Change Log | ||
# [2.1.0](https://github.com/titel-media/bricks-lerna/compare/v2.0.1...v2.1.0) (2023-07-31) | ||
**Note:** Version bump only for package @titelmedia/bricks-gallery | ||
# [2.0.0](https://github.com/titel-media/bricks-lerna/compare/v1.11.27...v2.0.0) (2023-06-22) | ||
@@ -8,0 +12,0 @@ |
@@ -28,4 +28,5 @@ "use strict"; | ||
if (current) { | ||
current?.scrollTrigger?.kill(true); | ||
current?.pause(0).kill(true); | ||
var _current$scrollTrigge; | ||
current === null || current === void 0 ? void 0 : (_current$scrollTrigge = current.scrollTrigger) === null || _current$scrollTrigge === void 0 ? void 0 : _current$scrollTrigge.kill(true); | ||
current === null || current === void 0 ? void 0 : current.pause(0).kill(true); | ||
_all.gsap.set(itemsRef.current[i].current, { | ||
@@ -69,3 +70,3 @@ clearProps: true | ||
}, [initTimelines]); | ||
return _react.default.createElement(_styles.Container, null, items?.map((item, i) => _react.default.createElement("div", { | ||
return _react.default.createElement(_styles.Container, null, items === null || items === void 0 ? void 0 : items.map((item, i) => _react.default.createElement("div", { | ||
ref: itemsRef.current[i], | ||
@@ -72,0 +73,0 @@ key: `image--${i}` |
@@ -40,2 +40,3 @@ "use strict"; | ||
if (items.length !== 0) { | ||
var _items$, _items; | ||
return _react.default.createElement(_styles.Wrapper, { | ||
@@ -45,5 +46,5 @@ ref: wrapperRef | ||
ref: containerRef, | ||
firstImgAspectRatio: items[0]?.aspectRatio || 0, | ||
lastImgAspectRatio: items[items.length - 1]?.aspectRatio || 0 | ||
}, items?.map((item, i) => { | ||
firstImgAspectRatio: ((_items$ = items[0]) === null || _items$ === void 0 ? void 0 : _items$.aspectRatio) || 0, | ||
lastImgAspectRatio: ((_items = items[items.length - 1]) === null || _items === void 0 ? void 0 : _items.aspectRatio) || 0 | ||
}, items === null || items === void 0 ? void 0 : items.map((item, i) => { | ||
return _react.default.createElement(_styles.ImageWrapper, { | ||
@@ -59,3 +60,3 @@ key: `image--${i}`, | ||
} | ||
throw new Error('No images on the items list in the Horizontal Gallery'); | ||
throw new Error('No images on the items list in the Horizontal Gallery.'); | ||
} catch (error) { | ||
@@ -62,0 +63,0 @@ console.error(error.message); |
@@ -26,3 +26,3 @@ "use strict"; | ||
const overlayRef = (0, _react.useRef)(null); | ||
const fluid = staticImage?.fluid || staticImage?.responsiveImage || staticImage; | ||
const fluid = (staticImage === null || staticImage === void 0 ? void 0 : staticImage.fluid) || (staticImage === null || staticImage === void 0 ? void 0 : staticImage.responsiveImage) || staticImage; | ||
overlayHorizontal = overlayHorizontal || 'center'; | ||
@@ -85,3 +85,3 @@ overlayVertical = overlayVertical || 'bottom'; | ||
overlayAlignment: overlayAlignment | ||
}, items?.map((item, i) => { | ||
}, items === null || items === void 0 ? void 0 : items.map((item, i) => { | ||
return _react.default.createElement(_styles.ImageItem, { | ||
@@ -88,0 +88,0 @@ key: `item-${i}`, |
@@ -53,3 +53,3 @@ import React, { useRef, useEffect } from 'react'; | ||
} | ||
throw new Error('No images on the items list in the Horizontal Gallery'); | ||
throw new Error('No images on the items list in the Horizontal Gallery.'); | ||
} catch (error) { | ||
@@ -56,0 +56,0 @@ console.error(error.message); |
{ | ||
"name": "@titelmedia/bricks-gallery", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "> TODO: description", | ||
@@ -33,3 +33,3 @@ "author": "highsnob", | ||
}, | ||
"gitHead": "cc99e7238db49ff90624d25f73ca3af276223a20" | ||
"gitHead": "fbdb8627fe2f4fdf158a95b104285b89ee59ff56" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
88727
1104