@tracktor/shared-module 2.7.0 → 2.8.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/CHANGELOG.md +2 -3
- package/dist/components/Utils/RequireAuth.d.ts +1 -2
- package/dist/main.js +479 -486
- package/dist/main.umd.cjs +8 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
# [Versions](https://github.com/Tracktor/shared-module/releases)
|
|
2
2
|
|
|
3
|
-
## v2.
|
|
4
|
-
- **[feat]** -
|
|
5
|
-
- **[feat]** - add `localStorageKeys` in props of `InjectDependenciesContext` context
|
|
3
|
+
## v2.8.0
|
|
4
|
+
- **[feat]** - use `localStorageKeys.user` in `RequireAuth`
|
|
@@ -40,10 +40,9 @@ export interface RequireAuthProps {
|
|
|
40
40
|
* @param Fallback
|
|
41
41
|
* @param isLogged
|
|
42
42
|
* @param loginPath
|
|
43
|
-
* @param localStorageKey
|
|
44
43
|
* @param redirect401Path
|
|
45
44
|
* @param props
|
|
46
45
|
* @constructor
|
|
47
46
|
*/
|
|
48
|
-
declare const RequireAuth: ({ Fallback, isLogged, loginPath,
|
|
47
|
+
declare const RequireAuth: ({ Fallback, isLogged, loginPath, redirect401Path, ...props }: RequireAuthProps) => import("react/jsx-runtime").JSX.Element;
|
|
49
48
|
export default RequireAuth;
|