@ukpc-lib/react 0.13.5 → 0.13.7-sandbox.saas-8492.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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index.esm2017-BtTWLbPn.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=s=>{const[t,o]=u.useState([]);return u.useEffect(()=>{m.get(`${s}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(r=>o(r.data)).catch(r=>{console.error("Getting user permission error:",r)})},[s]),t},a=s=>(t,o)=>{const r=c(s);return o?t.every(n=>r==null?void 0:r.includes(n)):t.some(n=>r==null?void 0:r.includes(n))},h=({baseUrl:s,accessWith:t,requireAll:o,children:r})=>a(s)(t,o)?i.jsx(i.Fragment,{children:r}):null,P=({accessWith:s,requireAll:t,baseUrl:o,unAuthorizedPath:r,children:n})=>a(o)(s,t)?i.jsx(i.Fragment,{children:n}):i.jsx(l.Navigate,{to:r,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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index.esm2017-BH9gRN7i.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=s=>{const[t,o]=u.useState([]);return u.useEffect(()=>{m.get(`${s}/user-management/api/v1/users/my-account/permissions`,{withCredentials:!0}).then(r=>o(r.data)).catch(r=>{console.error("Getting user permission error:",r)})},[s]),t},a=s=>(t,o)=>{const r=c(s);return o?t.every(n=>r==null?void 0:r.includes(n)):t.some(n=>r==null?void 0:r.includes(n))},h=({baseUrl:s,accessWith:t,requireAll:o,children:r})=>a(s)(t,o)?i.jsx(i.Fragment,{children:r}):null,P=({accessWith:s,requireAll:t,baseUrl:o,unAuthorizedPath:r,children:n})=>a(o)(s,t)?i.jsx(i.Fragment,{children:n}):i.jsx(l.Navigate,{to:r,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;
@@ -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-9AyxX2BH.js";
1
+ import { M as R, O as S, R as G, a1 as y, Z as F, a as H, c as I, $ as M, V as O, T as $, U as j, W as w, t as B, a0 as N, B as U, X as V, e as X, u as Y, i as Z, Y as _ } from "../index.esm2017-CXUWB61_.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";
@@ -45,17 +45,17 @@ export {
45
45
  I as color,
46
46
  M as createCustomTheme,
47
47
  i as getUseHasPermission,
48
- N as handleErrorAxios,
49
- O as login,
50
- $ as logout,
51
- j as responseInterceptor,
52
- w as search,
53
- U as setFavicon,
54
- V as translate,
55
- X as translationConfig,
56
- Y as useAuth,
57
- Z as useCustomTranslation,
48
+ O as handleErrorAxios,
49
+ $ as login,
50
+ j as logout,
51
+ w as responseInterceptor,
52
+ B as search,
53
+ N as setFavicon,
54
+ U as translate,
55
+ V as translationConfig,
56
+ X as useAuth,
57
+ Y as useCustomTranslation,
58
58
  h as useGetPermission,
59
- _ as useTheme,
60
- b as useTranslation
59
+ Z as useTheme,
60
+ _ as useTranslation
61
61
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ukpc-lib/react",
3
3
  "private": false,
4
- "version": "0.13.5",
4
+ "version": "0.13.7-sandbox.saas-8492.patch-1",
5
5
  "type": "module",
6
6
  "main": "./dist/",
7
7
  "module": "./dist/",
@@ -1,5 +1,5 @@
1
1
  import "../react-to-web-component-CXwKHjZr.js";
2
- import { U as e } from "../index-CK5hBQAs.js";
2
+ import { U as e } from "../index-9o5rZMWx.js";
3
3
  export {
4
4
  e as UnauthorizedPage
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import "../react-to-web-component-CXwKHjZr.js";
2
- import { aa as m } from "../index-BTy-Dpix.js";
2
+ import { ae as m } from "../index-CxiIFyUv.js";
3
3
  export {
4
4
  m as BaseBreadcrumbs
5
5
  };
@@ -1,7 +1,7 @@
1
1
  import "../react-to-web-component-CXwKHjZr.js";
2
- import { F as i, u as m } from "../index-BVdw7RBU.js";
2
+ import { F as i, u as m } from "../index-DLTHwamY.js";
3
3
  import "../index-BSe1av43.js";
4
- import "../index-BTy-Dpix.js";
4
+ import "../index-CxiIFyUv.js";
5
5
  export {
6
6
  i as FavoriteMenu,
7
7
  m as updateFavoriteItems
@@ -1,7 +1,7 @@
1
1
  import "../react-to-web-component-CXwKHjZr.js";
2
- import { G as i } from "../index-BVdw7RBU.js";
2
+ import { G as i } from "../index-DLTHwamY.js";
3
3
  import "../index-BSe1av43.js";
4
- import "../index-BTy-Dpix.js";
4
+ import "../index-CxiIFyUv.js";
5
5
  export {
6
6
  i as GlobalMenu
7
7
  };
@@ -1,8 +1,8 @@
1
1
  import "../react-to-web-component-CXwKHjZr.js";
2
- import { L as n, T as s } from "../index-BVdw7RBU.js";
2
+ import { L as n, T as s } from "../index-DLTHwamY.js";
3
3
  import "../index-BSe1av43.js";
4
- import "../index-CK5hBQAs.js";
5
- import "../index-BTy-Dpix.js";
4
+ import "../index-9o5rZMWx.js";
5
+ import "../index-CxiIFyUv.js";
6
6
  import "../react-toastify.esm-CrTD7cpE.js";
7
7
  import "../toast-config/index.js";
8
8
  import "../toast-config-notification/index.js";
@@ -1,6 +1,6 @@
1
1
  import "../react-to-web-component-CXwKHjZr.js";
2
- import { H as e, g as m } from "../index-BVdw7RBU.js";
3
- import "../index-BTy-Dpix.js";
2
+ import { H as e, g as m } from "../index-DLTHwamY.js";
3
+ import "../index-CxiIFyUv.js";
4
4
  export {
5
5
  e as HasPermission,
6
6
  m as getUseHasPermission
@@ -1,6 +1,6 @@
1
1
  import "./index2.css";
2
2
  import { r as $, c as ce, g as Jt, s as Xt, j as E } from "./react-to-web-component-CXwKHjZr.js";
3
- import { _ as Wt, a as Z } from "./setPrototypeOf-BVKdEITT.js";
3
+ import { a as Wt, _ as Z } from "./setPrototypeOf-CP0c5ut2.js";
4
4
  function Gt(i, e) {
5
5
  for (var t = 0; t < e.length; t++) {
6
6
  const n = e[t];
@@ -1,6 +1,6 @@
1
1
  import { e as pt, r as f, j as _, d as ue, a as J, R as Pi, s as Ei } from "./react-to-web-component-CXwKHjZr.js";
2
2
  import { c as q } from "./clsx-DB4S2d7J.js";
3
- import { _ as Ri, a as _i } from "./setPrototypeOf-BVKdEITT.js";
3
+ import { a as Ri, _ as _i } from "./setPrototypeOf-CP0c5ut2.js";
4
4
  const we = {
5
5
  primary: "#93D500",
6
6
  primary100: "#F0F6E1",
@@ -5345,69 +5345,73 @@ const Cf = (e) => /* @__PURE__ */ _.jsx(lf, { children: /* @__PURE__ */ _.jsx(wf
5345
5345
  customElements.define("base-breadcrumbs", e);
5346
5346
  }
5347
5347
  export {
5348
- Nf as $,
5349
- sl as A,
5348
+ Wf as $,
5349
+ It as A,
5350
5350
  ac as B,
5351
- tl as C,
5351
+ Po as C,
5352
5352
  Tf as D,
5353
- De as E,
5354
- ko as F,
5355
- yl as G,
5356
- Zt as H,
5357
- Of as I,
5358
- Tl as J,
5359
- _l as K,
5360
- lu as L,
5361
- kf as M,
5362
- Df as N,
5363
- Ff as O,
5364
- Af as P,
5365
- Oc as Q,
5366
- Mf as R,
5367
- If as S,
5353
+ $f as E,
5354
+ ve as F,
5355
+ sl as G,
5356
+ tl as H,
5357
+ De as I,
5358
+ ko as J,
5359
+ yl as K,
5360
+ Zt as L,
5361
+ Of as M,
5362
+ Tl as N,
5363
+ _l as O,
5364
+ kf as P,
5365
+ Df as Q,
5366
+ Ff as R,
5367
+ Af as S,
5368
5368
  Ft as T,
5369
- Er as U,
5370
- Uf as V,
5371
- Mc as W,
5372
- Wf as X,
5373
- $c as Y,
5374
- Bf as Z,
5375
- S as _,
5369
+ Oc as U,
5370
+ Mf as V,
5371
+ If as W,
5372
+ Er as X,
5373
+ Uf as Y,
5374
+ Mc as Z,
5375
+ V as _,
5376
5376
  wo as a,
5377
- Lf as a0,
5378
- jf as a1,
5379
- Rr as a2,
5380
- Uo as a3,
5381
- zf as a4,
5382
- Kf as a5,
5383
- mf as a6,
5384
- ff as a7,
5385
- lf as a8,
5386
- Zr as a9,
5387
- wf as aa,
5388
- V as b,
5377
+ $c as a0,
5378
+ Bf as a1,
5379
+ Nf as a2,
5380
+ Lf as a3,
5381
+ jf as a4,
5382
+ Rr as a5,
5383
+ Uo as a6,
5384
+ zf as a7,
5385
+ Pr as a8,
5386
+ Kf as a9,
5387
+ mf as aa,
5388
+ ff as ab,
5389
+ lf as ac,
5390
+ Zr as ad,
5391
+ wf as ae,
5392
+ Ut as b,
5389
5393
  we as c,
5390
- Oi as d,
5391
- uu as e,
5392
- zu as f,
5393
- An as g,
5394
- $o as h,
5395
- Ze as i,
5396
- et as j,
5397
- Sl as k,
5398
- tr as l,
5399
- rt as m,
5400
- ye as n,
5394
+ S as d,
5395
+ Co as e,
5396
+ Oi as f,
5397
+ uu as g,
5398
+ zu as h,
5399
+ An as i,
5400
+ $o as j,
5401
+ Oo as k,
5402
+ Ze as l,
5403
+ et as m,
5404
+ Sl as n,
5401
5405
  To as o,
5402
- nl as p,
5403
- me as q,
5406
+ tr as p,
5407
+ rt as q,
5404
5408
  du as r,
5405
- Oo as s,
5406
- Au as t,
5409
+ Na as s,
5410
+ ye as t,
5407
5411
  yt as u,
5408
- mo as v,
5409
- It as w,
5410
- Co as x,
5411
- $f as y,
5412
- ve as z
5412
+ lu as v,
5413
+ nl as w,
5414
+ me as x,
5415
+ Au as y,
5416
+ mo as z
5413
5417
  };