Comparing version
{ | ||
"name": "swiper", | ||
"version": "11.1.1", | ||
"version": "11.1.2", | ||
"description": "Most modern mobile touch slider and framework with hardware accelerated transitions", | ||
@@ -211,3 +211,3 @@ "typings": "swiper.d.ts", | ||
}, | ||
"releaseDate": "April 9, 2024" | ||
"releaseDate": "May 13, 2024" | ||
} |
@@ -8,9 +8,9 @@ import { Swiper, SwiperOptions } from './types/index.d.ts'; | ||
swiper: Swiper; | ||
on?: () => void; | ||
setTranslate?: () => void; | ||
setTransition?: () => void; | ||
on: () => void; | ||
setTranslate: () => void; | ||
setTransition: (duration: number) => void; | ||
overwriteParams?: () => SwiperOptions; | ||
perspective?: boolean; | ||
perspective?: () => boolean; | ||
recreateShadows?: () => void; | ||
getEffectParams?: () => any; | ||
getEffectParams?: () => { slideShadows?: boolean }; | ||
}) => void; | ||
@@ -17,0 +17,0 @@ |
@@ -42,2 +42,5 @@ // @ts-ignore | ||
keypress: CustomEvent<[swiper: Swiper, keyCode: string]>;/** | ||
* Event will be fired on mousewheel scroll | ||
*/ | ||
scroll: CustomEvent<[swiper: Swiper, event: WheelEvent]>;/** | ||
* Event will be fired on navigation hide | ||
@@ -58,5 +61,2 @@ */ | ||
navigationnext: CustomEvent<[swiper: Swiper]>;/** | ||
* Event will be fired on mousewheel scroll | ||
*/ | ||
scroll: CustomEvent<[swiper: Swiper, event: WheelEvent]>;/** | ||
* Event will be fired after pagination rendered | ||
@@ -63,0 +63,0 @@ */ |
@@ -72,2 +72,5 @@ import * as React from 'react'; | ||
onKeyPress?: (swiper: SwiperClass, keyCode: string) => void;/** | ||
* Event will be fired on mousewheel scroll | ||
*/ | ||
onScroll?: (swiper: SwiperClass, event: WheelEvent) => void;/** | ||
* Event will be fired on navigation hide | ||
@@ -88,5 +91,2 @@ */ | ||
onNavigationNext?: (swiper: SwiperClass) => void;/** | ||
* Event will be fired on mousewheel scroll | ||
*/ | ||
onScroll?: (swiper: SwiperClass, event: WheelEvent) => void;/** | ||
* Event will be fired after pagination rendered | ||
@@ -93,0 +93,0 @@ */ |
@@ -479,2 +479,5 @@ import type { | ||
keyPress: (swiper: SwiperClass, keyCode: string) => void;/** | ||
* Event will be fired on mousewheel scroll | ||
*/ | ||
scroll: (swiper: SwiperClass, event: WheelEvent) => void;/** | ||
* Event will be fired on navigation hide | ||
@@ -495,5 +498,2 @@ */ | ||
navigationNext: (swiper: SwiperClass) => void;/** | ||
* Event will be fired on mousewheel scroll | ||
*/ | ||
scroll: (swiper: SwiperClass, event: WheelEvent) => void;/** | ||
* Event will be fired after pagination rendered | ||
@@ -500,0 +500,0 @@ */ |
@@ -0,5 +1,13 @@ | ||
import { Swiper } from './index.d.ts'; | ||
export interface CSSSelector extends String {} | ||
export interface SwiperModule { | ||
name: string; | ||
} | ||
export type SwiperModule = (options: { | ||
params: Swiper['params']; | ||
swiper: Swiper; | ||
extendParams: (obj: { [name: string]: any }) => void; | ||
on: Swiper['on']; | ||
once: Swiper['once']; | ||
off: Swiper['off']; | ||
emit: Swiper['emit']; | ||
}) => void; |
@@ -218,3 +218,3 @@ import type { SwiperOptions } from './swiper-options.d.ts'; | ||
*/ | ||
slideNext(speed?: number, runCallbacks?: boolean): void; | ||
slideNext(speed?: number, runCallbacks?: boolean): boolean; | ||
@@ -228,3 +228,3 @@ /** | ||
*/ | ||
slidePrev(speed?: number, runCallbacks?: boolean): void; | ||
slidePrev(speed?: number, runCallbacks?: boolean): boolean; | ||
@@ -240,3 +240,3 @@ /** | ||
*/ | ||
slideTo(index: number, speed?: number, runCallbacks?: boolean): void; | ||
slideTo(index: number, speed?: number, runCallbacks?: boolean): boolean; | ||
@@ -252,3 +252,3 @@ /** | ||
*/ | ||
slideToLoop(index: number, speed?: number, runCallbacks?: boolean): void; | ||
slideToLoop(index: number, speed?: number, runCallbacks?: boolean): Swiper; | ||
@@ -263,3 +263,3 @@ /** | ||
*/ | ||
slideReset(speed?: number, runCallbacks?: boolean): void; | ||
slideReset(speed?: number, runCallbacks?: boolean): boolean; | ||
@@ -273,3 +273,3 @@ /** | ||
*/ | ||
slideToClosest(speed?: number, runCallbacks?: boolean): void; | ||
slideToClosest(speed?: number, runCallbacks?: boolean): boolean; | ||
@@ -276,0 +276,0 @@ /** |
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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
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 too big to display
Sorry, the diff of this file is too big to display
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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
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
Sorry, the diff of this file is too big to display
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 too big to display
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
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 3 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
3328652
0.13%50200
0.08%27
125%