@smakss/react-scroll-direction 3.1.1 → 3.1.3-beta.0
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/Readme.md +5 -5
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +28 -6
package/Readme.md
CHANGED
|
@@ -27,13 +27,13 @@ Then, import it into your project:
|
|
|
27
27
|
CommonJS:
|
|
28
28
|
|
|
29
29
|
```js
|
|
30
|
-
const useDetectScroll = require(
|
|
30
|
+
const useDetectScroll = require('@smakss/react-scroll-direction');
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
ES Module:
|
|
34
34
|
|
|
35
35
|
```js
|
|
36
|
-
import useDetectScroll from
|
|
36
|
+
import useDetectScroll from '@smakss/react-scroll-direction';
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
For TypeScript projects, import the hook and its types:
|
|
@@ -41,8 +41,8 @@ For TypeScript projects, import the hook and its types:
|
|
|
41
41
|
```ts
|
|
42
42
|
import useDetectScroll, {
|
|
43
43
|
Axis,
|
|
44
|
-
Direction
|
|
45
|
-
} from
|
|
44
|
+
Direction
|
|
45
|
+
} from '@smakss/react-scroll-direction';
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
## Usage
|
|
@@ -68,7 +68,7 @@ const scrollDir = useDetectScroll();
|
|
|
68
68
|
To detect left or right scroll:
|
|
69
69
|
|
|
70
70
|
```js
|
|
71
|
-
const scrollDir = useDetectScroll({ axis:
|
|
71
|
+
const scrollDir = useDetectScroll({ axis: 'x' });
|
|
72
72
|
|
|
73
73
|
// Returns: "left", "right", or "still"
|
|
74
74
|
```
|
package/dist/cjs/index.js
CHANGED
|
@@ -55,7 +55,7 @@ exports.Direction = void 0;
|
|
|
55
55
|
* @returns {Direction} - The current direction of scrolling.
|
|
56
56
|
*/
|
|
57
57
|
function useDetectScroll(props = {}) {
|
|
58
|
-
const { thr = 0, axis = exports.Axis.Y, scrollUp = axis === exports.Axis.Y ? exports.Direction.Up : exports.Direction.Left, scrollDown = axis === exports.Axis.Y ? exports.Direction.Down : exports.Direction.Right, still = exports.Direction.Still
|
|
58
|
+
const { thr = 0, axis = exports.Axis.Y, scrollUp = axis === exports.Axis.Y ? exports.Direction.Up : exports.Direction.Left, scrollDown = axis === exports.Axis.Y ? exports.Direction.Down : exports.Direction.Right, still = exports.Direction.Still } = props;
|
|
59
59
|
const [scrollDir, setScrollDir] = react.useState(still);
|
|
60
60
|
const threshold = Math.max(0, thr);
|
|
61
61
|
let ticking = false;
|
|
@@ -78,8 +78,8 @@ function useDetectScroll(props = {}) {
|
|
|
78
78
|
ticking = true;
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
-
window.addEventListener(
|
|
82
|
-
return () => window.removeEventListener(
|
|
81
|
+
window.addEventListener('scroll', onScroll);
|
|
82
|
+
return () => window.removeEventListener('scroll', onScroll);
|
|
83
83
|
}, [updateScrollDir]);
|
|
84
84
|
return scrollDir;
|
|
85
85
|
}
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import { useState, useEffect, useCallback } from
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import { useState, useEffect, useCallback } from 'react';\n\n/** Enumeration for axis values */\nexport enum Axis {\n X = 'x',\n Y = 'y'\n}\n\n/** Enumeration for direction values */\nexport enum Direction {\n Up = 'up',\n Down = 'down',\n Left = 'left',\n Right = 'right',\n Still = 'still'\n}\n\n/** Type declaration for scroll properties */\ntype ScrollProps = {\n thr?: number;\n axis?: Axis;\n scrollUp?: Direction;\n scrollDown?: Direction;\n still?: Direction;\n};\n\n/**\n * useDetectScroll hook.\n *\n * This hook provides a mechanism to detect the scroll direction.\n * It will return the scroll direction as a string (up, down, left, right, or still) based on user scrolling.\n *\n * @example\n *\n * import useDetectScroll, { Axis, Direction } from '@smakss/react-scroll-direction';\n *\n * function App() {\n * const scrollDirection = useDetectScroll({\n * thr: 100,\n * axis: Axis.Y,\n * scrollUp: Direction.Up,\n * scrollDown: Direction.Down,\n * still: Direction.Still\n * });\n *\n * return (\n * <div>\n * <p>Current scroll direction: {scrollDirection}</p>\n * </div>\n * );\n * }\n *\n * @param {ScrollProps} props - The properties related to scrolling.\n * @property {number} props.thr - The threshold value which the scroll difference must exceed to update scroll direction.\n * @property {Axis} props.axis - The axis along which to detect scroll. Can be 'x' or 'y'.\n * @property {Direction} props.scrollUp - The direction to set when scrolling up or left. By default, 'up' for y-axis and 'left' for x-axis.\n * @property {Direction} props.scrollDown - The direction to set when scrolling down or right. By default, 'down' for y-axis and 'right' for x-axis.\n * @property {Direction} props.still - The direction to set when there is no scrolling. By default, 'still'.\n *\n * @returns {Direction} - The current direction of scrolling.\n */\nfunction useDetectScroll(props: ScrollProps = {}): Direction {\n const {\n thr = 0,\n axis = Axis.Y,\n scrollUp = axis === Axis.Y ? Direction.Up : Direction.Left,\n scrollDown = axis === Axis.Y ? Direction.Down : Direction.Right,\n still = Direction.Still\n } = props;\n\n const [scrollDir, setScrollDir] = useState<Direction>(still);\n\n const threshold = Math.max(0, thr);\n let ticking = false;\n let lastScroll = 0;\n\n /** Function to update scroll direction */\n const updateScrollDir = useCallback(() => {\n const scroll = axis === Axis.Y ? window.scrollY : window.scrollX;\n\n if (Math.abs(scroll - lastScroll) >= threshold) {\n setScrollDir(scroll > lastScroll ? scrollDown : scrollUp);\n lastScroll = Math.max(0, scroll);\n }\n ticking = false;\n }, [axis, threshold, scrollDown, scrollUp]);\n\n useEffect(() => {\n lastScroll = axis === Axis.Y ? window.scrollY : window.scrollX;\n\n /** Function to handle onScroll event */\n const onScroll = () => {\n if (!ticking) {\n window.requestAnimationFrame(updateScrollDir);\n ticking = true;\n }\n };\n\n window.addEventListener('scroll', onScroll);\n\n return () => window.removeEventListener('scroll', onScroll);\n }, [updateScrollDir]);\n\n return scrollDir;\n}\n\nexport default useDetectScroll;\n"],"names":["Axis","Direction","useState","useCallback","useEffect"],"mappings":";;;;;;AAEA;AACYA,sBAGX;AAHD,CAAA,UAAY,IAAI,EAAA;AACd,IAAA,IAAA,CAAA,GAAA,CAAA,GAAA,GAAO,CAAA;AACP,IAAA,IAAA,CAAA,GAAA,CAAA,GAAA,GAAO,CAAA;AACT,CAAC,EAHWA,YAAI,KAAJA,YAAI,GAGf,EAAA,CAAA,CAAA,CAAA;AAED;AACYC,2BAMX;AAND,CAAA,UAAY,SAAS,EAAA;AACnB,IAAA,SAAA,CAAA,IAAA,CAAA,GAAA,IAAS,CAAA;AACT,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,SAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,SAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACjB,CAAC,EANWA,iBAAS,KAATA,iBAAS,GAMpB,EAAA,CAAA,CAAA,CAAA;AAWD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCG;AACH,SAAS,eAAe,CAAC,KAAA,GAAqB,EAAE,EAAA;IAC9C,MAAM,EACJ,GAAG,GAAG,CAAC,EACP,IAAI,GAAGD,YAAI,CAAC,CAAC,EACb,QAAQ,GAAG,IAAI,KAAKA,YAAI,CAAC,CAAC,GAAGC,iBAAS,CAAC,EAAE,GAAGA,iBAAS,CAAC,IAAI,EAC1D,UAAU,GAAG,IAAI,KAAKD,YAAI,CAAC,CAAC,GAAGC,iBAAS,CAAC,IAAI,GAAGA,iBAAS,CAAC,KAAK,EAC/D,KAAK,GAAGA,iBAAS,CAAC,KAAK,EACxB,GAAG,KAAK,CAAC;IAEV,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAGC,cAAQ,CAAY,KAAK,CAAC,C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;;;;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -51,7 +51,7 @@ var Direction;
|
|
|
51
51
|
* @returns {Direction} - The current direction of scrolling.
|
|
52
52
|
*/
|
|
53
53
|
function useDetectScroll(props = {}) {
|
|
54
|
-
const { thr = 0, axis = Axis.Y, scrollUp = axis === Axis.Y ? Direction.Up : Direction.Left, scrollDown = axis === Axis.Y ? Direction.Down : Direction.Right, still = Direction.Still
|
|
54
|
+
const { thr = 0, axis = Axis.Y, scrollUp = axis === Axis.Y ? Direction.Up : Direction.Left, scrollDown = axis === Axis.Y ? Direction.Down : Direction.Right, still = Direction.Still } = props;
|
|
55
55
|
const [scrollDir, setScrollDir] = useState(still);
|
|
56
56
|
const threshold = Math.max(0, thr);
|
|
57
57
|
let ticking = false;
|
|
@@ -74,8 +74,8 @@ function useDetectScroll(props = {}) {
|
|
|
74
74
|
ticking = true;
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
-
window.addEventListener(
|
|
78
|
-
return () => window.removeEventListener(
|
|
77
|
+
window.addEventListener('scroll', onScroll);
|
|
78
|
+
return () => window.removeEventListener('scroll', onScroll);
|
|
79
79
|
}, [updateScrollDir]);
|
|
80
80
|
return scrollDir;
|
|
81
81
|
}
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import { useState, useEffect, useCallback } from
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import { useState, useEffect, useCallback } from 'react';\n\n/** Enumeration for axis values */\nexport enum Axis {\n X = 'x',\n Y = 'y'\n}\n\n/** Enumeration for direction values */\nexport enum Direction {\n Up = 'up',\n Down = 'down',\n Left = 'left',\n Right = 'right',\n Still = 'still'\n}\n\n/** Type declaration for scroll properties */\ntype ScrollProps = {\n thr?: number;\n axis?: Axis;\n scrollUp?: Direction;\n scrollDown?: Direction;\n still?: Direction;\n};\n\n/**\n * useDetectScroll hook.\n *\n * This hook provides a mechanism to detect the scroll direction.\n * It will return the scroll direction as a string (up, down, left, right, or still) based on user scrolling.\n *\n * @example\n *\n * import useDetectScroll, { Axis, Direction } from '@smakss/react-scroll-direction';\n *\n * function App() {\n * const scrollDirection = useDetectScroll({\n * thr: 100,\n * axis: Axis.Y,\n * scrollUp: Direction.Up,\n * scrollDown: Direction.Down,\n * still: Direction.Still\n * });\n *\n * return (\n * <div>\n * <p>Current scroll direction: {scrollDirection}</p>\n * </div>\n * );\n * }\n *\n * @param {ScrollProps} props - The properties related to scrolling.\n * @property {number} props.thr - The threshold value which the scroll difference must exceed to update scroll direction.\n * @property {Axis} props.axis - The axis along which to detect scroll. Can be 'x' or 'y'.\n * @property {Direction} props.scrollUp - The direction to set when scrolling up or left. By default, 'up' for y-axis and 'left' for x-axis.\n * @property {Direction} props.scrollDown - The direction to set when scrolling down or right. By default, 'down' for y-axis and 'right' for x-axis.\n * @property {Direction} props.still - The direction to set when there is no scrolling. By default, 'still'.\n *\n * @returns {Direction} - The current direction of scrolling.\n */\nfunction useDetectScroll(props: ScrollProps = {}): Direction {\n const {\n thr = 0,\n axis = Axis.Y,\n scrollUp = axis === Axis.Y ? Direction.Up : Direction.Left,\n scrollDown = axis === Axis.Y ? Direction.Down : Direction.Right,\n still = Direction.Still\n } = props;\n\n const [scrollDir, setScrollDir] = useState<Direction>(still);\n\n const threshold = Math.max(0, thr);\n let ticking = false;\n let lastScroll = 0;\n\n /** Function to update scroll direction */\n const updateScrollDir = useCallback(() => {\n const scroll = axis === Axis.Y ? window.scrollY : window.scrollX;\n\n if (Math.abs(scroll - lastScroll) >= threshold) {\n setScrollDir(scroll > lastScroll ? scrollDown : scrollUp);\n lastScroll = Math.max(0, scroll);\n }\n ticking = false;\n }, [axis, threshold, scrollDown, scrollUp]);\n\n useEffect(() => {\n lastScroll = axis === Axis.Y ? window.scrollY : window.scrollX;\n\n /** Function to handle onScroll event */\n const onScroll = () => {\n if (!ticking) {\n window.requestAnimationFrame(updateScrollDir);\n ticking = true;\n }\n };\n\n window.addEventListener('scroll', onScroll);\n\n return () => window.removeEventListener('scroll', onScroll);\n }, [updateScrollDir]);\n\n return scrollDir;\n}\n\nexport default useDetectScroll;\n"],"names":[],"mappings":";;AAEA;IACY,KAGX;AAHD,CAAA,UAAY,IAAI,EAAA;AACd,IAAA,IAAA,CAAA,GAAA,CAAA,GAAA,GAAO,CAAA;AACP,IAAA,IAAA,CAAA,GAAA,CAAA,GAAA,GAAO,CAAA;AACT,CAAC,EAHW,IAAI,KAAJ,IAAI,GAGf,EAAA,CAAA,CAAA,CAAA;AAED;IACY,UAMX;AAND,CAAA,UAAY,SAAS,EAAA;AACnB,IAAA,SAAA,CAAA,IAAA,CAAA,GAAA,IAAS,CAAA;AACT,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,SAAA,CAAA,MAAA,CAAA,GAAA,MAAa,CAAA;AACb,IAAA,SAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,SAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACjB,CAAC,EANW,SAAS,KAAT,SAAS,GAMpB,EAAA,CAAA,CAAA,CAAA;AAWD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCG;AACH,SAAS,eAAe,CAAC,KAAA,GAAqB,EAAE,EAAA;IAC9C,MAAM,EACJ,GAAG,GAAG,CAAC,EACP,IAAI,GAAG,IAAI,CAAC,CAAC,EACb,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC,GAAG,SAAS,CAAC,EAAE,GAAG,SAAS,CAAC,IAAI,EAC1D,UAAU,GAAG,IAAI,KAAK,IAAI,CAAC,CAAC,GAAG,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,KAAK,EAC/D,KAAK,GAAG,SAAS,CAAC,KAAK,EACxB,GAAG,KAAK,CAAC;IAEV,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,Q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,SAAS,CAAC;AACnB;;;;"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"bugs": {
|
|
4
4
|
"url": "https://github.com/SMAKSS/react-scroll-direction/issues"
|
|
5
5
|
},
|
|
6
|
-
"description": "
|
|
6
|
+
"description": "Effortlessly detect scroll direction in React apps with @smakss/react-scroll-direction. Perfect for React, Remix, Next.js, and Gatsby projects, offering adjustable sensitivity.",
|
|
7
7
|
"devDependencies": {
|
|
8
8
|
"@commitlint/cli": "^18.2.0",
|
|
9
9
|
"@commitlint/config-conventional": "^18.1.0",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"lint-staged": "^15.0.2",
|
|
21
21
|
"prettier": "^2.8.8",
|
|
22
22
|
"rollup": "^4.2.0",
|
|
23
|
-
"typescript": "^5.
|
|
23
|
+
"typescript": "^5.2.2"
|
|
24
24
|
},
|
|
25
25
|
"engines": {
|
|
26
26
|
"node": ">=18.0.0"
|
|
@@ -29,9 +29,31 @@
|
|
|
29
29
|
"import": "./dist/esm/index.js",
|
|
30
30
|
"require": "./dist/cjs/index.js"
|
|
31
31
|
},
|
|
32
|
-
"files": [
|
|
32
|
+
"files": [
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
33
35
|
"homepage": "https://github.com/SMAKSS/react-scroll-direction#readme",
|
|
34
|
-
"keywords": [
|
|
36
|
+
"keywords": [
|
|
37
|
+
"react-scroll-direction",
|
|
38
|
+
"scroll-detection-react",
|
|
39
|
+
"react-hook-scroll",
|
|
40
|
+
"direction-detection",
|
|
41
|
+
"scroll-hook",
|
|
42
|
+
"npm",
|
|
43
|
+
"yarn",
|
|
44
|
+
"react",
|
|
45
|
+
"remix",
|
|
46
|
+
"nextjs",
|
|
47
|
+
"gatsby",
|
|
48
|
+
"scroll",
|
|
49
|
+
"direction",
|
|
50
|
+
"SMAKSS",
|
|
51
|
+
"CommonJS",
|
|
52
|
+
"EcmaScript",
|
|
53
|
+
"TypeScript",
|
|
54
|
+
"detect scroll in react",
|
|
55
|
+
"react scroll"
|
|
56
|
+
],
|
|
35
57
|
"license": "MIT",
|
|
36
58
|
"main": "dist/cjs/index.js",
|
|
37
59
|
"module": "dist/esm/index.js",
|
|
@@ -53,5 +75,5 @@
|
|
|
53
75
|
"typecheck": "tsc -b ."
|
|
54
76
|
},
|
|
55
77
|
"type": "module",
|
|
56
|
-
"version": "3.1.
|
|
57
|
-
}
|
|
78
|
+
"version": "3.1.3-beta.0"
|
|
79
|
+
}
|