@burdenoff/fe-libs 2026.1023.7 → 2026.1023.8
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/shared/graphql/client.d.ts +9 -0
- package/dist/shared/graphql/client.js +241 -201
- package/dist/shared/graphql/fetch.js +135 -123
- package/dist/shared/graphql/index.d.ts +1 -0
- package/dist/shared/graphql/workspaceOperationGuard.d.ts +70 -0
- package/dist/shared/graphql/workspaceOperationGuard.js +62 -0
- package/dist/shared/providers/AppShellProvider.d.ts +16 -0
- package/dist/shared/providers/AppShellProvider.js +232 -226
- package/dist/shared/providers/shell/AuthProvider.d.ts +14 -1
- package/dist/shared/providers/shell/AuthProvider.js +105 -94
- package/dist/shared/providers/shell/MultiGatewayProvider.d.ts +8 -1
- package/dist/shared/providers/shell/MultiGatewayProvider.js +115 -119
- package/dist/shared/providers/shell/ProfileStorageManager.js +1 -1
- package/dist/shared/providers/shell/WorkspaceWriteRefusedToastListener.d.ts +4 -0
- package/dist/shared/providers/shell/WorkspaceWriteRefusedToastListener.js +23 -0
- package/dist/shared/providers/shell/authProvider/identityChange.d.ts +26 -0
- package/dist/shared/providers/shell/authProvider/identityChange.js +11 -0
- package/dist/shared/providers/shell/authProvider/useAuthActions.d.ts +4 -1
- package/dist/shared/providers/shell/authProvider/useAuthActions.js +105 -92
- package/dist/shared/providers/shell/authProvider/useBridgeInitialization.d.ts +27 -1
- package/dist/shared/providers/shell/authProvider/useBridgeInitialization.js +82 -62
- package/dist/shared/providers/shell/authProvider/useRemoteSLO.d.ts +4 -1
- package/dist/shared/providers/shell/authProvider/useRemoteSLO.js +16 -14
- package/dist/shared/providers/shell/authProvider/useStorageSync.d.ts +4 -1
- package/dist/shared/providers/shell/authProvider/useStorageSync.js +19 -14
- package/dist/shared/providers/shell/contextSwitchCache.d.ts +4 -0
- package/dist/shared/providers/shell/contextSwitchCache.js +17 -0
- package/dist/shared/providers/shell/identityQueryReset.d.ts +17 -0
- package/dist/shared/providers/shell/identityQueryReset.js +21 -0
- package/dist/shared/providers/shell/identityScopedQueryReset.d.ts +16 -0
- package/dist/shared/providers/shell/identityScopedQueryReset.js +30 -0
- package/dist/shared/providers/shell/index.d.ts +1 -1
- package/dist/shared-graphql.js +11 -10
- package/dist/shared.js +129 -128
- package/package.json +2 -2
|
@@ -2,51 +2,54 @@ import { emitProductSlug as e, legacyProductSlug as t } from "../config/productS
|
|
|
2
2
|
import { isShellLessRoute as n } from "../config/shellRoutes.js";
|
|
3
3
|
import { readActiveContextValueWithUrlPrecedence as r } from "./shell/ActiveContextStorage.js";
|
|
4
4
|
import { BACKEND_ERROR_EVENT as i, CONNECTION_STATUS_EVENT as a, dispatchBackendErrorEvent as o, isBackendErrorDisplay as s, shouldToastBackendError as c } from "../utils/backendErrors.js";
|
|
5
|
-
import { SESSION_EXPIRED_EVENT as l, graphqlFetch as
|
|
6
|
-
import { attemptTokenRefresh as
|
|
7
|
-
import { AppShellContextProvider as
|
|
8
|
-
import { AuthProvider as
|
|
9
|
-
import { ActiveContextProvider as
|
|
10
|
-
import { LogManager as
|
|
11
|
-
import { ConsoleTransport as
|
|
12
|
-
import { ThemeProvider as
|
|
13
|
-
import { AuthTokenProvider as
|
|
14
|
-
import { ErrorFallback as
|
|
15
|
-
import { m as
|
|
16
|
-
import { PWAInstallBanner as
|
|
17
|
-
import { FeatureFlagsProvider as
|
|
18
|
-
import { FeatureFlagProvider as
|
|
19
|
-
import { GlobalUiProvider as
|
|
20
|
-
import { ShellUiProvider as
|
|
21
|
-
import { ContextManagerProvider as
|
|
22
|
-
import { MultiGatewayProvider as
|
|
23
|
-
import { G as
|
|
24
|
-
import { ProfileI18nBridge as
|
|
25
|
-
import { ProfileGeographyBridge as
|
|
26
|
-
import { DesktopUpdateToast as
|
|
27
|
-
import { FLUIDGRIDS_RYBBIT_EVENTS as
|
|
28
|
-
import { DevtoolsSink as
|
|
29
|
-
import { BroadcastChannelSink as
|
|
30
|
-
import { BackendAuditSink as
|
|
31
|
-
import { AnalyticsConsentBanner as
|
|
32
|
-
import { OtelBrowserSink as
|
|
33
|
-
import { EventBusProvider as
|
|
34
|
-
import { useReferralAttribution as
|
|
35
|
-
import { usePushDeviceRegistration as
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
5
|
+
import { SESSION_EXPIRED_EVENT as l, graphqlFetch as ee } from "../graphql/fetch.js";
|
|
6
|
+
import { attemptTokenRefresh as te, clearAuthSessionStorage as ne, getSharedTokenRefreshRefs as u, isAuthNetworkError as d } from "../utils/authErrorHandling.js";
|
|
7
|
+
import { AppShellContextProvider as f } from "./shell/AppShellContext.js";
|
|
8
|
+
import { AuthProvider as p } from "./shell/AuthProvider.js";
|
|
9
|
+
import { ActiveContextProvider as m } from "./shell/ActiveContextProvider.js";
|
|
10
|
+
import { LogManager as re } from "../logger/LogManager.js";
|
|
11
|
+
import { ConsoleTransport as ie } from "../logger/ConsoleTransport.js";
|
|
12
|
+
import { ThemeProvider as h } from "./shell/ThemeProvider.js";
|
|
13
|
+
import { AuthTokenProvider as ae } from "./shell/AuthTokenProvider.js";
|
|
14
|
+
import { ErrorFallback as oe } from "../components/ErrorFallback.js";
|
|
15
|
+
import { m as g } from "../../node_modules/react-error-boundary/dist/react-error-boundary.js";
|
|
16
|
+
import { PWAInstallBanner as _ } from "../components/PWAInstallBanner.js";
|
|
17
|
+
import { FeatureFlagsProvider as v } from "./shell/FeatureFlagsProvider.js";
|
|
18
|
+
import { FeatureFlagProvider as se } from "../feature-flags/FeatureFlagProvider.js";
|
|
19
|
+
import { GlobalUiProvider as y } from "./shell/GlobalUiProvider.js";
|
|
20
|
+
import { ShellUiProvider as b } from "./shell/ShellUiProvider.js";
|
|
21
|
+
import { ContextManagerProvider as ce } from "./shell/ContextManagerProvider.js";
|
|
22
|
+
import { MultiGatewayProvider as le } from "./shell/MultiGatewayProvider.js";
|
|
23
|
+
import { G as x, Q as ue, j as de, w as fe } from "../../node_modules/web-vitals/dist/web-vitals.js";
|
|
24
|
+
import { ProfileI18nBridge as pe } from "./shell/ProfileI18nBridge.js";
|
|
25
|
+
import { ProfileGeographyBridge as me } from "./shell/ProfileGeographyBridge.js";
|
|
26
|
+
import { DesktopUpdateToast as he } from "../components/DesktopUpdateToast.js";
|
|
27
|
+
import { FLUIDGRIDS_RYBBIT_EVENTS as S } from "../events/fluidgrids.js";
|
|
28
|
+
import { DevtoolsSink as C } from "../events/sinks/DevtoolsSink.js";
|
|
29
|
+
import { BroadcastChannelSink as w } from "../events/sinks/BroadcastChannelSink.js";
|
|
30
|
+
import { BackendAuditSink as T } from "../events/sinks/BackendAuditSink.js";
|
|
31
|
+
import { AnalyticsConsentBanner as E, DEFAULT_RYBBIT_ALLOWLIST as D, RybbitSink as O } from "../events/sinks/RybbitSink.js";
|
|
32
|
+
import { OtelBrowserSink as k } from "../events/sinks/OtelBrowserSink.js";
|
|
33
|
+
import { EventBusProvider as ge, useEventBus as A } from "../../shared-events.js";
|
|
34
|
+
import { useReferralAttribution as j } from "../hooks/useReferralAttribution.js";
|
|
35
|
+
import { usePushDeviceRegistration as M } from "../hooks/usePushDeviceRegistration.js";
|
|
36
|
+
import { useIdentityQueryReset as _e } from "./shell/identityQueryReset.js";
|
|
37
|
+
import { IdentityScopedQueryReset as ve } from "./shell/identityScopedQueryReset.js";
|
|
38
|
+
import { WorkspaceWriteRefusedToastListener as N } from "./shell/WorkspaceWriteRefusedToastListener.js";
|
|
39
|
+
import { TourPermissionsBoundary as P } from "../tours/TourPermissionsBoundary.js";
|
|
40
|
+
import { resolveBrowserDirectionMode as ye } from "./shell/directionMode.js";
|
|
41
|
+
import { TourPlayerProvider as F } from "../tours/TourPlayerProvider.js";
|
|
42
|
+
import { ToursProvider as I, useToursContext as L } from "../tours/ToursContext.js";
|
|
43
|
+
import { TourInitializer as R } from "../tours/TourInitializer.js";
|
|
44
|
+
import { setAssistantProductId as be } from "../assistant/productContext.js";
|
|
45
|
+
import { useRegisterTourRouteCatalog as xe } from "../tours/useTourRouteCatalog.js";
|
|
46
|
+
import { Suspense as z, useCallback as B, useEffect as V, useMemo as H, useRef as U, useState as Se } from "react";
|
|
47
|
+
import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
|
|
48
|
+
import { BrowserRouter as Ce, useLocation as q } from "react-router";
|
|
49
|
+
import { Toaster as J, toast as Y } from "sonner";
|
|
50
|
+
import { MutationCache as we, QueryCache as Te, QueryClient as Ee, QueryClientProvider as De } from "@tanstack/react-query";
|
|
48
51
|
//#region src/shared/providers/AppShellProvider.tsx
|
|
49
|
-
var
|
|
52
|
+
var X = {
|
|
50
53
|
artistrybase: { prod: "cfbecacb6002" },
|
|
51
54
|
atheletebridge: { prod: "c34c6ead7aa8" },
|
|
52
55
|
adaptercloud: {},
|
|
@@ -72,7 +75,7 @@ var Q = {
|
|
|
72
75
|
subscriberbot: {},
|
|
73
76
|
intelwatchtower: {},
|
|
74
77
|
kadaikodi: {}
|
|
75
|
-
},
|
|
78
|
+
}, Oe = [
|
|
76
79
|
"nav.route.changed",
|
|
77
80
|
"auth.signed_in",
|
|
78
81
|
"auth.signed_out",
|
|
@@ -115,7 +118,7 @@ var Q = {
|
|
|
115
118
|
"coolandlovely.wardrobe.item_added",
|
|
116
119
|
"coolandlovely.search.performed",
|
|
117
120
|
"vibecontrols.agent.registered",
|
|
118
|
-
...
|
|
121
|
+
...S,
|
|
119
122
|
"atheletebridge.page.viewed",
|
|
120
123
|
"atheletebridge.team.created",
|
|
121
124
|
"atheletebridge.fixture.created",
|
|
@@ -319,7 +322,7 @@ var Q = {
|
|
|
319
322
|
"project.created",
|
|
320
323
|
"workspace-member.added",
|
|
321
324
|
"project-member.added"
|
|
322
|
-
],
|
|
325
|
+
], ke = {
|
|
323
326
|
"--success-bg": "var(--color-status-success-bgSubtle)",
|
|
324
327
|
"--success-border": "var(--color-status-success-border)",
|
|
325
328
|
"--success-text": "var(--color-status-success-text)",
|
|
@@ -332,8 +335,8 @@ var Q = {
|
|
|
332
335
|
"--error-bg": "var(--color-status-error-bgSubtle)",
|
|
333
336
|
"--error-border": "var(--color-status-error-border)",
|
|
334
337
|
"--error-text": "var(--color-status-error-text)"
|
|
335
|
-
},
|
|
336
|
-
function
|
|
338
|
+
}, Ae = 4e3;
|
|
339
|
+
function je(e) {
|
|
337
340
|
let t = e.technicalMessage ?? e.extensions?.technicalMessage, n = {
|
|
338
341
|
code: e.code,
|
|
339
342
|
operationName: e.operationName,
|
|
@@ -345,13 +348,13 @@ function Ee(e) {
|
|
|
345
348
|
};
|
|
346
349
|
console.error("[Burdenoff backend error]", e.message, n);
|
|
347
350
|
}
|
|
348
|
-
function
|
|
351
|
+
function Z(e) {
|
|
349
352
|
return e === "prod" || e === "production" ? "prod" : e === "alpha" || e === "staging" ? "alpha" : "dev";
|
|
350
353
|
}
|
|
351
|
-
function
|
|
354
|
+
function Q(e, t) {
|
|
352
355
|
return e.VITE_DISABLE_ANALYTICS === "true" ? !1 : e.VITE_ENABLE_ANALYTICS === "true" || e.PROD || t !== "dev" ? !0 : e.VITE_ENABLE_ANALYTICS !== "false";
|
|
353
356
|
}
|
|
354
|
-
function
|
|
357
|
+
function Me() {
|
|
355
358
|
return {
|
|
356
359
|
BASE_URL: "/",
|
|
357
360
|
DEV: !1,
|
|
@@ -360,9 +363,9 @@ function ke() {
|
|
|
360
363
|
SSR: !1
|
|
361
364
|
};
|
|
362
365
|
}
|
|
363
|
-
function
|
|
366
|
+
function Ne(e, t) {
|
|
364
367
|
if (!t || t.length === 0 || !e.rybbit) return e;
|
|
365
|
-
let n = e.rybbit.allowlist ??
|
|
368
|
+
let n = e.rybbit.allowlist ?? D, r = [...new Set([...n, ...t])];
|
|
366
369
|
return {
|
|
367
370
|
...e,
|
|
368
371
|
rybbit: {
|
|
@@ -371,8 +374,8 @@ function Ae(e, t) {
|
|
|
371
374
|
}
|
|
372
375
|
};
|
|
373
376
|
}
|
|
374
|
-
function
|
|
375
|
-
let r =
|
|
377
|
+
function Pe(e, n) {
|
|
378
|
+
let r = Z(n.VITE_DEPLOY_ENV ?? n.MODE), i = Q(n, r), a = X[e] ?? X[t(e)], o = r === "prod" ? a?.prod : a?.nonProd, s = n.VITE_RYBBIT_SITE_ID || o, c = n.VITE_BACKEND_AUDIT_ENDPOINT || (n.PROD ? "/api/fe-events" : void 0);
|
|
376
379
|
return {
|
|
377
380
|
enabled: i,
|
|
378
381
|
appVersion: n.VITE_APP_VERSION || "0.0.0",
|
|
@@ -383,7 +386,7 @@ function je(e, n) {
|
|
|
383
386
|
enabled: i && !!s,
|
|
384
387
|
siteId: s,
|
|
385
388
|
scriptUrl: n.VITE_RYBBIT_SCRIPT_URL,
|
|
386
|
-
allowlist:
|
|
389
|
+
allowlist: Oe,
|
|
387
390
|
identifyOn: "auth.signed_in",
|
|
388
391
|
rename: { "nav.route.changed": "pageview" }
|
|
389
392
|
},
|
|
@@ -398,17 +401,17 @@ function je(e, n) {
|
|
|
398
401
|
}
|
|
399
402
|
};
|
|
400
403
|
}
|
|
401
|
-
function
|
|
402
|
-
let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } =
|
|
403
|
-
return /* @__PURE__ */
|
|
404
|
+
function Fe({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
|
|
405
|
+
let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } = L(), l = B((e, t) => e.steps?.[t], []);
|
|
406
|
+
return /* @__PURE__ */ K(F, {
|
|
404
407
|
scopeKey: c,
|
|
405
|
-
onTourStart:
|
|
408
|
+
onTourStart: B((e) => {
|
|
406
409
|
a(e.id, "started"), s("TOUR_STARTED", e.id);
|
|
407
410
|
}, [s, a]),
|
|
408
|
-
onTourComplete:
|
|
411
|
+
onTourComplete: B((e) => {
|
|
409
412
|
a(e.id, "completed"), s("TOUR_COMPLETED", e.id);
|
|
410
413
|
}, [s, a]),
|
|
411
|
-
onTourSkip:
|
|
414
|
+
onTourSkip: B((e, t) => {
|
|
412
415
|
let n = l(e, t);
|
|
413
416
|
a(e.id, "skipped"), s("TOUR_SKIPPED", e.id, {
|
|
414
417
|
stepId: n?.id,
|
|
@@ -419,14 +422,14 @@ function Me({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
419
422
|
s,
|
|
420
423
|
a
|
|
421
424
|
]),
|
|
422
|
-
onStepChange:
|
|
425
|
+
onStepChange: B((e, t) => {
|
|
423
426
|
let n = l(e, t);
|
|
424
427
|
n && s("STEP_VIEWED", e.id, {
|
|
425
428
|
stepId: n.id,
|
|
426
429
|
stepOrder: n.stepOrder
|
|
427
430
|
});
|
|
428
431
|
}, [l, s]),
|
|
429
|
-
onStepComplete:
|
|
432
|
+
onStepComplete: B((e, t) => {
|
|
430
433
|
let n = l(e, t);
|
|
431
434
|
n && (o(e.id, n.id), s("STEP_COMPLETED", e.id, {
|
|
432
435
|
stepId: n.id,
|
|
@@ -438,20 +441,21 @@ function Me({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
438
441
|
s
|
|
439
442
|
]),
|
|
440
443
|
children: [
|
|
441
|
-
/* @__PURE__ */
|
|
444
|
+
/* @__PURE__ */ G(R, {}),
|
|
442
445
|
e,
|
|
443
|
-
/* @__PURE__ */
|
|
444
|
-
/* @__PURE__ */
|
|
445
|
-
/* @__PURE__ */
|
|
446
|
+
/* @__PURE__ */ G(Ie, {}),
|
|
447
|
+
/* @__PURE__ */ G(N, {}),
|
|
448
|
+
/* @__PURE__ */ G(Re, {}),
|
|
449
|
+
/* @__PURE__ */ G(J, {
|
|
446
450
|
position: n,
|
|
447
451
|
richColors: !0,
|
|
448
452
|
closeButton: !0,
|
|
449
|
-
style:
|
|
453
|
+
style: ke
|
|
450
454
|
}),
|
|
451
|
-
/* @__PURE__ */
|
|
452
|
-
t && /* @__PURE__ */
|
|
455
|
+
/* @__PURE__ */ G(he, {}),
|
|
456
|
+
t && /* @__PURE__ */ G(z, {
|
|
453
457
|
fallback: null,
|
|
454
|
-
children: /* @__PURE__ */
|
|
458
|
+
children: /* @__PURE__ */ G(_, {
|
|
455
459
|
productName: r,
|
|
456
460
|
brandInitial: i
|
|
457
461
|
})
|
|
@@ -459,44 +463,44 @@ function Me({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
459
463
|
]
|
|
460
464
|
});
|
|
461
465
|
}
|
|
462
|
-
function
|
|
463
|
-
let e =
|
|
464
|
-
return
|
|
466
|
+
function Ie() {
|
|
467
|
+
let e = U(null);
|
|
468
|
+
return V(() => {
|
|
465
469
|
let t = (t) => {
|
|
466
470
|
let n = t instanceof CustomEvent && s(t.detail) ? t.detail : null;
|
|
467
471
|
if (!c(n)) return;
|
|
468
|
-
|
|
472
|
+
je(n);
|
|
469
473
|
let r = `${n.code ?? ""}|${n.message}`, i = Date.now(), a = e.current;
|
|
470
|
-
a?.key === r && i - a.shownAt <
|
|
474
|
+
a?.key === r && i - a.shownAt < Ae || (e.current = {
|
|
471
475
|
key: r,
|
|
472
476
|
shownAt: i
|
|
473
|
-
},
|
|
477
|
+
}, Y.error(n.message, { duration: 7e3 }));
|
|
474
478
|
};
|
|
475
479
|
return window.addEventListener(i, t), () => window.removeEventListener(i, t);
|
|
476
480
|
}, []), null;
|
|
477
481
|
}
|
|
478
|
-
var $ = "burdenoff-connection-status",
|
|
479
|
-
function
|
|
480
|
-
let e =
|
|
481
|
-
return
|
|
482
|
+
var $ = "burdenoff-connection-status", Le = 1500;
|
|
483
|
+
function Re() {
|
|
484
|
+
let e = U(null), t = U(!1);
|
|
485
|
+
return V(() => {
|
|
482
486
|
let n = () => {
|
|
483
|
-
t.current || (t.current = !0,
|
|
487
|
+
t.current || (t.current = !0, Y.error("Connection lost. Trying to reconnect…", {
|
|
484
488
|
id: $,
|
|
485
489
|
duration: Infinity
|
|
486
490
|
}));
|
|
487
491
|
}, r = () => {
|
|
488
492
|
t.current || e.current || (e.current = setTimeout(() => {
|
|
489
493
|
e.current = null, n();
|
|
490
|
-
},
|
|
494
|
+
}, Le));
|
|
491
495
|
}, i = (n) => {
|
|
492
496
|
if (e.current &&= (clearTimeout(e.current), null), !t.current) {
|
|
493
|
-
|
|
497
|
+
Y.dismiss($);
|
|
494
498
|
return;
|
|
495
499
|
}
|
|
496
|
-
t.current = !1, n ?
|
|
500
|
+
t.current = !1, n ? Y.success("Back online", {
|
|
497
501
|
id: $,
|
|
498
502
|
duration: 2500
|
|
499
|
-
}) :
|
|
503
|
+
}) : Y.dismiss($);
|
|
500
504
|
}, o = (e) => {
|
|
501
505
|
if (!(e instanceof CustomEvent)) return;
|
|
502
506
|
let t = e.detail;
|
|
@@ -509,42 +513,42 @@ function Fe() {
|
|
|
509
513
|
};
|
|
510
514
|
}, []), null;
|
|
511
515
|
}
|
|
512
|
-
function
|
|
513
|
-
return
|
|
516
|
+
function ze() {
|
|
517
|
+
return M(), null;
|
|
514
518
|
}
|
|
515
|
-
function
|
|
516
|
-
let
|
|
517
|
-
|
|
518
|
-
let
|
|
519
|
-
return /* @__PURE__ */
|
|
519
|
+
function Be({ children: e, i18nProductId: t, platformI18nProductId: n, directionMode: r, fallbackTranslations: i, defaultBrand: a, defaultMode: o, defaultDensity: s, defaultTypography: c, defaultGlass: l, productName: ee, brandInitial: te, enablePWA: ne, toasterPosition: u, tourPageIdFromPath: d, enableWorkspaceTourPermissions: f }) {
|
|
520
|
+
let p = q();
|
|
521
|
+
j();
|
|
522
|
+
let m = p.pathname.startsWith("/devportal") || p.pathname.startsWith("/organizations") || p.pathname.startsWith("/workspaces");
|
|
523
|
+
return /* @__PURE__ */ K(h, {
|
|
520
524
|
defaultBrand: a,
|
|
521
525
|
defaultMode: o,
|
|
522
526
|
defaultDensity: s,
|
|
523
527
|
defaultTypography: c,
|
|
524
528
|
defaultGlass: l,
|
|
525
|
-
children: [/* @__PURE__ */
|
|
529
|
+
children: [/* @__PURE__ */ G(Ve, {}), /* @__PURE__ */ G(pe, {
|
|
526
530
|
i18nProductId: t,
|
|
527
531
|
platformI18nProductId: n,
|
|
528
532
|
directionMode: r,
|
|
529
533
|
fallbackTranslations: i,
|
|
530
|
-
children: /* @__PURE__ */
|
|
534
|
+
children: /* @__PURE__ */ G(me, { children: /* @__PURE__ */ G(v, { children: /* @__PURE__ */ G(se, {
|
|
531
535
|
workspaceId: null,
|
|
532
536
|
gateway: "global",
|
|
533
537
|
defaultEnabled: !0,
|
|
534
|
-
children: /* @__PURE__ */
|
|
538
|
+
children: /* @__PURE__ */ G(y, { children: /* @__PURE__ */ G(b, { children: /* @__PURE__ */ G(g, {
|
|
535
539
|
fallback: null,
|
|
536
|
-
children: /* @__PURE__ */
|
|
537
|
-
enabled:
|
|
538
|
-
children: /* @__PURE__ */
|
|
539
|
-
requireWorkspace:
|
|
540
|
-
disabled:
|
|
541
|
-
getPageIdFromPath:
|
|
542
|
-
children: /* @__PURE__ */
|
|
543
|
-
enablePWA:
|
|
544
|
-
toasterPosition:
|
|
545
|
-
productName:
|
|
546
|
-
brandInitial:
|
|
547
|
-
children: [/* @__PURE__ */
|
|
540
|
+
children: /* @__PURE__ */ G(P, {
|
|
541
|
+
enabled: f && !m,
|
|
542
|
+
children: /* @__PURE__ */ G(I, {
|
|
543
|
+
requireWorkspace: f,
|
|
544
|
+
disabled: m,
|
|
545
|
+
getPageIdFromPath: d,
|
|
546
|
+
children: /* @__PURE__ */ K(Fe, {
|
|
547
|
+
enablePWA: ne,
|
|
548
|
+
toasterPosition: u,
|
|
549
|
+
productName: ee,
|
|
550
|
+
brandInitial: te,
|
|
551
|
+
children: [/* @__PURE__ */ G(ze, {}), e]
|
|
548
552
|
})
|
|
549
553
|
})
|
|
550
554
|
})
|
|
@@ -553,9 +557,9 @@ function Le({ children: e, i18nProductId: t, platformI18nProductId: n, direction
|
|
|
553
557
|
})]
|
|
554
558
|
});
|
|
555
559
|
}
|
|
556
|
-
function
|
|
557
|
-
let e =
|
|
558
|
-
return
|
|
560
|
+
function Ve() {
|
|
561
|
+
let e = q();
|
|
562
|
+
return V(() => {
|
|
559
563
|
e.hash || requestAnimationFrame(() => {
|
|
560
564
|
window.scrollTo({
|
|
561
565
|
top: 0,
|
|
@@ -573,7 +577,7 @@ function Re() {
|
|
|
573
577
|
e.hash
|
|
574
578
|
]), null;
|
|
575
579
|
}
|
|
576
|
-
function
|
|
580
|
+
function He(e) {
|
|
577
581
|
if (e instanceof Error) return e.message;
|
|
578
582
|
if (typeof e == "string") return e;
|
|
579
583
|
try {
|
|
@@ -582,9 +586,9 @@ function ze(e) {
|
|
|
582
586
|
return String(e);
|
|
583
587
|
}
|
|
584
588
|
}
|
|
585
|
-
function
|
|
586
|
-
let e =
|
|
587
|
-
return
|
|
589
|
+
function Ue() {
|
|
590
|
+
let e = A(), t = q(), n = U(void 0), r = U(void 0), i = U(null);
|
|
591
|
+
return V(() => {
|
|
588
592
|
let a = `${t.pathname}${t.search}${t.hash}`;
|
|
589
593
|
if (r.current !== a) return i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
590
594
|
i.current = null;
|
|
@@ -604,7 +608,7 @@ function Be() {
|
|
|
604
608
|
t.hash,
|
|
605
609
|
t.pathname,
|
|
606
610
|
t.search
|
|
607
|
-
]),
|
|
611
|
+
]), V(() => {
|
|
608
612
|
let t = (t) => {
|
|
609
613
|
e.emit("error.runtime.caught", {
|
|
610
614
|
message: t.message || "Runtime error",
|
|
@@ -614,34 +618,34 @@ function Be() {
|
|
|
614
618
|
errorName: t.error instanceof Error ? t.error.name : void 0
|
|
615
619
|
});
|
|
616
620
|
}, n = (t) => {
|
|
617
|
-
e.emit("error.unhandledrejection", { reason:
|
|
621
|
+
e.emit("error.unhandledrejection", { reason: He(t.reason) });
|
|
618
622
|
};
|
|
619
623
|
return window.addEventListener("error", t), window.addEventListener("unhandledrejection", n), () => {
|
|
620
624
|
window.removeEventListener("error", t), window.removeEventListener("unhandledrejection", n);
|
|
621
625
|
};
|
|
622
|
-
}, [e]),
|
|
623
|
-
|
|
626
|
+
}, [e]), V(() => {
|
|
627
|
+
x((t) => {
|
|
624
628
|
e.emit("perf.lcp.measured", {
|
|
625
629
|
metric: "LCP",
|
|
626
630
|
value: t.value,
|
|
627
631
|
id: t.id,
|
|
628
632
|
rating: t.rating
|
|
629
633
|
});
|
|
630
|
-
}),
|
|
634
|
+
}), fe((t) => {
|
|
631
635
|
e.emit("perf.cls.measured", {
|
|
632
636
|
metric: "CLS",
|
|
633
637
|
value: t.value,
|
|
634
638
|
id: t.id,
|
|
635
639
|
rating: t.rating
|
|
636
640
|
});
|
|
637
|
-
}),
|
|
641
|
+
}), de((t) => {
|
|
638
642
|
e.emit("perf.inp.measured", {
|
|
639
643
|
metric: "INP",
|
|
640
644
|
value: t.value,
|
|
641
645
|
id: t.id,
|
|
642
646
|
rating: t.rating
|
|
643
647
|
});
|
|
644
|
-
}),
|
|
648
|
+
}), ue((t) => {
|
|
645
649
|
e.emit("perf.ttfb.measured", {
|
|
646
650
|
metric: "TTFB",
|
|
647
651
|
value: t.value,
|
|
@@ -651,16 +655,16 @@ function Be() {
|
|
|
651
655
|
});
|
|
652
656
|
}, [e]), null;
|
|
653
657
|
}
|
|
654
|
-
function
|
|
655
|
-
let { pathname: o } =
|
|
656
|
-
return /* @__PURE__ */
|
|
657
|
-
/* @__PURE__ */
|
|
658
|
-
r && !s ? /* @__PURE__ */
|
|
659
|
-
e.enabled === !1 ? null : /* @__PURE__ */
|
|
660
|
-
e.devtools ? /* @__PURE__ */
|
|
661
|
-
e.broadcast === !1 ? null : /* @__PURE__ */
|
|
662
|
-
e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */
|
|
663
|
-
e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */
|
|
658
|
+
function We({ config: e, productSlug: t, privacyConsent: r, consentRouteDenylist: i, rybbitSkipRoutes: a }) {
|
|
659
|
+
let { pathname: o } = q(), s = n(o) || i?.(o) === !0;
|
|
660
|
+
return /* @__PURE__ */ K(W, { children: [
|
|
661
|
+
/* @__PURE__ */ G(Ue, {}),
|
|
662
|
+
r && !s ? /* @__PURE__ */ G(E, { productName: t }) : null,
|
|
663
|
+
e.enabled === !1 ? null : /* @__PURE__ */ K(W, { children: [
|
|
664
|
+
e.devtools ? /* @__PURE__ */ G(C, { enabled: !0 }) : null,
|
|
665
|
+
e.broadcast === !1 ? null : /* @__PURE__ */ G(w, {}),
|
|
666
|
+
e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ G(T, { endpoint: e.backendAudit.endpoint }) : null,
|
|
667
|
+
e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ G(O, {
|
|
664
668
|
siteId: e.rybbit.siteId,
|
|
665
669
|
scriptUrl: e.rybbit.scriptUrl,
|
|
666
670
|
allowlist: e.rybbit.allowlist,
|
|
@@ -669,7 +673,7 @@ function Ve({ config: e, productSlug: t, privacyConsent: r, consentRouteDenylist
|
|
|
669
673
|
skipRoutes: a,
|
|
670
674
|
pathname: o
|
|
671
675
|
}) : null,
|
|
672
|
-
e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */
|
|
676
|
+
e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ G(k, {
|
|
673
677
|
endpoint: e.otel.endpoint,
|
|
674
678
|
serviceName: e.otel.serviceName ?? `${t}-app`,
|
|
675
679
|
flushInterval: e.otel.flushInterval
|
|
@@ -677,29 +681,29 @@ function Ve({ config: e, productSlug: t, privacyConsent: r, consentRouteDenylist
|
|
|
677
681
|
] })
|
|
678
682
|
] });
|
|
679
683
|
}
|
|
680
|
-
function
|
|
681
|
-
let { productName: s, productSlug: c = s.toLowerCase().replace(/\s+/g, ""), tagline:
|
|
682
|
-
|
|
683
|
-
let [
|
|
684
|
-
enabled:
|
|
685
|
-
allowPreview:
|
|
686
|
-
})),
|
|
687
|
-
|
|
684
|
+
function Ge({ config: t, children: i, clearAuthStore: a }) {
|
|
685
|
+
let { productName: s, productSlug: c = s.toLowerCase().replace(/\s+/g, ""), tagline: h = "", domain: _, i18nProductId: v, platformI18nProductId: se, rtl: y, gatewayUrls: b, authBridge: x, defaultBrand: ue = "default", defaultMode: de, defaultDensity: fe, defaultTypography: pe, defaultGlass: me, enablePWA: he = !0, brandInitial: S = s.charAt(0), defaultGateway: C = "workspace", enableSubscriptions: w = !0, fallbackTranslations: T, queryClientOptions: E, toasterPosition: D = "bottom-right", observability: O, privacyConsent: k = !1, consentRouteDenylist: A, rybbitEvents: j, rybbitSkipRoutes: M, tourPageIdFromPath: N, tourRouteCatalog: P, enableWorkspaceTourPermissions: F = !1, workspaceOperationGuard: I = "off" } = t;
|
|
686
|
+
xe(c, P), V(() => be(e(c)), [c]);
|
|
687
|
+
let [L] = Se(() => ye({
|
|
688
|
+
enabled: y?.enabled,
|
|
689
|
+
allowPreview: y?.preview
|
|
690
|
+
})), R = H(() => Ne(O ?? Pe(c, Me()), j), [
|
|
691
|
+
O,
|
|
688
692
|
c,
|
|
689
|
-
|
|
690
|
-
]),
|
|
693
|
+
j
|
|
694
|
+
]), z = H(() => ({
|
|
691
695
|
productName: s,
|
|
692
696
|
productSlug: c,
|
|
693
|
-
brandInitial:
|
|
694
|
-
tagline:
|
|
695
|
-
domain:
|
|
697
|
+
brandInitial: S,
|
|
698
|
+
tagline: h,
|
|
699
|
+
domain: _
|
|
696
700
|
}), [
|
|
697
701
|
s,
|
|
698
702
|
c,
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
]),
|
|
703
|
+
S,
|
|
704
|
+
h,
|
|
705
|
+
_
|
|
706
|
+
]), W = U(!1), q = U(!!x?.url), J = B((e) => {
|
|
703
707
|
if (!e?.force && (() => {
|
|
704
708
|
try {
|
|
705
709
|
let e = sessionStorage.getItem("bf-active-profile");
|
|
@@ -709,25 +713,25 @@ function He({ config: t, children: i, clearAuthStore: a }) {
|
|
|
709
713
|
} catch {
|
|
710
714
|
return !1;
|
|
711
715
|
}
|
|
712
|
-
})() ||
|
|
713
|
-
|
|
716
|
+
})() || q.current || W.current) return;
|
|
717
|
+
W.current = !0, ne(a);
|
|
714
718
|
let t = `${window.location.pathname}${window.location.search}`, r = `/auth/login?reason=session-expired&returnTo=${encodeURIComponent(t)}`, i = /^\/vibecontrols\/(share|deck)\//.test(window.location.pathname);
|
|
715
719
|
if (window.location.pathname.startsWith("/auth/") || n(window.location.pathname) || i) {
|
|
716
|
-
|
|
720
|
+
W.current = !1;
|
|
717
721
|
return;
|
|
718
722
|
}
|
|
719
723
|
window.location.replace(r);
|
|
720
|
-
}, [a]),
|
|
721
|
-
globalBaseUrl:
|
|
722
|
-
...
|
|
723
|
-
}), [
|
|
724
|
-
window.location.pathname.startsWith("/auth/") || await
|
|
725
|
-
}, [
|
|
726
|
-
|
|
727
|
-
}, [
|
|
728
|
-
let t = await
|
|
724
|
+
}, [a]), Y = H(() => ({
|
|
725
|
+
globalBaseUrl: b.globalBaseUrl,
|
|
726
|
+
...u()
|
|
727
|
+
}), [b.globalBaseUrl]), X = B(async () => te(Y), [Y]), Oe = B(async () => {
|
|
728
|
+
window.location.pathname.startsWith("/auth/") || await X() || J({ force: !0 });
|
|
729
|
+
}, [X, J]), ke = B(async (e) => {
|
|
730
|
+
d(e) ? await X() || J({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
|
|
731
|
+
}, [X, J]), Ae = B(async (e) => {
|
|
732
|
+
let t = await ee({
|
|
729
733
|
gateway: "global",
|
|
730
|
-
baseUrl:
|
|
734
|
+
baseUrl: b.globalBaseUrl,
|
|
731
735
|
authToken: "",
|
|
732
736
|
query: "mutation RefreshToken($token: String!) {\n refreshToken(token: $token) {\n accessToken\n refreshToken\n expiresIn\n }\n }",
|
|
733
737
|
variables: { token: e }
|
|
@@ -739,12 +743,12 @@ function He({ config: t, children: i, clearAuthStore: a }) {
|
|
|
739
743
|
refreshToken: n.refreshToken,
|
|
740
744
|
expiresAt: n.expiresIn ? Date.now() + n.expiresIn * 1e3 : void 0
|
|
741
745
|
};
|
|
742
|
-
}, [
|
|
743
|
-
let e = new
|
|
744
|
-
queryCache: new
|
|
746
|
+
}, [b.globalBaseUrl]), je = B(() => r("organization"), []), Z = H(() => {
|
|
747
|
+
let e = new Ee({
|
|
748
|
+
queryCache: new Te({ onError: (e) => {
|
|
745
749
|
o(e);
|
|
746
750
|
} }),
|
|
747
|
-
mutationCache: new
|
|
751
|
+
mutationCache: new we({
|
|
748
752
|
onSuccess: () => {
|
|
749
753
|
e.invalidateQueries();
|
|
750
754
|
},
|
|
@@ -753,85 +757,87 @@ function He({ config: t, children: i, clearAuthStore: a }) {
|
|
|
753
757
|
}
|
|
754
758
|
}),
|
|
755
759
|
defaultOptions: { queries: {
|
|
756
|
-
staleTime:
|
|
757
|
-
retry:
|
|
758
|
-
refetchOnWindowFocus:
|
|
760
|
+
staleTime: E?.staleTime ?? 300 * 1e3,
|
|
761
|
+
retry: E?.retry ?? 2,
|
|
762
|
+
refetchOnWindowFocus: E?.refetchOnWindowFocus ?? !1
|
|
759
763
|
} }
|
|
760
764
|
});
|
|
761
765
|
return e;
|
|
762
|
-
}, [
|
|
763
|
-
return
|
|
766
|
+
}, [E]), Q = _e(Z);
|
|
767
|
+
return V(() => {
|
|
764
768
|
let e = () => {
|
|
765
|
-
|
|
769
|
+
J({ force: !0 });
|
|
766
770
|
};
|
|
767
771
|
return window.addEventListener(l, e), () => {
|
|
768
772
|
window.removeEventListener(l, e);
|
|
769
773
|
};
|
|
770
|
-
}, [
|
|
771
|
-
let e =
|
|
772
|
-
e.getLogger("shell") || e.getLogger("shell").addTransport(new
|
|
773
|
-
}, []), /* @__PURE__ */
|
|
774
|
-
value:
|
|
775
|
-
children: /* @__PURE__ */
|
|
774
|
+
}, [J]), V(() => {
|
|
775
|
+
let e = re.getInstance();
|
|
776
|
+
e.getLogger("shell") || e.getLogger("shell").addTransport(new ie());
|
|
777
|
+
}, []), /* @__PURE__ */ G(f, {
|
|
778
|
+
value: z,
|
|
779
|
+
children: /* @__PURE__ */ G(ge, {
|
|
776
780
|
appName: c,
|
|
777
|
-
appVersion:
|
|
778
|
-
appEnv:
|
|
781
|
+
appVersion: R.appVersion,
|
|
782
|
+
appEnv: R.appEnv,
|
|
779
783
|
sourceMfe: c,
|
|
780
|
-
children: /* @__PURE__ */
|
|
781
|
-
FallbackComponent:
|
|
782
|
-
children: /* @__PURE__ */
|
|
783
|
-
config:
|
|
784
|
+
children: /* @__PURE__ */ G(g, {
|
|
785
|
+
FallbackComponent: oe,
|
|
786
|
+
children: /* @__PURE__ */ K(Ce, { children: [/* @__PURE__ */ G(We, {
|
|
787
|
+
config: R,
|
|
784
788
|
productSlug: c,
|
|
785
|
-
privacyConsent:
|
|
786
|
-
consentRouteDenylist:
|
|
787
|
-
rybbitSkipRoutes:
|
|
788
|
-
}), /* @__PURE__ */
|
|
789
|
-
client:
|
|
790
|
-
children: /* @__PURE__ */
|
|
791
|
-
workspaceBaseUrl:
|
|
792
|
-
globalBaseUrl:
|
|
793
|
-
organizationId:
|
|
789
|
+
privacyConsent: k,
|
|
790
|
+
consentRouteDenylist: A,
|
|
791
|
+
rybbitSkipRoutes: M
|
|
792
|
+
}), /* @__PURE__ */ G(De, {
|
|
793
|
+
client: Z,
|
|
794
|
+
children: /* @__PURE__ */ G(ae, { children: /* @__PURE__ */ G(le, {
|
|
795
|
+
workspaceBaseUrl: b.workspaceBaseUrl,
|
|
796
|
+
globalBaseUrl: b.globalBaseUrl,
|
|
797
|
+
organizationId: je,
|
|
794
798
|
productSlug: c,
|
|
795
|
-
defaultGateway:
|
|
796
|
-
enableSubscriptions:
|
|
797
|
-
onAuthError:
|
|
798
|
-
onNetworkError:
|
|
799
|
-
onRefreshToken:
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
799
|
+
defaultGateway: C,
|
|
800
|
+
enableSubscriptions: w,
|
|
801
|
+
onAuthError: Oe,
|
|
802
|
+
onNetworkError: ke,
|
|
803
|
+
onRefreshToken: X,
|
|
804
|
+
workspaceOperationGuard: I,
|
|
805
|
+
children: /* @__PURE__ */ K(p, {
|
|
806
|
+
bridgeUrl: x?.url,
|
|
807
|
+
bridgeAllowedOrigins: x?.allowedOrigins,
|
|
808
|
+
bridgeDebug: x?.debug,
|
|
809
|
+
onRefreshToken: Ae,
|
|
805
810
|
onBridgeReady: () => {
|
|
806
|
-
|
|
811
|
+
q.current = !1;
|
|
807
812
|
},
|
|
808
813
|
onSessionExpiringSoon: () => {
|
|
809
814
|
console.warn("[Auth] Session will expire in 5 minutes");
|
|
810
815
|
},
|
|
811
816
|
onTokenExpired: () => {
|
|
812
|
-
|
|
817
|
+
J();
|
|
813
818
|
},
|
|
814
|
-
|
|
819
|
+
onBeforeIdentityChange: Q.onBeforeIdentityChange,
|
|
820
|
+
children: [/* @__PURE__ */ G(ve, { announcementsRef: Q.announcementsRef }), /* @__PURE__ */ G(m, {
|
|
815
821
|
syncToUrl: !0,
|
|
816
|
-
children: /* @__PURE__ */
|
|
817
|
-
i18nProductId:
|
|
818
|
-
platformI18nProductId:
|
|
819
|
-
directionMode:
|
|
820
|
-
fallbackTranslations:
|
|
821
|
-
defaultBrand:
|
|
822
|
-
defaultMode:
|
|
823
|
-
defaultDensity:
|
|
824
|
-
defaultTypography:
|
|
825
|
-
defaultGlass:
|
|
822
|
+
children: /* @__PURE__ */ G(ce, { children: /* @__PURE__ */ G(Be, {
|
|
823
|
+
i18nProductId: v,
|
|
824
|
+
platformI18nProductId: se,
|
|
825
|
+
directionMode: L,
|
|
826
|
+
fallbackTranslations: T,
|
|
827
|
+
defaultBrand: ue,
|
|
828
|
+
defaultMode: de,
|
|
829
|
+
defaultDensity: fe,
|
|
830
|
+
defaultTypography: pe,
|
|
831
|
+
defaultGlass: me,
|
|
826
832
|
productName: s,
|
|
827
|
-
brandInitial:
|
|
828
|
-
enablePWA:
|
|
829
|
-
toasterPosition:
|
|
830
|
-
tourPageIdFromPath:
|
|
831
|
-
enableWorkspaceTourPermissions:
|
|
833
|
+
brandInitial: S,
|
|
834
|
+
enablePWA: he,
|
|
835
|
+
toasterPosition: D,
|
|
836
|
+
tourPageIdFromPath: N,
|
|
837
|
+
enableWorkspaceTourPermissions: F,
|
|
832
838
|
children: i
|
|
833
839
|
}) })
|
|
834
|
-
})
|
|
840
|
+
})]
|
|
835
841
|
})
|
|
836
842
|
}) })
|
|
837
843
|
})] })
|
|
@@ -840,4 +846,4 @@ function He({ config: t, children: i, clearAuthStore: a }) {
|
|
|
840
846
|
});
|
|
841
847
|
}
|
|
842
848
|
//#endregion
|
|
843
|
-
export {
|
|
849
|
+
export { Ge as AppShellProvider, Pe as resolveAppShellObservabilityConfig };
|