@burdenoff/fe-libs 2026.530.1 → 2026.530.2
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/chrome/AutoBreadcrumbs.d.ts.map +1 -1
- package/dist/chrome/AutoBreadcrumbs.js +10 -6
- package/dist/chrome/sideNavigation/NavItemRenderer.d.ts.map +1 -1
- package/dist/chrome/sideNavigation/NavItemRenderer.js +86 -70
- package/dist/shared/providers/AppShellProvider.d.ts +4 -4
- package/dist/shared/providers/AppShellProvider.d.ts.map +1 -1
- package/dist/shared/providers/AppShellProvider.js +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AutoBreadcrumbs.d.ts","sourceRoot":"","sources":["../../src/chrome/AutoBreadcrumbs.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;
|
|
1
|
+
{"version":3,"file":"AutoBreadcrumbs.d.ts","sourceRoot":"","sources":["../../src/chrome/AutoBreadcrumbs.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAYH,wBAAgB,sBAAsB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAE9D;AAED,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,MAAM,QAElD;AAiBD,wBAAgB,eAAe,mDAgI9B"}
|
|
@@ -57,9 +57,11 @@ function m() {
|
|
|
57
57
|
children: /* @__PURE__ */ s("ol", {
|
|
58
58
|
className: "flex min-w-0 flex-wrap items-center gap-0.5",
|
|
59
59
|
children: [
|
|
60
|
-
/* @__PURE__ */ o("li", { children: /* @__PURE__ */ s("
|
|
61
|
-
|
|
62
|
-
onClick: () =>
|
|
60
|
+
/* @__PURE__ */ o("li", { children: /* @__PURE__ */ s("a", {
|
|
61
|
+
href: "/",
|
|
62
|
+
onClick: (e) => {
|
|
63
|
+
e.metaKey || e.ctrlKey || e.shiftKey || e.button !== 0 || (e.preventDefault(), p("/"));
|
|
64
|
+
},
|
|
63
65
|
className: "inline-flex items-center gap-1 rounded-md p-1.5 text-text-secondary transition-colors duration-150 hover:bg-action-ghost-bg-hover hover:text-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",
|
|
64
66
|
"aria-label": v,
|
|
65
67
|
children: [/* @__PURE__ */ o(a, { className: "size-3.5" }), /* @__PURE__ */ o("span", {
|
|
@@ -81,9 +83,11 @@ function m() {
|
|
|
81
83
|
className: "inline-flex max-w-[220px] items-center truncate rounded-md px-1.5 py-0.5 font-semibold text-text-primary sm:max-w-[320px]",
|
|
82
84
|
"aria-current": "page",
|
|
83
85
|
children: e.label
|
|
84
|
-
}) : /* @__PURE__ */ o("
|
|
85
|
-
|
|
86
|
-
onClick: () =>
|
|
86
|
+
}) : /* @__PURE__ */ o("a", {
|
|
87
|
+
href: e.path,
|
|
88
|
+
onClick: (t) => {
|
|
89
|
+
t.metaKey || t.ctrlKey || t.shiftKey || t.button !== 0 || (t.preventDefault(), p(e.path));
|
|
90
|
+
},
|
|
87
91
|
className: "inline-flex max-w-[140px] items-center truncate rounded-md px-1.5 py-0.5 text-text-secondary transition-colors duration-150 hover:bg-action-ghost-bg-hover hover:text-text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-border-strong sm:max-w-[200px]",
|
|
88
92
|
children: e.label
|
|
89
93
|
}), !e.isLast && /* @__PURE__ */ o("span", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavItemRenderer.d.ts","sourceRoot":"","sources":["../../../src/chrome/sideNavigation/NavItemRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAiC,MAAM,OAAO,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGvC,UAAU,oBAAoB;IAC5B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;CACpB;
|
|
1
|
+
{"version":3,"file":"NavItemRenderer.d.ts","sourceRoot":"","sources":["../../../src/chrome/sideNavigation/NavItemRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAiC,MAAM,OAAO,CAAC;AAC/D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAGvC,UAAU,oBAAoB;IAC5B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,SAAS,EAAE,OAAO,CAAC;CACpB;AAWD,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAwNpD,CAAC"}
|
|
@@ -1,85 +1,101 @@
|
|
|
1
1
|
import { isItemDirectlyActive as e, isItemOrChildActive as t } from "./helpers.js";
|
|
2
|
-
import {
|
|
2
|
+
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
3
|
//#region src/chrome/sideNavigation/NavItemRenderer.tsx
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
function a(e) {
|
|
5
|
+
return e.metaKey || e.ctrlKey || e.shiftKey || e.button !== 0;
|
|
6
|
+
}
|
|
7
|
+
var o = ({ item: s, depth: c, maxDepth: l, currentPath: u, expandedItems: d, toggleExpand: f, onItemClick: p, onToggleCollapse: m, collapsed: h }) => {
|
|
8
|
+
let g = s.children && s.children.length > 0 && c < l, _ = d.has(s.id), v = t(s, u), y = e(s, u), b = c === 0 ? "w-icon-md h-icon-md" : "w-4 h-4", x = c === 0 ? "py-2" : "py-1.5", S = g ? h && c === 0 ? s.homePath || s.children?.[0]?.path || s.path : s.homePath || s.path : s.path, C = `
|
|
9
|
+
w-full flex items-center gap-icon-gap ${x} rounded-button
|
|
10
|
+
transition-colors duration-200 ease-out
|
|
11
|
+
active:scale-[0.98]
|
|
12
|
+
${h && c === 0 ? "md:px-2 md:justify-center" : "px-card-padding"}
|
|
13
|
+
${y && !g || y && g ? "bg-action-primary-bg text-action-primary-text shadow-sm" : v && !_ && !g ? "bg-action-ghost-bg-hover text-text-primary" : v && g ? "text-text-primary" : "text-text-secondary hover:bg-action-ghost-bg-hover hover:text-text-primary"}
|
|
14
|
+
`, w = (e) => {
|
|
15
|
+
let t = e.closest("nav"), n = t?.scrollTop;
|
|
16
|
+
return () => {
|
|
7
17
|
t && n !== void 0 && (t.scrollTop = n);
|
|
8
18
|
};
|
|
9
|
-
|
|
10
|
-
|
|
19
|
+
}, T = (e) => {
|
|
20
|
+
if (a(e)) return;
|
|
21
|
+
let t = w(e.currentTarget);
|
|
22
|
+
if (e.preventDefault(), h && c === 0 && g) {
|
|
23
|
+
p(s.homePath || s.children?.[0]?.path || s.path), requestAnimationFrame(t);
|
|
11
24
|
return;
|
|
12
25
|
}
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
26
|
+
g ? (f(s.id), requestAnimationFrame(t)) : (p(s.path), window.innerWidth < 768 && m && !h && m(), requestAnimationFrame(t));
|
|
27
|
+
}, E = (e) => {
|
|
28
|
+
e.button === 0 && !e.ctrlKey && !e.metaKey && !e.shiftKey && e.preventDefault();
|
|
29
|
+
}, D = /* @__PURE__ */ i(n, { children: [
|
|
30
|
+
s.icon && /* @__PURE__ */ r("div", {
|
|
31
|
+
className: `${b} flex-shrink-0 flex items-center justify-center [&>svg]:w-full [&>svg]:h-full [&>svg]:stroke-[1.75]`,
|
|
32
|
+
children: typeof s.icon == "string" ? /* @__PURE__ */ r("svg", {
|
|
33
|
+
className: "w-full h-full",
|
|
34
|
+
fill: "none",
|
|
35
|
+
stroke: "currentColor",
|
|
36
|
+
viewBox: "0 0 24 24",
|
|
37
|
+
children: /* @__PURE__ */ r("path", {
|
|
38
|
+
strokeLinecap: "round",
|
|
39
|
+
strokeLinejoin: "round",
|
|
40
|
+
strokeWidth: 2,
|
|
41
|
+
d: s.icon
|
|
42
|
+
})
|
|
43
|
+
}) : s.icon
|
|
44
|
+
}),
|
|
45
|
+
/* @__PURE__ */ r("span", {
|
|
46
|
+
className: `text-body-sm font-medium flex-1 text-left ${h && c === 0 ? "md:hidden" : ""}`,
|
|
47
|
+
children: s.label
|
|
48
|
+
}),
|
|
49
|
+
s.badge !== void 0 && s.badge > 0 && /* @__PURE__ */ r("span", {
|
|
50
|
+
className: `text-xs bg-status-error-bg text-status-error-text px-2 py-0.5 rounded-pill ${h && c === 0 ? "md:hidden" : ""}`,
|
|
51
|
+
children: s.badge
|
|
52
|
+
}),
|
|
53
|
+
g && !(h && c === 0) && /* @__PURE__ */ r("svg", {
|
|
54
|
+
className: `w-4 h-4 transition-transform ${_ ? "rotate-90" : ""}`,
|
|
55
|
+
fill: "none",
|
|
56
|
+
stroke: "currentColor",
|
|
57
|
+
viewBox: "0 0 24 24",
|
|
58
|
+
children: /* @__PURE__ */ r("path", {
|
|
59
|
+
strokeLinecap: "round",
|
|
60
|
+
strokeLinejoin: "round",
|
|
61
|
+
strokeWidth: 2,
|
|
62
|
+
d: "M9 5l7 7-7 7"
|
|
63
|
+
})
|
|
64
|
+
})
|
|
65
|
+
] });
|
|
66
|
+
return /* @__PURE__ */ i("li", { children: [/* @__PURE__ */ r("div", {
|
|
16
67
|
className: "relative",
|
|
17
|
-
children: /* @__PURE__ */ r("
|
|
68
|
+
children: S ? /* @__PURE__ */ r("a", {
|
|
69
|
+
href: S,
|
|
70
|
+
onClick: T,
|
|
71
|
+
onMouseDown: E,
|
|
72
|
+
className: C,
|
|
73
|
+
"aria-label": s.label,
|
|
74
|
+
"aria-expanded": g ? _ : void 0,
|
|
75
|
+
children: D
|
|
76
|
+
}) : /* @__PURE__ */ r("button", {
|
|
18
77
|
type: "button",
|
|
19
|
-
onClick:
|
|
20
|
-
onMouseDown:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
transition-colors duration-200 ease-out
|
|
26
|
-
active:scale-[0.98]
|
|
27
|
-
${p && o === 0 ? "md:px-2 md:justify-center" : "px-card-padding"}
|
|
28
|
-
${_ && !m || _ && m ? "bg-action-primary-bg text-action-primary-text shadow-sm" : g && !h && !m ? "bg-action-ghost-bg-hover text-text-primary" : g && m ? "text-text-primary" : "text-text-secondary hover:bg-action-ghost-bg-hover hover:text-text-primary"}
|
|
29
|
-
`,
|
|
30
|
-
"aria-label": a.label,
|
|
31
|
-
children: [
|
|
32
|
-
a.icon && /* @__PURE__ */ n("div", {
|
|
33
|
-
className: `${v} flex-shrink-0 flex items-center justify-center [&>svg]:w-full [&>svg]:h-full [&>svg]:stroke-[1.75]`,
|
|
34
|
-
children: typeof a.icon == "string" ? /* @__PURE__ */ n("svg", {
|
|
35
|
-
className: "w-full h-full",
|
|
36
|
-
fill: "none",
|
|
37
|
-
stroke: "currentColor",
|
|
38
|
-
viewBox: "0 0 24 24",
|
|
39
|
-
children: /* @__PURE__ */ n("path", {
|
|
40
|
-
strokeLinecap: "round",
|
|
41
|
-
strokeLinejoin: "round",
|
|
42
|
-
strokeWidth: 2,
|
|
43
|
-
d: a.icon
|
|
44
|
-
})
|
|
45
|
-
}) : a.icon
|
|
46
|
-
}),
|
|
47
|
-
/* @__PURE__ */ n("span", {
|
|
48
|
-
className: `text-body-sm font-medium flex-1 text-left ${p && o === 0 ? "md:hidden" : ""}`,
|
|
49
|
-
children: a.label
|
|
50
|
-
}),
|
|
51
|
-
a.badge !== void 0 && a.badge > 0 && /* @__PURE__ */ n("span", {
|
|
52
|
-
className: `text-xs bg-status-error-bg text-status-error-text px-2 py-0.5 rounded-pill ${p && o === 0 ? "md:hidden" : ""}`,
|
|
53
|
-
children: a.badge
|
|
54
|
-
}),
|
|
55
|
-
m && !(p && o === 0) && /* @__PURE__ */ n("svg", {
|
|
56
|
-
className: `w-4 h-4 transition-transform ${h ? "rotate-90" : ""}`,
|
|
57
|
-
fill: "none",
|
|
58
|
-
stroke: "currentColor",
|
|
59
|
-
viewBox: "0 0 24 24",
|
|
60
|
-
children: /* @__PURE__ */ n("path", {
|
|
61
|
-
strokeLinecap: "round",
|
|
62
|
-
strokeLinejoin: "round",
|
|
63
|
-
strokeWidth: 2,
|
|
64
|
-
d: "M9 5l7 7-7 7"
|
|
65
|
-
})
|
|
66
|
-
})
|
|
67
|
-
]
|
|
78
|
+
onClick: T,
|
|
79
|
+
onMouseDown: E,
|
|
80
|
+
className: C,
|
|
81
|
+
"aria-label": s.label,
|
|
82
|
+
"aria-expanded": g ? _ : void 0,
|
|
83
|
+
children: D
|
|
68
84
|
})
|
|
69
|
-
}),
|
|
85
|
+
}), g && _ && !h && /* @__PURE__ */ r("ul", {
|
|
70
86
|
className: "mt-1 ml-6 space-y-1 border-l border-border-subtle pl-3 animate-in fade-in-0 slide-in-from-top-2 duration-200",
|
|
71
|
-
children:
|
|
87
|
+
children: s.children.map((e) => /* @__PURE__ */ r(o, {
|
|
72
88
|
item: e,
|
|
73
|
-
depth:
|
|
74
|
-
maxDepth:
|
|
75
|
-
currentPath:
|
|
76
|
-
expandedItems:
|
|
77
|
-
toggleExpand:
|
|
78
|
-
onItemClick:
|
|
79
|
-
onToggleCollapse:
|
|
80
|
-
collapsed:
|
|
89
|
+
depth: c + 1,
|
|
90
|
+
maxDepth: l,
|
|
91
|
+
currentPath: u,
|
|
92
|
+
expandedItems: d,
|
|
93
|
+
toggleExpand: f,
|
|
94
|
+
onItemClick: p,
|
|
95
|
+
onToggleCollapse: m,
|
|
96
|
+
collapsed: h
|
|
81
97
|
}, e.id))
|
|
82
98
|
})] });
|
|
83
99
|
};
|
|
84
100
|
//#endregion
|
|
85
|
-
export {
|
|
101
|
+
export { o as NavItemRenderer };
|
|
@@ -31,7 +31,7 @@ export interface AppShellConfig {
|
|
|
31
31
|
/** Brand initial for PWA banner icon */
|
|
32
32
|
brandInitial?: string;
|
|
33
33
|
/** Default gateway for top-level ApolloProvider */
|
|
34
|
-
defaultGateway?:
|
|
34
|
+
defaultGateway?: "workspace" | "global";
|
|
35
35
|
/** Enable GraphQL subscriptions */
|
|
36
36
|
enableSubscriptions?: boolean;
|
|
37
37
|
/** Static fallback translations (keyed by locale) */
|
|
@@ -43,14 +43,14 @@ export interface AppShellConfig {
|
|
|
43
43
|
refetchOnWindowFocus?: boolean;
|
|
44
44
|
};
|
|
45
45
|
/** Toaster position */
|
|
46
|
-
toasterPosition?:
|
|
46
|
+
toasterPosition?: "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
47
47
|
/** Frontend telemetry sinks. MFEs emit to the shell event bus only. */
|
|
48
48
|
observability?: AppShellObservabilityConfig;
|
|
49
49
|
}
|
|
50
50
|
export interface AppShellObservabilityConfig {
|
|
51
51
|
enabled?: boolean;
|
|
52
52
|
appVersion?: string;
|
|
53
|
-
appEnv?:
|
|
53
|
+
appEnv?: "dev" | "alpha" | "prod";
|
|
54
54
|
devtools?: boolean;
|
|
55
55
|
broadcast?: boolean;
|
|
56
56
|
rybbit?: {
|
|
@@ -92,5 +92,5 @@ export interface AppShellProviderProps {
|
|
|
92
92
|
/** Optional callback to clear external auth stores (e.g., microfe-auth's zustand store) */
|
|
93
93
|
clearAuthStore?: () => void;
|
|
94
94
|
}
|
|
95
|
-
export declare function AppShellProvider({ config, children, clearAuthStore }: AppShellProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
95
|
+
export declare function AppShellProvider({ config, children, clearAuthStore, }: AppShellProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
96
96
|
//# sourceMappingURL=AppShellProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppShellProvider.d.ts","sourceRoot":"","sources":["../../../src/shared/providers/AppShellProvider.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"AppShellProvider.d.ts","sourceRoot":"","sources":["../../../src/shared/providers/AppShellProvider.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAML,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAkBf,OAAO,EAAiB,KAAK,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAYlE,OAAO,EAAgB,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,EAQL,KAAK,kBAAkB,EACxB,MAAM,WAAW,CAAC;AAuBnB,MAAM,WAAW,cAAc;IAC7B,gEAAgE;IAChE,WAAW,EAAE,MAAM,CAAC;IAEpB,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,sBAAsB;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,gDAAgD;IAChD,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,+CAA+C;IAC/C,aAAa,EAAE,MAAM,CAAC;IAEtB,4BAA4B;IAC5B,WAAW,EAAE;QACX,gBAAgB,EAAE,MAAM,CAAC;QACzB,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;IAEF,gCAAgC;IAChC,UAAU,CAAC,EAAE;QACX,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,cAAc,CAAC,EAAE,MAAM,CA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368
|
let e = sessionStorage.getItem("bf-active-profile");
|
|
369
369
|
if (!e) return !1;
|
|
370
|
-
let t = localStorage.getItem(`bf-p-${e}-tokens`), n = localStorage.getItem(`bf-p-${e}-auth-storage`), r = t ? JSON.parse(t)
|
|
371
|
-
return
|
|
370
|
+
let t = localStorage.getItem(`bf-p-${e}-tokens`), n = localStorage.getItem(`bf-p-${e}-auth-storage`), r = 5e3, i = Date.now(), a = t ? JSON.parse(t) : null, o = !!(a?.accessToken && typeof a.expiresAt == "number" && a.expiresAt - r > i), s = n ? JSON.parse(n) : null, c = !!(s?.state?.accessToken && typeof s.state.expiresAt == "number" && s.state.expiresAt - r > i);
|
|
371
|
+
return o || c;
|
|
372
372
|
} catch {
|
|
373
373
|
return !1;
|
|
374
374
|
}
|