@ukpc-lib/react 0.10.29-dev.1 → 0.10.31-dev.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/dist/components/Notification/models/NotiticationDto.d.ts +1 -3
- package/dist/components/index.cjs +23 -23
- package/dist/components/index.js +2375 -2420
- package/dist/{index.esm2017-9c5c1844.cjs → index.esm2017-14522630.cjs} +87 -87
- package/dist/{index.esm2017-ae9435d3.js → index.esm2017-8114465d.js} +7226 -7228
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +8 -8
- package/dist/theme/SaasThemeProvider.d.ts +1 -0
- 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-a1da26c8.js → index-7c8fbf6b.js} +10019 -10063
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-14522630.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 {
|
|
1
|
+
import { K as R, M as S, N as G, a0 as y, Y as F, a as H, c as I, Z as M, T as N, O, R as $, U as j, t as w, $ as K, W as U, V, b as X, u as Y, g as Z, X as _ } from "../index.esm2017-8114465d.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";
|
|
@@ -50,12 +50,12 @@ export {
|
|
|
50
50
|
$ as logout,
|
|
51
51
|
j as responseInterceptor,
|
|
52
52
|
w as search,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
53
|
+
K as setFavicon,
|
|
54
|
+
U as translate,
|
|
55
|
+
V as translationConfig,
|
|
56
|
+
X as useAuth,
|
|
57
|
+
Y as useCustomTranslation,
|
|
58
58
|
h as useGetPermission,
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
Z as useTheme,
|
|
60
|
+
_ as useTranslation
|
|
61
61
|
};
|
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-7c8fbf6b.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-7c8fbf6b.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-7c8fbf6b.js";
|
|
3
3
|
import "../index-c91ec106.js";
|
|
4
4
|
import "../react-toastify.esm-d8df41b8.js";
|
|
5
5
|
import "../toast-config/index.js";
|