@ukpc-lib/react 0.16.14-sandbox.saas-11181.patch-2 → 0.16.15-sandbox.saas-9356.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.
Files changed (24) hide show
  1. package/dist/components/index.cjs +1 -1
  2. package/dist/components/index.js +2 -2
  3. package/dist/{index.esm2017-JagIQVVx.js → index.esm2017-DZkOZ7Ks.js} +18 -2
  4. package/dist/{index.esm2017-jgcjblYP.cjs → index.esm2017-kN5fDF5_.cjs} +2 -2
  5. package/dist/share/index.cjs +1 -1
  6. package/dist/share/index.js +2 -2
  7. package/dist/translations/config.d.ts +6 -0
  8. package/package.json +1 -1
  9. package/web-components-bundle/{SaasThemeProvider-A_eMJWqw.js → SaasThemeProvider-DUpoV8xb.js} +1 -1
  10. package/web-components-bundle/access-denied/index.js +2 -2
  11. package/web-components-bundle/base-breadcrumbs/index.js +3 -3
  12. package/web-components-bundle/favorite-menu/index.js +7 -7
  13. package/web-components-bundle/global-menu/index.js +6 -6
  14. package/web-components-bundle/global-topbar/index.js +7 -7
  15. package/web-components-bundle/has-permission/index.js +2 -2
  16. package/web-components-bundle/{index-760z9lEs.js → index-BBl8HzU3.js} +565 -565
  17. package/web-components-bundle/{index-CiYHK3Rq.js → index-D118mGIQ.js} +60 -44
  18. package/web-components-bundle/{index-BwEhsh9S.js → index-N6zjI_u_.js} +2 -2
  19. package/web-components-bundle/{index-C6qk-7Ck.js → index-Y9gHBnwV.js} +6 -6
  20. package/web-components-bundle/page-not-found/index.js +3 -3
  21. package/web-components-bundle/{react-to-web-component-BOygDorD.js → react-to-web-component-w5r1Fs9q.js} +1527 -1535
  22. package/web-components-bundle/{react-toastify.esm-DnABvuky.js → react-toastify.esm-H_Xdunfj.js} +1 -1
  23. package/web-components-bundle/toast-config/index.js +2 -2
  24. package/web-components-bundle/toast-config-notification/index.js +2 -2
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),C=require("react"),g=require("../index.esm2017-jgcjblYP.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 j=$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:`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),C=require("react"),g=require("../index.esm2017-kN5fDF5_.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 j=$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;
@@ -1,8 +1,8 @@
1
1
  import di, { jsxs as O, Fragment as be, jsx as f } from "react/jsx-runtime";
2
2
  import * as $ from "react";
3
3
  import Ee, { createElement as sn, PureComponent as fi, useState as D, useEffect as J, useRef as ye, useContext as We, useCallback as dt, forwardRef as hi } from "react";
4
- import { c as Ie, a as ht, _ as mi, b as Jn, d as W, C as nt, t as Le, I as Zr, N as pi, p as gi, L as Qn, u as yi, i as bi, e as Xr, S as Jr, f as vi, g as xi, Q as Qr, h as Tt, s as er, j as Pn, P, k as we, l as Si, o as wi, m as Fe, n as _i, q as Ot, r as tr, v as Ei, w as nr, D as Ci, x as eo, y as to, z as Ti, A as Ii, B as Mi } from "../index.esm2017-JagIQVVx.js";
5
- import { J as au, G as su, M as cu, U as lu, E as uu, F as du, H as fu, K as hu } from "../index.esm2017-JagIQVVx.js";
4
+ import { c as Ie, a as ht, _ as mi, b as Jn, d as W, C as nt, t as Le, I as Zr, N as pi, p as gi, L as Qn, u as yi, i as bi, e as Xr, S as Jr, f as vi, g as xi, Q as Qr, h as Tt, s as er, j as Pn, P, k as we, l as Si, o as wi, m as Fe, n as _i, q as Ot, r as tr, v as Ei, w as nr, D as Ci, x as eo, y as to, z as Ti, A as Ii, B as Mi } from "../index.esm2017-DZkOZ7Ks.js";
5
+ import { J as au, G as su, M as cu, U as lu, E as uu, F as du, H as fu, K as hu } from "../index.esm2017-DZkOZ7Ks.js";
6
6
  import { Box as no, CircularProgress as ro, Typography as Me, Stack as Se, Dialog as ki, DialogTitle as Oi, DialogContent as Ai, DialogActions as $i, Button as gn, ClickAwayListener as Ni, TextField as oo, 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 io } from "react-router-dom";
@@ -3626,6 +3626,7 @@ var wL = function() {
3626
3626
  VT.type = "backend";
3627
3627
  var bd = /* @__PURE__ */ ((t) => (t.en = "en", t.de = "de", t))(bd || {});
3628
3628
  Cr.use(PT).use(LT).use(XM).init({
3629
+ // 💥 CHANGED: Set to true to force immediate API load in the Shell on startup.
3629
3630
  initImmediate: !0,
3630
3631
  supportedLngs: [
3631
3632
  "en",
@@ -3637,6 +3638,7 @@ Cr.use(PT).use(LT).use(XM).init({
3637
3638
  load: "languageOnly",
3638
3639
  ns: ["translation"],
3639
3640
  fallbackNS: "translation",
3641
+ // Use a reliable common namespace as fallback
3640
3642
  partialBundledLanguages: !0,
3641
3643
  resources: {},
3642
3644
  interpolation: { escapeValue: !1 },
@@ -3648,14 +3650,28 @@ Cr.use(PT).use(LT).use(XM).init({
3648
3650
  backend: {
3649
3651
  backends: [VT],
3650
3652
  backendOptions: [
3653
+ // Option for ParentCacheBackend
3654
+ {},
3655
+ // Option for HttpBackend
3651
3656
  {
3652
3657
  loadPath: (t) => {
3653
3658
  var i, o, a;
3654
3659
  const n = (Array.isArray(t) ? t[0] : t || "en").split("-")[0];
3655
3660
  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}`;
3656
3661
  },
3657
- crossDomain: !0,
3658
- cacheHitMode: "refresh"
3662
+ request: async (t, e, n, r) => {
3663
+ try {
3664
+ const i = await fetch(e, { method: "GET" }), o = await i.json(), a = e.match(/\/translations\/([^/?]+)/), c = a ? a[1] : "en";
3665
+ window.translations = window.translations || {}, window.translations[c] = {
3666
+ translation: o
3667
+ }, r(null, {
3668
+ status: i.status,
3669
+ data: o
3670
+ });
3671
+ } catch (i) {
3672
+ r(i, { status: 500, data: {} });
3673
+ }
3674
+ }
3659
3675
  }
3660
3676
  ]
3661
3677
  }