embla-carousel-svelte
Advanced tools
Comparing version 7.0.9 to 7.1.0
import { ActionReturn } from 'svelte/action'; | ||
import { EmblaOptionsType, EmblaPluginType } from 'embla-carousel'; | ||
declare type EmblaCarouselParameterType = { | ||
type EmblaCarouselParameterType = { | ||
options: EmblaOptionsType; | ||
plugins: EmblaPluginType[]; | ||
}; | ||
export declare type EmblaCarouselSvelteType = ActionReturn<EmblaCarouselParameterType>; | ||
export type EmblaCarouselSvelteType = ActionReturn<EmblaCarouselParameterType>; | ||
declare function emblaCarouselSvelte(emblaNode: HTMLElement, emblaConfig?: EmblaCarouselParameterType): EmblaCarouselSvelteType; | ||
@@ -9,0 +9,0 @@ declare namespace emblaCarouselSvelte { |
@@ -37,7 +37,5 @@ 'use strict'; | ||
} | ||
var areOptionsEqual = EmblaCarousel__default["default"].optionsHandler().areEqual; | ||
var storedEmblaConfig = emblaConfig; | ||
var embla; | ||
if (canUseDOM()) { | ||
@@ -52,3 +50,2 @@ EmblaCarousel__default["default"].globalOptions = emblaCarouselSvelte.globalOptions; | ||
} | ||
return { | ||
@@ -63,3 +60,2 @@ destroy: function () { | ||
storedEmblaConfig = newEmblaConfig; | ||
if (embla) { | ||
@@ -71,3 +67,2 @@ embla.reInit(storedEmblaConfig.options, storedEmblaConfig.plugins); | ||
} | ||
emblaCarouselSvelte.globalOptions = undefined; | ||
@@ -74,0 +69,0 @@ |
@@ -31,7 +31,5 @@ import EmblaCarousel from 'embla-carousel'; | ||
} | ||
var areOptionsEqual = EmblaCarousel.optionsHandler().areEqual; | ||
var storedEmblaConfig = emblaConfig; | ||
var embla; | ||
if (canUseDOM()) { | ||
@@ -46,3 +44,2 @@ EmblaCarousel.globalOptions = emblaCarouselSvelte.globalOptions; | ||
} | ||
return { | ||
@@ -57,3 +54,2 @@ destroy: function () { | ||
storedEmblaConfig = newEmblaConfig; | ||
if (embla) { | ||
@@ -65,3 +61,2 @@ embla.reInit(storedEmblaConfig.options, storedEmblaConfig.plugins); | ||
} | ||
emblaCarouselSvelte.globalOptions = undefined; | ||
@@ -68,0 +63,0 @@ |
{ | ||
"name": "embla-carousel-svelte", | ||
"version": "7.0.9", | ||
"version": "7.1.0", | ||
"author": "David Jerleke", | ||
@@ -59,3 +59,3 @@ "description": "A lightweight carousel library with fluid motion and great swipe precision", | ||
"dependencies": { | ||
"embla-carousel": "7.0.9" | ||
"embla-carousel": "7.1.0" | ||
}, | ||
@@ -62,0 +62,0 @@ "peerDependencies": { |
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
22048
+ Addedembla-carousel@7.1.0(transitive)
- Removedembla-carousel@7.0.9(transitive)
Updatedembla-carousel@7.1.0