@ukpc-lib/react 0.16.3-sandbox.saas-9356-and-saas-9249.patch-8 → 0.16.3-sandbox.saas-9356-and-saas-9249.patch-9
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-YfeFmA6k.js → index.esm2017-BK8RVypM.js} +4 -3
- package/dist/{index.esm2017-Bmj_1y8w.cjs → index.esm2017-BoRaaxH3.cjs} +1 -1
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
- package/web-components-bundle/access-denied/index.js +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-Giq9sshx.js → index-AkYRIjMa.js} +4 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),C=require("react"),m=require("../index.esm2017-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),C=require("react"),m=require("../index.esm2017-BoRaaxH3.cjs"),$=require("@mui/material");require("axios");const gn=require("react-router-dom");require("@r2wc/react-to-web-component");require("react-query");require("react-dom");const se=require("moment");function $o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const A=$o(C),Ro=e=>{var r,o;const{tabs:t}=e,n=i=>{e.setCurrentTab(i.target.id)};return console.log("🚀 ~ brandColors:",e.currentTab),l.jsxs(l.Fragment,{children:[l.jsx("style",{children:`
|
|
2
2
|
.tab-title {
|
|
3
3
|
min-width: 90px;
|
|
4
4
|
padding: 5px 16px;
|
package/dist/components/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import fi, { jsxs as M, Fragment as ve, jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import * as $ from "react";
|
|
3
3
|
import Ce, { createElement as cn, PureComponent as hi, useState as D, useEffect as J, useRef as ye, useContext as We, useCallback as dt, forwardRef as mi } from "react";
|
|
4
|
-
import { c as Me, a as ht, _ as pi, b as Jn, d as W, C as nt, t as we, I as Zr, N as gi, p as yi, L as Qn, u as vi, e as Xr, S as Jr, f as bi, g as xi, Q as Qr, h as Tt, s as er, i as eo, j as It, P, k as _e, l as Si, o as wi, m as Fe, n as _i, q as At, r as tr, v as Ei, w as nr, D as Ci, x as to, y as no, z as Ti, A as Ii, B as Mi } from "../index.esm2017-
|
|
5
|
-
import { H as cu, G as lu, K as uu, E as du, F as fu, J as hu } from "../index.esm2017-
|
|
4
|
+
import { c as Me, a as ht, _ as pi, b as Jn, d as W, C as nt, t as we, I as Zr, N as gi, p as yi, L as Qn, u as vi, e as Xr, S as Jr, f as bi, g as xi, Q as Qr, h as Tt, s as er, i as eo, j as It, P, k as _e, l as Si, o as wi, m as Fe, n as _i, q as At, r as tr, v as Ei, w as nr, D as Ci, x as to, y as no, z as Ti, A as Ii, B as Mi } from "../index.esm2017-BK8RVypM.js";
|
|
5
|
+
import { H as cu, G as lu, K as uu, E as du, F as fu, J as hu } from "../index.esm2017-BK8RVypM.js";
|
|
6
6
|
import { Box as ro, CircularProgress as oo, Typography as ke, Stack as Se, Dialog as ki, DialogTitle as Oi, DialogContent as Ai, DialogActions as $i, Button as yn, ClickAwayListener as Ni, TextField as io, IconButton as Pi, Fade as Ri, Paper as zi, Checkbox as Li, Breadcrumbs as Di } from "@mui/material";
|
|
7
7
|
import "axios";
|
|
8
8
|
import { useParams as Fi, Link as ao } from "react-router-dom";
|
|
@@ -3604,7 +3604,7 @@ class mL {
|
|
|
3604
3604
|
read(e, n, r) {
|
|
3605
3605
|
var o, a;
|
|
3606
3606
|
let i;
|
|
3607
|
-
console.log("🚀 ~ ParentCacheBackend ~ read ~ resources:", i), window != null && window.parent && (i = (a = (o = window == null ? void 0 : window.parent.translations) == null ? void 0 : o[e]) == null ? void 0 : a[n], console.log("🚀 ~ ParentCacheBackend ~ add window", i)), i ? (console.log("🚀 ~ ParentCacheBackend ~ read ~ resources:", i), r(null, i)) : (r(new Error("No local or parent translation found"), null), console.log("🚀 ~ ParentCacheBackend ~ read ~ Error:"
|
|
3607
|
+
console.log("🚀 ~ ParentCacheBackend ~ read ~ resources:", i), window != null && window.parent && (i = (a = (o = window == null ? void 0 : window.parent.translations) == null ? void 0 : o[e]) == null ? void 0 : a[n], console.log("🚀 ~ ParentCacheBackend ~ add window", i)), i ? (console.log("🚀 ~ ParentCacheBackend ~ read ~ resources:", i), r(null, i)) : (r(new Error("No local or parent translation found"), null), console.log("🚀 ~ ParentCacheBackend ~ read ~ Error:"));
|
|
3608
3608
|
}
|
|
3609
3609
|
}
|
|
3610
3610
|
Qr.use(wT).use(kT).use(HM).init({
|
|
@@ -3633,6 +3633,9 @@ Qr.use(wT).use(kT).use(HM).init({
|
|
|
3633
3633
|
backend: {
|
|
3634
3634
|
backends: [mL, AT],
|
|
3635
3635
|
backendOptions: [
|
|
3636
|
+
// Option for ParentCacheBackend
|
|
3637
|
+
{},
|
|
3638
|
+
// Option for HttpBackend
|
|
3636
3639
|
{
|
|
3637
3640
|
// ✅ FIX 1: Revert loadPath to exclude {{ns}}.json
|
|
3638
3641
|
// The API returns ALL namespaces for a given language at this single endpoint.
|
|
@@ -3641,8 +3644,6 @@ Qr.use(wT).use(kT).use(HM).init({
|
|
|
3641
3644
|
const n = (Array.isArray(t) ? t[0] : t || "en").split("-")[0];
|
|
3642
3645
|
return `${((i = window == null ? void 0 : window.env) == null ? void 0 : i.TRANSLATION_URL) ?? ((o = window == null ? void 0 : window.env) == null ? void 0 : o.VITE_BASE_URL) ?? ((a = window == null ? void 0 : window.env) == null ? void 0 : a.REACT_APP_BASE_URL) ?? `${location.protocol}//${location.host}`}/translations/${n}`;
|
|
3643
3646
|
},
|
|
3644
|
-
crossDomain: !0,
|
|
3645
|
-
cacheHitMode: "refresh",
|
|
3646
3647
|
request: async (t, e) => {
|
|
3647
3648
|
try {
|
|
3648
3649
|
console.log("🚀 ~ LoadTranslation URL:", t);
|