react-spring-carousel 1.9.29-beta97 → 2.0.0-beta01
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/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/types/modules/useCustomEventsModule.d.ts +3 -3
- package/dist/types/types/index.d.ts +7 -5
- package/dist/types/types/useSpringCarousel.d.ts +2 -2
- package/dist/types/types/useTransitionCarousel.d.ts +4 -2
- package/dist/types/useSpringCarousel/index.d.ts +1 -1
- package/dist/types/useTransitionCarousel/index.d.ts +3 -3
- package/package.json +41 -41
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { UseTransitionCarouselContextProps, UseTransitionCarouselProps } from '../types/useTransitionCarousel';
|
|
3
3
|
declare function useTransitionCarouselContext(): UseTransitionCarouselContextProps;
|
|
4
|
-
declare function useTransitionCarousel({ items, withLoop, withThumbs, springConfig, thumbsSlideAxis, enableThumbsWrapperScroll, draggingSlideTreshold, prepareThumbsData, toPrevItemSpringProps, toNextItemSpringProps, disableGestures, CustomThumbsWrapperComponent, springAnimationProps, }: UseTransitionCarouselProps): {
|
|
5
|
-
useListenToCustomEvent: import("../types").UseListenToCustomEvent
|
|
4
|
+
declare function useTransitionCarousel({ items, withLoop, withThumbs, springConfig, thumbsSlideAxis, enableThumbsWrapperScroll, draggingSlideTreshold, prepareThumbsData, toPrevItemSpringProps, toNextItemSpringProps, disableGestures, CustomThumbsWrapperComponent, trail, exitBeforeEnter, springAnimationProps, }: UseTransitionCarouselProps): {
|
|
5
|
+
useListenToCustomEvent: import("../types").UseListenToCustomEvent<"use-transition">;
|
|
6
|
+
activeItem: number;
|
|
6
7
|
getIsFullscreen(): boolean;
|
|
7
8
|
getIsPrevItem(id: string): boolean;
|
|
8
9
|
getIsNextItem(id: string): boolean;
|
|
@@ -17,7 +18,6 @@ declare function useTransitionCarousel({ items, withLoop, withThumbs, springConf
|
|
|
17
18
|
id: string;
|
|
18
19
|
index: number;
|
|
19
20
|
};
|
|
20
|
-
activeItem: number;
|
|
21
21
|
carouselFragment: JSX.Element;
|
|
22
22
|
thumbsFragment: JSX.Element;
|
|
23
23
|
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-spring-carousel",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta01",
|
|
4
4
|
"description": "A new Carousel experience for the web",
|
|
5
|
-
"homepage": "https://react-spring-carousel
|
|
5
|
+
"homepage": "https://react-spring-carousel.emilianobucci.com",
|
|
6
6
|
"repository": "https://github.com/Emiliano-Bucci/react-spring-carousel",
|
|
7
7
|
"author": "Emiliano Bucci",
|
|
8
8
|
"license": "MIT",
|
|
@@ -41,67 +41,67 @@
|
|
|
41
41
|
"check:tag:branch": "node --experimental-modules scripts/release.js",
|
|
42
42
|
"release:test": "jest",
|
|
43
43
|
"push:tags": "git push --follow-tags",
|
|
44
|
-
"release:lib": "npm run lint && npm run
|
|
44
|
+
"release:lib": "npm run lint && npm run check:tag:branch && npm run build:lib && npm run push:tags && npm publish",
|
|
45
45
|
"storybook": "start-storybook -p 6006",
|
|
46
46
|
"release:beta": "npm run build:lib && npm publish --tag beta"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@use-gesture/react": "^10.2.
|
|
49
|
+
"@use-gesture/react": "^10.2.7",
|
|
50
50
|
"movement": "^0.0.13",
|
|
51
51
|
"react-spring-carousel": "^1.9.29-beta26",
|
|
52
|
-
"rxjs": "^7.4
|
|
53
|
-
"screenfull": "^5.
|
|
52
|
+
"rxjs": "^7.5.4",
|
|
53
|
+
"screenfull": "^5.2.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@babel/core": "^7.
|
|
57
|
-
"@babel/preset-env": "^7.16.
|
|
58
|
-
"@babel/preset-react": "^7.16.
|
|
59
|
-
"@emotion/babel-plugin": "^11.
|
|
56
|
+
"@babel/core": "^7.17.5",
|
|
57
|
+
"@babel/preset-env": "^7.16.11",
|
|
58
|
+
"@babel/preset-react": "^7.16.7",
|
|
59
|
+
"@emotion/babel-plugin": "^11.7.2",
|
|
60
60
|
"@emotion/babel-preset-css-prop": "^11.2.0",
|
|
61
|
-
"@emotion/jest": "^11.
|
|
62
|
-
"@emotion/react": "^11.
|
|
63
|
-
"@rollup/plugin-commonjs": "^21.0.
|
|
64
|
-
"@rollup/plugin-node-resolve": "^13.
|
|
65
|
-
"@storybook/addon-actions": "^6.
|
|
66
|
-
"@storybook/addon-essentials": "^6.
|
|
67
|
-
"@storybook/addon-links": "^6.
|
|
68
|
-
"@storybook/react": "^6.
|
|
69
|
-
"@testing-library/jest-dom": "^5.
|
|
70
|
-
"@testing-library/react": "^12.1.
|
|
71
|
-
"@types/jest": "^27.
|
|
72
|
-
"@types/react": "^17.0.
|
|
73
|
-
"@types/react-dom": "^17.0.
|
|
74
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
75
|
-
"@typescript-eslint/parser": "^5.
|
|
61
|
+
"@emotion/jest": "^11.8.0",
|
|
62
|
+
"@emotion/react": "^11.8.1",
|
|
63
|
+
"@rollup/plugin-commonjs": "^21.0.2",
|
|
64
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
65
|
+
"@storybook/addon-actions": "^6.4.19",
|
|
66
|
+
"@storybook/addon-essentials": "^6.4.19",
|
|
67
|
+
"@storybook/addon-links": "^6.4.19",
|
|
68
|
+
"@storybook/react": "^6.4.19",
|
|
69
|
+
"@testing-library/jest-dom": "^5.16.2",
|
|
70
|
+
"@testing-library/react": "^12.1.3",
|
|
71
|
+
"@types/jest": "^27.4.1",
|
|
72
|
+
"@types/react": "^17.0.39",
|
|
73
|
+
"@types/react-dom": "^17.0.13",
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^5.13.0",
|
|
75
|
+
"@typescript-eslint/parser": "^5.13.0",
|
|
76
76
|
"babel-loader": "^8.2.3",
|
|
77
|
-
"chalk": "^
|
|
78
|
-
"eslint": "^8.
|
|
79
|
-
"eslint-config-prettier": "^8.
|
|
77
|
+
"chalk": "^5.0.0",
|
|
78
|
+
"eslint": "^8.10.0",
|
|
79
|
+
"eslint-config-prettier": "^8.5.0",
|
|
80
80
|
"eslint-plugin-prettier": "^4.0.0",
|
|
81
|
-
"eslint-plugin-react": "^7.
|
|
82
|
-
"eslint-plugin-react-hooks": "^4.
|
|
83
|
-
"eslint-plugin-testing-library": "^5.0.
|
|
81
|
+
"eslint-plugin-react": "^7.29.3",
|
|
82
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
83
|
+
"eslint-plugin-testing-library": "^5.0.6",
|
|
84
84
|
"git-repo-info": "^2.1.1",
|
|
85
85
|
"husky": "^7.0.4",
|
|
86
|
-
"jest": "^27.
|
|
87
|
-
"lint-staged": "^
|
|
88
|
-
"prettier": "^2.
|
|
86
|
+
"jest": "^27.5.1",
|
|
87
|
+
"lint-staged": "^12.3.4",
|
|
88
|
+
"prettier": "^2.5.1",
|
|
89
89
|
"rimraf": "^3.0.2",
|
|
90
|
-
"rollup": "^2.
|
|
90
|
+
"rollup": "^2.69.0",
|
|
91
91
|
"rollup-plugin-babel": "^4.4.0",
|
|
92
92
|
"rollup-plugin-exclude-dependencies-from-bundle": "^1.1.22",
|
|
93
|
-
"rollup-plugin-filesize": "^9.1.
|
|
93
|
+
"rollup-plugin-filesize": "^9.1.2",
|
|
94
94
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
95
95
|
"rollup-plugin-terser": "^7.0.2",
|
|
96
|
-
"rollup-plugin-typescript2": "^0.
|
|
97
|
-
"rollup-plugin-visualizer": "^5.
|
|
98
|
-
"ts-jest": "^27.
|
|
99
|
-
"typescript": "^4.
|
|
96
|
+
"rollup-plugin-typescript2": "^0.31.2",
|
|
97
|
+
"rollup-plugin-visualizer": "^5.6.0",
|
|
98
|
+
"ts-jest": "^27.1.3",
|
|
99
|
+
"typescript": "^4.6.2"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
102
|
"react": "^17.0.2",
|
|
103
103
|
"react-dom": "^17.0.2",
|
|
104
|
-
"react-spring": "^9.
|
|
104
|
+
"react-spring": "^9.4.2"
|
|
105
105
|
},
|
|
106
106
|
"lint-staged": {
|
|
107
107
|
"*.{ts,tsx}": [
|