well-waterfall 1.0.7 → 1.0.9
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.js +774 -0
- package/dist/types/Waterfall/src/lib/attributes.d.ts +3 -0
- package/dist/types/Waterfall/src/modules/accessibility.d.ts +2 -0
- package/dist/types/Waterfall/src/modules/breakpoints.d.ts +32 -0
- package/dist/types/Waterfall/src/modules/controller.d.ts +7 -0
- package/dist/types/Waterfall/src/modules/effect.d.ts +27 -0
- package/dist/types/Waterfall/src/modules/general.d.ts +94 -0
- package/dist/types/Waterfall/src/modules/hashhistory.d.ts +10 -0
- package/dist/types/Waterfall/src/modules/input.d.ts +16 -0
- package/dist/types/Waterfall/src/modules/layout.d.ts +4 -0
- package/dist/types/Waterfall/src/modules/manipulation.d.ts +1 -0
- package/dist/types/Waterfall/src/modules/navigation.d.ts +10 -0
- package/dist/types/Waterfall/src/modules/pagination.d.ts +26 -0
- package/dist/types/Waterfall/src/modules/playback.d.ts +17 -0
- package/dist/types/Waterfall/src/modules/scrollbar.d.ts +13 -0
- package/dist/types/Waterfall/src/modules/slideCount.d.ts +4 -0
- package/dist/types/Waterfall/src/modules/thumbs.d.ts +3 -0
- package/dist/types/Waterfall/src/modules/zoom.d.ts +9 -0
- package/dist/types/Waterfall/src/util.d.ts +10 -0
- package/dist/types/Waterfall/src/waterfall.d.ts +2 -0
- package/dist/types/attributes.d.ts +1 -0
- package/package.json +2 -2
- package/webpack.config.js +2 -2
- /package/src/{waterfall.ts → index.ts} +0 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare function breakpointsConfig($this: JQuery<HTMLElement>): {
|
|
2
|
+
478: {
|
|
3
|
+
centeredSlides: string | number | boolean | null;
|
|
4
|
+
slidesPerView: string | number | boolean | null;
|
|
5
|
+
slidesPerGroup: string | number | boolean | null;
|
|
6
|
+
spaceBetween: string | number | boolean | null;
|
|
7
|
+
};
|
|
8
|
+
767: {
|
|
9
|
+
centeredSlides: string | number | boolean | null;
|
|
10
|
+
slidesPerView: string | number | boolean | null;
|
|
11
|
+
slidesPerGroup: string | number | boolean | null;
|
|
12
|
+
spaceBetween: string | number | boolean | null;
|
|
13
|
+
};
|
|
14
|
+
991: {
|
|
15
|
+
centeredSlides: string | number | boolean | null;
|
|
16
|
+
slidesPerView: string | number | boolean | null;
|
|
17
|
+
slidesPerGroup: string | number | boolean | null;
|
|
18
|
+
spaceBetween: string | number | boolean | null;
|
|
19
|
+
};
|
|
20
|
+
1280: {
|
|
21
|
+
centeredSlides: string | number | boolean | null;
|
|
22
|
+
slidesPerView: string | number | boolean | null;
|
|
23
|
+
slidesPerGroup: string | number | boolean | null;
|
|
24
|
+
spaceBetween: string | number | boolean | null;
|
|
25
|
+
};
|
|
26
|
+
1440: {
|
|
27
|
+
centeredSlides: string | number | boolean | null;
|
|
28
|
+
slidesPerView: string | number | boolean | null;
|
|
29
|
+
slidesPerGroup: string | number | boolean | null;
|
|
30
|
+
spaceBetween: string | number | boolean | null;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Waterfall } from 'types/waterfall';
|
|
2
|
+
import Swiper from 'swiper';
|
|
3
|
+
export declare function controllerConfig($this: JQuery<HTMLElement>, waterfalls: Waterfall[]): {
|
|
4
|
+
by: string | number | boolean | null;
|
|
5
|
+
control: Swiper[];
|
|
6
|
+
inverse: string | number | boolean | null;
|
|
7
|
+
} | undefined;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare function fadeConfig($this: JQuery<HTMLElement>): {
|
|
2
|
+
crossFade: string | number | boolean | null;
|
|
3
|
+
};
|
|
4
|
+
export declare function coverflowEffect($this: JQuery<HTMLElement>): {
|
|
5
|
+
depth: string | number | boolean | null;
|
|
6
|
+
modifier: string | number | boolean | null;
|
|
7
|
+
rotate: string | number | boolean | null;
|
|
8
|
+
scale: string | number | boolean | null;
|
|
9
|
+
slideShadows: string | number | boolean | null;
|
|
10
|
+
stretch: string | number | boolean | null;
|
|
11
|
+
};
|
|
12
|
+
export declare function flipEffect($this: JQuery<HTMLElement>): {
|
|
13
|
+
limitRotation: string | number | boolean | null;
|
|
14
|
+
slideShadows: string | number | boolean | null;
|
|
15
|
+
};
|
|
16
|
+
export declare function cubeEffect($this: JQuery<HTMLElement>): {
|
|
17
|
+
shadow: string | number | boolean | null;
|
|
18
|
+
shadowOffset: string | number | boolean | null;
|
|
19
|
+
shadowScale: string | number | boolean | null;
|
|
20
|
+
slideShadows: string | number | boolean | null;
|
|
21
|
+
};
|
|
22
|
+
export declare function cardsEffect($this: JQuery<HTMLElement>): {
|
|
23
|
+
perSlideOffset: string | number | boolean | null;
|
|
24
|
+
perSlideRotate: string | number | boolean | null;
|
|
25
|
+
rotate: string | number | boolean | null;
|
|
26
|
+
slideShadows: string | number | boolean | null;
|
|
27
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export declare function generalConfig($this: JQuery<HTMLElement>): {
|
|
2
|
+
a11y: {
|
|
3
|
+
prevSlideMessage: string | number | boolean | null;
|
|
4
|
+
nextSlideMessage: string | number | boolean | null;
|
|
5
|
+
};
|
|
6
|
+
allowSlideNext: string | number | boolean | null;
|
|
7
|
+
allowSlidePrev: string | number | boolean | null;
|
|
8
|
+
allowTouchMove: string | number | boolean | null;
|
|
9
|
+
autoHeight: string | number | boolean | null;
|
|
10
|
+
breakpointsBase: string | number | boolean | null;
|
|
11
|
+
centerInsufficientSlides: string | number | boolean | null;
|
|
12
|
+
centeredSlides: string | number | boolean | null;
|
|
13
|
+
containerModifierClass: string | number | boolean | null;
|
|
14
|
+
createElements: string | number | boolean | null;
|
|
15
|
+
cssMode: string | number | boolean | null;
|
|
16
|
+
direction: string | number | boolean | null;
|
|
17
|
+
edgeSwipeDetection: string | number | boolean | null;
|
|
18
|
+
edgeSwipeThreshold: string | number | boolean | null;
|
|
19
|
+
effect: string | number | boolean | null;
|
|
20
|
+
enabled: string | number | boolean | null;
|
|
21
|
+
eventsPrefix: string | number | boolean | null;
|
|
22
|
+
focusableElements: string | number | boolean | null;
|
|
23
|
+
followFinger: string | number | boolean | null;
|
|
24
|
+
freeMode: {
|
|
25
|
+
enabled: string | number | boolean | null;
|
|
26
|
+
sticky: string | number | boolean | null;
|
|
27
|
+
};
|
|
28
|
+
grabCursor: string | number | boolean | null;
|
|
29
|
+
height: string | number | boolean | null;
|
|
30
|
+
init: string | number | boolean | null;
|
|
31
|
+
initialSlide: string | number | boolean | null;
|
|
32
|
+
lazyPreloadPrevNext: string | number | boolean | null;
|
|
33
|
+
lazyPreloaderClass: string | number | boolean | null;
|
|
34
|
+
longSwipes: string | number | boolean | null;
|
|
35
|
+
longSwipesMs: string | number | boolean | null;
|
|
36
|
+
longSwipesRatio: string | number | boolean | null;
|
|
37
|
+
loop: string | number | boolean | null;
|
|
38
|
+
loopAddBlankSlides: string | number | boolean | null;
|
|
39
|
+
loopAdditionalSlides: string | number | boolean | null;
|
|
40
|
+
loopPreventsSliding: string | number | boolean | null;
|
|
41
|
+
maxBackfaceHiddenSlides: string | number | boolean | null;
|
|
42
|
+
nested: string | number | boolean | null;
|
|
43
|
+
noSwiping: string | number | boolean | null;
|
|
44
|
+
noSwipingClass: string | number | boolean | null;
|
|
45
|
+
noSwipingSelector: string | number | boolean | null;
|
|
46
|
+
normalizeSlideIndex: string | number | boolean | null;
|
|
47
|
+
observeParents: string | number | boolean | null;
|
|
48
|
+
observeSlideChildren: string | number | boolean | null;
|
|
49
|
+
oneWayMovement: string | number | boolean | null;
|
|
50
|
+
passiveListeners: string | number | boolean | null;
|
|
51
|
+
preventClicks: string | number | boolean | null;
|
|
52
|
+
preventClicksPropagation: string | number | boolean | null;
|
|
53
|
+
preventInteractionOnTransition: string | number | boolean | null;
|
|
54
|
+
resistance: string | number | boolean | null;
|
|
55
|
+
resistanceRatio: string | number | boolean | null;
|
|
56
|
+
resizeObserver: string | number | boolean | null;
|
|
57
|
+
rewind: string | number | boolean | null;
|
|
58
|
+
roundLengths: string | number | boolean | null;
|
|
59
|
+
runCallbacksOnInit: string | number | boolean | null;
|
|
60
|
+
shortSwipes: string | number | boolean | null;
|
|
61
|
+
simulateTouch: string | number | boolean | null;
|
|
62
|
+
slideActiveClass: string | number | boolean | null;
|
|
63
|
+
slideBlankClass: string | number | boolean | null;
|
|
64
|
+
slideClass: string | number | boolean | null;
|
|
65
|
+
slideFullyVisibleClass: string | number | boolean | null;
|
|
66
|
+
slideNextClass: string | number | boolean | null;
|
|
67
|
+
slidePrevClass: string | number | boolean | null;
|
|
68
|
+
slideToClickedSlide: string | number | boolean | null;
|
|
69
|
+
slideVisibleClass: string | number | boolean | null;
|
|
70
|
+
slidesOffsetAfter: string | number | boolean | null;
|
|
71
|
+
slidesOffsetBefore: string | number | boolean | null;
|
|
72
|
+
slidesPerGroup: string | number | boolean | null;
|
|
73
|
+
slidesPerGroupAuto: string | number | boolean | null;
|
|
74
|
+
slidesPerGroupSkip: string | number | boolean | null;
|
|
75
|
+
slidesPerView: string | number | boolean | null;
|
|
76
|
+
spaceBetween: string | number | boolean | null;
|
|
77
|
+
speed: string | number | boolean | null;
|
|
78
|
+
swiperElementNodeName: string | number | boolean | null;
|
|
79
|
+
threshold: string | number | boolean | null;
|
|
80
|
+
touchAngle: string | number | boolean | null;
|
|
81
|
+
touchEventsTarget: string | number | boolean | null;
|
|
82
|
+
touchMoveStopPropagation: string | number | boolean | null;
|
|
83
|
+
touchRatio: string | number | boolean | null;
|
|
84
|
+
touchReleaseOnEdges: string | number | boolean | null;
|
|
85
|
+
touchStartForcePreventDefault: string | number | boolean | null;
|
|
86
|
+
touchStartPreventDefault: string | number | boolean | null;
|
|
87
|
+
uniqueNavElements: string | number | boolean | null;
|
|
88
|
+
updateOnWindowResize: string | number | boolean | null;
|
|
89
|
+
virtualTranslate: string | number | boolean | null;
|
|
90
|
+
watchOverflow: string | number | boolean | null;
|
|
91
|
+
watchSlidesProgress: string | number | boolean | null;
|
|
92
|
+
width: string | number | boolean | null;
|
|
93
|
+
wrapperClass: string | number | boolean | null;
|
|
94
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function hashNavigationConfig($this: JQuery<HTMLElement>): {
|
|
2
|
+
replaceState: string | number | boolean | null;
|
|
3
|
+
watchState: string | number | boolean | null;
|
|
4
|
+
};
|
|
5
|
+
export declare function historyNavigationConfig($this: JQuery<HTMLElement>): {
|
|
6
|
+
keepQuery: string | number | boolean | null;
|
|
7
|
+
key: string | number | boolean | null;
|
|
8
|
+
replaceState: string | number | boolean | null;
|
|
9
|
+
root: string | number | boolean | null;
|
|
10
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare function keyboardConfig($this: JQuery<HTMLElement>): {
|
|
2
|
+
enabled: string | number | boolean | null;
|
|
3
|
+
onlyInViewport: string | number | boolean | null;
|
|
4
|
+
pageUpDown: string | number | boolean | null;
|
|
5
|
+
};
|
|
6
|
+
export declare function mouseConfig($this: JQuery<HTMLElement>): {
|
|
7
|
+
enabled: string | number | boolean | null;
|
|
8
|
+
eventsTarget: string | number | boolean | null;
|
|
9
|
+
forceToAxis: string | number | boolean | null;
|
|
10
|
+
invert: string | number | boolean | null;
|
|
11
|
+
noMouseWheelClass: string | number | boolean | null;
|
|
12
|
+
releaseOnEdges: string | number | boolean | null;
|
|
13
|
+
sensitivity: string | number | boolean | null;
|
|
14
|
+
thresholdDelta: string | number | boolean | null;
|
|
15
|
+
thresholdTime: string | number | boolean | null;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function addSlides(): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function navigationConfig($this: JQuery<HTMLElement>, name: string): {
|
|
2
|
+
disabledClass: string | number | boolean | null;
|
|
3
|
+
enabled: string | number | boolean | null;
|
|
4
|
+
hiddenClass: string | number | boolean | null;
|
|
5
|
+
hideOnClick: string | number | boolean | null;
|
|
6
|
+
lockClass: string | number | boolean | null;
|
|
7
|
+
navigationDisabledClass: string | number | boolean | null;
|
|
8
|
+
nextEl: string;
|
|
9
|
+
prevEl: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare function paginationConfig($this: JQuery<HTMLElement>): {
|
|
2
|
+
bulletActiveClass: string;
|
|
3
|
+
bulletClass: string | undefined;
|
|
4
|
+
bulletElement: any;
|
|
5
|
+
clickable: string | number | boolean | null;
|
|
6
|
+
clickableClass: string | number | boolean | null;
|
|
7
|
+
currentClass: string | number | boolean | null;
|
|
8
|
+
dynamicBullets: string | number | boolean | null;
|
|
9
|
+
dynamicMainBullets: string | number | boolean | null;
|
|
10
|
+
el: HTMLElement;
|
|
11
|
+
enabled: string | number | boolean | null;
|
|
12
|
+
hiddenClass: string | number | boolean | null;
|
|
13
|
+
hideOnClick: string | number | boolean | null;
|
|
14
|
+
horizontalClass: string | number | boolean | null;
|
|
15
|
+
lockClass: string | number | boolean | null;
|
|
16
|
+
modifierClass: string | number | boolean | null;
|
|
17
|
+
paginationDisabledClass: string | number | boolean | null;
|
|
18
|
+
progressbarFillClass: string | number | boolean | null;
|
|
19
|
+
progressbarOpposite: string | number | boolean | null;
|
|
20
|
+
renderBullet: RenderBulletFunction | null;
|
|
21
|
+
totalClass: string | number | boolean | null;
|
|
22
|
+
type: string;
|
|
23
|
+
verticalClass: string | number | boolean | null;
|
|
24
|
+
};
|
|
25
|
+
type RenderBulletFunction = (index: number, className: string) => string;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function autoplayConfig($this: JQuery<HTMLElement>): {
|
|
2
|
+
delay: string | number | boolean | null;
|
|
3
|
+
disableOnInteraction: string | number | boolean | null;
|
|
4
|
+
reverseDirection: string | number | boolean | null;
|
|
5
|
+
pauseOnMouseEnter: string | number | boolean | null;
|
|
6
|
+
stopOnLastSlide: string | number | boolean | null;
|
|
7
|
+
} | null;
|
|
8
|
+
export declare function freeModeConfig($this: JQuery<HTMLElement>): {
|
|
9
|
+
enabled: string | number | boolean | null;
|
|
10
|
+
minimumVelocity: string | number | boolean | null;
|
|
11
|
+
momentum: string | number | boolean | null;
|
|
12
|
+
momentumBounce: string | number | boolean | null;
|
|
13
|
+
momentumBounceRatio: string | number | boolean | null;
|
|
14
|
+
momentumRatio: string | number | boolean | null;
|
|
15
|
+
momentumVelocityRatio: string | number | boolean | null;
|
|
16
|
+
sticky: string | number | boolean | null;
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function scrollbarConfig($this: JQuery<HTMLElement>): {
|
|
2
|
+
dragClass: string | undefined;
|
|
3
|
+
dragSize: string | number | boolean | null;
|
|
4
|
+
draggable: string | number | boolean | null;
|
|
5
|
+
el: HTMLElement;
|
|
6
|
+
enabled: string | number | boolean | null;
|
|
7
|
+
hide: string | number | boolean | null;
|
|
8
|
+
horizontalClass: string | number | boolean | null;
|
|
9
|
+
lockClass: string | number | boolean | null;
|
|
10
|
+
scrollbarDisabledClass: string | number | boolean | null;
|
|
11
|
+
snapOnRelease: string | number | boolean | null;
|
|
12
|
+
verticalClass: string | number | boolean | null;
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function zoomConfig($el: JQuery<HTMLElement>): {
|
|
2
|
+
containerClass: string | number | boolean | null;
|
|
3
|
+
limitToOriginalSize: string | number | boolean | null;
|
|
4
|
+
maxRatio: string | number | boolean | null;
|
|
5
|
+
minRatio: string | number | boolean | null;
|
|
6
|
+
panOnMouseMove: string | number | boolean | null;
|
|
7
|
+
toggle: string | number | boolean | null;
|
|
8
|
+
zoomedSlideClass: string | number | boolean | null;
|
|
9
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import Swiper from 'swiper';
|
|
2
|
+
import { Waterfall } from 'types/waterfall';
|
|
3
|
+
export declare function printDebug(debug: boolean, str: string, el: any): void;
|
|
4
|
+
export declare function getUniqueClasses(targetElement: JQuery<HTMLElement>, comparisonElement: JQuery<HTMLElement>): string;
|
|
5
|
+
export declare function parseString(el: JQuery<HTMLElement>, attrName: string, defaultValue: string): string | undefined;
|
|
6
|
+
export declare function parseNumber(el: JQuery<HTMLElement>, attrName: string, defaultValue: number): number | undefined;
|
|
7
|
+
export declare function parseBoolean(el: JQuery<HTMLElement>, attrName: string, defaultValue: boolean): boolean | undefined;
|
|
8
|
+
export declare function parseAttr(el: JQuery<HTMLElement>, attrName: string, defaultValue: string | number | boolean | null): string | number | boolean | null;
|
|
9
|
+
export declare function removeNullOrUndefinedKeys(obj: any): any;
|
|
10
|
+
export declare function getSwipersByName(waterfalls: Waterfall[], selector: string): Swiper[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MANIPULATION_SLIDE_ADD_ATTR = "wtf-manipulation-add";
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "well-waterfall",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "An attribute-based wrapper of SwiperJS for Webflow",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
8
|
"build": "webpack --config webpack.config.js",
|
package/webpack.config.js
CHANGED
|
@@ -3,10 +3,10 @@ const webpack = require('webpack');
|
|
|
3
3
|
const path = require('path');
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
|
-
entry: "./src/
|
|
6
|
+
entry: "./src/index.ts",
|
|
7
7
|
output: {
|
|
8
8
|
path: path.resolve(__dirname, 'dist'),
|
|
9
|
-
filename: '
|
|
9
|
+
filename: 'index.js', // Output bundle file
|
|
10
10
|
library: 'Waterfall', // Name of the global variable if your package is used in the browser
|
|
11
11
|
libraryTarget: 'umd', // Universal module definition, for browser and Node.js
|
|
12
12
|
globalObject: 'this', // Ensures compatibility in different environments
|
|
File without changes
|