react-router-scroll-to-top 1.1.2 → 1.2.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 +0 -1
- package/index.d.ts +31 -2
- package/lib/index.js +2 -0
- package/lib/index.js.LICENSE.txt +9 -0
- package/package.json +67 -67
- package/CHANGELOG.md +0 -19
- package/ScrollToTop.d.ts +0 -3
- package/dist/index.js +0 -2
- package/dist/index.js.map +0 -1
- package/dist/index.modern.js +0 -2
- package/dist/index.modern.js.map +0 -1
- package/dist/index.module.js +0 -2
- package/dist/index.module.js.map +0 -1
- package/dist/index.umd.js +0 -2
- package/dist/index.umd.js.map +0 -1
- package/useScrollToTop.d.ts +0 -2
package/README.md
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
[](https://github.com/dimazuien/react-router-scroll-to-top/stargazers)
|
|
9
9
|

|
|
10
10
|

|
|
11
|
-
[](https://dimazuien.github.io/react-router-scroll-to-top)
|
|
12
11
|
|
|
13
12
|
ScrollToTop is a React component that scrolls to the top of a page when the current location gets changed. Since React Router doesn't provide out-of-the-box support for scroll restoration due to [browsers having started handling it on their own](https://majido.github.io/scroll-restoration-proposal/history-based-api.html), this package implements a component for scrolling to the top manually as it is given in [React Router docs](https://reactrouter.com/web/guides/scroll-restoration#scroll-restoration-scroll-to-top).
|
|
14
13
|
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1,31 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
declare module 'react-router-scroll-to-top/src/ScrollToTop' {
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
type Props = Readonly<{
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
}>;
|
|
6
|
+
function ScrollToTop({ children }: Props): JSX.Element;
|
|
7
|
+
export default ScrollToTop;
|
|
8
|
+
|
|
9
|
+
}
|
|
10
|
+
declare module 'react-router-scroll-to-top/src/index' {
|
|
11
|
+
export { default as ScrollToTop } from 'react-router-scroll-to-top/src/ScrollToTop';
|
|
12
|
+
export { default as useScrollToTop } from 'react-router-scroll-to-top/src/useScrollToTop';
|
|
13
|
+
|
|
14
|
+
}
|
|
15
|
+
declare module 'react-router-scroll-to-top/src/useScrollToTop' {
|
|
16
|
+
const useScrollToTop: () => void;
|
|
17
|
+
export default useScrollToTop;
|
|
18
|
+
|
|
19
|
+
}
|
|
20
|
+
declare module 'react-router-scroll-to-top/tests/ScrollToTop.test' {
|
|
21
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
22
|
+
|
|
23
|
+
}
|
|
24
|
+
declare module 'react-router-scroll-to-top/tests/useScrollToTop.test' {
|
|
25
|
+
import '@testing-library/jest-dom/extend-expect';
|
|
26
|
+
|
|
27
|
+
}
|
|
28
|
+
declare module 'react-router-scroll-to-top' {
|
|
29
|
+
import main = require('react-router-scroll-to-top/src/index');
|
|
30
|
+
export = main;
|
|
31
|
+
}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r():"function"==typeof define&&define.amd?define([],r):"object"==typeof exports?exports["react-router-scroll-to-top"]=r():e["react-router-scroll-to-top"]=r()}(self,(function(){return function(){"use strict";var e={44:function(e,r,o){var t=o(497),n=Symbol.for("react.element"),u=Symbol.for("react.fragment"),f=Object.prototype.hasOwnProperty,c=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};r.Fragment=u,r.jsx=function(e,r,o){var t,u={},l=null,a=null;for(t in void 0!==o&&(l=""+o),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(a=r.ref),r)f.call(r,t)&&!i.hasOwnProperty(t)&&(u[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===u[t]&&(u[t]=r[t]);return{$$typeof:n,type:e,key:l,ref:a,props:u,_owner:c.current}}},598:function(e,r,o){e.exports=o(44)},497:function(e){e.exports=require("react")}},r={};function o(t){var n=r[t];if(void 0!==n)return n.exports;var u=r[t]={exports:{}};return e[t](u,u.exports,o),u.exports}o.d=function(e,r){for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};return function(){o.r(t),o.d(t,{ScrollToTop:function(){return f},useScrollToTop:function(){return n}});var e=o(497),r=require("react-router-dom"),n=function(){var o=(0,r.useLocation)(),t=o.pathname,n=o.state;(0,e.useEffect)((function(){!1!==(null==n?void 0:n.scrollToTop)&&window.scrollTo(0,0)}),[t,n])},u=o(598),f=function(r){var o=r.children;return n(),(0,u.jsx)(u.Fragment,{children:e.Children.toArray(o)})}}(),t}()}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-router-scroll-to-top",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "React component that scrolls to the top of a page when the current location gets changed",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,83 +24,83 @@
|
|
|
24
24
|
"url": "https://github.com/dimazuien/react-router-scroll-to-top/issues"
|
|
25
25
|
},
|
|
26
26
|
"source": "src/index.ts",
|
|
27
|
-
"main": "
|
|
28
|
-
"browser": "dist/index.js",
|
|
29
|
-
"module": "dist/index.module.js",
|
|
30
|
-
"unpkg": "dist/index.umd.js",
|
|
31
|
-
"types": "index.d.ts",
|
|
27
|
+
"main": "lib/index.js",
|
|
32
28
|
"typings": "index.d.ts",
|
|
33
29
|
"files": [
|
|
34
|
-
"
|
|
35
|
-
"index.d.ts"
|
|
36
|
-
"ScrollToTop.d.ts",
|
|
37
|
-
"useScrollToTop.d.ts"
|
|
30
|
+
"lib",
|
|
31
|
+
"index.d.ts"
|
|
38
32
|
],
|
|
39
33
|
"sideEffects": false,
|
|
40
34
|
"scripts": {
|
|
41
|
-
"
|
|
35
|
+
"_postinstall": "husky install",
|
|
36
|
+
"build": "webpack",
|
|
37
|
+
"dts": "npx npm-dts generate -e src/index",
|
|
38
|
+
"lint": "eslint .",
|
|
42
39
|
"test": "jest",
|
|
43
|
-
"
|
|
40
|
+
"prepublishOnly": "pinst --disable",
|
|
44
41
|
"release": "semantic-release",
|
|
45
|
-
"
|
|
46
|
-
"storybook:build": "build-storybook",
|
|
47
|
-
"storybook:upload": "gh-pages -d storybook-static --git \"$(which git)\""
|
|
42
|
+
"postpublish": "pinst --enable"
|
|
48
43
|
},
|
|
49
|
-
"dependencies": {},
|
|
50
44
|
"devDependencies": {
|
|
51
|
-
"@babel/core": "7.
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
57
|
-
"@semantic-release/
|
|
58
|
-
"@semantic-release/
|
|
59
|
-
"@semantic-release/
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"@testing-library/
|
|
64
|
-
"@testing-library/
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
67
|
-
"@types/
|
|
68
|
-
"@types/react
|
|
69
|
-
"@types/
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"
|
|
73
|
-
"
|
|
45
|
+
"@babel/core": "7.17.8",
|
|
46
|
+
"@babel/preset-env": "7.16.11",
|
|
47
|
+
"@babel/preset-react": "7.16.7",
|
|
48
|
+
"@babel/preset-typescript": "7.16.7",
|
|
49
|
+
"@commitlint/cli": "16.2.3",
|
|
50
|
+
"@commitlint/config-conventional": "16.2.1",
|
|
51
|
+
"@semantic-release/changelog": "6.0.1",
|
|
52
|
+
"@semantic-release/commit-analyzer": "9.0.2",
|
|
53
|
+
"@semantic-release/git": "10.0.1",
|
|
54
|
+
"@semantic-release/github": "8.0.4",
|
|
55
|
+
"@semantic-release/npm": "9.0.1",
|
|
56
|
+
"@semantic-release/release-notes-generator": "10.0.3",
|
|
57
|
+
"@testing-library/dom": "8.12.0",
|
|
58
|
+
"@testing-library/jest-dom": "5.16.3",
|
|
59
|
+
"@testing-library/react": "13.0.0",
|
|
60
|
+
"@testing-library/user-event": "14.0.4",
|
|
61
|
+
"@types/jest": "27.4.1",
|
|
62
|
+
"@types/react": "17.0.43",
|
|
63
|
+
"@types/react-dom": "17.0.14",
|
|
64
|
+
"@types/react-router-dom": "5.3.3",
|
|
65
|
+
"@types/testing-library__jest-dom": "5.14.3",
|
|
66
|
+
"@typescript-eslint/eslint-plugin": "5.17.0",
|
|
67
|
+
"@typescript-eslint/parser": "5.17.0",
|
|
68
|
+
"babel-loader": "8.2.4",
|
|
69
|
+
"commitizen": "4.2.4",
|
|
74
70
|
"cz-conventional-changelog": "3.3.0",
|
|
75
|
-
"eslint": "
|
|
76
|
-
"eslint-config-airbnb": "
|
|
77
|
-
"eslint-config-prettier": "
|
|
78
|
-
"eslint-plugin-import": "2.
|
|
79
|
-
"eslint-plugin-jest-dom": "
|
|
80
|
-
"eslint-plugin-jsx-a11y": "6.
|
|
81
|
-
"eslint-plugin-prettier": "
|
|
82
|
-
"eslint-plugin-react": "7.
|
|
83
|
-
"eslint-plugin-react-hooks": "4.
|
|
84
|
-
"eslint-plugin-
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"react
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
71
|
+
"eslint": "8.12.0",
|
|
72
|
+
"eslint-config-airbnb": "19.0.4",
|
|
73
|
+
"eslint-config-prettier": "8.5.0",
|
|
74
|
+
"eslint-plugin-import": "2.25.4",
|
|
75
|
+
"eslint-plugin-jest-dom": "4.0.1",
|
|
76
|
+
"eslint-plugin-jsx-a11y": "6.5.1",
|
|
77
|
+
"eslint-plugin-prettier": "4.0.0",
|
|
78
|
+
"eslint-plugin-react": "7.29.4",
|
|
79
|
+
"eslint-plugin-react-hooks": "4.4.0",
|
|
80
|
+
"eslint-plugin-simple-import-sort": "7.0.0",
|
|
81
|
+
"eslint-plugin-testing-library": "5.2.0",
|
|
82
|
+
"gh-pages": "3.2.3",
|
|
83
|
+
"github-markdown-css": "5.1.0",
|
|
84
|
+
"husky": "7.0.4",
|
|
85
|
+
"jest": "27.5.1",
|
|
86
|
+
"lint-staged": "12.3.7",
|
|
87
|
+
"lorem-ipsum": "2.0.4",
|
|
88
|
+
"npm-dts": "1.3.11",
|
|
89
|
+
"pinst": "3.0.0",
|
|
90
|
+
"prettier": "2.6.2",
|
|
91
|
+
"react": "18.0.0",
|
|
92
|
+
"react-dom": "18.0.0",
|
|
93
|
+
"react-router-dom": "6.3.0",
|
|
94
|
+
"semantic-release": "19.0.2",
|
|
95
|
+
"ts-jest": "27.1.4",
|
|
96
|
+
"ts-node": "10.7.0",
|
|
97
|
+
"typescript": "4.6.3",
|
|
98
|
+
"webpack": "5.71.0",
|
|
99
|
+
"webpack-cli": "4.9.2"
|
|
100
100
|
},
|
|
101
101
|
"peerDependencies": {
|
|
102
|
-
"react": "^16.8 || ^17",
|
|
103
|
-
"react-dom": "^16.8 || ^17",
|
|
104
|
-
"react-router-dom": "^5.1"
|
|
102
|
+
"react": "^16.8 || ^17 || ^18",
|
|
103
|
+
"react-dom": "^16.8 || ^17 || ^18",
|
|
104
|
+
"react-router-dom": "^5.1 || ^6"
|
|
105
105
|
}
|
|
106
106
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
## [1.1.2](https://github.com/dimazuien/react-router-scroll-to-top/compare/v1.1.1...v1.1.2) (2021-02-22)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* change typings path ([e39b991](https://github.com/dimazuien/react-router-scroll-to-top/commit/e39b99118ba22f3c2f77789f1f57efd742b98dce))
|
|
7
|
-
|
|
8
|
-
## [1.1.1](https://github.com/dimazuien/react-router-scroll-to-top/compare/v1.1.0...v1.1.1) (2020-12-28)
|
|
9
|
-
|
|
10
|
-
### Bug Fixes
|
|
11
|
-
|
|
12
|
-
* make ScrollToTop named export (before was default) ([ddfa28a](https://github.com/dimazuien/react-router-scroll-to-top/commit/ddfa28ad099606743c155ce833069dd231ab3c29))
|
|
13
|
-
|
|
14
|
-
# [1.1.0](https://github.com/dimazuien/react-router-scroll-to-top/compare/v1.0.0...v1.1.0) (2020-12-27)
|
|
15
|
-
|
|
16
|
-
### Features
|
|
17
|
-
|
|
18
|
-
* add a hook ([587ce84](https://github.com/dimazuien/react-router-scroll-to-top/commit/587ce8469b62491097541687d38810870abc6ae5))
|
|
19
|
-
* add state param that prevents scrolling to top ([a77830c](https://github.com/dimazuien/react-router-scroll-to-top/commit/a77830cef6ca582dad34f9130cb4068cb88c9f83))
|
package/ScrollToTop.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=require("react"),o=require("react-router-dom");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=r(e),n=function(){var r=o.useLocation(),t=r.state;e.useEffect(function(){!1!==(null==t?void 0:t.scrollToTop)&&window.scrollTo(0,0)},[r.pathname,t])};exports.ScrollToTop=function(e){var o=e.children;return n(),t.default.createElement(t.default.Fragment,null,o)},exports.useScrollToTop=n;
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/useScrollToTop.tsx","../src/ScrollToTop.tsx"],"sourcesContent":["import { useEffect } from 'react';\nimport { useLocation } from 'react-router-dom';\n\ntype ScrollToTopState =\n | Readonly<{\n scrollToTop?: boolean;\n }>\n | undefined;\n\nconst useScrollToTop = (): void => {\n const { pathname, state } = useLocation<ScrollToTopState>();\n\n useEffect(() => {\n if (state?.scrollToTop === false) return;\n\n window.scrollTo(0, 0);\n }, [pathname, state]);\n};\n\nexport default useScrollToTop;\n","import React, { FC } from 'react';\nimport useScrollToTop from './useScrollToTop';\n\nconst ScrollToTop: FC = ({ children }) => {\n useScrollToTop();\n\n return <>{children}</>;\n};\n\nexport default ScrollToTop;\n"],"names":["useScrollToTop","useLocation","state","useEffect","scrollToTop","window","scrollTo","pathname","children","React"],"mappings":"wIASMA,EAAiB,iBACOC,gBAAVC,IAAAA,MAElBC,YAAU,YACmB,WAAvBD,SAAAA,EAAOE,cAEXC,OAAOC,SAAS,EAAG,IAClB,GANKC,SAMML,yBCbQ,gBAAGM,IAAAA,SAGzB,OAFAR,IAEOS,gDAAGD"}
|
package/dist/index.modern.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import o,{useEffect as r}from"react";import{useLocation as t}from"react-router-dom";const e=()=>{const{pathname:o,state:e}=t();r(()=>{!1!==(null==e?void 0:e.scrollToTop)&&window.scrollTo(0,0)},[o,e])},l=({children:r})=>(e(),o.createElement(o.Fragment,null,r));export{l as ScrollToTop,e as useScrollToTop};
|
|
2
|
-
//# sourceMappingURL=index.modern.js.map
|
package/dist/index.modern.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.modern.js","sources":["../src/useScrollToTop.tsx","../src/ScrollToTop.tsx"],"sourcesContent":["import { useEffect } from 'react';\nimport { useLocation } from 'react-router-dom';\n\ntype ScrollToTopState =\n | Readonly<{\n scrollToTop?: boolean;\n }>\n | undefined;\n\nconst useScrollToTop = (): void => {\n const { pathname, state } = useLocation<ScrollToTopState>();\n\n useEffect(() => {\n if (state?.scrollToTop === false) return;\n\n window.scrollTo(0, 0);\n }, [pathname, state]);\n};\n\nexport default useScrollToTop;\n","import React, { FC } from 'react';\nimport useScrollToTop from './useScrollToTop';\n\nconst ScrollToTop: FC = ({ children }) => {\n useScrollToTop();\n\n return <>{children}</>;\n};\n\nexport default ScrollToTop;\n"],"names":["useScrollToTop","pathname","state","useLocation","useEffect","scrollToTop","window","scrollTo","ScrollToTop","children","React"],"mappings":"oFASMA,MAAAA,EAAiB,KACrB,MAAMC,SAAEA,EAAFC,MAAYA,GAAUC,IAE5BC,EAAU,MACmB,WAAvBF,SAAAA,EAAOG,cAEXC,OAAOC,SAAS,EAAG,IAClB,CAACN,EAAUC,KCbVM,EAAkB,EAAGC,SAAAA,MACzBT,IAEOU,gCAAGD"}
|
package/dist/index.module.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import r,{useEffect as o}from"react";import{useLocation as t}from"react-router-dom";var n=function(){var r=t(),n=r.state;o(function(){!1!==(null==n?void 0:n.scrollToTop)&&window.scrollTo(0,0)},[r.pathname,n])},e=function(o){var t=o.children;return n(),r.createElement(r.Fragment,null,t)};export{e as ScrollToTop,n as useScrollToTop};
|
|
2
|
-
//# sourceMappingURL=index.module.js.map
|
package/dist/index.module.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.js","sources":["../src/useScrollToTop.tsx","../src/ScrollToTop.tsx"],"sourcesContent":["import { useEffect } from 'react';\nimport { useLocation } from 'react-router-dom';\n\ntype ScrollToTopState =\n | Readonly<{\n scrollToTop?: boolean;\n }>\n | undefined;\n\nconst useScrollToTop = (): void => {\n const { pathname, state } = useLocation<ScrollToTopState>();\n\n useEffect(() => {\n if (state?.scrollToTop === false) return;\n\n window.scrollTo(0, 0);\n }, [pathname, state]);\n};\n\nexport default useScrollToTop;\n","import React, { FC } from 'react';\nimport useScrollToTop from './useScrollToTop';\n\nconst ScrollToTop: FC = ({ children }) => {\n useScrollToTop();\n\n return <>{children}</>;\n};\n\nexport default ScrollToTop;\n"],"names":["useScrollToTop","useLocation","state","useEffect","scrollToTop","window","scrollTo","pathname","ScrollToTop","children","React"],"mappings":"oFASMA,IAAAA,EAAiB,iBACOC,IAAVC,IAAAA,MAElBC,EAAU,YACmB,WAAvBD,SAAAA,EAAOE,cAEXC,OAAOC,SAAS,EAAG,IAClB,GANKC,SAMML,KCbVM,EAAkB,gBAAGC,IAAAA,SAGzB,OAFAT,IAEOU,gCAAGD"}
|
package/dist/index.umd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("react"),require("react-router-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-router-dom"],o):o((e||self).reactRouterScrollToTop={},e.react,e.reactRouterDom)}(this,function(e,o,t){function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=r(o),u=function(){var e=t.useLocation(),r=e.state;o.useEffect(function(){!1!==(null==r?void 0:r.scrollToTop)&&window.scrollTo(0,0)},[e.pathname,r])};e.ScrollToTop=function(e){var o=e.children;return u(),n.default.createElement(n.default.Fragment,null,o)},e.useScrollToTop=u});
|
|
2
|
-
//# sourceMappingURL=index.umd.js.map
|
package/dist/index.umd.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../src/useScrollToTop.tsx","../src/ScrollToTop.tsx"],"sourcesContent":["import { useEffect } from 'react';\nimport { useLocation } from 'react-router-dom';\n\ntype ScrollToTopState =\n | Readonly<{\n scrollToTop?: boolean;\n }>\n | undefined;\n\nconst useScrollToTop = (): void => {\n const { pathname, state } = useLocation<ScrollToTopState>();\n\n useEffect(() => {\n if (state?.scrollToTop === false) return;\n\n window.scrollTo(0, 0);\n }, [pathname, state]);\n};\n\nexport default useScrollToTop;\n","import React, { FC } from 'react';\nimport useScrollToTop from './useScrollToTop';\n\nconst ScrollToTop: FC = ({ children }) => {\n useScrollToTop();\n\n return <>{children}</>;\n};\n\nexport default ScrollToTop;\n"],"names":["useScrollToTop","useLocation","state","useEffect","scrollToTop","window","scrollTo","pathname","children","React"],"mappings":"waASMA,EAAiB,iBACOC,gBAAVC,IAAAA,MAElBC,YAAU,YACmB,WAAvBD,SAAAA,EAAOE,cAEXC,OAAOC,SAAS,EAAG,IAClB,GANKC,SAMML,mBCbQ,gBAAGM,IAAAA,SAGzB,OAFAR,IAEOS,gDAAGD"}
|
package/useScrollToTop.d.ts
DELETED