@ukpc-lib/react 0.12.2 → 0.12.3
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/components/index.cjs +1 -1
- package/dist/components/index.js +2 -2
- package/dist/{index.esm2017-7c341ab3.cjs → index.esm2017-180b4218.cjs} +37 -37
- package/dist/{index.esm2017-4ce16521.js → index.esm2017-1eeaf9e3.js} +1265 -1264
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
- package/web-components-bundle/favorite-menu/index.js +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.js +1 -1
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/{index-57de9f86.js → index-3eafc8f0.js} +10127 -10123
package/dist/share/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index.esm2017-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index.esm2017-180b4218.cjs"),m=require("axios"),u=require("react"),i=require("react/jsx-runtime");require("@r2wc/react-to-web-component");const l=require("react-router-dom");require("@mui/material");const c=r=>{const[t,n]=u.useState([]);return u.useEffect(()=>{m.get(`${r}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(s=>n(s.data)).catch(s=>{console.error("Getting user permission error:",s)})},[r]),t},a=r=>(t,n)=>{const s=c(r);return n?t.every(o=>s==null?void 0:s.includes(o)):t.some(o=>s==null?void 0:s.includes(o))},h=({baseUrl:r,accessWith:t,requireAll:n,children:s})=>a(r)(t,n)?i.jsx(i.Fragment,{children:s}):null,P=({accessWith:r,requireAll:t,baseUrl:n,unAuthorizedPath:s,children:o})=>a(n)(r,t)?i.jsx(i.Fragment,{children:o}):i.jsx(l.Navigate,{to:s,replace:!0});exports.AuthContext=e.AuthContext;exports.AuthProvider=e.AuthProvider;exports.ERROR_MESSAGE=e.ERROR_MESSAGE;exports.SaasThemeProvider=e.SaasThemeProvider;exports.TranslationProvider=e.TranslationProvider;exports.axiosInstance=e.axiosInstance;exports.color=e.color;exports.createCustomTheme=e.createCustomTheme;exports.handleErrorAxios=e.handleErrorAxios;exports.login=e.login;exports.logout=e.logout;exports.responseInterceptor=e.responseInterceptor;exports.search=e.search;exports.setFavicon=e.setFavicon;exports.translate=e.translate;exports.translationConfig=e.translationConfig;exports.useAuth=e.useAuth;exports.useCustomTranslation=e.useCustomTranslation;exports.useTheme=e.useTheme;exports.useTranslation=e.useTranslation$1;exports.HasPermission=h;exports.PermissionRoute=P;exports.getUseHasPermission=a;exports.useGetPermission=c;
|
package/dist/share/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as R, N as S, O as G, a0 as y, Y as F, a as H, c as I, Z as M, U as N, R as O, T as $, V as j, v as w, $ as U, t as V, W as X, b as Y, u as Z, g as _, X as b } from "../index.esm2017-
|
|
1
|
+
import { M as R, N as S, O as G, a0 as y, Y as F, a as H, c as I, Z as M, U as N, R as O, T as $, V as j, v as w, $ as U, t as V, W as X, b as Y, u as Z, g as _, X as b } from "../index.esm2017-1eeaf9e3.js";
|
|
2
2
|
import u from "axios";
|
|
3
3
|
import { useState as m, useEffect as c } from "react";
|
|
4
4
|
import { jsx as a, Fragment as n } from "react/jsx-runtime";
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../react-to-web-component-d5889290.js";
|
|
2
|
-
import { F as a, u as s } from "../index-
|
|
2
|
+
import { F as a, u as s } from "../index-3eafc8f0.js";
|
|
3
3
|
import "../index-c91ec106.js";
|
|
4
4
|
import "../react-toastify.esm-d8df41b8.js";
|
|
5
5
|
import "../toast-config/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../react-to-web-component-d5889290.js";
|
|
2
|
-
import { L as e, T as g } from "../index-
|
|
2
|
+
import { L as e, T as g } from "../index-3eafc8f0.js";
|
|
3
3
|
import "../index-c91ec106.js";
|
|
4
4
|
import "../react-toastify.esm-d8df41b8.js";
|
|
5
5
|
import "../toast-config/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../react-to-web-component-d5889290.js";
|
|
2
|
-
import { H as e, g as a } from "../index-
|
|
2
|
+
import { H as e, g as a } from "../index-3eafc8f0.js";
|
|
3
3
|
import "../index-c91ec106.js";
|
|
4
4
|
import "../react-toastify.esm-d8df41b8.js";
|
|
5
5
|
import "../toast-config/index.js";
|