@ukpc-lib/react 0.16.14-sandbox.saas-11110.patch-6 → 0.16.14-sandbox.saas-11110.patch-8
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 +2 -2
- package/dist/components/index.js +4 -4
- package/dist/{index.esm2017-YiM2wcmq.cjs → index.esm2017-B0NKoRVE.cjs} +1 -1
- package/dist/{index.esm2017-CcpfwFVZ.js → index.esm2017-BTPhaEQE.js} +4 -4
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +2 -2
- package/package.json +1 -1
- package/web-components-bundle/{SaasThemeProvider-A_eMJWqw.js → SaasThemeProvider-DUpoV8xb.js} +1 -1
- package/web-components-bundle/access-denied/index.js +2 -2
- package/web-components-bundle/base-breadcrumbs/index.js +3 -3
- package/web-components-bundle/favorite-menu/index.js +7 -7
- package/web-components-bundle/global-menu/index.js +6 -6
- package/web-components-bundle/global-topbar/index.js +7 -7
- package/web-components-bundle/has-permission/index.js +2 -2
- package/web-components-bundle/{index-760z9lEs.js → index-BBl8HzU3.js} +565 -565
- package/web-components-bundle/{index-CiYHK3Rq.js → index-Ch-015PG.js} +1 -1
- package/web-components-bundle/{index-BwEhsh9S.js → index-N6zjI_u_.js} +2 -2
- package/web-components-bundle/{index-8dMQPBAT.js → index-hbDEpVnn.js} +1743 -1743
- package/web-components-bundle/page-not-found/index.js +3 -3
- package/web-components-bundle/{react-to-web-component-BOygDorD.js → react-to-web-component-w5r1Fs9q.js} +1527 -1535
- package/web-components-bundle/{react-toastify.esm-DnABvuky.js → react-toastify.esm-H_Xdunfj.js} +1 -1
- package/web-components-bundle/toast-config/index.js +2 -2
- package/web-components-bundle/toast-config-notification/index.js +2 -2
|
@@ -3660,9 +3660,9 @@ function yL() {
|
|
|
3660
3660
|
const [t, e] = Zt();
|
|
3661
3661
|
return _t(() => {
|
|
3662
3662
|
var c;
|
|
3663
|
-
const n = window.env;
|
|
3664
|
-
if (!
|
|
3665
|
-
e(bd.en), Tr.changeLanguage(bd.en);
|
|
3663
|
+
const n = window.env, r = ((c = n == null ? void 0 : n.VITE_REDIRECT_IHUB_URL) == null ? void 0 : c.includes(window.origin)) || !1;
|
|
3664
|
+
if (!r) {
|
|
3665
|
+
localStorage.removeItem("iHubLanguage"), e(bd.en), Tr.changeLanguage(bd.en);
|
|
3666
3666
|
return;
|
|
3667
3667
|
}
|
|
3668
3668
|
const i = n == null ? void 0 : n.VITE_DEFAULT_LANGUAGE;
|
|
@@ -3670,7 +3670,7 @@ function yL() {
|
|
|
3670
3670
|
e(bd.en), Tr.changeLanguage(bd.en);
|
|
3671
3671
|
return;
|
|
3672
3672
|
}
|
|
3673
|
-
const a = localStorage.getItem("iHubLanguage") || i;
|
|
3673
|
+
const a = (r ? localStorage.getItem("iHubLanguage") : localStorage.getItem("language")) || i;
|
|
3674
3674
|
e(a), Tr.changeLanguage(a);
|
|
3675
3675
|
}, []), {
|
|
3676
3676
|
language: t,
|
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-B0NKoRVE.cjs"),m=require("axios"),u=require("react"),d=require("react-router-dom"),a=require("react/jsx-runtime");require("@r2wc/react-to-web-component");require("@mui/material");require("react-query");require("react-dom");require("moment");const h=s=>{const[t,r]=u.useState([]);return u.useEffect(()=>{m.get(`${s}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(o=>r(o.data)).catch(o=>{console.error("Getting user permission error:",o)})},[s]),t},p=s=>{const t=d.useLocation();if(u.useEffect(()=>{var o,i;let r=t.pathname+t.search+t.hash;s&&!r.includes(s)&&(r=s+r),console.log("🚀 ~ PrivateLayout.tsx ~ fullPath:",r),(i=(o=window.top)==null?void 0:o.shellNavigate)==null||i.call(o,"/app"+r,{replace:!0})},[t,s]),window.self===window.top){console.log("useSyncRouter: Navigate to /app path"),window.location.href=window.location.href.replace(window.origin,`${window.origin}/app`);return}};function g({open:s,disabled:t}){u.useMemo(()=>{var r,o,i,n;t||(s?(o=(r=window.top)==null?void 0:r.HostBridge)==null||o.openBackdrop(!0):(n=(i=window.top)==null?void 0:i.HostBridge)==null||n.openBackdrop(!1))},[s,t])}const l=(s,t)=>(r,o)=>{const n=e.useUserPermissions({axiosInstance:t,baseUrl:s}).data;return n?o?r.every(c=>n==null?void 0:n.includes(c)):r.some(c=>n==null?void 0:n.includes(c)):!1},f=({baseUrl:s,accessWith:t,requireAll:r,children:o})=>l(s)(t,r)?a.jsx(a.Fragment,{children:o}):null,P=({accessWith:s,requireAll:t,baseUrl:r,children:o})=>l(r)(s,t)?a.jsx(a.Fragment,{children:o}):a.jsx(e.UnauthorizedPage,{});exports.AuthContext=e.AuthContext;exports.AuthProvider=e.AuthProvider;exports.ERROR_MESSAGE=e.ERROR_MESSAGE;exports.SaasThemeProvider=e.SaasThemeProvider;exports.TranslationProvider=e.TranslationProvider;exports.X_AUTO_CANCEL=e.X_AUTO_CANCEL;exports.axiosInstance=e.axiosInstance;exports.color=e.color;exports.createCustomTheme=e.createCustomTheme;exports.handleErrorAxios=e.handleErrorAxios;exports.isCanceledError=e.isCanceledError;exports.login=e.login;exports.logout=e.logout;exports.requestInterceptor=e.requestInterceptor;exports.responseInterceptor=e.responseInterceptor;exports.search=e.search;exports.setFavicon=e.setFavicon;exports.setShellBackdrop=e.setShellBackdrop;exports.translate=e.translate;exports.translationConfig=e.translationConfig;exports.useAuth=e.useAuth;exports.useCustomTranslation=e.useCustomTranslation;exports.useTheme=e.useTheme;exports.useTranslation=e.useTranslation;exports.HasPermission=f;exports.PermissionRoute=P;exports.getUseHasPermission=l;exports.useGetPermission=h;exports.useSyncBackdrop=g;exports.useSyncRouter=p;
|
package/dist/share/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as p, U as l } from "../index.esm2017-
|
|
2
|
-
import { O as L, R as M, T as N, a6 as O, a3 as _, X as $, a as j, c as D, a4 as F, Y as X, Z as q, V as z, W as V, a0 as Y, $ as Z, v as J, a5 as K, s as Q, t as W, a1 as b, e as ee, u as se, j as oe, a2 as re } from "../index.esm2017-
|
|
1
|
+
import { M as p, U as l } from "../index.esm2017-BTPhaEQE.js";
|
|
2
|
+
import { O as L, R as M, T as N, a6 as O, a3 as _, X as $, a as j, c as D, a4 as F, Y as X, Z as q, V as z, W as V, a0 as Y, $ as Z, v as J, a5 as K, s as Q, t as W, a1 as b, e as ee, u as se, j as oe, a2 as re } from "../index.esm2017-BTPhaEQE.js";
|
|
3
3
|
import d from "axios";
|
|
4
4
|
import { useState as f, useEffect as u, useMemo as h } from "react";
|
|
5
5
|
import { useLocation as w } from "react-router-dom";
|
package/package.json
CHANGED
package/web-components-bundle/{SaasThemeProvider-A_eMJWqw.js → SaasThemeProvider-DUpoV8xb.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as j, r as b } from "./react-to-web-component-
|
|
1
|
+
import { a as j, r as b } from "./react-to-web-component-w5r1Fs9q.js";
|
|
2
2
|
function c() {
|
|
3
3
|
return c = Object.assign ? Object.assign.bind() : function(t) {
|
|
4
4
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../react-to-web-component-
|
|
2
|
-
import { V as e } from "../index-
|
|
3
|
-
import "../SaasThemeProvider-
|
|
1
|
+
import "../react-to-web-component-w5r1Fs9q.js";
|
|
2
|
+
import { V as e } from "../index-BBl8HzU3.js";
|
|
3
|
+
import "../SaasThemeProvider-DUpoV8xb.js";
|
|
4
4
|
export {
|
|
5
5
|
e as BaseBreadcrumbs
|
|
6
6
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../react-to-web-component-
|
|
2
|
-
import { F, u as v } from "../index-
|
|
3
|
-
import "../index-
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../react-toastify.esm-
|
|
1
|
+
import "../react-to-web-component-w5r1Fs9q.js";
|
|
2
|
+
import { F, u as v } from "../index-hbDEpVnn.js";
|
|
3
|
+
import "../index-N6zjI_u_.js";
|
|
4
|
+
import "../index-BBl8HzU3.js";
|
|
5
|
+
import "../react-toastify.esm-H_Xdunfj.js";
|
|
6
6
|
import "../toast-config/index.js";
|
|
7
7
|
import "../toast-config-notification/index.js";
|
|
8
|
-
import "../SaasThemeProvider-
|
|
9
|
-
import "../index-
|
|
8
|
+
import "../SaasThemeProvider-DUpoV8xb.js";
|
|
9
|
+
import "../index-Ch-015PG.js";
|
|
10
10
|
export {
|
|
11
11
|
F as FavoriteMenu,
|
|
12
12
|
v as updateFavoriteItems
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../react-to-web-component-
|
|
2
|
-
import { G as e } from "../index-
|
|
3
|
-
import "../index-
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../SaasThemeProvider-
|
|
6
|
-
import "../index-
|
|
1
|
+
import "../react-to-web-component-w5r1Fs9q.js";
|
|
2
|
+
import { G as e } from "../index-hbDEpVnn.js";
|
|
3
|
+
import "../index-N6zjI_u_.js";
|
|
4
|
+
import "../index-BBl8HzU3.js";
|
|
5
|
+
import "../SaasThemeProvider-DUpoV8xb.js";
|
|
6
|
+
import "../index-Ch-015PG.js";
|
|
7
7
|
export {
|
|
8
8
|
e as GlobalMenu
|
|
9
9
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../react-to-web-component-
|
|
2
|
-
import { L as s, T as L } from "../index-
|
|
3
|
-
import "../index-
|
|
4
|
-
import "../index-
|
|
5
|
-
import "../index-
|
|
6
|
-
import "../SaasThemeProvider-
|
|
7
|
-
import "../react-toastify.esm-
|
|
1
|
+
import "../react-to-web-component-w5r1Fs9q.js";
|
|
2
|
+
import { L as s, T as L } from "../index-hbDEpVnn.js";
|
|
3
|
+
import "../index-N6zjI_u_.js";
|
|
4
|
+
import "../index-Ch-015PG.js";
|
|
5
|
+
import "../index-BBl8HzU3.js";
|
|
6
|
+
import "../SaasThemeProvider-DUpoV8xb.js";
|
|
7
|
+
import "../react-toastify.esm-H_Xdunfj.js";
|
|
8
8
|
import "../toast-config/index.js";
|
|
9
9
|
import "../toast-config-notification/index.js";
|
|
10
10
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../react-to-web-component-
|
|
2
|
-
import { H as o, g as r } from "../index-
|
|
1
|
+
import "../react-to-web-component-w5r1Fs9q.js";
|
|
2
|
+
import { H as o, g as r } from "../index-hbDEpVnn.js";
|
|
3
3
|
export {
|
|
4
4
|
o as HasPermission,
|
|
5
5
|
r as getUseHasPermission
|