@burdenoff/fe-libs 2026.530.8 → 2026.531.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/sideNavigation/MobileActionsBar.d.ts.map +1 -1
- package/dist/chrome/sideNavigation/MobileActionsBar.js +30 -23
- package/dist/shared/providers/AppShellProvider.d.ts.map +1 -1
- package/dist/shared/providers/AppShellProvider.js +116 -131
- package/dist/shared/providers/shell/I18nProvider.d.ts +1 -1
- package/dist/shared/providers/shell/I18nProvider.d.ts.map +1 -1
- package/dist/shared/providers/shell/I18nProvider.js +2 -1
- package/dist/shared/providers/shell/ProfileI18nBridge.d.ts.map +1 -1
- package/dist/shared/providers/shell/ProfileI18nBridge.js +19 -19
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MobileActionsBar.d.ts","sourceRoot":"","sources":["../../../src/chrome/sideNavigation/MobileActionsBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"MobileActionsBar.d.ts","sourceRoot":"","sources":["../../../src/chrome/sideNavigation/MobileActionsBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGrD,UAAU,qBAAqB;IAC7B,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;CAC/B;AAED,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAyCtD,CAAC"}
|
|
@@ -1,25 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useI18n as e } from "../../shared/providers/shell/I18nProvider.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
3
|
//#region src/chrome/sideNavigation/MobileActionsBar.tsx
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
className: "
|
|
7
|
-
children: "
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
className:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
var r = ({ actions: r, collapsed: i, onToggleCollapse: a }) => {
|
|
5
|
+
let { t: o } = e();
|
|
6
|
+
return /* @__PURE__ */ n("div", {
|
|
7
|
+
className: "md:hidden py-4 px-4 border-t border-border-subtle bg-bg-canvas/50",
|
|
8
|
+
children: [/* @__PURE__ */ t("p", {
|
|
9
|
+
className: "text-caption text-text-tertiary mb-3 font-medium uppercase tracking-wider",
|
|
10
|
+
children: ((e, t) => {
|
|
11
|
+
let n = o(e);
|
|
12
|
+
return n === e ? t : n;
|
|
13
|
+
})("appShell.quickActions", "Quick Actions")
|
|
14
|
+
}), /* @__PURE__ */ t("div", {
|
|
15
|
+
className: "flex items-center justify-center gap-3",
|
|
16
|
+
children: r.map((e) => /* @__PURE__ */ t("button", {
|
|
17
|
+
onClick: () => {
|
|
18
|
+
e.onClick(), e.closeSidebar !== !1 && a && !i && a();
|
|
19
|
+
},
|
|
20
|
+
className: `flex items-center justify-center w-12 h-12 rounded-xl text-body-sm font-medium transition-all ${e.isToggle && e.isActive ? "bg-action-primary-bg text-action-primary-text shadow-sm" : "bg-bg-surface text-text-primary hover:bg-action-ghost-bg-hover border border-border-subtle hover:border-border-default active:scale-95"}`,
|
|
21
|
+
"aria-label": e.label,
|
|
22
|
+
title: e.label,
|
|
23
|
+
children: /* @__PURE__ */ t("span", {
|
|
24
|
+
className: "size-5",
|
|
25
|
+
children: e.icon
|
|
26
|
+
})
|
|
27
|
+
}, e.id))
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
30
|
+
};
|
|
24
31
|
//#endregion
|
|
25
|
-
export {
|
|
32
|
+
export { r as MobileActionsBar };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppShellProvider.d.ts","sourceRoot":"","sources":["../../../src/shared/providers/AppShellProvider.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAqD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAa1F,OAAO,EAAiB,KAAK,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAYlE,OAAO,
|
|
1
|
+
{"version":3,"file":"AppShellProvider.d.ts","sourceRoot":"","sources":["../../../src/shared/providers/AppShellProvider.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,EAAqD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAa1F,OAAO,EAAiB,KAAK,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAYlE,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAClE,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,UAA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
|
|
@@ -4,31 +4,30 @@ import { BACKEND_ERROR_EVENT as n, dispatchBackendErrorEvent as r, isBackendErro
|
|
|
4
4
|
import { graphqlFetch as o } from "../graphql/fetch.js";
|
|
5
5
|
import { attemptTokenRefresh as s, clearAuthSessionStorage as c, isAuthNetworkError as l } from "../utils/authErrorHandling.js";
|
|
6
6
|
import { AuthProvider as u } from "./shell/AuthProvider.js";
|
|
7
|
-
import { ActiveContextProvider as
|
|
8
|
-
import { LogManager as
|
|
9
|
-
import { ConsoleTransport as
|
|
7
|
+
import { ActiveContextProvider as ee } from "./shell/ActiveContextProvider.js";
|
|
8
|
+
import { LogManager as te } from "../logger/LogManager.js";
|
|
9
|
+
import { ConsoleTransport as d } from "../logger/ConsoleTransport.js";
|
|
10
10
|
import { ThemeProvider as f } from "./shell/ThemeProvider.js";
|
|
11
|
-
import { ErrorFallback as
|
|
12
|
-
import { m
|
|
13
|
-
import { PWAInstallBanner as
|
|
14
|
-
import { I18nProvider as h } from "./shell/I18nProvider.js";
|
|
11
|
+
import { ErrorFallback as p } from "../components/ErrorFallback.js";
|
|
12
|
+
import { m } from "../../node_modules/react-error-boundary/dist/react-error-boundary.js";
|
|
13
|
+
import { PWAInstallBanner as h } from "../components/PWAInstallBanner.js";
|
|
15
14
|
import { FeatureFlagsProvider as g } from "./shell/FeatureFlagsProvider.js";
|
|
16
15
|
import { FeatureFlagProvider as _ } from "../feature-flags/FeatureFlagProvider.js";
|
|
17
16
|
import { GlobalUiProvider as v } from "./shell/GlobalUiProvider.js";
|
|
18
17
|
import { ShellUiProvider as y } from "./shell/ShellUiProvider.js";
|
|
19
|
-
import { ContextManagerProvider as
|
|
20
|
-
import { AuthTokenProvider as
|
|
21
|
-
import { MultiGatewayProvider as
|
|
22
|
-
import { G as
|
|
23
|
-
import { ProfileI18nBridge as
|
|
24
|
-
import { ProfileGeographyBridge as
|
|
25
|
-
import { AppShellContextProvider as
|
|
26
|
-
import { DevtoolsSink as
|
|
27
|
-
import { BroadcastChannelSink as
|
|
28
|
-
import { BackendAuditSink as
|
|
29
|
-
import { RybbitSink as
|
|
30
|
-
import { OtelBrowserSink as
|
|
31
|
-
import { EventBusProvider as
|
|
18
|
+
import { ContextManagerProvider as ne } from "./shell/ContextManagerProvider.js";
|
|
19
|
+
import { AuthTokenProvider as re } from "./shell/AuthTokenProvider.js";
|
|
20
|
+
import { MultiGatewayProvider as ie } from "./shell/MultiGatewayProvider.js";
|
|
21
|
+
import { G as b, j as x, w as S } from "../../node_modules/web-vitals/dist/web-vitals.js";
|
|
22
|
+
import { ProfileI18nBridge as C } from "./shell/ProfileI18nBridge.js";
|
|
23
|
+
import { ProfileGeographyBridge as w } from "./shell/ProfileGeographyBridge.js";
|
|
24
|
+
import { AppShellContextProvider as T } from "./shell/AppShellContext.js";
|
|
25
|
+
import { DevtoolsSink as E } from "../events/sinks/DevtoolsSink.js";
|
|
26
|
+
import { BroadcastChannelSink as D } from "../events/sinks/BroadcastChannelSink.js";
|
|
27
|
+
import { BackendAuditSink as O } from "../events/sinks/BackendAuditSink.js";
|
|
28
|
+
import { RybbitSink as k } from "../events/sinks/RybbitSink.js";
|
|
29
|
+
import { OtelBrowserSink as A } from "../events/sinks/OtelBrowserSink.js";
|
|
30
|
+
import { EventBusProvider as j, useEventBus as M } from "../../shared-events.js";
|
|
32
31
|
import { useReferralAttribution as N } from "../hooks/useReferralAttribution.js";
|
|
33
32
|
import { TourPlayerProvider as P } from "../tours/TourPlayerProvider.js";
|
|
34
33
|
import { ToursProvider as F, useToursContext as I } from "../tours/ToursContext.js";
|
|
@@ -37,7 +36,7 @@ import { Suspense as R, useCallback as z, useEffect as B, useMemo as V, useRef a
|
|
|
37
36
|
import { Fragment as U, jsx as W, jsxs as G } from "react/jsx-runtime";
|
|
38
37
|
import { BrowserRouter as K, useLocation as q } from "react-router-dom";
|
|
39
38
|
import { Toaster as J, toast as Y } from "sonner";
|
|
40
|
-
import { MutationCache as
|
|
39
|
+
import { MutationCache as ae, QueryCache as oe, QueryClient as se, QueryClientProvider as ce } from "@tanstack/react-query";
|
|
41
40
|
//#region src/shared/providers/AppShellProvider.tsx
|
|
42
41
|
var X = {
|
|
43
42
|
bigconsole: {
|
|
@@ -73,8 +72,8 @@ var X = {
|
|
|
73
72
|
"notification.admin.sent",
|
|
74
73
|
"notification.template.saved",
|
|
75
74
|
"notification.schedule.updated"
|
|
76
|
-
],
|
|
77
|
-
function
|
|
75
|
+
], Q = 4e3;
|
|
76
|
+
function le(e) {
|
|
78
77
|
let t = e.technicalMessage ?? e.extensions?.technicalMessage, n = {
|
|
79
78
|
code: e.code,
|
|
80
79
|
operationName: e.operationName,
|
|
@@ -86,13 +85,13 @@ function de(e) {
|
|
|
86
85
|
};
|
|
87
86
|
console.error("[Burdenoff backend error]", e.message, n);
|
|
88
87
|
}
|
|
89
|
-
function
|
|
88
|
+
function ue(e) {
|
|
90
89
|
return e === "prod" || e === "production" ? "prod" : e === "alpha" || e === "staging" ? "alpha" : "dev";
|
|
91
90
|
}
|
|
92
|
-
function
|
|
91
|
+
function de(e, t) {
|
|
93
92
|
return e.VITE_DISABLE_ANALYTICS === "true" ? !1 : e.VITE_ENABLE_ANALYTICS === "true" || e.PROD || t !== "dev" ? !0 : e.VITE_ENABLE_ANALYTICS !== "false";
|
|
94
93
|
}
|
|
95
|
-
function
|
|
94
|
+
function fe() {
|
|
96
95
|
return {
|
|
97
96
|
BASE_URL: "/",
|
|
98
97
|
DEV: !1,
|
|
@@ -102,7 +101,7 @@ function pe() {
|
|
|
102
101
|
};
|
|
103
102
|
}
|
|
104
103
|
function $(e, t) {
|
|
105
|
-
let n =
|
|
104
|
+
let n = ue(t.VITE_DEPLOY_ENV ?? t.MODE), r = de(t, n), i = X[e], a = n === "prod" ? i?.prod : i?.nonProd, o = t.VITE_RYBBIT_SITE_ID || a, s = t.VITE_BACKEND_AUDIT_ENDPOINT || (t.PROD ? "/api/fe-events" : void 0);
|
|
106
105
|
return {
|
|
107
106
|
enabled: r,
|
|
108
107
|
appVersion: t.VITE_APP_VERSION || "0.0.0",
|
|
@@ -128,7 +127,7 @@ function $(e, t) {
|
|
|
128
127
|
}
|
|
129
128
|
};
|
|
130
129
|
}
|
|
131
|
-
function
|
|
130
|
+
function pe({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
|
|
132
131
|
let { trackProgress: a, recordStepCompletion: o, trackEvent: s } = I(), c = z((e, t) => e.steps?.[t], []);
|
|
133
132
|
return /* @__PURE__ */ G(P, {
|
|
134
133
|
onTourStart: z((e) => {
|
|
@@ -169,7 +168,7 @@ function me({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
169
168
|
children: [
|
|
170
169
|
/* @__PURE__ */ W(L, {}),
|
|
171
170
|
e,
|
|
172
|
-
/* @__PURE__ */ W(
|
|
171
|
+
/* @__PURE__ */ W(me, {}),
|
|
173
172
|
/* @__PURE__ */ W(J, {
|
|
174
173
|
position: n,
|
|
175
174
|
richColors: !0,
|
|
@@ -177,7 +176,7 @@ function me({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
177
176
|
}),
|
|
178
177
|
t && /* @__PURE__ */ W(R, {
|
|
179
178
|
fallback: null,
|
|
180
|
-
children: /* @__PURE__ */ W(
|
|
179
|
+
children: /* @__PURE__ */ W(h, {
|
|
181
180
|
productName: r,
|
|
182
181
|
brandInitial: i
|
|
183
182
|
})
|
|
@@ -185,15 +184,15 @@ function me({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
185
184
|
]
|
|
186
185
|
});
|
|
187
186
|
}
|
|
188
|
-
function
|
|
187
|
+
function me() {
|
|
189
188
|
let e = H(null);
|
|
190
189
|
return B(() => {
|
|
191
190
|
let t = (t) => {
|
|
192
191
|
let n = t instanceof CustomEvent && i(t.detail) ? t.detail : null;
|
|
193
192
|
if (!a(n)) return;
|
|
194
|
-
|
|
193
|
+
le(n);
|
|
195
194
|
let r = `${n.code ?? ""}|${n.message}`, o = Date.now(), s = e.current;
|
|
196
|
-
s?.key === r && o - s.shownAt <
|
|
195
|
+
s?.key === r && o - s.shownAt < Q || (e.current = {
|
|
197
196
|
key: r,
|
|
198
197
|
shownAt: o
|
|
199
198
|
}, Y.error(n.message, { duration: 7e3 }));
|
|
@@ -201,18 +200,18 @@ function he() {
|
|
|
201
200
|
return window.addEventListener(n, t), () => window.removeEventListener(n, t);
|
|
202
201
|
}, []), null;
|
|
203
202
|
}
|
|
204
|
-
function
|
|
203
|
+
function he({ children: e, i18nProductId: t, fallbackTranslations: n, defaultBrand: r, productName: i, brandInitial: a, enablePWA: o, toasterPosition: s }) {
|
|
205
204
|
let c = q();
|
|
206
205
|
N();
|
|
207
|
-
let l =
|
|
206
|
+
let l = /* @__PURE__ */ W(w, { children: /* @__PURE__ */ W(g, { children: /* @__PURE__ */ W(_, {
|
|
208
207
|
workspaceId: null,
|
|
209
208
|
gateway: "global",
|
|
210
209
|
defaultEnabled: !0,
|
|
211
|
-
children: /* @__PURE__ */ W(v, { children: /* @__PURE__ */ W(y, { children: /* @__PURE__ */ W(
|
|
210
|
+
children: /* @__PURE__ */ W(v, { children: /* @__PURE__ */ W(y, { children: /* @__PURE__ */ W(m, {
|
|
212
211
|
fallback: null,
|
|
213
212
|
children: /* @__PURE__ */ W(F, {
|
|
214
|
-
disabled:
|
|
215
|
-
children: /* @__PURE__ */ W(
|
|
213
|
+
disabled: c.pathname.startsWith("/devportal") || c.pathname.startsWith("/organizations") || c.pathname.startsWith("/workspaces"),
|
|
214
|
+
children: /* @__PURE__ */ W(pe, {
|
|
216
215
|
enablePWA: o,
|
|
217
216
|
toasterPosition: s,
|
|
218
217
|
productName: i,
|
|
@@ -224,28 +223,14 @@ function ge({ children: e, i18nProductId: t, fallbackTranslations: n, defaultBra
|
|
|
224
223
|
}) }) });
|
|
225
224
|
return /* @__PURE__ */ G(f, {
|
|
226
225
|
defaultBrand: r,
|
|
227
|
-
children: [/* @__PURE__ */ W(
|
|
228
|
-
defaultLocale: "en",
|
|
229
|
-
translations: n ?? {
|
|
230
|
-
en: {},
|
|
231
|
-
es: {},
|
|
232
|
-
fr: {},
|
|
233
|
-
de: {},
|
|
234
|
-
ja: {},
|
|
235
|
-
zh: {},
|
|
236
|
-
ta: {},
|
|
237
|
-
hi: {}
|
|
238
|
-
},
|
|
239
|
-
showChildrenWhileLoading: !0,
|
|
240
|
-
children: u
|
|
241
|
-
}) : /* @__PURE__ */ W(T, {
|
|
226
|
+
children: [/* @__PURE__ */ W(ge, {}), /* @__PURE__ */ W(C, {
|
|
242
227
|
i18nProductId: t,
|
|
243
228
|
fallbackTranslations: n,
|
|
244
|
-
children:
|
|
229
|
+
children: l
|
|
245
230
|
})]
|
|
246
231
|
});
|
|
247
232
|
}
|
|
248
|
-
function
|
|
233
|
+
function ge() {
|
|
249
234
|
let e = q();
|
|
250
235
|
return B(() => {
|
|
251
236
|
e.hash || requestAnimationFrame(() => {
|
|
@@ -265,7 +250,7 @@ function _e() {
|
|
|
265
250
|
e.hash
|
|
266
251
|
]), null;
|
|
267
252
|
}
|
|
268
|
-
function
|
|
253
|
+
function _e(e) {
|
|
269
254
|
if (e instanceof Error) return e.message;
|
|
270
255
|
if (typeof e == "string") return e;
|
|
271
256
|
try {
|
|
@@ -274,7 +259,7 @@ function ve(e) {
|
|
|
274
259
|
return String(e);
|
|
275
260
|
}
|
|
276
261
|
}
|
|
277
|
-
function
|
|
262
|
+
function ve() {
|
|
278
263
|
let e = M(), t = q(), n = H(void 0), r = H(void 0);
|
|
279
264
|
return B(() => {
|
|
280
265
|
let i = `${t.pathname}${t.search}${t.hash}`;
|
|
@@ -300,27 +285,27 @@ function ye() {
|
|
|
300
285
|
errorName: t.error instanceof Error ? t.error.name : void 0
|
|
301
286
|
});
|
|
302
287
|
}, n = (t) => {
|
|
303
|
-
e.emit("error.unhandledrejection", { reason:
|
|
288
|
+
e.emit("error.unhandledrejection", { reason: _e(t.reason) });
|
|
304
289
|
};
|
|
305
290
|
return window.addEventListener("error", t), window.addEventListener("unhandledrejection", n), () => {
|
|
306
291
|
window.removeEventListener("error", t), window.removeEventListener("unhandledrejection", n);
|
|
307
292
|
};
|
|
308
293
|
}, [e]), B(() => {
|
|
309
|
-
|
|
294
|
+
b((t) => {
|
|
310
295
|
e.emit("perf.lcp.measured", {
|
|
311
296
|
metric: "LCP",
|
|
312
297
|
value: t.value,
|
|
313
298
|
id: t.id,
|
|
314
299
|
rating: t.rating
|
|
315
300
|
});
|
|
316
|
-
}),
|
|
301
|
+
}), S((t) => {
|
|
317
302
|
e.emit("perf.cls.measured", {
|
|
318
303
|
metric: "CLS",
|
|
319
304
|
value: t.value,
|
|
320
305
|
id: t.id,
|
|
321
306
|
rating: t.rating
|
|
322
307
|
});
|
|
323
|
-
}),
|
|
308
|
+
}), x((t) => {
|
|
324
309
|
e.emit("perf.inp.measured", {
|
|
325
310
|
metric: "INP",
|
|
326
311
|
value: t.value,
|
|
@@ -330,39 +315,39 @@ function ye() {
|
|
|
330
315
|
});
|
|
331
316
|
}, [e]), null;
|
|
332
317
|
}
|
|
333
|
-
function
|
|
334
|
-
return /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(
|
|
335
|
-
e.devtools ? /* @__PURE__ */ W(
|
|
336
|
-
e.broadcast === !1 ? null : /* @__PURE__ */ W(
|
|
337
|
-
e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ W(
|
|
338
|
-
e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ W(
|
|
318
|
+
function ye({ config: e, productSlug: t }) {
|
|
319
|
+
return /* @__PURE__ */ G(U, { children: [/* @__PURE__ */ W(ve, {}), e.enabled === !1 ? null : /* @__PURE__ */ G(U, { children: [
|
|
320
|
+
e.devtools ? /* @__PURE__ */ W(E, { enabled: !0 }) : null,
|
|
321
|
+
e.broadcast === !1 ? null : /* @__PURE__ */ W(D, {}),
|
|
322
|
+
e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ W(O, { endpoint: e.backendAudit.endpoint }) : null,
|
|
323
|
+
e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ W(k, {
|
|
339
324
|
siteId: e.rybbit.siteId,
|
|
340
325
|
scriptUrl: e.rybbit.scriptUrl,
|
|
341
326
|
allowlist: e.rybbit.allowlist,
|
|
342
327
|
identifyOn: e.rybbit.identifyOn,
|
|
343
328
|
rename: e.rybbit.rename
|
|
344
329
|
}) : null,
|
|
345
|
-
e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ W(
|
|
330
|
+
e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ W(A, {
|
|
346
331
|
endpoint: e.otel.endpoint,
|
|
347
332
|
serviceName: e.otel.serviceName ?? `${t}-app`,
|
|
348
333
|
flushInterval: e.otel.flushInterval
|
|
349
334
|
}) : null
|
|
350
335
|
] })] });
|
|
351
336
|
}
|
|
352
|
-
function
|
|
353
|
-
let { productName: f, productSlug:
|
|
337
|
+
function be({ config: n, children: i, clearAuthStore: a }) {
|
|
338
|
+
let { productName: f, productSlug: h = f.toLowerCase().replace(/\s+/g, ""), tagline: g = "", domain: _, i18nProductId: v, gatewayUrls: y, authBridge: b, defaultBrand: x = "default", enablePWA: S = !0, brandInitial: C = f.charAt(0), defaultGateway: w = "workspace", enableSubscriptions: E = !0, fallbackTranslations: D, queryClientOptions: O, toasterPosition: k = "bottom-right", observability: A } = n, M = A ?? $(h, fe()), N = V(() => ({
|
|
354
339
|
productName: f,
|
|
355
|
-
productSlug:
|
|
356
|
-
brandInitial:
|
|
357
|
-
tagline:
|
|
358
|
-
domain:
|
|
340
|
+
productSlug: h,
|
|
341
|
+
brandInitial: C,
|
|
342
|
+
tagline: g,
|
|
343
|
+
domain: _
|
|
359
344
|
}), [
|
|
360
345
|
f,
|
|
361
|
-
m,
|
|
362
|
-
w,
|
|
363
346
|
h,
|
|
364
|
-
|
|
365
|
-
|
|
347
|
+
C,
|
|
348
|
+
g,
|
|
349
|
+
_
|
|
350
|
+
]), P = H(!1), F = H(!1), I = H(null), L = H(!!b?.url), R = z(() => {
|
|
366
351
|
if ((() => {
|
|
367
352
|
try {
|
|
368
353
|
let e = sessionStorage.getItem("bf-active-profile");
|
|
@@ -372,26 +357,26 @@ function xe({ config: n, children: i, clearAuthStore: a }) {
|
|
|
372
357
|
} catch {
|
|
373
358
|
return !1;
|
|
374
359
|
}
|
|
375
|
-
})() ||
|
|
376
|
-
|
|
360
|
+
})() || L.current || P.current) return;
|
|
361
|
+
P.current = !0, c(a);
|
|
377
362
|
let t = `${window.location.pathname}${window.location.search}`, n = `/auth/login?reason=session-expired&returnTo=${encodeURIComponent(t)}`, r = /^\/vibecontrols\/(share|deck)\//.test(window.location.pathname);
|
|
378
363
|
if (window.location.pathname.startsWith("/auth/") || e(window.location.pathname) || r) {
|
|
379
|
-
|
|
364
|
+
P.current = !1;
|
|
380
365
|
return;
|
|
381
366
|
}
|
|
382
367
|
window.location.replace(n);
|
|
383
|
-
}, [a]),
|
|
384
|
-
globalBaseUrl:
|
|
385
|
-
isRefreshing:
|
|
386
|
-
refreshPromise:
|
|
387
|
-
}), [
|
|
388
|
-
window.location.pathname.startsWith("/auth/") || await
|
|
389
|
-
}, [
|
|
390
|
-
l(e) ? await
|
|
391
|
-
}, [
|
|
368
|
+
}, [a]), U = V(() => ({
|
|
369
|
+
globalBaseUrl: y.globalBaseUrl,
|
|
370
|
+
isRefreshing: F,
|
|
371
|
+
refreshPromise: I
|
|
372
|
+
}), [y.globalBaseUrl]), q = z(async () => s(U), [U]), J = z(async () => {
|
|
373
|
+
window.location.pathname.startsWith("/auth/") || await q() || R();
|
|
374
|
+
}, [q, R]), Y = z(async (e) => {
|
|
375
|
+
l(e) ? await q() || R() : console.error("[Network] Backend unreachable:", e.message);
|
|
376
|
+
}, [q, R]), X = z(async (e) => {
|
|
392
377
|
let t = await o({
|
|
393
378
|
gateway: "global",
|
|
394
|
-
baseUrl:
|
|
379
|
+
baseUrl: y.globalBaseUrl,
|
|
395
380
|
authToken: "",
|
|
396
381
|
query: "mutation RefreshToken($token: String!) {\n refreshToken(token: $token) {\n accessToken\n refreshToken\n expiresIn\n }\n }",
|
|
397
382
|
variables: { token: e }
|
|
@@ -403,11 +388,11 @@ function xe({ config: n, children: i, clearAuthStore: a }) {
|
|
|
403
388
|
refreshToken: n.refreshToken,
|
|
404
389
|
expiresAt: n.expiresIn ? Date.now() + n.expiresIn * 1e3 : void 0
|
|
405
390
|
};
|
|
406
|
-
}, [
|
|
407
|
-
queryCache: new
|
|
391
|
+
}, [y.globalBaseUrl]), Z = z(() => t("organization"), []), Q = V(() => new se({
|
|
392
|
+
queryCache: new oe({ onError: (e) => {
|
|
408
393
|
r(e);
|
|
409
394
|
} }),
|
|
410
|
-
mutationCache: new
|
|
395
|
+
mutationCache: new ae({ onError: (e) => {
|
|
411
396
|
r(e);
|
|
412
397
|
} }),
|
|
413
398
|
defaultOptions: { queries: {
|
|
@@ -417,54 +402,54 @@ function xe({ config: n, children: i, clearAuthStore: a }) {
|
|
|
417
402
|
} }
|
|
418
403
|
}), [O]);
|
|
419
404
|
return B(() => {
|
|
420
|
-
let e =
|
|
421
|
-
e.getLogger("shell") || e.getLogger("shell").addTransport(new
|
|
422
|
-
}, []), /* @__PURE__ */ W(
|
|
423
|
-
value:
|
|
424
|
-
children: /* @__PURE__ */ W(
|
|
425
|
-
appName:
|
|
426
|
-
appVersion:
|
|
427
|
-
appEnv:
|
|
428
|
-
sourceMfe:
|
|
429
|
-
children: /* @__PURE__ */ W(
|
|
430
|
-
FallbackComponent:
|
|
431
|
-
children: /* @__PURE__ */ G(K, { children: [/* @__PURE__ */ W(
|
|
432
|
-
config:
|
|
433
|
-
productSlug:
|
|
434
|
-
}), /* @__PURE__ */ W(
|
|
435
|
-
client:
|
|
436
|
-
children: /* @__PURE__ */ W(
|
|
437
|
-
workspaceBaseUrl:
|
|
438
|
-
globalBaseUrl:
|
|
439
|
-
organizationId:
|
|
440
|
-
defaultGateway:
|
|
405
|
+
let e = te.getInstance();
|
|
406
|
+
e.getLogger("shell") || e.getLogger("shell").addTransport(new d());
|
|
407
|
+
}, []), /* @__PURE__ */ W(T, {
|
|
408
|
+
value: N,
|
|
409
|
+
children: /* @__PURE__ */ W(j, {
|
|
410
|
+
appName: h,
|
|
411
|
+
appVersion: M.appVersion,
|
|
412
|
+
appEnv: M.appEnv,
|
|
413
|
+
sourceMfe: h,
|
|
414
|
+
children: /* @__PURE__ */ W(m, {
|
|
415
|
+
FallbackComponent: p,
|
|
416
|
+
children: /* @__PURE__ */ G(K, { children: [/* @__PURE__ */ W(ye, {
|
|
417
|
+
config: M,
|
|
418
|
+
productSlug: h
|
|
419
|
+
}), /* @__PURE__ */ W(ce, {
|
|
420
|
+
client: Q,
|
|
421
|
+
children: /* @__PURE__ */ W(re, { children: /* @__PURE__ */ W(ie, {
|
|
422
|
+
workspaceBaseUrl: y.workspaceBaseUrl,
|
|
423
|
+
globalBaseUrl: y.globalBaseUrl,
|
|
424
|
+
organizationId: Z,
|
|
425
|
+
defaultGateway: w,
|
|
441
426
|
enableSubscriptions: E,
|
|
442
|
-
onAuthError:
|
|
443
|
-
onNetworkError:
|
|
444
|
-
onRefreshToken:
|
|
427
|
+
onAuthError: J,
|
|
428
|
+
onNetworkError: Y,
|
|
429
|
+
onRefreshToken: q,
|
|
445
430
|
children: /* @__PURE__ */ W(u, {
|
|
446
|
-
bridgeUrl:
|
|
447
|
-
bridgeAllowedOrigins:
|
|
448
|
-
bridgeDebug:
|
|
449
|
-
onRefreshToken:
|
|
431
|
+
bridgeUrl: b?.url,
|
|
432
|
+
bridgeAllowedOrigins: b?.allowedOrigins,
|
|
433
|
+
bridgeDebug: b?.debug,
|
|
434
|
+
onRefreshToken: X,
|
|
450
435
|
onBridgeReady: () => {
|
|
451
|
-
|
|
436
|
+
L.current = !1;
|
|
452
437
|
},
|
|
453
438
|
onSessionExpiringSoon: () => {
|
|
454
439
|
console.warn("[Auth] Session will expire in 5 minutes");
|
|
455
440
|
},
|
|
456
441
|
onTokenExpired: () => {
|
|
457
|
-
|
|
442
|
+
R();
|
|
458
443
|
},
|
|
459
|
-
children: /* @__PURE__ */ W(
|
|
444
|
+
children: /* @__PURE__ */ W(ee, {
|
|
460
445
|
syncToUrl: !0,
|
|
461
|
-
children: /* @__PURE__ */ W(
|
|
462
|
-
i18nProductId:
|
|
446
|
+
children: /* @__PURE__ */ W(ne, { children: /* @__PURE__ */ W(he, {
|
|
447
|
+
i18nProductId: v,
|
|
463
448
|
fallbackTranslations: D,
|
|
464
|
-
defaultBrand:
|
|
449
|
+
defaultBrand: x,
|
|
465
450
|
productName: f,
|
|
466
|
-
brandInitial:
|
|
467
|
-
enablePWA:
|
|
451
|
+
brandInitial: C,
|
|
452
|
+
enablePWA: S,
|
|
468
453
|
toasterPosition: k,
|
|
469
454
|
children: i
|
|
470
455
|
}) })
|
|
@@ -477,4 +462,4 @@ function xe({ config: n, children: i, clearAuthStore: a }) {
|
|
|
477
462
|
});
|
|
478
463
|
}
|
|
479
464
|
//#endregion
|
|
480
|
-
export {
|
|
465
|
+
export { be as AppShellProvider, $ as resolveAppShellObservabilityConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export type Locale = 'en' | 'es' | 'fr' | 'de' | 'ja' | 'zh' | 'ta' | 'hi';
|
|
2
|
+
export type Locale = 'en' | 'es' | 'fr' | 'de' | 'ja' | 'zh' | 'ta' | 'hi' | 'ar';
|
|
3
3
|
export interface TranslationDictionary {
|
|
4
4
|
[key: string]: string | TranslationDictionary;
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"I18nProvider.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/I18nProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,G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AS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,mBAAmB,CAAC;IACxC;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAC;CAC9B;AA2FD;;;;;;;;GAQG;AACH,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,qBAAqB,GAAG,SAAS,EACvC,QAAQ,EAAE,qBAAqB,GAAG,SAAS,GAC1C,qBAAqB,CAsBvB;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,aAAoB,EACpB,YAAY,EAAE,kBAAyC,EACvD,UAA+B,EAC/B,SAAS,EACT,iBAAiB,EACjB,wBAA+B,EAC/B,gBAAgB,GACjB,EAAE,iBAAiB,2CA2MnB;AAED,wBAAgB,OAAO,qBAMtB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileI18nBridge.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/ProfileI18nBridge.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ProfileI18nBridge.d.ts","sourceRoot":"","sources":["../../../../src/shared/providers/shell/ProfileI18nBridge.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAwB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,EAGL,KAAK,MAAM,EACX,KAAK,qBAAqB,EAC3B,MAAM,gBAAgB,CAAC;AAYxB,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,SAAS,CAAC;IACpB,kFAAkF;IAClF,aAAa,EAAE,MAAM,CAAC;IACtB,qCAAqC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mCAAmC;IACnC,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAC7D,yEAAyE;IACzE,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,aAAa,EACb,aAAoB,EACpB,oBAAoB,EACpB,mBAA2B,GAC5B,EAAE,sBAAsB,2CAiGxB"}
|
|
@@ -4,20 +4,19 @@ import { useAuth as t } from "./AuthProvider.js";
|
|
|
4
4
|
import { I18nProvider as n, mergeTranslationDictionaries as r } from "./I18nProvider.js";
|
|
5
5
|
import { useCallback as i, useMemo as a } from "react";
|
|
6
6
|
import { jsx as o } from "react/jsx-runtime";
|
|
7
|
-
import { useLocation as s } from "react-router-dom";
|
|
8
7
|
//#region src/shared/providers/shell/ProfileI18nBridge.tsx
|
|
9
|
-
var
|
|
10
|
-
function
|
|
11
|
-
let
|
|
12
|
-
let n =
|
|
13
|
-
if (!
|
|
8
|
+
var s = "\n query ExportTranslations($productId: String!, $languageCode: String!, $format: ImportJobFormat!) {\n exportTranslations(productId: $productId, languageCode: $languageCode, format: $format) {\n format\n url\n }\n }\n";
|
|
9
|
+
function c({ children: c, i18nProductId: l, defaultLocale: u = "en", fallbackTranslations: d, disableDynamicFetch: f = !1 }) {
|
|
10
|
+
let { user: p } = t(), m = p?.id ?? null, h = !f, g = i(async (t) => {
|
|
11
|
+
let n = d?.[t] ?? {};
|
|
12
|
+
if (!h) return n;
|
|
14
13
|
try {
|
|
15
14
|
let i = await e({
|
|
16
15
|
gateway: "global",
|
|
17
|
-
query:
|
|
16
|
+
query: s,
|
|
18
17
|
operationName: "ExportTranslations",
|
|
19
18
|
variables: {
|
|
20
|
-
productId:
|
|
19
|
+
productId: l,
|
|
21
20
|
languageCode: t,
|
|
22
21
|
format: "JSON"
|
|
23
22
|
},
|
|
@@ -33,13 +32,13 @@ function l({ children: l, i18nProductId: u, defaultLocale: d = "en", fallbackTra
|
|
|
33
32
|
return {};
|
|
34
33
|
}
|
|
35
34
|
}, [
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
d,
|
|
36
|
+
l,
|
|
37
|
+
h
|
|
39
38
|
]);
|
|
40
39
|
return /* @__PURE__ */ o(n, {
|
|
41
|
-
defaultLocale:
|
|
42
|
-
translations: a(() =>
|
|
40
|
+
defaultLocale: u,
|
|
41
|
+
translations: a(() => d ?? {
|
|
43
42
|
en: {},
|
|
44
43
|
es: {},
|
|
45
44
|
fr: {},
|
|
@@ -47,13 +46,14 @@ function l({ children: l, i18nProductId: u, defaultLocale: d = "en", fallbackTra
|
|
|
47
46
|
ja: {},
|
|
48
47
|
zh: {},
|
|
49
48
|
ta: {},
|
|
50
|
-
hi: {}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
hi: {},
|
|
50
|
+
ar: {}
|
|
51
|
+
}, [d]),
|
|
52
|
+
fetchTranslations: h ? g : void 0,
|
|
53
|
+
profileId: m,
|
|
54
54
|
showChildrenWhileLoading: !0,
|
|
55
|
-
children:
|
|
55
|
+
children: c
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
|
-
export {
|
|
59
|
+
export { c as ProfileI18nBridge };
|