react-spring-carousel 1.9.29-beta43 → 1.9.29-beta44
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 → esm/index.d.ts} +0 -0
- package/dist/{index.esm.js → esm/index.esm.js} +0 -0
- package/dist/{modules → esm/modules}/index.d.ts +0 -0
- package/dist/{modules → esm/modules}/useCustomEventsModule.d.ts +0 -0
- package/dist/{modules → esm/modules}/useFullscreenModule.d.ts +0 -0
- package/dist/{modules → esm/modules}/useThumbsModule.d.ts +0 -0
- package/dist/{types.d.ts → esm/types.d.ts} +0 -0
- package/dist/esm/useSpringCarousel/index.d.ts +9 -0
- package/dist/{useTransitionCarousel → esm/useTransitionCarousel}/index.d.ts +3 -2
- package/dist/{utils.d.ts → esm/utils.d.ts} +0 -0
- package/package.json +6 -4
- package/dist/useSpringCarousel/index.d.ts +0 -9
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { UseSpringCarouselProps, UseSpringDafaultTypeReturnProps, UseSpringFluidTypeReturnProps } from '../types';
|
|
3
|
+
declare type ReturnHook<T> = T extends 'fluid' ? UseSpringFluidTypeReturnProps : UseSpringDafaultTypeReturnProps;
|
|
4
|
+
declare function useSpringCarousel<T>({ itemsPerSlide, items, withLoop, draggingSlideTreshold, springConfig, shouldResizeOnWindowResize, withThumbs, enableThumbsWrapperScroll, carouselSlideAxis, thumbsSlideAxis, prepareThumbsData, initialActiveItem, initialStartingPosition, disableGestures, gutter, startEndGutter, touchAction, slideAmount, freeScroll, CustomThumbsWrapperComponent, }: UseSpringCarouselProps): ReturnHook<T> & {
|
|
5
|
+
carouselFragment: JSX.Element;
|
|
6
|
+
thumbsFragment: JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
declare function useSpringCarouselContext<T>(): ReturnHook<T>;
|
|
9
|
+
export { useSpringCarousel, useSpringCarouselContext };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { UseTransitionCarouselContextProps, UseTransitionCarouselProps } from '../types';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
declare function useTransitionCarouselContext(): UseTransitionCarouselContextProps;
|
|
4
|
+
declare function useTransitionCarousel({ items, withLoop, withThumbs, springConfig, thumbsSlideAxis, enableThumbsWrapperScroll, draggingSlideTreshold, prepareThumbsData, toPrevItemSpringProps, toNextItemSpringProps, disableGestures, CustomThumbsWrapperComponent, springAnimationProps, }: UseTransitionCarouselProps): {
|
|
5
5
|
useListenToCustomEvent: import("../types").UseListenToCustomEvent;
|
|
6
6
|
getIsFullscreen(): boolean;
|
|
7
7
|
getIsPrevItem(id: string): boolean;
|
|
@@ -21,3 +21,4 @@ export declare function useTransitionCarousel({ items, withLoop, withThumbs, spr
|
|
|
21
21
|
carouselFragment: JSX.Element;
|
|
22
22
|
thumbsFragment: JSX.Element;
|
|
23
23
|
};
|
|
24
|
+
export { useTransitionCarouselContext, useTransitionCarousel };
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-spring-carousel",
|
|
3
|
-
"version": "1.9.29-
|
|
3
|
+
"version": "1.9.29-beta44",
|
|
4
4
|
"description": "A new Carousel experience for the web",
|
|
5
5
|
"homepage": "https://react-spring-carousel-js.emilianobucci.com",
|
|
6
|
-
"repository": "https://github.com/Emiliano-Bucci/react-spring-carousel
|
|
6
|
+
"repository": "https://github.com/Emiliano-Bucci/react-spring-carousel",
|
|
7
7
|
"author": "Emiliano Bucci",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"keywords": [
|
|
@@ -18,15 +18,16 @@
|
|
|
18
18
|
"animated"
|
|
19
19
|
],
|
|
20
20
|
"main": "./dist/index.esm.js",
|
|
21
|
-
"module": "./dist/index.esm.js",
|
|
21
|
+
"module": "./dist/esm/index.esm.js",
|
|
22
22
|
"types": "./dist/index.d.ts",
|
|
23
23
|
"files": [
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
27
|
"start": "start-storybook -p 6006",
|
|
28
|
+
"clean": "rimraf dist",
|
|
28
29
|
"build-storybook": "build-storybook",
|
|
29
|
-
"build:lib": "rollup -c",
|
|
30
|
+
"build:lib": "npm run clean && rollup -c",
|
|
30
31
|
"lint": "eslint --fix --config .eslintrc.js 'src/**/*.{ts,tsx,js}'",
|
|
31
32
|
"prepare": "husky install",
|
|
32
33
|
"lint-staged": "lint-staged",
|
|
@@ -77,6 +78,7 @@
|
|
|
77
78
|
"jest": "^27.3.1",
|
|
78
79
|
"lint-staged": "^11.2.6",
|
|
79
80
|
"prettier": "^2.4.1",
|
|
81
|
+
"rimraf": "^3.0.2",
|
|
80
82
|
"rollup": "^2.58.3",
|
|
81
83
|
"rollup-plugin-babel": "^4.4.0",
|
|
82
84
|
"rollup-plugin-exclude-dependencies-from-bundle": "^1.1.22",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { UseSpringCarouselProps, UseSpringDafaultTypeReturnProps, UseSpringFluidTypeReturnProps } from '../types';
|
|
3
|
-
declare type ReturnHook<T> = T extends 'fluid' ? UseSpringFluidTypeReturnProps : UseSpringDafaultTypeReturnProps;
|
|
4
|
-
export declare function useSpringCarousel<T>({ itemsPerSlide, items, withLoop, draggingSlideTreshold, springConfig, shouldResizeOnWindowResize, withThumbs, enableThumbsWrapperScroll, carouselSlideAxis, thumbsSlideAxis, prepareThumbsData, initialActiveItem, initialStartingPosition, disableGestures, gutter, startEndGutter, touchAction, slideAmount, freeScroll, CustomThumbsWrapperComponent, }: UseSpringCarouselProps): ReturnHook<T> & {
|
|
5
|
-
carouselFragment: JSX.Element;
|
|
6
|
-
thumbsFragment: JSX.Element;
|
|
7
|
-
};
|
|
8
|
-
export declare function useSpringCarouselContext<T>(): ReturnHook<T>;
|
|
9
|
-
export {};
|