@lumx/react 3.7.6-alpha.15 → 3.7.6-alpha.16
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/index.js +2 -1
- package/index.js.map +1 -1
- package/package.json +3 -4
- package/src/components/image-lightbox/internal/ImageSlide.tsx +3 -3
- package/src/components/image-lightbox/useImageLightbox.tsx +2 -2
- package/src/utils/{startViewTransition.ts → DOM/startViewTransition.ts} +4 -2
- package/src/utils/object/{isEqual.test.js → isEqual.test.ts} +1 -1
- package/src/utils/react/unref.ts +7 -0
- package/src/utils/unref.ts +0 -6
- /package/src/utils/{findImage.tsx → DOM/findImage.tsx} +0 -0
- /package/src/utils/{getPrefersReducedMotion.ts → browser/getPrefersReducedMotion.ts} +0 -0
package/index.js
CHANGED
|
@@ -8137,7 +8137,7 @@ const ImageSlide = /*#__PURE__*/React.memo(props => {
|
|
|
8137
8137
|
tabIndex: isScrollable ? 0 : undefined,
|
|
8138
8138
|
className: `${CLASSNAME$v}__image-slide`
|
|
8139
8139
|
}, /*#__PURE__*/React.createElement(Thumbnail, {
|
|
8140
|
-
imgRef:
|
|
8140
|
+
imgRef: useMergeRefs(imgRef, propImgRef),
|
|
8141
8141
|
image: image,
|
|
8142
8142
|
alt: alt,
|
|
8143
8143
|
className: `${CLASSNAME$v}__thumbnail`,
|
|
@@ -8296,6 +8296,7 @@ const ImageSlideshow = _ref => {
|
|
|
8296
8296
|
}, slideShowControls, zoomControls)));
|
|
8297
8297
|
};
|
|
8298
8298
|
|
|
8299
|
+
/** Unref a react ref or element */
|
|
8299
8300
|
function unref(maybeElement) {
|
|
8300
8301
|
if (maybeElement instanceof HTMLElement) return maybeElement;
|
|
8301
8302
|
return maybeElement === null || maybeElement === void 0 ? void 0 : maybeElement.current;
|