@ukpc-lib/react 0.16.8 → 0.16.9-sandbox.saas-9778.patch-1
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/GlobalMenu/index.d.ts +1 -0
- package/dist/components/Topbar/icons/HamburgerIcon.d.ts +4 -0
- package/dist/components/Topbar/icons/SearchIcon.d.ts +7 -0
- package/dist/components/index.cjs +18 -18
- package/dist/components/index.js +1911 -1932
- package/dist/components/main.d.ts +1 -1
- package/dist/{index.esm2017-CxUJuamS.js → index.esm2017-BXR0dxce.js} +10844 -10562
- package/dist/{index.esm2017-BWPYyOYY.cjs → index.esm2017-PVn6lyKj.cjs} +125 -125
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +18 -18
- package/package.json +1 -1
- package/web-components-bundle/{SaasThemeProvider-DUpoV8xb.js → SaasThemeProvider-A_eMJWqw.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 +8 -7
- 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-BBl8HzU3.js → index-760z9lEs.js} +565 -565
- package/web-components-bundle/{index-N6zjI_u_.js → index-BwEhsh9S.js} +2 -2
- package/web-components-bundle/{index-Ch-015PG.js → index-CiYHK3Rq.js} +1 -1
- package/web-components-bundle/{index-CP2z5RW_.js → index-DgePM6pT.js} +11016 -10759
- package/web-components-bundle/page-not-found/index.js +3 -3
- package/web-components-bundle/{react-to-web-component-w5r1Fs9q.js → react-to-web-component-BOygDorD.js} +1535 -1527
- package/web-components-bundle/{react-toastify.esm-H_Xdunfj.js → react-toastify.esm-DnABvuky.js} +1 -1
- package/web-components-bundle/toast-config/index.js +2 -2
- package/web-components-bundle/toast-config-notification/index.js +2 -2
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-PVn6lyKj.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.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.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 {
|
|
2
|
-
import {
|
|
1
|
+
import { V as p, R as l } from "../index.esm2017-BXR0dxce.js";
|
|
2
|
+
import { W as D, X as F, Y as I, a7 as L, a4 as M, a as N, c as U, a5 as z, a0 as O, Z as V, $ as X, a1 as Y, w as Z, a6 as _, s as q, t as J, a2 as K, e as Q, u as W, j as b, a3 as ee } from "../index.esm2017-BXR0dxce.js";
|
|
3
3
|
import f from "axios";
|
|
4
4
|
import { useState as d, useEffect as u, useMemo as h } from "react";
|
|
5
5
|
import { useLocation as w } from "react-router-dom";
|
|
@@ -63,26 +63,26 @@ const m = (s, r) => (e, o) => {
|
|
|
63
63
|
children: o
|
|
64
64
|
}) => m(e)(s, r) ? /* @__PURE__ */ i(c, { children: o }) : /* @__PURE__ */ i(l, {});
|
|
65
65
|
export {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
D as AuthContext,
|
|
67
|
+
F as AuthProvider,
|
|
68
|
+
I as ERROR_MESSAGE,
|
|
69
69
|
H as HasPermission,
|
|
70
70
|
G as PermissionRoute,
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
L as SaasThemeProvider,
|
|
72
|
+
M as TranslationProvider,
|
|
73
73
|
N as axiosInstance,
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
U as color,
|
|
75
|
+
z as createCustomTheme,
|
|
76
76
|
m as getUseHasPermission,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
77
|
+
O as handleErrorAxios,
|
|
78
|
+
V as login,
|
|
79
|
+
X as logout,
|
|
80
|
+
Y as responseInterceptor,
|
|
81
|
+
Z as search,
|
|
82
|
+
_ as setFavicon,
|
|
83
|
+
q as setShellBackdrop,
|
|
84
|
+
J as translate,
|
|
85
|
+
K as translationConfig,
|
|
86
86
|
Q as useAuth,
|
|
87
87
|
W as useCustomTranslation,
|
|
88
88
|
C as useGetPermission,
|
package/package.json
CHANGED
package/web-components-bundle/{SaasThemeProvider-DUpoV8xb.js → SaasThemeProvider-A_eMJWqw.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-BOygDorD.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-BOygDorD.js";
|
|
2
|
+
import { V as e } from "../index-760z9lEs.js";
|
|
3
|
+
import "../SaasThemeProvider-A_eMJWqw.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-BOygDorD.js";
|
|
2
|
+
import { F, u as v } from "../index-DgePM6pT.js";
|
|
3
|
+
import "../index-BwEhsh9S.js";
|
|
4
|
+
import "../index-760z9lEs.js";
|
|
5
|
+
import "../react-toastify.esm-DnABvuky.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-A_eMJWqw.js";
|
|
9
|
+
import "../index-CiYHK3Rq.js";
|
|
10
10
|
export {
|
|
11
11
|
F as FavoriteMenu,
|
|
12
12
|
v as updateFavoriteItems
|
|
@@ -1,9 +1,10 @@
|
|
|
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-BOygDorD.js";
|
|
2
|
+
import { G as e, a as n } from "../index-DgePM6pT.js";
|
|
3
|
+
import "../index-BwEhsh9S.js";
|
|
4
|
+
import "../index-760z9lEs.js";
|
|
5
|
+
import "../SaasThemeProvider-A_eMJWqw.js";
|
|
6
|
+
import "../index-CiYHK3Rq.js";
|
|
7
7
|
export {
|
|
8
|
-
e as GlobalMenu
|
|
8
|
+
e as GlobalMenu,
|
|
9
|
+
n as LanguageDropdown
|
|
9
10
|
};
|
|
@@ -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-BOygDorD.js";
|
|
2
|
+
import { L as s, T as L } from "../index-DgePM6pT.js";
|
|
3
|
+
import "../index-BwEhsh9S.js";
|
|
4
|
+
import "../index-CiYHK3Rq.js";
|
|
5
|
+
import "../index-760z9lEs.js";
|
|
6
|
+
import "../SaasThemeProvider-A_eMJWqw.js";
|
|
7
|
+
import "../react-toastify.esm-DnABvuky.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-BOygDorD.js";
|
|
2
|
+
import { H as o, g as r } from "../index-DgePM6pT.js";
|
|
3
3
|
export {
|
|
4
4
|
o as HasPermission,
|
|
5
5
|
r as getUseHasPermission
|