Socket
Socket
Sign inDemoInstall

pcln-carousel

Package Overview
Dependencies
44
Maintainers
2
Versions
290
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.3 to 1.2.0-nm-beta.3

22

dist/cjs/Carousel.js

@@ -105,3 +105,7 @@ "use strict";

_ref2$stretchSlideHei = _ref2.stretchSlideHeight,
stretchSlideHeight = _ref2$stretchSlideHei === void 0 ? true : _ref2$stretchSlideHei;
stretchSlideHeight = _ref2$stretchSlideHei === void 0 ? true : _ref2$stretchSlideHei,
_ref2$onSlideClick = _ref2.onSlideClick,
onSlideClick = _ref2$onSlideClick === void 0 ? function () {} : _ref2$onSlideClick,
_ref2$onSlideKeyDown = _ref2.onSlideKeyDown,
onSlideKeyDown = _ref2$onSlideKeyDown === void 0 ? function () {} : _ref2$onSlideKeyDown;

@@ -166,3 +170,9 @@ var _useState3 = (0, _react.useState)(0),

},
"data-testid": "slide-".concat(index)
"data-testid": "slide-".concat(index),
onClick: function onClick(e) {
onSlideClick(item.props, e);
},
onKeyDown: function onKeyDown(e) {
onSlideKeyDown(item.props, e);
}
}, /*#__PURE__*/_react["default"].createElement(_pclnDesignSystem.Box, {

@@ -264,3 +274,9 @@ p: slideSpacing

/** Set height of slides based on tallest slide */
stretchSlideHeight: _propTypes["default"].bool
stretchSlideHeight: _propTypes["default"].bool,
/** Custom onClick event handler for each Slide child */
onSlideClick: _propTypes["default"].func,
/** Custom onKeyDown event handler for each Slide child */
onSlideKeyDown: _propTypes["default"].func
};

@@ -80,3 +80,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }

_ref2$stretchSlideHei = _ref2.stretchSlideHeight,
stretchSlideHeight = _ref2$stretchSlideHei === void 0 ? true : _ref2$stretchSlideHei;
stretchSlideHeight = _ref2$stretchSlideHei === void 0 ? true : _ref2$stretchSlideHei,
_ref2$onSlideClick = _ref2.onSlideClick,
onSlideClick = _ref2$onSlideClick === void 0 ? function () {} : _ref2$onSlideClick,
_ref2$onSlideKeyDown = _ref2.onSlideKeyDown,
onSlideKeyDown = _ref2$onSlideKeyDown === void 0 ? function () {} : _ref2$onSlideKeyDown;

@@ -141,3 +145,9 @@ var _useState3 = useState(0),

},
"data-testid": "slide-".concat(index)
"data-testid": "slide-".concat(index),
onClick: function onClick(e) {
onSlideClick(item.props, e);
},
onKeyDown: function onKeyDown(e) {
onSlideKeyDown(item.props, e);
}
}, /*#__PURE__*/React.createElement(Box, {

@@ -237,3 +247,9 @@ p: slideSpacing

/** Set height of slides based on tallest slide */
stretchSlideHeight: PropTypes.bool
stretchSlideHeight: PropTypes.bool,
/** Custom onClick event handler for each Slide child */
onSlideClick: PropTypes.func,
/** Custom onKeyDown event handler for each Slide child */
onSlideKeyDown: PropTypes.func
};

2

package.json
{
"name": "pcln-carousel",
"version": "1.1.3",
"version": "1.2.0-nm-beta.3",
"description": "Priceline Design System Carousel Component",

@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc