Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

embla-carousel-auto-height

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embla-carousel-auto-height - npm Package Compare versions

Comparing version 6.1.1 to 6.2.0

3

components/index.d.ts

@@ -5,2 +5,5 @@ import { AutoHeightOptionsType, OptionsType } from './Options';

declare function AutoHeight(userOptions?: AutoHeightOptionsType): AutoHeightType;
declare namespace AutoHeight {
var globalOptions: Partial<OptionsType> | undefined;
}
export default AutoHeight;

4

embla-carousel-auto-height.esm.js

@@ -6,3 +6,3 @@ var defaultOptions = {

function AutoHeight(userOptions) {
var options = Object.assign({}, defaultOptions, userOptions);
var options = Object.assign({}, defaultOptions, AutoHeight.globalOptions, userOptions);
var destroyHeight = options.destroyHeight;

@@ -69,3 +69,5 @@ var heightEvents = ['select', 'pointerUp'];

AutoHeight.globalOptions = undefined;
export default AutoHeight;
//# sourceMappingURL=embla-carousel-auto-height.esm.js.map

@@ -8,3 +8,3 @@ 'use strict';

function AutoHeight(userOptions) {
var options = Object.assign({}, defaultOptions, userOptions);
var options = Object.assign({}, defaultOptions, AutoHeight.globalOptions, userOptions);
var destroyHeight = options.destroyHeight;

@@ -71,3 +71,5 @@ var heightEvents = ['select', 'pointerUp'];

AutoHeight.globalOptions = undefined;
module.exports = AutoHeight;
//# sourceMappingURL=embla-carousel-auto-height.js.map

@@ -1,1 +0,1 @@

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).EmblaCarouselAutoHeight=n()}(this,(function(){"use strict";var e={destroyHeight:"auto"};return function(n){var t,i=Object.assign({},e,n),o=i.destroyHeight,r=["select","pointerUp"],u=[],s=[];function f(e){var n,i,r,f="destroy"===e?o:(n=t.internalEngine(),i=n.slidesInView,r=n.target,i.check(r.get(),u).map((function(e){return s[e]})).reduce((function(e,n){return Math.max(e,n)}),0)+"px");t.containerNode().style.height=f}return{name:"AutoHeight",options:i,init:function(e){var n=(t=e).internalEngine(),i=n.options,o=n.slidesInView,d=n.slideRects;"y"!==i.axis&&(u=o.findSlideBounds(void 0,.5),s=d.map((function(e){return e.height})),r.forEach((function(e){return t.on(e,f)})),f())},destroy:function(){r.forEach((function(e){return t.off(e,f)})),f("destroy")}}}}));
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).EmblaCarouselAutoHeight=n()}(this,(function(){"use strict";var e={destroyHeight:"auto"};function n(t){var i,o=Object.assign({},e,n.globalOptions,t),r=o.destroyHeight,s=["select","pointerUp"],u=[],f=[];function a(e){var n,t,o,s="destroy"===e?r:(n=i.internalEngine(),t=n.slidesInView,o=n.target,t.check(o.get(),u).map((function(e){return f[e]})).reduce((function(e,n){return Math.max(e,n)}),0)+"px");i.containerNode().style.height=s}return{name:"AutoHeight",options:o,init:function(e){var n=(i=e).internalEngine(),t=n.options,o=n.slidesInView,r=n.slideRects;"y"!==t.axis&&(u=o.findSlideBounds(void 0,.5),f=r.map((function(e){return e.height})),s.forEach((function(e){return i.on(e,a)})),a())},destroy:function(){s.forEach((function(e){return i.off(e,a)})),a("destroy")}}}return n.globalOptions=void 0,n}));
{
"name": "embla-carousel-auto-height",
"version": "6.1.1",
"version": "6.2.0",
"author": "David Cetinkaya",

@@ -57,4 +57,4 @@ "description": "An auto height plugin for Embla Carousel",

"peerDependencies": {
"embla-carousel": "6.1.1"
"embla-carousel": "6.2.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc