@plumile/backoffice-react 0.1.86 → 0.1.88

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 (35) hide show
  1. package/README.md +6 -6
  2. package/lib/esm/AcceptInvitationScreen-dnOvRx4Z.js.map +1 -1
  3. package/lib/esm/BackofficeAcceptInvitationPage-CGht2ka0.js.map +1 -1
  4. package/lib/esm/BackofficeDashboardPage-h1OWb_rV.js.map +1 -1
  5. package/lib/esm/BackofficeEntityActionFormDialog-V4QXnvpy.js.map +1 -1
  6. package/lib/esm/BackofficeEntityDetailLayoutPage-DXjRqvcZ.js.map +1 -1
  7. package/lib/esm/BackofficeEntityDetailPage-CIyGKwVP.js.map +1 -1
  8. package/lib/esm/BackofficeEntityListPage-DmZozSNk.js.map +1 -1
  9. package/lib/esm/BackofficeLayoutPage-DtFDn_nU.js.map +1 -1
  10. package/lib/esm/BackofficeLoginPage-BvOPqbKO.js.map +1 -1
  11. package/lib/esm/BackofficePasswordResetCompletePage-ZLhghfhC.js.map +1 -1
  12. package/lib/esm/BackofficePasswordResetRequestPage-BLNHQD79.js.map +1 -1
  13. package/lib/esm/BackofficeRightPageLayout-DZQvIHnj.js.map +1 -1
  14. package/lib/esm/BackofficeVerifyEmailPage-BSTtLXdx.js.map +1 -1
  15. package/lib/esm/EntityFilterValue-B5ZGHO_u.js.map +1 -1
  16. package/lib/esm/EntityIdPickerDialog-DbTnDU4v.js.map +1 -1
  17. package/lib/esm/LazyBackofficeEntityActionFormDialog-BE3wVfU6.js.map +1 -1
  18. package/lib/esm/PasswordResetCompleteScreen-B0P_tZg2.js.map +1 -1
  19. package/lib/esm/VerifyEmailScreen--9lxOGlW.js.map +1 -1
  20. package/lib/esm/backoffice-react.js +33 -35
  21. package/lib/esm/backoffice-react.js.map +1 -1
  22. package/lib/esm/buildBreadcrumbs-CqF9Nh6x.js.map +1 -1
  23. package/lib/esm/environment-BXoBq_6e.js.map +1 -1
  24. package/lib/esm/mutationResult-CcQMY13J.js.map +1 -1
  25. package/lib/esm/pageResolution-hAQA5C6S.js.map +1 -1
  26. package/lib/esm/sidebarUtils-CuwJ_3mD.js.map +1 -1
  27. package/lib/esm/synchronizeAuthStatusQuery-By_lNCnP.js.map +1 -1
  28. package/lib/esm/useAuth-OVPPa9bO.js.map +1 -1
  29. package/lib/esm/useBackofficeAuth-BvEoEqnB.js.map +1 -1
  30. package/lib/esm/useBackofficeListUrlState-D4fx5O7u.js.map +1 -1
  31. package/lib/types/components/backoffice/scaffolds/BackofficeListFilterContext.d.ts.map +1 -1
  32. package/lib/types/hooks/useConditionalSubscription.d.ts.map +1 -1
  33. package/lib/types/pages/BackofficeEntityDetailPage.d.ts.map +1 -1
  34. package/lib/types/router/createBackofficeRoutes.d.ts.map +1 -1
  35. package/package.json +16 -16
@@ -1635,33 +1635,31 @@ var Nt = "hwnq700 txvbqb9jg txvbqbcp txvbqbdoy txvbqbtxp txvbqbc6p txvbqblag txv
1635
1635
  }, Jt = "txvbqb9jg txvbqbcp txvbqbany txvbqbajy", Yt = ({ children: e, className: t }) => /* @__PURE__ */ k("span", {
1636
1636
  className: Fe(Jt, t),
1637
1637
  children: e
1638
- });
1639
- //#endregion
1640
- //#region src/hooks/useConditionalSubscription.ts
1641
- function Xt() {
1638
+ }), Xt = [];
1639
+ function Zt() {
1642
1640
  return Reflect.get(O, "default") ?? O;
1643
1641
  }
1644
- var Zt = Xt();
1645
- function Qt(e, t) {
1646
- let n = Zt.useRelayEnvironment(), [r, i] = E(null), { enabled: a = !0, deps: o = [], getVariables: s } = t, c = T(() => {
1642
+ var Qt = Zt();
1643
+ function $t(e, t) {
1644
+ let n = Qt.useRelayEnvironment(), [r, i] = E(null), { enabled: a = !0, deps: o = Xt, getVariables: s } = t, c = C(() => {
1647
1645
  try {
1648
1646
  return s == null ? e.variables : s();
1649
1647
  } catch {
1650
1648
  return null;
1651
1649
  }
1652
- }, [e.variables, s]), l = T(() => {
1653
- if (c == null) return null;
1650
+ }, [e.variables, s]), l = T(() => c(), [c]), u = T(() => {
1651
+ if (l == null) return null;
1654
1652
  try {
1655
- return JSON.stringify(c);
1653
+ return JSON.stringify(l);
1656
1654
  } catch {
1657
1655
  return null;
1658
1656
  }
1659
- }, [c]), u = !!a, d = c, f = u && d != null, p = ye(null);
1657
+ }, [l]), d = !!a, f = d && l != null, p = ye(null);
1660
1658
  return w(() => {
1661
- let t = null;
1662
- return u && d != null && (i(null), t = Zt.requestSubscription(n, {
1659
+ let t = null, r = c();
1660
+ return d && r != null && (i(null), t = Qt.requestSubscription(n, {
1663
1661
  subscription: e.subscription,
1664
- variables: d,
1662
+ variables: r,
1665
1663
  cacheConfig: e.cacheConfig,
1666
1664
  configs: e.configs,
1667
1665
  onCompleted: e.onCompleted,
@@ -1680,9 +1678,9 @@ function Qt(e, t) {
1680
1678
  e,
1681
1679
  o,
1682
1680
  n,
1683
- u,
1684
- l,
1685
- d
1681
+ d,
1682
+ c,
1683
+ u
1686
1684
  ]), {
1687
1685
  active: f,
1688
1686
  error: r
@@ -1690,13 +1688,13 @@ function Qt(e, t) {
1690
1688
  }
1691
1689
  //#endregion
1692
1690
  //#region src/hooks/useCopyToClipboard.ts
1693
- var $t = "copy-to-clipboard-fallback";
1694
- function en(e) {
1691
+ var en = "copy-to-clipboard-fallback";
1692
+ function tn(e) {
1695
1693
  if (typeof document > "u") return;
1696
- let t = document.getElementById($t);
1697
- t ?? (t = document.createElement("textarea"), t.id = $t, t.setAttribute("readonly", ""), t.style.position = "absolute", t.style.left = "-9999px", t.style.top = "0", t.style.opacity = "0", document.body.appendChild(t)), t.value = e, t.select(), document.execCommand("copy");
1694
+ let t = document.getElementById(en);
1695
+ t ?? (t = document.createElement("textarea"), t.id = en, t.setAttribute("readonly", ""), t.style.position = "absolute", t.style.left = "-9999px", t.style.top = "0", t.style.opacity = "0", document.body.appendChild(t)), t.value = e, t.select(), document.execCommand("copy");
1698
1696
  }
1699
- function tn(e = 2e3) {
1697
+ function nn(e = 2e3) {
1700
1698
  let [t, n] = E(null), r = ye(null);
1701
1699
  return w(() => () => {
1702
1700
  r.current != null && window.clearTimeout(r.current);
@@ -1709,7 +1707,7 @@ function tn(e = 2e3) {
1709
1707
  } catch {
1710
1708
  a = !1;
1711
1709
  }
1712
- return a ||= (en(t), !0), i != null && (n(i), r.current != null && window.clearTimeout(r.current), r.current = window.setTimeout(() => {
1710
+ return a ||= (tn(t), !0), i != null && (n(i), r.current != null && window.clearTimeout(r.current), r.current = window.setTimeout(() => {
1713
1711
  n(null), r.current = null;
1714
1712
  }, e)), a;
1715
1713
  }, [e])
@@ -1717,7 +1715,7 @@ function tn(e = 2e3) {
1717
1715
  }
1718
1716
  //#endregion
1719
1717
  //#region src/hooks/useRefetchNeededReload.ts
1720
- function nn(e) {
1718
+ function rn(e) {
1721
1719
  let [t, n] = E(null);
1722
1720
  return w(() => {
1723
1721
  n(null);
@@ -1736,7 +1734,7 @@ function nn(e) {
1736
1734
  }
1737
1735
  //#endregion
1738
1736
  //#region src/i18n/useReviewStatusLabel.ts
1739
- function rn() {
1737
+ function an() {
1740
1738
  let { t: e } = l();
1741
1739
  function t(t) {
1742
1740
  if (t == null) return e("review.status.unknown");
@@ -1751,7 +1749,7 @@ function rn() {
1751
1749
  }
1752
1750
  //#endregion
1753
1751
  //#region src/modules/base64.ts
1754
- function an(e) {
1752
+ function on(e) {
1755
1753
  if (typeof e != "string") throw TypeError("encodeUtf8ToBase64 expects a string input.");
1756
1754
  if (typeof globalThis.btoa == "function") {
1757
1755
  let t = encodeURIComponent(e).replace(/%([0-9A-F]{2})/g, (e, t) => String.fromCharCode(Number.parseInt(t, 16)));
@@ -1759,7 +1757,7 @@ function an(e) {
1759
1757
  }
1760
1758
  throw Error("No base64 encoder is available in this environment.");
1761
1759
  }
1762
- function on(e) {
1760
+ function sn(e) {
1763
1761
  if (typeof e != "string") throw TypeError("decodeBase64ToUtf8 expects a string input.");
1764
1762
  if (typeof globalThis.atob == "function") {
1765
1763
  let t = globalThis.atob(e), n = Array.from(t, (e) => `%${e.charCodeAt(0).toString(16).padStart(2, "0")}`).join("");
@@ -1769,33 +1767,33 @@ function on(e) {
1769
1767
  }
1770
1768
  //#endregion
1771
1769
  //#region src/modules/formatFileSize.ts
1772
- var sn = [
1770
+ var cn = [
1773
1771
  "B",
1774
1772
  "KB",
1775
1773
  "MB",
1776
1774
  "GB",
1777
1775
  "TB"
1778
- ], cn = 1024, ln = (e, t) => {
1776
+ ], ln = 1024, un = (e, t) => {
1779
1777
  if (t === "B") return Math.round(e).toString();
1780
1778
  let n = 1;
1781
1779
  return e >= 10 && (n = 0), e.toFixed(n);
1782
1780
  };
1783
- function un(e) {
1781
+ function dn(e) {
1784
1782
  let t = e;
1785
1783
  Number.isFinite(e) || (t = 0);
1786
1784
  let n = t < 0, r = Math.abs(t), i = 0;
1787
- for (; r >= cn && i < sn.length - 1;) r /= cn, i += 1;
1788
- let a = sn[i] ?? "B", o = r;
1785
+ for (; r >= ln && i < cn.length - 1;) r /= ln, i += 1;
1786
+ let a = cn[i] ?? "B", o = r;
1789
1787
  return n && (o = -r), {
1790
1788
  value: o,
1791
1789
  unit: a,
1792
- displayValue: ln(o, a)
1790
+ displayValue: un(o, a)
1793
1791
  };
1794
1792
  }
1795
1793
  //#endregion
1796
1794
  //#region src/relay/createInlineReader.ts
1797
- var { readInlineData: dn } = O, fn = (e) => (t) => dn(e, t), pn = (e) => e;
1795
+ var { readInlineData: fn } = O, pn = (e) => (t) => fn(e, t), mn = (e) => e;
1798
1796
  //#endregion
1799
- export { _ as AcceptInvitationScreen, ae as BackofficeDetailBadgeRow, oe as BackofficeDetailField, ce as BackofficeDetailPayload, se as BackofficeDetailSection, te as BackofficeErrorBoundary, It as BackofficeFilterAction, Yt as BackofficeInlineFilterRow, Ht as BackofficeOverviewLayout, Ot as BackofficeProvider, Wt as BackofficeRelatedCountLink, ge as BackofficeRightPageLayout, qt as BackofficeTabbedDetailShell, S as EntityFilterValue, ne as EntityFilterValueText, re as EntityIdFilterField, ie as EntityIdPickerDialog, h as LoginFlow, v as PasswordResetCompleteScreen, y as PasswordResetRequestScreen, Ye as RelayProvider, ee as VerifyEmailScreen, qe as backofficeReactI18nResources, f as base64UrlToBuffer, p as bufferToBase64Url, he as buildDataTableColumns, r as configureRelayEnvironment, kt as createBackofficeLazyValue, F as createI18nInstance, fn as createInlineDataReader, m as createUseAuth, on as decodeBase64ToUtf8, an as encodeUtf8ToBase64, un as formatFileSize, t as getEnvironment, n as getNetwork, pn as identityView, d as mapWebAuthnRegistrationError, u as parseSignCount, pe as requireField, de as requireLinkedRecordId, e as resetRelayStore, fe as resolveAgentStartOutcome, ue as resolveMutationOutcome, me as resolveVisibleDetailPages, g as synchronizeAuthStatusQuery, a as useBackofficeConfig, le as useBackofficeListUrlState, Qt as useConditionalSubscription, tn as useCopyToClipboard, nn as useRefetchNeededReload, rn as useReviewStatusLabel };
1797
+ export { _ as AcceptInvitationScreen, ae as BackofficeDetailBadgeRow, oe as BackofficeDetailField, ce as BackofficeDetailPayload, se as BackofficeDetailSection, te as BackofficeErrorBoundary, It as BackofficeFilterAction, Yt as BackofficeInlineFilterRow, Ht as BackofficeOverviewLayout, Ot as BackofficeProvider, Wt as BackofficeRelatedCountLink, ge as BackofficeRightPageLayout, qt as BackofficeTabbedDetailShell, S as EntityFilterValue, ne as EntityFilterValueText, re as EntityIdFilterField, ie as EntityIdPickerDialog, h as LoginFlow, v as PasswordResetCompleteScreen, y as PasswordResetRequestScreen, Ye as RelayProvider, ee as VerifyEmailScreen, qe as backofficeReactI18nResources, f as base64UrlToBuffer, p as bufferToBase64Url, he as buildDataTableColumns, r as configureRelayEnvironment, kt as createBackofficeLazyValue, F as createI18nInstance, pn as createInlineDataReader, m as createUseAuth, sn as decodeBase64ToUtf8, on as encodeUtf8ToBase64, dn as formatFileSize, t as getEnvironment, n as getNetwork, mn as identityView, d as mapWebAuthnRegistrationError, u as parseSignCount, pe as requireField, de as requireLinkedRecordId, e as resetRelayStore, fe as resolveAgentStartOutcome, ue as resolveMutationOutcome, me as resolveVisibleDetailPages, g as synchronizeAuthStatusQuery, a as useBackofficeConfig, le as useBackofficeListUrlState, $t as useConditionalSubscription, nn as useCopyToClipboard, rn as useRefetchNeededReload, an as useReviewStatusLabel };
1800
1798
 
1801
1799
  //# sourceMappingURL=backoffice-react.js.map