@burdenoff/fe-libs 2026.1023.5 → 2026.1023.7
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/CommandPalette.d.ts +25 -2
- package/dist/chrome/CommandPalette.js +70 -57
- package/dist/chrome/GlobalSearch.js +74 -73
- package/dist/chrome/NotificationCenter.js +76 -71
- package/dist/chrome/index.d.ts +1 -1
- package/dist/chrome.js +40 -40
- package/dist/shared/assistant/gatewayClient.js +23 -19
- package/dist/shared/assistant/index.d.ts +1 -0
- package/dist/shared/assistant/productContext.d.ts +16 -0
- package/dist/shared/assistant/productContext.js +16 -0
- package/dist/shared/hooks/shell/globalSearchError.d.ts +11 -0
- package/dist/shared/hooks/shell/globalSearchError.js +10 -0
- package/dist/shared/hooks/shell/useGlobalSearch.d.ts +2 -0
- package/dist/shared/hooks/shell/useGlobalSearch.js +48 -38
- package/dist/shared/navigation/inAppPath.d.ts +33 -0
- package/dist/shared/navigation/inAppPath.js +32 -0
- package/dist/shared/providers/AppShellProvider.js +162 -161
- package/dist/shared-assistant.js +306 -305
- package/dist/shell-native/deep-link-context.js +2 -1
- package/dist/shell-native/deep-link.d.ts +2 -6
- package/dist/shell-native/deep-link.js +19 -26
- package/dist/shell-native.js +3 -2
- package/package.json +1 -1
|
@@ -1,49 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { isShellLessRoute as
|
|
3
|
-
import { readActiveContextValueWithUrlPrecedence as
|
|
4
|
-
import { BACKEND_ERROR_EVENT as
|
|
5
|
-
import { SESSION_EXPIRED_EVENT 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
|
|
1
|
+
import { emitProductSlug as e, legacyProductSlug as t } from "../config/productSlug.js";
|
|
2
|
+
import { isShellLessRoute as n } from "../config/shellRoutes.js";
|
|
3
|
+
import { readActiveContextValueWithUrlPrecedence as r } from "./shell/ActiveContextStorage.js";
|
|
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 u } from "../graphql/fetch.js";
|
|
6
|
+
import { attemptTokenRefresh as d, clearAuthSessionStorage as f, getSharedTokenRefreshRefs as p, isAuthNetworkError as m } from "../utils/authErrorHandling.js";
|
|
7
|
+
import { AppShellContextProvider as h } from "./shell/AppShellContext.js";
|
|
8
|
+
import { AuthProvider as g } from "./shell/AuthProvider.js";
|
|
9
|
+
import { ActiveContextProvider as _ } from "./shell/ActiveContextProvider.js";
|
|
10
|
+
import { LogManager as ee } from "../logger/LogManager.js";
|
|
11
|
+
import { ConsoleTransport as te } from "../logger/ConsoleTransport.js";
|
|
12
|
+
import { ThemeProvider as v } from "./shell/ThemeProvider.js";
|
|
13
|
+
import { AuthTokenProvider as ne } from "./shell/AuthTokenProvider.js";
|
|
14
|
+
import { ErrorFallback as re } from "../components/ErrorFallback.js";
|
|
15
|
+
import { m as ie } from "../../node_modules/react-error-boundary/dist/react-error-boundary.js";
|
|
16
|
+
import { PWAInstallBanner as y } from "../components/PWAInstallBanner.js";
|
|
17
|
+
import { FeatureFlagsProvider as ae } from "./shell/FeatureFlagsProvider.js";
|
|
18
|
+
import { FeatureFlagProvider as oe } from "../feature-flags/FeatureFlagProvider.js";
|
|
19
|
+
import { GlobalUiProvider as b } from "./shell/GlobalUiProvider.js";
|
|
20
|
+
import { ShellUiProvider as x } from "./shell/ShellUiProvider.js";
|
|
21
|
+
import { ContextManagerProvider as se } from "./shell/ContextManagerProvider.js";
|
|
22
|
+
import { MultiGatewayProvider as ce } from "./shell/MultiGatewayProvider.js";
|
|
23
|
+
import { G as S, Q as C, j as w, w as le } from "../../node_modules/web-vitals/dist/web-vitals.js";
|
|
24
24
|
import { ProfileI18nBridge as ue } from "./shell/ProfileI18nBridge.js";
|
|
25
|
-
import { ProfileGeographyBridge as
|
|
26
|
-
import { DesktopUpdateToast as
|
|
25
|
+
import { ProfileGeographyBridge as de } from "./shell/ProfileGeographyBridge.js";
|
|
26
|
+
import { DesktopUpdateToast as fe } from "../components/DesktopUpdateToast.js";
|
|
27
27
|
import { FLUIDGRIDS_RYBBIT_EVENTS as T } from "../events/fluidgrids.js";
|
|
28
28
|
import { DevtoolsSink as E } from "../events/sinks/DevtoolsSink.js";
|
|
29
29
|
import { BroadcastChannelSink as D } from "../events/sinks/BroadcastChannelSink.js";
|
|
30
30
|
import { BackendAuditSink as O } from "../events/sinks/BackendAuditSink.js";
|
|
31
31
|
import { AnalyticsConsentBanner as k, DEFAULT_RYBBIT_ALLOWLIST as A, RybbitSink as j } from "../events/sinks/RybbitSink.js";
|
|
32
32
|
import { OtelBrowserSink as M } from "../events/sinks/OtelBrowserSink.js";
|
|
33
|
-
import { EventBusProvider as
|
|
33
|
+
import { EventBusProvider as pe, useEventBus as N } from "../../shared-events.js";
|
|
34
34
|
import { useReferralAttribution as P } from "../hooks/useReferralAttribution.js";
|
|
35
35
|
import { usePushDeviceRegistration as F } from "../hooks/usePushDeviceRegistration.js";
|
|
36
36
|
import { TourPermissionsBoundary as I } from "../tours/TourPermissionsBoundary.js";
|
|
37
|
-
import { resolveBrowserDirectionMode as
|
|
37
|
+
import { resolveBrowserDirectionMode as me } from "./shell/directionMode.js";
|
|
38
38
|
import { TourPlayerProvider as L } from "../tours/TourPlayerProvider.js";
|
|
39
39
|
import { ToursProvider as R, useToursContext as z } from "../tours/ToursContext.js";
|
|
40
40
|
import { TourInitializer as B } from "../tours/TourInitializer.js";
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
41
|
+
import { setAssistantProductId as he } from "../assistant/productContext.js";
|
|
42
|
+
import { useRegisterTourRouteCatalog as ge } from "../tours/useTourRouteCatalog.js";
|
|
43
|
+
import { Suspense as V, useCallback as H, useEffect as U, useMemo as W, useRef as G, useState as _e } from "react";
|
|
43
44
|
import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
|
|
44
|
-
import { BrowserRouter as
|
|
45
|
+
import { BrowserRouter as ve, useLocation as Y } from "react-router";
|
|
45
46
|
import { Toaster as X, toast as Z } from "sonner";
|
|
46
|
-
import { MutationCache as
|
|
47
|
+
import { MutationCache as ye, QueryCache as be, QueryClient as xe, QueryClientProvider as Se } from "@tanstack/react-query";
|
|
47
48
|
//#region src/shared/providers/AppShellProvider.tsx
|
|
48
49
|
var Q = {
|
|
49
50
|
artistrybase: { prod: "cfbecacb6002" },
|
|
@@ -71,7 +72,7 @@ var Q = {
|
|
|
71
72
|
subscriberbot: {},
|
|
72
73
|
intelwatchtower: {},
|
|
73
74
|
kadaikodi: {}
|
|
74
|
-
},
|
|
75
|
+
}, Ce = [
|
|
75
76
|
"nav.route.changed",
|
|
76
77
|
"auth.signed_in",
|
|
77
78
|
"auth.signed_out",
|
|
@@ -318,7 +319,7 @@ var Q = {
|
|
|
318
319
|
"project.created",
|
|
319
320
|
"workspace-member.added",
|
|
320
321
|
"project-member.added"
|
|
321
|
-
],
|
|
322
|
+
], we = {
|
|
322
323
|
"--success-bg": "var(--color-status-success-bgSubtle)",
|
|
323
324
|
"--success-border": "var(--color-status-success-border)",
|
|
324
325
|
"--success-text": "var(--color-status-success-text)",
|
|
@@ -331,8 +332,8 @@ var Q = {
|
|
|
331
332
|
"--error-bg": "var(--color-status-error-bgSubtle)",
|
|
332
333
|
"--error-border": "var(--color-status-error-border)",
|
|
333
334
|
"--error-text": "var(--color-status-error-text)"
|
|
334
|
-
},
|
|
335
|
-
function
|
|
335
|
+
}, Te = 4e3;
|
|
336
|
+
function Ee(e) {
|
|
336
337
|
let t = e.technicalMessage ?? e.extensions?.technicalMessage, n = {
|
|
337
338
|
code: e.code,
|
|
338
339
|
operationName: e.operationName,
|
|
@@ -344,13 +345,13 @@ function we(e) {
|
|
|
344
345
|
};
|
|
345
346
|
console.error("[Burdenoff backend error]", e.message, n);
|
|
346
347
|
}
|
|
347
|
-
function
|
|
348
|
+
function De(e) {
|
|
348
349
|
return e === "prod" || e === "production" ? "prod" : e === "alpha" || e === "staging" ? "alpha" : "dev";
|
|
349
350
|
}
|
|
350
|
-
function
|
|
351
|
+
function Oe(e, t) {
|
|
351
352
|
return e.VITE_DISABLE_ANALYTICS === "true" ? !1 : e.VITE_ENABLE_ANALYTICS === "true" || e.PROD || t !== "dev" ? !0 : e.VITE_ENABLE_ANALYTICS !== "false";
|
|
352
353
|
}
|
|
353
|
-
function
|
|
354
|
+
function ke() {
|
|
354
355
|
return {
|
|
355
356
|
BASE_URL: "/",
|
|
356
357
|
DEV: !1,
|
|
@@ -359,7 +360,7 @@ function De() {
|
|
|
359
360
|
SSR: !1
|
|
360
361
|
};
|
|
361
362
|
}
|
|
362
|
-
function
|
|
363
|
+
function Ae(e, t) {
|
|
363
364
|
if (!t || t.length === 0 || !e.rybbit) return e;
|
|
364
365
|
let n = e.rybbit.allowlist ?? A, r = [...new Set([...n, ...t])];
|
|
365
366
|
return {
|
|
@@ -370,8 +371,8 @@ function Oe(e, t) {
|
|
|
370
371
|
}
|
|
371
372
|
};
|
|
372
373
|
}
|
|
373
|
-
function
|
|
374
|
-
let r =
|
|
374
|
+
function je(e, n) {
|
|
375
|
+
let r = De(n.VITE_DEPLOY_ENV ?? n.MODE), i = Oe(n, r), a = Q[e] ?? Q[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);
|
|
375
376
|
return {
|
|
376
377
|
enabled: i,
|
|
377
378
|
appVersion: n.VITE_APP_VERSION || "0.0.0",
|
|
@@ -382,14 +383,14 @@ function ke(t, n) {
|
|
|
382
383
|
enabled: i && !!s,
|
|
383
384
|
siteId: s,
|
|
384
385
|
scriptUrl: n.VITE_RYBBIT_SCRIPT_URL,
|
|
385
|
-
allowlist:
|
|
386
|
+
allowlist: Ce,
|
|
386
387
|
identifyOn: "auth.signed_in",
|
|
387
388
|
rename: { "nav.route.changed": "pageview" }
|
|
388
389
|
},
|
|
389
390
|
otel: {
|
|
390
391
|
enabled: i && !!n.VITE_OTEL_HTTP_ENDPOINT,
|
|
391
392
|
endpoint: n.VITE_OTEL_HTTP_ENDPOINT,
|
|
392
|
-
serviceName: `${
|
|
393
|
+
serviceName: `${e}-app`
|
|
393
394
|
},
|
|
394
395
|
backendAudit: {
|
|
395
396
|
enabled: i && !!c,
|
|
@@ -397,7 +398,7 @@ function ke(t, n) {
|
|
|
397
398
|
}
|
|
398
399
|
};
|
|
399
400
|
}
|
|
400
|
-
function
|
|
401
|
+
function Me({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
|
|
401
402
|
let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } = z(), l = H((e, t) => e.steps?.[t], []);
|
|
402
403
|
return /* @__PURE__ */ J(L, {
|
|
403
404
|
scopeKey: c,
|
|
@@ -439,18 +440,18 @@ function Ae({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
439
440
|
children: [
|
|
440
441
|
/* @__PURE__ */ q(B, {}),
|
|
441
442
|
e,
|
|
442
|
-
/* @__PURE__ */ q(je, {}),
|
|
443
443
|
/* @__PURE__ */ q(Ne, {}),
|
|
444
|
+
/* @__PURE__ */ q(Fe, {}),
|
|
444
445
|
/* @__PURE__ */ q(X, {
|
|
445
446
|
position: n,
|
|
446
447
|
richColors: !0,
|
|
447
448
|
closeButton: !0,
|
|
448
|
-
style:
|
|
449
|
+
style: we
|
|
449
450
|
}),
|
|
450
|
-
/* @__PURE__ */ q(
|
|
451
|
+
/* @__PURE__ */ q(fe, {}),
|
|
451
452
|
t && /* @__PURE__ */ q(V, {
|
|
452
453
|
fallback: null,
|
|
453
|
-
children: /* @__PURE__ */ q(
|
|
454
|
+
children: /* @__PURE__ */ q(y, {
|
|
454
455
|
productName: r,
|
|
455
456
|
brandInitial: i
|
|
456
457
|
})
|
|
@@ -458,24 +459,24 @@ function Ae({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
458
459
|
]
|
|
459
460
|
});
|
|
460
461
|
}
|
|
461
|
-
function
|
|
462
|
+
function Ne() {
|
|
462
463
|
let e = G(null);
|
|
463
464
|
return U(() => {
|
|
464
465
|
let t = (t) => {
|
|
465
|
-
let n = t instanceof CustomEvent &&
|
|
466
|
-
if (!
|
|
467
|
-
|
|
466
|
+
let n = t instanceof CustomEvent && s(t.detail) ? t.detail : null;
|
|
467
|
+
if (!c(n)) return;
|
|
468
|
+
Ee(n);
|
|
468
469
|
let r = `${n.code ?? ""}|${n.message}`, i = Date.now(), a = e.current;
|
|
469
|
-
a?.key === r && i - a.shownAt <
|
|
470
|
+
a?.key === r && i - a.shownAt < Te || (e.current = {
|
|
470
471
|
key: r,
|
|
471
472
|
shownAt: i
|
|
472
473
|
}, Z.error(n.message, { duration: 7e3 }));
|
|
473
474
|
};
|
|
474
|
-
return window.addEventListener(
|
|
475
|
+
return window.addEventListener(i, t), () => window.removeEventListener(i, t);
|
|
475
476
|
}, []), null;
|
|
476
477
|
}
|
|
477
|
-
var $ = "burdenoff-connection-status",
|
|
478
|
-
function
|
|
478
|
+
var $ = "burdenoff-connection-status", Pe = 1500;
|
|
479
|
+
function Fe() {
|
|
479
480
|
let e = G(null), t = G(!1);
|
|
480
481
|
return U(() => {
|
|
481
482
|
let n = () => {
|
|
@@ -486,8 +487,8 @@ function Ne() {
|
|
|
486
487
|
}, r = () => {
|
|
487
488
|
t.current || e.current || (e.current = setTimeout(() => {
|
|
488
489
|
e.current = null, n();
|
|
489
|
-
},
|
|
490
|
-
},
|
|
490
|
+
}, Pe));
|
|
491
|
+
}, i = (n) => {
|
|
491
492
|
if (e.current &&= (clearTimeout(e.current), null), !t.current) {
|
|
492
493
|
Z.dismiss($);
|
|
493
494
|
return;
|
|
@@ -499,51 +500,51 @@ function Ne() {
|
|
|
499
500
|
}, o = (e) => {
|
|
500
501
|
if (!(e instanceof CustomEvent)) return;
|
|
501
502
|
let t = e.detail;
|
|
502
|
-
t && (t.online ?
|
|
503
|
+
t && (t.online ? i(!0) : r());
|
|
503
504
|
}, s = () => r(), c = () => {
|
|
504
505
|
e.current &&= (clearTimeout(e.current), null);
|
|
505
506
|
};
|
|
506
|
-
return window.addEventListener(
|
|
507
|
-
window.removeEventListener(
|
|
507
|
+
return window.addEventListener(a, o), window.addEventListener("offline", s), window.addEventListener("online", c), () => {
|
|
508
|
+
window.removeEventListener(a, o), window.removeEventListener("offline", s), window.removeEventListener("online", c), e.current && clearTimeout(e.current);
|
|
508
509
|
};
|
|
509
510
|
}, []), null;
|
|
510
511
|
}
|
|
511
|
-
function
|
|
512
|
+
function Ie() {
|
|
512
513
|
return F(), null;
|
|
513
514
|
}
|
|
514
|
-
function
|
|
515
|
-
let
|
|
515
|
+
function Le({ children: e, i18nProductId: t, platformI18nProductId: n, directionMode: r, fallbackTranslations: i, defaultBrand: a, defaultMode: o, defaultDensity: s, defaultTypography: c, defaultGlass: l, productName: u, brandInitial: d, enablePWA: f, toasterPosition: p, tourPageIdFromPath: m, enableWorkspaceTourPermissions: h }) {
|
|
516
|
+
let g = Y();
|
|
516
517
|
P();
|
|
517
|
-
let
|
|
518
|
-
return /* @__PURE__ */ J(
|
|
518
|
+
let _ = g.pathname.startsWith("/devportal") || g.pathname.startsWith("/organizations") || g.pathname.startsWith("/workspaces");
|
|
519
|
+
return /* @__PURE__ */ J(v, {
|
|
519
520
|
defaultBrand: a,
|
|
520
521
|
defaultMode: o,
|
|
521
522
|
defaultDensity: s,
|
|
522
523
|
defaultTypography: c,
|
|
523
524
|
defaultGlass: l,
|
|
524
|
-
children: [/* @__PURE__ */ q(
|
|
525
|
+
children: [/* @__PURE__ */ q(Re, {}), /* @__PURE__ */ q(ue, {
|
|
525
526
|
i18nProductId: t,
|
|
526
527
|
platformI18nProductId: n,
|
|
527
528
|
directionMode: r,
|
|
528
529
|
fallbackTranslations: i,
|
|
529
|
-
children: /* @__PURE__ */ q(
|
|
530
|
+
children: /* @__PURE__ */ q(de, { children: /* @__PURE__ */ q(ae, { children: /* @__PURE__ */ q(oe, {
|
|
530
531
|
workspaceId: null,
|
|
531
532
|
gateway: "global",
|
|
532
533
|
defaultEnabled: !0,
|
|
533
|
-
children: /* @__PURE__ */ q(
|
|
534
|
+
children: /* @__PURE__ */ q(b, { children: /* @__PURE__ */ q(x, { children: /* @__PURE__ */ q(ie, {
|
|
534
535
|
fallback: null,
|
|
535
536
|
children: /* @__PURE__ */ q(I, {
|
|
536
|
-
enabled:
|
|
537
|
+
enabled: h && !_,
|
|
537
538
|
children: /* @__PURE__ */ q(R, {
|
|
538
|
-
requireWorkspace:
|
|
539
|
-
disabled:
|
|
540
|
-
getPageIdFromPath:
|
|
541
|
-
children: /* @__PURE__ */ J(
|
|
542
|
-
enablePWA:
|
|
543
|
-
toasterPosition:
|
|
539
|
+
requireWorkspace: h,
|
|
540
|
+
disabled: _,
|
|
541
|
+
getPageIdFromPath: m,
|
|
542
|
+
children: /* @__PURE__ */ J(Me, {
|
|
543
|
+
enablePWA: f,
|
|
544
|
+
toasterPosition: p,
|
|
544
545
|
productName: u,
|
|
545
|
-
brandInitial:
|
|
546
|
-
children: [/* @__PURE__ */ q(
|
|
546
|
+
brandInitial: d,
|
|
547
|
+
children: [/* @__PURE__ */ q(Ie, {}), e]
|
|
547
548
|
})
|
|
548
549
|
})
|
|
549
550
|
})
|
|
@@ -552,7 +553,7 @@ function Fe({ children: e, i18nProductId: t, platformI18nProductId: n, direction
|
|
|
552
553
|
})]
|
|
553
554
|
});
|
|
554
555
|
}
|
|
555
|
-
function
|
|
556
|
+
function Re() {
|
|
556
557
|
let e = Y();
|
|
557
558
|
return U(() => {
|
|
558
559
|
e.hash || requestAnimationFrame(() => {
|
|
@@ -572,7 +573,7 @@ function Ie() {
|
|
|
572
573
|
e.hash
|
|
573
574
|
]), null;
|
|
574
575
|
}
|
|
575
|
-
function
|
|
576
|
+
function ze(e) {
|
|
576
577
|
if (e instanceof Error) return e.message;
|
|
577
578
|
if (typeof e == "string") return e;
|
|
578
579
|
try {
|
|
@@ -581,7 +582,7 @@ function Le(e) {
|
|
|
581
582
|
return String(e);
|
|
582
583
|
}
|
|
583
584
|
}
|
|
584
|
-
function
|
|
585
|
+
function Be() {
|
|
585
586
|
let e = N(), t = Y(), n = G(void 0), r = G(void 0), i = G(null);
|
|
586
587
|
return U(() => {
|
|
587
588
|
let a = `${t.pathname}${t.search}${t.hash}`;
|
|
@@ -613,13 +614,13 @@ function Re() {
|
|
|
613
614
|
errorName: t.error instanceof Error ? t.error.name : void 0
|
|
614
615
|
});
|
|
615
616
|
}, n = (t) => {
|
|
616
|
-
e.emit("error.unhandledrejection", { reason:
|
|
617
|
+
e.emit("error.unhandledrejection", { reason: ze(t.reason) });
|
|
617
618
|
};
|
|
618
619
|
return window.addEventListener("error", t), window.addEventListener("unhandledrejection", n), () => {
|
|
619
620
|
window.removeEventListener("error", t), window.removeEventListener("unhandledrejection", n);
|
|
620
621
|
};
|
|
621
622
|
}, [e]), U(() => {
|
|
622
|
-
|
|
623
|
+
S((t) => {
|
|
623
624
|
e.emit("perf.lcp.measured", {
|
|
624
625
|
metric: "LCP",
|
|
625
626
|
value: t.value,
|
|
@@ -633,14 +634,14 @@ function Re() {
|
|
|
633
634
|
id: t.id,
|
|
634
635
|
rating: t.rating
|
|
635
636
|
});
|
|
636
|
-
}),
|
|
637
|
+
}), w((t) => {
|
|
637
638
|
e.emit("perf.inp.measured", {
|
|
638
639
|
metric: "INP",
|
|
639
640
|
value: t.value,
|
|
640
641
|
id: t.id,
|
|
641
642
|
rating: t.rating
|
|
642
643
|
});
|
|
643
|
-
}),
|
|
644
|
+
}), C((t) => {
|
|
644
645
|
e.emit("perf.ttfb.measured", {
|
|
645
646
|
metric: "TTFB",
|
|
646
647
|
value: t.value,
|
|
@@ -650,11 +651,11 @@ function Re() {
|
|
|
650
651
|
});
|
|
651
652
|
}, [e]), null;
|
|
652
653
|
}
|
|
653
|
-
function
|
|
654
|
-
let { pathname: o } = Y(), s =
|
|
654
|
+
function Ve({ config: e, productSlug: t, privacyConsent: r, consentRouteDenylist: i, rybbitSkipRoutes: a }) {
|
|
655
|
+
let { pathname: o } = Y(), s = n(o) || i?.(o) === !0;
|
|
655
656
|
return /* @__PURE__ */ J(K, { children: [
|
|
656
|
-
/* @__PURE__ */ q(
|
|
657
|
-
r && !s ? /* @__PURE__ */ q(k, { productName:
|
|
657
|
+
/* @__PURE__ */ q(Be, {}),
|
|
658
|
+
r && !s ? /* @__PURE__ */ q(k, { productName: t }) : null,
|
|
658
659
|
e.enabled === !1 ? null : /* @__PURE__ */ J(K, { children: [
|
|
659
660
|
e.devtools ? /* @__PURE__ */ q(E, { enabled: !0 }) : null,
|
|
660
661
|
e.broadcast === !1 ? null : /* @__PURE__ */ q(D, {}),
|
|
@@ -670,35 +671,35 @@ function ze({ config: e, productSlug: n, privacyConsent: r, consentRouteDenylist
|
|
|
670
671
|
}) : null,
|
|
671
672
|
e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ q(M, {
|
|
672
673
|
endpoint: e.otel.endpoint,
|
|
673
|
-
serviceName: e.otel.serviceName ?? `${
|
|
674
|
+
serviceName: e.otel.serviceName ?? `${t}-app`,
|
|
674
675
|
flushInterval: e.otel.flushInterval
|
|
675
676
|
}) : null
|
|
676
677
|
] })
|
|
677
678
|
] });
|
|
678
679
|
}
|
|
679
|
-
function
|
|
680
|
-
let { productName:
|
|
681
|
-
|
|
682
|
-
let [z] =
|
|
683
|
-
enabled:
|
|
684
|
-
allowPreview:
|
|
685
|
-
})), B = W(() =>
|
|
680
|
+
function He({ config: t, children: i, clearAuthStore: a }) {
|
|
681
|
+
let { productName: s, productSlug: c = s.toLowerCase().replace(/\s+/g, ""), tagline: v = "", domain: y, i18nProductId: ae, platformI18nProductId: oe, rtl: b, gatewayUrls: x, authBridge: S, defaultBrand: C = "default", defaultMode: w, defaultDensity: le, defaultTypography: ue, defaultGlass: de, enablePWA: fe = !0, brandInitial: T = s.charAt(0), defaultGateway: E = "workspace", enableSubscriptions: D = !0, fallbackTranslations: O, queryClientOptions: k, toasterPosition: A = "bottom-right", observability: j, privacyConsent: M = !1, consentRouteDenylist: N, rybbitEvents: P, rybbitSkipRoutes: F, tourPageIdFromPath: I, tourRouteCatalog: L, enableWorkspaceTourPermissions: R = !1 } = t;
|
|
682
|
+
ge(c, L), U(() => he(e(c)), [c]);
|
|
683
|
+
let [z] = _e(() => me({
|
|
684
|
+
enabled: b?.enabled,
|
|
685
|
+
allowPreview: b?.preview
|
|
686
|
+
})), B = W(() => Ae(j ?? je(c, ke()), P), [
|
|
686
687
|
j,
|
|
687
|
-
|
|
688
|
+
c,
|
|
688
689
|
P
|
|
689
690
|
]), V = W(() => ({
|
|
690
|
-
productName:
|
|
691
|
-
productSlug:
|
|
691
|
+
productName: s,
|
|
692
|
+
productSlug: c,
|
|
692
693
|
brandInitial: T,
|
|
693
|
-
tagline:
|
|
694
|
-
domain:
|
|
694
|
+
tagline: v,
|
|
695
|
+
domain: y
|
|
695
696
|
}), [
|
|
696
|
-
o,
|
|
697
697
|
s,
|
|
698
|
+
c,
|
|
698
699
|
T,
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
]), K = G(!1), Y = G(!!
|
|
700
|
+
v,
|
|
701
|
+
y
|
|
702
|
+
]), K = G(!1), Y = G(!!S?.url), X = H((e) => {
|
|
702
703
|
if (!e?.force && (() => {
|
|
703
704
|
try {
|
|
704
705
|
let e = sessionStorage.getItem("bf-active-profile");
|
|
@@ -709,24 +710,24 @@ function Be({ config: e, children: r, clearAuthStore: i }) {
|
|
|
709
710
|
return !1;
|
|
710
711
|
}
|
|
711
712
|
})() || Y.current || K.current) return;
|
|
712
|
-
K.current = !0,
|
|
713
|
-
let
|
|
714
|
-
if (window.location.pathname.startsWith("/auth/") ||
|
|
713
|
+
K.current = !0, f(a);
|
|
714
|
+
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
|
+
if (window.location.pathname.startsWith("/auth/") || n(window.location.pathname) || i) {
|
|
715
716
|
K.current = !1;
|
|
716
717
|
return;
|
|
717
718
|
}
|
|
718
719
|
window.location.replace(r);
|
|
719
|
-
}, [
|
|
720
|
-
globalBaseUrl:
|
|
721
|
-
...
|
|
722
|
-
}), [
|
|
720
|
+
}, [a]), Z = W(() => ({
|
|
721
|
+
globalBaseUrl: x.globalBaseUrl,
|
|
722
|
+
...p()
|
|
723
|
+
}), [x.globalBaseUrl]), Q = H(async () => d(Z), [Z]), Ce = H(async () => {
|
|
723
724
|
window.location.pathname.startsWith("/auth/") || await Q() || X({ force: !0 });
|
|
724
|
-
}, [Q, X]),
|
|
725
|
-
|
|
726
|
-
}, [Q, X]),
|
|
727
|
-
let t = await
|
|
725
|
+
}, [Q, X]), we = H(async (e) => {
|
|
726
|
+
m(e) ? await Q() || X({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
|
|
727
|
+
}, [Q, X]), Te = H(async (e) => {
|
|
728
|
+
let t = await u({
|
|
728
729
|
gateway: "global",
|
|
729
|
-
baseUrl:
|
|
730
|
+
baseUrl: x.globalBaseUrl,
|
|
730
731
|
authToken: "",
|
|
731
732
|
query: "mutation RefreshToken($token: String!) {\n refreshToken(token: $token) {\n accessToken\n refreshToken\n expiresIn\n }\n }",
|
|
732
733
|
variables: { token: e }
|
|
@@ -738,17 +739,17 @@ function Be({ config: e, children: r, clearAuthStore: i }) {
|
|
|
738
739
|
refreshToken: n.refreshToken,
|
|
739
740
|
expiresAt: n.expiresIn ? Date.now() + n.expiresIn * 1e3 : void 0
|
|
740
741
|
};
|
|
741
|
-
}, [
|
|
742
|
-
let e = new
|
|
743
|
-
queryCache: new
|
|
744
|
-
|
|
742
|
+
}, [x.globalBaseUrl]), Ee = H(() => r("organization"), []), De = W(() => {
|
|
743
|
+
let e = new xe({
|
|
744
|
+
queryCache: new be({ onError: (e) => {
|
|
745
|
+
o(e);
|
|
745
746
|
} }),
|
|
746
|
-
mutationCache: new
|
|
747
|
+
mutationCache: new ye({
|
|
747
748
|
onSuccess: () => {
|
|
748
749
|
e.invalidateQueries();
|
|
749
750
|
},
|
|
750
751
|
onError: (e) => {
|
|
751
|
-
|
|
752
|
+
o(e);
|
|
752
753
|
}
|
|
753
754
|
}),
|
|
754
755
|
defaultOptions: { queries: {
|
|
@@ -763,44 +764,44 @@ function Be({ config: e, children: r, clearAuthStore: i }) {
|
|
|
763
764
|
let e = () => {
|
|
764
765
|
X({ force: !0 });
|
|
765
766
|
};
|
|
766
|
-
return window.addEventListener(
|
|
767
|
-
window.removeEventListener(
|
|
767
|
+
return window.addEventListener(l, e), () => {
|
|
768
|
+
window.removeEventListener(l, e);
|
|
768
769
|
};
|
|
769
770
|
}, [X]), U(() => {
|
|
770
|
-
let e =
|
|
771
|
-
e.getLogger("shell") || e.getLogger("shell").addTransport(new
|
|
772
|
-
}, []), /* @__PURE__ */ q(
|
|
771
|
+
let e = ee.getInstance();
|
|
772
|
+
e.getLogger("shell") || e.getLogger("shell").addTransport(new te());
|
|
773
|
+
}, []), /* @__PURE__ */ q(h, {
|
|
773
774
|
value: V,
|
|
774
|
-
children: /* @__PURE__ */ q(
|
|
775
|
-
appName:
|
|
775
|
+
children: /* @__PURE__ */ q(pe, {
|
|
776
|
+
appName: c,
|
|
776
777
|
appVersion: B.appVersion,
|
|
777
778
|
appEnv: B.appEnv,
|
|
778
|
-
sourceMfe:
|
|
779
|
-
children: /* @__PURE__ */ q(
|
|
780
|
-
FallbackComponent:
|
|
781
|
-
children: /* @__PURE__ */ J(
|
|
779
|
+
sourceMfe: c,
|
|
780
|
+
children: /* @__PURE__ */ q(ie, {
|
|
781
|
+
FallbackComponent: re,
|
|
782
|
+
children: /* @__PURE__ */ J(ve, { children: [/* @__PURE__ */ q(Ve, {
|
|
782
783
|
config: B,
|
|
783
|
-
productSlug:
|
|
784
|
+
productSlug: c,
|
|
784
785
|
privacyConsent: M,
|
|
785
786
|
consentRouteDenylist: N,
|
|
786
787
|
rybbitSkipRoutes: F
|
|
787
|
-
}), /* @__PURE__ */ q(
|
|
788
|
-
client:
|
|
789
|
-
children: /* @__PURE__ */ q(
|
|
790
|
-
workspaceBaseUrl:
|
|
791
|
-
globalBaseUrl:
|
|
792
|
-
organizationId:
|
|
793
|
-
productSlug:
|
|
788
|
+
}), /* @__PURE__ */ q(Se, {
|
|
789
|
+
client: De,
|
|
790
|
+
children: /* @__PURE__ */ q(ne, { children: /* @__PURE__ */ q(ce, {
|
|
791
|
+
workspaceBaseUrl: x.workspaceBaseUrl,
|
|
792
|
+
globalBaseUrl: x.globalBaseUrl,
|
|
793
|
+
organizationId: Ee,
|
|
794
|
+
productSlug: c,
|
|
794
795
|
defaultGateway: E,
|
|
795
796
|
enableSubscriptions: D,
|
|
796
|
-
onAuthError:
|
|
797
|
-
onNetworkError:
|
|
797
|
+
onAuthError: Ce,
|
|
798
|
+
onNetworkError: we,
|
|
798
799
|
onRefreshToken: Q,
|
|
799
|
-
children: /* @__PURE__ */ q(
|
|
800
|
-
bridgeUrl:
|
|
801
|
-
bridgeAllowedOrigins:
|
|
802
|
-
bridgeDebug:
|
|
803
|
-
onRefreshToken:
|
|
800
|
+
children: /* @__PURE__ */ q(g, {
|
|
801
|
+
bridgeUrl: S?.url,
|
|
802
|
+
bridgeAllowedOrigins: S?.allowedOrigins,
|
|
803
|
+
bridgeDebug: S?.debug,
|
|
804
|
+
onRefreshToken: Te,
|
|
804
805
|
onBridgeReady: () => {
|
|
805
806
|
Y.current = !1;
|
|
806
807
|
},
|
|
@@ -810,25 +811,25 @@ function Be({ config: e, children: r, clearAuthStore: i }) {
|
|
|
810
811
|
onTokenExpired: () => {
|
|
811
812
|
X();
|
|
812
813
|
},
|
|
813
|
-
children: /* @__PURE__ */ q(
|
|
814
|
+
children: /* @__PURE__ */ q(_, {
|
|
814
815
|
syncToUrl: !0,
|
|
815
|
-
children: /* @__PURE__ */ q(
|
|
816
|
-
i18nProductId:
|
|
817
|
-
platformI18nProductId:
|
|
816
|
+
children: /* @__PURE__ */ q(se, { children: /* @__PURE__ */ q(Le, {
|
|
817
|
+
i18nProductId: ae,
|
|
818
|
+
platformI18nProductId: oe,
|
|
818
819
|
directionMode: z,
|
|
819
820
|
fallbackTranslations: O,
|
|
820
|
-
defaultBrand:
|
|
821
|
-
defaultMode:
|
|
821
|
+
defaultBrand: C,
|
|
822
|
+
defaultMode: w,
|
|
822
823
|
defaultDensity: le,
|
|
823
824
|
defaultTypography: ue,
|
|
824
|
-
defaultGlass:
|
|
825
|
-
productName:
|
|
825
|
+
defaultGlass: de,
|
|
826
|
+
productName: s,
|
|
826
827
|
brandInitial: T,
|
|
827
|
-
enablePWA:
|
|
828
|
+
enablePWA: fe,
|
|
828
829
|
toasterPosition: A,
|
|
829
830
|
tourPageIdFromPath: I,
|
|
830
831
|
enableWorkspaceTourPermissions: R,
|
|
831
|
-
children:
|
|
832
|
+
children: i
|
|
832
833
|
}) })
|
|
833
834
|
})
|
|
834
835
|
})
|
|
@@ -839,4 +840,4 @@ function Be({ config: e, children: r, clearAuthStore: i }) {
|
|
|
839
840
|
});
|
|
840
841
|
}
|
|
841
842
|
//#endregion
|
|
842
|
-
export {
|
|
843
|
+
export { He as AppShellProvider, je as resolveAppShellObservabilityConfig };
|