@titelmedia/bricks-gallery
Advanced tools
Comparing version 1.11.21 to 2.0.0
@@ -6,2 +6,6 @@ # Change Log | ||
# [2.0.0](https://github.com/titel-media/bricks-lerna/compare/v1.11.27...v2.0.0) (2023-06-22) | ||
**Note:** Version bump only for package @titelmedia/bricks-gallery | ||
## [1.11.21](https://github.com/titel-media/bricks-lerna/compare/v1.11.20...v1.11.21) (2023-05-24) | ||
@@ -8,0 +12,0 @@ |
@@ -28,5 +28,4 @@ "use strict"; | ||
if (current) { | ||
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); | ||
current?.scrollTrigger?.kill(true); | ||
current?.pause(0).kill(true); | ||
_all.gsap.set(itemsRef.current[i].current, { | ||
@@ -70,3 +69,3 @@ clearProps: true | ||
}, [initTimelines]); | ||
return _react.default.createElement(_styles.Container, null, items === null || items === void 0 ? void 0 : items.map((item, i) => _react.default.createElement("div", { | ||
return _react.default.createElement(_styles.Container, null, items?.map((item, i) => _react.default.createElement("div", { | ||
ref: itemsRef.current[i], | ||
@@ -73,0 +72,0 @@ key: `image--${i}` |
@@ -40,3 +40,2 @@ "use strict"; | ||
if (items.length !== 0) { | ||
var _items$, _items; | ||
return _react.default.createElement(_styles.Wrapper, { | ||
@@ -46,5 +45,5 @@ ref: wrapperRef | ||
ref: containerRef, | ||
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) => { | ||
firstImgAspectRatio: items[0]?.aspectRatio || 0, | ||
lastImgAspectRatio: items[items.length - 1]?.aspectRatio || 0 | ||
}, items?.map((item, i) => { | ||
return _react.default.createElement(_styles.ImageWrapper, { | ||
@@ -51,0 +50,0 @@ key: `image--${i}`, |
@@ -26,3 +26,3 @@ "use strict"; | ||
const overlayRef = (0, _react.useRef)(null); | ||
const fluid = (staticImage === null || staticImage === void 0 ? void 0 : staticImage.fluid) || (staticImage === null || staticImage === void 0 ? void 0 : staticImage.responsiveImage) || staticImage; | ||
const fluid = staticImage?.fluid || staticImage?.responsiveImage || staticImage; | ||
overlayHorizontal = overlayHorizontal || 'center'; | ||
@@ -85,3 +85,3 @@ overlayVertical = overlayVertical || 'bottom'; | ||
overlayAlignment: overlayAlignment | ||
}, items === null || items === void 0 ? void 0 : items.map((item, i) => { | ||
}, items?.map((item, i) => { | ||
return _react.default.createElement(_styles.ImageItem, { | ||
@@ -88,0 +88,0 @@ key: `item-${i}`, |
{ | ||
"name": "@titelmedia/bricks-gallery", | ||
"version": "1.11.21", | ||
"version": "2.0.0", | ||
"description": "> TODO: description", | ||
@@ -23,13 +23,13 @@ "author": "highsnob", | ||
"peerDependencies": { | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"styled-components": "5.3.3" | ||
}, | ||
"dependencies": { | ||
"@titelmedia/bricks-theme": "^1.11.21", | ||
"@titelmedia/bricks-utils": "^1.11.19", | ||
"@titelmedia/bricks-theme": "^2.0.0", | ||
"@titelmedia/bricks-utils": "^2.0.0", | ||
"gsap": "^3.8.0", | ||
"lodash": "^4.17.21" | ||
}, | ||
"gitHead": "51990c87de391f2f5b0eba69de60ec2a304ad4e0" | ||
"gitHead": "cc99e7238db49ff90624d25f73ca3af276223a20" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87549
1102
+ Added@titelmedia/bricks-theme@2.7.0(transitive)
+ Added@titelmedia/bricks-utils@2.14.0(transitive)
+ Addedreact@18.3.1(transitive)
+ Addedreact-dom@18.3.1(transitive)
+ Addedscheduler@0.23.2(transitive)
- Removed@titelmedia/bricks-theme@1.11.21(transitive)
- Removed@titelmedia/bricks-utils@1.11.19(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedreact@17.0.2(transitive)
- Removedreact-dom@17.0.2(transitive)
- Removedscheduler@0.20.2(transitive)