well-waterfall 1.2.11 → 1.2.14
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/dist/index.d.ts +1 -0
- package/dist/lib/attributes.d.ts +1 -0
- package/dist/modules/callbacks.d.ts +10 -0
- package/dist/util.d.ts +1 -0
- package/dist/{index.js → well-waterfall.es.js} +711 -693
- package/dist/well-waterfall.es.js.map +1 -0
- package/dist/well-waterfall.umd.js +7 -0
- package/dist/well-waterfall.umd.js.map +1 -0
- package/package.json +12 -9
- package/.eslintrc.js +0 -12
- package/.github/ISSUE_TEMPLATE/bug_report.yaml +0 -64
- package/.prettierrc +0 -5
- package/dist/index.js.map +0 -1
- package/index.html +0 -28
- package/src/index.ts +0 -124
- package/src/lib/attributes.ts +0 -277
- package/src/lib/elements.ts +0 -14
- package/src/modules/accessibility.ts +0 -41
- package/src/modules/advanced.ts +0 -52
- package/src/modules/breakpoints.ts +0 -61
- package/src/modules/controller.ts +0 -22
- package/src/modules/effect.ts +0 -59
- package/src/modules/freeMode.ts +0 -25
- package/src/modules/general.ts +0 -35
- package/src/modules/hashhistory.ts +0 -27
- package/src/modules/keyboard.ts +0 -11
- package/src/modules/layout.ts +0 -39
- package/src/modules/lazyLoad.ts +0 -8
- package/src/modules/manipulation.ts +0 -89
- package/src/modules/mouse.ts +0 -27
- package/src/modules/navigation.ts +0 -29
- package/src/modules/observer.ts +0 -21
- package/src/modules/pagination.ts +0 -90
- package/src/modules/parallax.ts +0 -9
- package/src/modules/playback.ts +0 -68
- package/src/modules/scrollbar.ts +0 -34
- package/src/modules/slideCount.ts +0 -15
- package/src/modules/thumbs.ts +0 -33
- package/src/modules/touch.ts +0 -67
- package/src/modules/zoom.ts +0 -23
- package/src/types/env.d.ts +0 -1
- package/src/types/waterfall.d.ts +0 -12
- package/src/util.ts +0 -112
- package/tsconfig.json +0 -27
- package/vite.config.ts +0 -39
package/dist/index.d.ts
CHANGED
package/dist/lib/attributes.d.ts
CHANGED
|
@@ -251,4 +251,5 @@ export declare const ATTR_PARALLAX_Y = "data-swiper-parallax-y";
|
|
|
251
251
|
export declare const ATTR_PARALLAX_SCALE = "data-swiper-parallax-scale";
|
|
252
252
|
export declare const ATTR_PARALLAX_OPACITY = "data-swiper-parallax-opacity";
|
|
253
253
|
export declare const ATTR_PARALLAX_DURATION = "data-swiper-parallax-duration";
|
|
254
|
+
export declare const ATTR_CALLBACK_SLIDE_CHANGE = "waterfall-callback-slide-change";
|
|
254
255
|
export declare const ATTR_PLAYBACK_MODE = "waterfall-playback-mode";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SwiperOptions } from 'swiper/types';
|
|
2
|
+
import { default as Swiper } from 'swiper';
|
|
3
|
+
export type SlideChangeCallbackParams = {
|
|
4
|
+
swiper: Swiper;
|
|
5
|
+
activeIndex: number;
|
|
6
|
+
previousIndex: number;
|
|
7
|
+
activeSlide: HTMLElement | null;
|
|
8
|
+
previousSlide: HTMLElement | null;
|
|
9
|
+
};
|
|
10
|
+
export declare function callbacksConfig(config: SwiperOptions, el: HTMLElement): void;
|
package/dist/util.d.ts
CHANGED
|
@@ -9,5 +9,6 @@ export declare function parseNumber(el: HTMLElement, attrName: string, defaultVa
|
|
|
9
9
|
export declare function parseBoolean(el: HTMLElement, attrName: string, defaultValue?: boolean): boolean | undefined;
|
|
10
10
|
export declare function removeNullOrUndefinedKeys<T extends Record<string, any>>(obj: T): T;
|
|
11
11
|
export declare function getWaterfallByName(waterfalls: Waterfall[], name: string): Waterfall | undefined;
|
|
12
|
+
export declare function findWaterfallByName(waterfalls: Waterfall[], name: string, element?: Element): Waterfall | null;
|
|
12
13
|
export declare function getWaterfallsByName(waterfalls: Waterfall[], selector: string, debug: boolean): Swiper[];
|
|
13
14
|
export declare function fixWebflowCMSListARIARole(): void;
|