@burdenoff/fe-libs 2026.1118.12 → 2026.1119.1
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/globalSearch/AdvancedFiltersPanel.js +128 -127
- package/dist/chrome/notificationCenter/NotificationFilters.js +45 -44
- package/dist/connections/CredentialStorageSelector.js +135 -134
- package/dist/connections/SharePanels.js +70 -69
- package/dist/credentials/AuthMethodSelector.js +33 -32
- package/dist/credentials/SchemaForm.js +96 -95
- package/dist/shared/assistant/avatar/live/LiveAvatarSettingsFields.js +74 -73
- package/dist/shared/assistant/images.js +14 -13
- package/dist/shared/assistant/index.d.ts +1 -0
- package/dist/shared/assistant/sandboxRegistry.js +3 -0
- package/dist/shared/assistant/ui/AssistantLanguageMenu.d.ts +2 -0
- package/dist/shared/assistant/ui/AssistantLanguageMenu.js +41 -40
- package/dist/shared/assistant/ui/AssistantReplyLanguageSelector.d.ts +3 -1
- package/dist/shared/assistant/ui/AssistantReplyLanguageSelector.js +26 -25
- package/dist/shared/assistant/ui/composer/AssistantLanguageSelector.d.ts +3 -1
- package/dist/shared/assistant/ui/composer/AssistantLanguageSelector.js +22 -21
- package/dist/shared/assistant/ui/composer/AssistantVoiceGraceSelector.d.ts +2 -1
- package/dist/shared/assistant/ui/composer/AssistantVoiceGraceSelector.js +17 -16
- package/dist/shared/assistant/ui/composer/AssistantVoiceSelector.d.ts +3 -1
- package/dist/shared/assistant/ui/composer/AssistantVoiceSelector.js +22 -21
- package/dist/shared/pages/searchPage/FiltersPanel.js +129 -128
- package/dist/shared/pages/searchPage/SearchToolbar.js +24 -23
- package/dist/shared/providers/AppShellProvider.d.ts +8 -0
- package/dist/shared/providers/AppShellProvider.js +199 -193
- package/dist/shared/providers/shell/ThemeProvider.d.ts +6 -1
- package/dist/shared/providers/shell/ThemeProvider.js +65 -62
- package/dist/shared/providers/shell/themedNativeControls.d.ts +25 -0
- package/dist/shared/providers/shell/themedNativeControls.js +13 -0
- package/dist/shared-assistant.js +373 -372
- package/dist/sharing/ShareDialog.js +33 -32
- package/dist/storage/StorageFolderPicker.js +50 -49
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/themed-select-context.d.ts +9 -0
- package/dist/ui/themed-select-context.js +15 -0
- package/dist/ui/themed-select-options.d.ts +42 -0
- package/dist/ui/themed-select-options.js +88 -0
- package/dist/ui/themed-select.d.ts +7 -0
- package/dist/ui/themed-select.js +234 -0
- package/dist/ui.js +31 -29
- package/package.json +1 -1
- package/src/shared/tokens/tokens.css +100 -0
|
@@ -10,29 +10,30 @@ import { WorkspaceWriteRefusedToastListener as p } from "./shell/WorkspaceWriteR
|
|
|
10
10
|
import { useShellLabel as m } from "./shell/useShellLabel.js";
|
|
11
11
|
import { ActiveContextProvider as h } from "./shell/ActiveContextProvider.js";
|
|
12
12
|
import { TourPermissionsBoundary as g } from "../tours/TourPermissionsBoundary.js";
|
|
13
|
-
import { ContextManagerProvider as
|
|
14
|
-
import { ThemeProvider as
|
|
15
|
-
import { ProfileI18nBridge as
|
|
13
|
+
import { ContextManagerProvider as ee } from "./shell/ContextManagerProvider.js";
|
|
14
|
+
import { ThemeProvider as _ } from "./shell/ThemeProvider.js";
|
|
15
|
+
import { ProfileI18nBridge as v } from "./shell/ProfileI18nBridge.js";
|
|
16
|
+
import { ThemedSelectProvider as y } from "../../ui/themed-select-context.js";
|
|
16
17
|
import { resolveBrowserDirectionMode as b } from "./shell/directionMode.js";
|
|
17
|
-
import { ProfileGeographyBridge as
|
|
18
|
-
import { FeatureFlagsProvider as
|
|
19
|
-
import { GlobalUiProvider as
|
|
20
|
-
import { ShellUiProvider as
|
|
21
|
-
import { FeatureFlagProvider as
|
|
18
|
+
import { ProfileGeographyBridge as te } from "./shell/ProfileGeographyBridge.js";
|
|
19
|
+
import { FeatureFlagsProvider as ne } from "./shell/FeatureFlagsProvider.js";
|
|
20
|
+
import { GlobalUiProvider as re } from "./shell/GlobalUiProvider.js";
|
|
21
|
+
import { ShellUiProvider as ie } from "./shell/ShellUiProvider.js";
|
|
22
|
+
import { FeatureFlagProvider as x } from "../feature-flags/FeatureFlagProvider.js";
|
|
22
23
|
import { TourInitializer as S } from "../tours/TourInitializer.js";
|
|
23
24
|
import { TourPlayerProvider as C } from "../tours/TourPlayerProvider.js";
|
|
24
|
-
import { ToursProvider as
|
|
25
|
-
import { tourRouteBootstrap as
|
|
26
|
-
import { ErrorFallback as
|
|
27
|
-
import { BUILDMYIQ_RYBBIT_EVENTS as
|
|
28
|
-
import { GGNOMAD_RYBBIT_EVENTS as
|
|
29
|
-
import { emitProductSlug as
|
|
25
|
+
import { ToursProvider as ae, useToursContext as w } from "../tours/ToursContext.js";
|
|
26
|
+
import { tourRouteBootstrap as T } from "../tours/routeBootstrap.js";
|
|
27
|
+
import { ErrorFallback as oe } from "../components/ErrorFallback.js";
|
|
28
|
+
import { BUILDMYIQ_RYBBIT_EVENTS as E } from "../events/buildmyiq.js";
|
|
29
|
+
import { GGNOMAD_RYBBIT_EVENTS as se } from "../events/ggnomad.js";
|
|
30
|
+
import { emitProductSlug as D, legacyProductSlug as O } from "../config/productSlug.js";
|
|
30
31
|
import { TIMECAMPUS_RYBBIT_EVENTS as k } from "../events/timecampus.js";
|
|
31
|
-
import { THECULTUREPOST_RYBBIT_EVENTS as
|
|
32
|
+
import { THECULTUREPOST_RYBBIT_EVENTS as A } from "../events/theculturepost.js";
|
|
32
33
|
import { FLUIDGRIDS_RYBBIT_EVENTS as ce } from "../events/fluidgrids.js";
|
|
33
34
|
import { DevtoolsSink as le } from "../events/sinks/DevtoolsSink.js";
|
|
34
|
-
import { BroadcastChannelSink as
|
|
35
|
-
import { BackendAuditSink as
|
|
35
|
+
import { BroadcastChannelSink as j } from "../events/sinks/BroadcastChannelSink.js";
|
|
36
|
+
import { BackendAuditSink as ue } from "../events/sinks/BackendAuditSink.js";
|
|
36
37
|
import { OtelBrowserSink as de } from "../events/sinks/OtelBrowserSink.js";
|
|
37
38
|
import { WebVitalsSink as fe } from "../events/sinks/WebVitalsSink.js";
|
|
38
39
|
import { setAssistantProductId as pe } from "../assistant/productContext.js";
|
|
@@ -41,10 +42,10 @@ import { DesktopUpdateToast as he } from "../components/DesktopUpdateToast.js";
|
|
|
41
42
|
import { EventBusProvider as ge, useEventBus as _e } from "../../shared-events.js";
|
|
42
43
|
import { getGatewayUrl as ve } from "../../shared-config.js";
|
|
43
44
|
import { shouldMountWebVitalsSink as ye } from "../rum/mount.js";
|
|
44
|
-
import { AnalyticsConsentBanner as
|
|
45
|
-
import { SEMANTICFED_ANALYTICS_ROUTES as
|
|
46
|
-
import { COMRADECIRCLE_ANALYTICS_ROUTES as
|
|
47
|
-
import { ATHELETEBRIDGE_ANALYTICS_ROUTES as
|
|
45
|
+
import { AnalyticsConsentBanner as M, DEFAULT_RYBBIT_ALLOWLIST as N, RybbitSink as P } from "../events/sinks/RybbitSink.js";
|
|
46
|
+
import { SEMANTICFED_ANALYTICS_ROUTES as F, SEMANTICFED_RYBBIT_EVENTS as I } from "../events/semanticfed.js";
|
|
47
|
+
import { COMRADECIRCLE_ANALYTICS_ROUTES as L, COMRADECIRCLE_RYBBIT_EVENTS as R } from "../events/comradecircle.js";
|
|
48
|
+
import { ATHELETEBRIDGE_ANALYTICS_ROUTES as z, ATHELETEBRIDGE_RYBBIT_EVENTS as B } from "../events/atheletebridge.js";
|
|
48
49
|
import { attemptTokenRefresh as be, clearAuthSessionStorage as xe, getSharedTokenRefreshRefs as Se, isAuthNetworkError as Ce } from "../utils/authErrorHandling.js";
|
|
49
50
|
import { SESSION_EXPIRED_EVENT as we, getStoredAuthToken as Te, graphqlFetch as Ee } from "../graphql/fetch.js";
|
|
50
51
|
import { AppShellContextProvider as De } from "./shell/AppShellContext.js";
|
|
@@ -53,12 +54,12 @@ import { ConsoleTransport as ke } from "../logger/ConsoleTransport.js";
|
|
|
53
54
|
import { LogManager as Ae } from "../logger/LogManager.js";
|
|
54
55
|
import { isShellLessRoute as je } from "../config/shellRoutes.js";
|
|
55
56
|
import { useRegisterTourRouteCatalog as Me } from "../tours/useTourRouteCatalog.js";
|
|
56
|
-
import { BACKEND_ERROR_EVENT as
|
|
57
|
-
import { usePushDeviceRegistration as
|
|
58
|
-
import { Suspense as
|
|
59
|
-
import { Fragment as Re, jsx as
|
|
60
|
-
import { BrowserRouter as ze, useLocation as
|
|
61
|
-
import { Toaster as Be, toast as
|
|
57
|
+
import { BACKEND_ERROR_EVENT as V, CONNECTION_STATUS_EVENT as H, dispatchBackendErrorEvent as Ne, getBackendErrorToastDedupe as Pe, isBackendErrorDisplay as Fe, shouldToastBackendError as Ie } from "../utils/backendErrors.js";
|
|
58
|
+
import { usePushDeviceRegistration as U } from "../hooks/usePushDeviceRegistration.js";
|
|
59
|
+
import { Suspense as W, useCallback as G, useEffect as K, useMemo as q, useRef as J, useState as Le } from "react";
|
|
60
|
+
import { Fragment as Re, jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
61
|
+
import { BrowserRouter as ze, useLocation as Z } from "react-router";
|
|
62
|
+
import { Toaster as Be, toast as Q } from "sonner";
|
|
62
63
|
import { MutationCache as Ve, QueryCache as He, QueryClient as Ue, QueryClientProvider as We } from "@tanstack/react-query";
|
|
63
64
|
// src/shared/providers/AppShellProvider.tsx
|
|
64
65
|
var Ge = {
|
|
@@ -134,10 +135,10 @@ var Ge = {
|
|
|
134
135
|
"coolandlovely.search.performed",
|
|
135
136
|
"vibecontrols.agent.registered",
|
|
136
137
|
...ce,
|
|
137
|
-
...
|
|
138
|
+
...E,
|
|
139
|
+
...A,
|
|
138
140
|
...se,
|
|
139
|
-
...
|
|
140
|
-
...z,
|
|
141
|
+
...B,
|
|
141
142
|
"vibecontrols.agent.gateway_auth_setup",
|
|
142
143
|
"vibecontrols.session.created",
|
|
143
144
|
"vibecontrols.session.started",
|
|
@@ -374,9 +375,9 @@ function Ze() {
|
|
|
374
375
|
SSR: !1
|
|
375
376
|
};
|
|
376
377
|
}
|
|
377
|
-
function
|
|
378
|
+
function Qe(e, t) {
|
|
378
379
|
if (!t || t.length === 0 || !e.rybbit) return e;
|
|
379
|
-
let n = e.rybbit.allowlist ??
|
|
380
|
+
let n = e.rybbit.allowlist ?? N, r = [.../* @__PURE__ */ new Set([...n, ...t])];
|
|
380
381
|
return {
|
|
381
382
|
...e,
|
|
382
383
|
rybbit: {
|
|
@@ -385,22 +386,22 @@ function Q(e, t) {
|
|
|
385
386
|
}
|
|
386
387
|
};
|
|
387
388
|
}
|
|
388
|
-
var
|
|
389
|
+
var $e = {
|
|
389
390
|
comradecircle: {
|
|
390
|
-
routes:
|
|
391
|
-
events:
|
|
391
|
+
routes: L,
|
|
392
|
+
events: R
|
|
392
393
|
},
|
|
393
394
|
semanticfed: {
|
|
394
|
-
routes:
|
|
395
|
-
events:
|
|
395
|
+
routes: F,
|
|
396
|
+
events: I
|
|
396
397
|
},
|
|
397
398
|
atheletebridge: {
|
|
398
|
-
routes:
|
|
399
|
-
events:
|
|
399
|
+
routes: z,
|
|
400
|
+
events: B
|
|
400
401
|
}
|
|
401
402
|
};
|
|
402
|
-
function
|
|
403
|
-
let n = Ye(t.VITE_DEPLOY_ENV ?? t.MODE), r = Xe(t, n), i = Ge[e] ?? Ge[
|
|
403
|
+
function et(e, t) {
|
|
404
|
+
let n = Ye(t.VITE_DEPLOY_ENV ?? t.MODE), r = Xe(t, n), i = Ge[e] ?? Ge[O(e)], a = n === "prod" ? i?.prod : i?.nonProd, o = t.VITE_RYBBIT_SITE_ID || a, s = $e[e], c = t.VITE_BACKEND_AUDIT_ENDPOINT || (t.PROD ? "/api/fe-events" : void 0);
|
|
404
405
|
return {
|
|
405
406
|
enabled: r,
|
|
406
407
|
appVersion: t.VITE_APP_VERSION || "0.0.0",
|
|
@@ -428,12 +429,12 @@ function $e(e, t) {
|
|
|
428
429
|
}
|
|
429
430
|
};
|
|
430
431
|
}
|
|
431
|
-
function
|
|
432
|
-
let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } =
|
|
432
|
+
function tt({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
|
|
433
|
+
let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } = w(), l = G((e, t) => e.steps?.[t], []), u = G((e) => {
|
|
433
434
|
a(e.id, "started"), s("TOUR_STARTED", e.id);
|
|
434
|
-
}, [s, a]), d =
|
|
435
|
+
}, [s, a]), d = G((e) => {
|
|
435
436
|
a(e.id, "completed"), s("TOUR_COMPLETED", e.id);
|
|
436
|
-
}, [s, a]), f =
|
|
437
|
+
}, [s, a]), f = G((e, t) => {
|
|
437
438
|
let n = l(e, t);
|
|
438
439
|
a(e.id, "skipped"), s("TOUR_SKIPPED", e.id, {
|
|
439
440
|
stepId: n?.id,
|
|
@@ -443,13 +444,13 @@ function et({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
443
444
|
l,
|
|
444
445
|
s,
|
|
445
446
|
a
|
|
446
|
-
]), m =
|
|
447
|
+
]), m = G((e, t) => {
|
|
447
448
|
let n = l(e, t);
|
|
448
449
|
n && s("STEP_VIEWED", e.id, {
|
|
449
450
|
stepId: n.id,
|
|
450
451
|
stepOrder: n.stepOrder
|
|
451
452
|
});
|
|
452
|
-
}, [l, s]), h =
|
|
453
|
+
}, [l, s]), h = G((e, t) => {
|
|
453
454
|
let n = l(e, t);
|
|
454
455
|
n && (o(e.id, n.id), s("STEP_COMPLETED", e.id, {
|
|
455
456
|
stepId: n.id,
|
|
@@ -460,7 +461,7 @@ function et({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
460
461
|
o,
|
|
461
462
|
s
|
|
462
463
|
]);
|
|
463
|
-
return /* @__PURE__ */
|
|
464
|
+
return /* @__PURE__ */ X(C, {
|
|
464
465
|
scopeKey: c,
|
|
465
466
|
onTourStart: u,
|
|
466
467
|
onTourComplete: d,
|
|
@@ -468,21 +469,21 @@ function et({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
468
469
|
onStepChange: m,
|
|
469
470
|
onStepComplete: h,
|
|
470
471
|
children: [
|
|
471
|
-
/* @__PURE__ */
|
|
472
|
+
/* @__PURE__ */ Y(S, {}),
|
|
472
473
|
e,
|
|
473
|
-
/* @__PURE__ */
|
|
474
|
-
/* @__PURE__ */
|
|
475
|
-
/* @__PURE__ */
|
|
476
|
-
/* @__PURE__ */
|
|
474
|
+
/* @__PURE__ */ Y(nt, {}),
|
|
475
|
+
/* @__PURE__ */ Y(p, {}),
|
|
476
|
+
/* @__PURE__ */ Y(it, {}),
|
|
477
|
+
/* @__PURE__ */ Y(Be, {
|
|
477
478
|
position: n,
|
|
478
479
|
richColors: !0,
|
|
479
480
|
closeButton: !0,
|
|
480
481
|
style: qe
|
|
481
482
|
}),
|
|
482
|
-
/* @__PURE__ */
|
|
483
|
-
t && /* @__PURE__ */
|
|
483
|
+
/* @__PURE__ */ Y(he, {}),
|
|
484
|
+
t && /* @__PURE__ */ Y(W, {
|
|
484
485
|
fallback: null,
|
|
485
|
-
children: /* @__PURE__ */
|
|
486
|
+
children: /* @__PURE__ */ Y(me, {
|
|
486
487
|
productName: r,
|
|
487
488
|
brandInitial: i
|
|
488
489
|
})
|
|
@@ -490,9 +491,9 @@ function et({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
|
|
|
490
491
|
]
|
|
491
492
|
});
|
|
492
493
|
}
|
|
493
|
-
function
|
|
494
|
-
let e =
|
|
495
|
-
return
|
|
494
|
+
function nt() {
|
|
495
|
+
let e = J(null), t = m();
|
|
496
|
+
return K(() => {
|
|
496
497
|
let n = (n) => {
|
|
497
498
|
let r = n instanceof CustomEvent && Fe(n.detail) ? n.detail : null;
|
|
498
499
|
if (!Ie(r)) return;
|
|
@@ -504,29 +505,29 @@ function tt() {
|
|
|
504
505
|
shownAt: o
|
|
505
506
|
};
|
|
506
507
|
let c = r.messageKey ? t(r.messageKey, r.message) : r.message;
|
|
507
|
-
|
|
508
|
+
Q.error(c, { duration: 7e3 });
|
|
508
509
|
};
|
|
509
|
-
return window.addEventListener(
|
|
510
|
+
return window.addEventListener(V, n), () => window.removeEventListener(V, n);
|
|
510
511
|
}, [t]), null;
|
|
511
512
|
}
|
|
512
|
-
var $ = "burdenoff-connection-status",
|
|
513
|
-
function
|
|
514
|
-
let e =
|
|
515
|
-
return
|
|
513
|
+
var $ = "burdenoff-connection-status", rt = 1500;
|
|
514
|
+
function it() {
|
|
515
|
+
let e = J(null), t = J(!1);
|
|
516
|
+
return K(() => {
|
|
516
517
|
let n = () => {
|
|
517
|
-
t.current || (t.current = !0,
|
|
518
|
+
t.current || (t.current = !0, Q.error("Connection lost. Trying to reconnect…", {
|
|
518
519
|
id: $,
|
|
519
520
|
duration: Infinity
|
|
520
521
|
}));
|
|
521
522
|
}, r = () => {
|
|
522
523
|
t.current || e.current || (e.current = setTimeout(() => {
|
|
523
524
|
e.current = null, n();
|
|
524
|
-
},
|
|
525
|
+
}, rt));
|
|
525
526
|
}, i = (n) => {
|
|
526
|
-
e.current &&= (clearTimeout(e.current), null), t.current ? (t.current = !1, n ?
|
|
527
|
+
e.current &&= (clearTimeout(e.current), null), t.current ? (t.current = !1, n ? Q.success("Back online", {
|
|
527
528
|
id: $,
|
|
528
529
|
duration: 2500
|
|
529
|
-
}) :
|
|
530
|
+
}) : Q.dismiss($)) : Q.dismiss($);
|
|
530
531
|
}, a = (e) => {
|
|
531
532
|
if (!(e instanceof CustomEvent)) return;
|
|
532
533
|
let t = e.detail;
|
|
@@ -534,58 +535,62 @@ function rt() {
|
|
|
534
535
|
}, o = () => r(), s = () => {
|
|
535
536
|
e.current &&= (clearTimeout(e.current), null);
|
|
536
537
|
};
|
|
537
|
-
return window.addEventListener(
|
|
538
|
-
window.removeEventListener(
|
|
538
|
+
return window.addEventListener(H, a), window.addEventListener("offline", o), window.addEventListener("online", s), () => {
|
|
539
|
+
window.removeEventListener(H, a), window.removeEventListener("offline", o), window.removeEventListener("online", s), e.current && clearTimeout(e.current);
|
|
539
540
|
};
|
|
540
541
|
}, []), null;
|
|
541
542
|
}
|
|
542
|
-
function
|
|
543
|
-
return
|
|
543
|
+
function at() {
|
|
544
|
+
return U(), null;
|
|
544
545
|
}
|
|
545
|
-
function
|
|
546
|
-
let
|
|
546
|
+
function ot({ children: t, i18nProductId: n, platformI18nProductId: r, directionMode: i, fallbackTranslations: a, defaultBrand: o, defaultMode: s, defaultDensity: c, defaultTypography: l, defaultGlass: u, productName: d, brandInitial: f, enablePWA: p, toasterPosition: m, tourPageIdFromPath: h, enableWorkspaceTourPermissions: ee, themedNativeControls: b }) {
|
|
547
|
+
let S = Z();
|
|
547
548
|
Oe();
|
|
548
|
-
let
|
|
549
|
+
let C = T(S.pathname, !!ee), w = /* @__PURE__ */ Y(te, { children: /* @__PURE__ */ Y(ne, { children: /* @__PURE__ */ Y(x, {
|
|
549
550
|
workspaceId: null,
|
|
550
551
|
gateway: "global",
|
|
551
552
|
defaultEnabled: !0,
|
|
552
|
-
children: /* @__PURE__ */
|
|
553
|
+
children: /* @__PURE__ */ Y(re, { children: /* @__PURE__ */ Y(ie, { children: /* @__PURE__ */ Y(e, {
|
|
553
554
|
fallback: null,
|
|
554
|
-
children: /* @__PURE__ */
|
|
555
|
-
enabled:
|
|
556
|
-
children: /* @__PURE__ */
|
|
557
|
-
requireWorkspace:
|
|
558
|
-
disabled:
|
|
555
|
+
children: /* @__PURE__ */ Y(g, {
|
|
556
|
+
enabled: C.workspacePermissions,
|
|
557
|
+
children: /* @__PURE__ */ Y(ae, {
|
|
558
|
+
requireWorkspace: C.requireWorkspace,
|
|
559
|
+
disabled: C.toursDisabled,
|
|
559
560
|
getPageIdFromPath: h,
|
|
560
|
-
children: /* @__PURE__ */
|
|
561
|
+
children: /* @__PURE__ */ X(tt, {
|
|
561
562
|
enablePWA: p,
|
|
562
563
|
toasterPosition: m,
|
|
563
564
|
productName: d,
|
|
564
565
|
brandInitial: f,
|
|
565
|
-
children: [/* @__PURE__ */
|
|
566
|
+
children: [/* @__PURE__ */ Y(at, {}), t]
|
|
566
567
|
})
|
|
567
568
|
})
|
|
568
569
|
})
|
|
569
570
|
}) }) })
|
|
570
571
|
}) }) });
|
|
571
|
-
return /* @__PURE__ */
|
|
572
|
+
return /* @__PURE__ */ X(_, {
|
|
572
573
|
defaultBrand: o,
|
|
573
574
|
defaultMode: s,
|
|
574
575
|
defaultDensity: c,
|
|
575
576
|
defaultTypography: l,
|
|
576
577
|
defaultGlass: u,
|
|
577
|
-
|
|
578
|
+
themedNativeControls: b,
|
|
579
|
+
children: [/* @__PURE__ */ Y(st, {}), /* @__PURE__ */ Y(v, {
|
|
578
580
|
i18nProductId: n,
|
|
579
581
|
platformI18nProductId: r,
|
|
580
582
|
directionMode: i,
|
|
581
583
|
fallbackTranslations: a,
|
|
582
|
-
children:
|
|
584
|
+
children: /* @__PURE__ */ Y(y, {
|
|
585
|
+
enabled: b,
|
|
586
|
+
children: w
|
|
587
|
+
})
|
|
583
588
|
})]
|
|
584
589
|
});
|
|
585
590
|
}
|
|
586
|
-
function
|
|
587
|
-
let e =
|
|
588
|
-
return
|
|
591
|
+
function st() {
|
|
592
|
+
let e = Z();
|
|
593
|
+
return K(() => {
|
|
589
594
|
e.hash || requestAnimationFrame(() => {
|
|
590
595
|
window.scrollTo({
|
|
591
596
|
top: 0,
|
|
@@ -603,7 +608,7 @@ function ot() {
|
|
|
603
608
|
e.hash
|
|
604
609
|
]), null;
|
|
605
610
|
}
|
|
606
|
-
function
|
|
611
|
+
function ct(e) {
|
|
607
612
|
if (e instanceof Error) return e.message;
|
|
608
613
|
if (typeof e == "string") return e;
|
|
609
614
|
try {
|
|
@@ -612,9 +617,9 @@ function st(e) {
|
|
|
612
617
|
return String(e);
|
|
613
618
|
}
|
|
614
619
|
}
|
|
615
|
-
function
|
|
616
|
-
let e = _e(), o =
|
|
617
|
-
return
|
|
620
|
+
function lt() {
|
|
621
|
+
let e = _e(), o = Z(), s = J(void 0), c = J(void 0), l = J(null);
|
|
622
|
+
return K(() => {
|
|
618
623
|
let t = `${o.pathname}${o.search}${o.hash}`;
|
|
619
624
|
if (c.current !== t) return l.current && clearTimeout(l.current), l.current = setTimeout(() => {
|
|
620
625
|
l.current = null;
|
|
@@ -634,7 +639,7 @@ function ct() {
|
|
|
634
639
|
o.hash,
|
|
635
640
|
o.pathname,
|
|
636
641
|
o.search
|
|
637
|
-
]),
|
|
642
|
+
]), K(() => {
|
|
638
643
|
let t = (t) => {
|
|
639
644
|
e.emit("error.runtime.caught", {
|
|
640
645
|
message: t.message || "Runtime error",
|
|
@@ -644,12 +649,12 @@ function ct() {
|
|
|
644
649
|
errorName: t.error instanceof Error ? t.error.name : void 0
|
|
645
650
|
});
|
|
646
651
|
}, n = (t) => {
|
|
647
|
-
e.emit("error.unhandledrejection", { reason:
|
|
652
|
+
e.emit("error.unhandledrejection", { reason: ct(t.reason) });
|
|
648
653
|
};
|
|
649
654
|
return window.addEventListener("error", t), window.addEventListener("unhandledrejection", n), () => {
|
|
650
655
|
window.removeEventListener("error", t), window.removeEventListener("unhandledrejection", n);
|
|
651
656
|
};
|
|
652
|
-
}, [e]),
|
|
657
|
+
}, [e]), K(() => {
|
|
653
658
|
let o = (e, t) => ({
|
|
654
659
|
metric: t,
|
|
655
660
|
value: e.value,
|
|
@@ -660,24 +665,24 @@ function ct() {
|
|
|
660
665
|
i((t) => e.emit("perf.lcp.measured", o(t, "LCP"))), t((t) => e.emit("perf.cls.measured", o(t, "CLS"))), r((t) => e.emit("perf.inp.measured", o(t, "INP"))), a((t) => e.emit("perf.ttfb.measured", o(t, "TTFB"))), n((t) => e.emit("perf.fcp.measured", o(t, "FCP")));
|
|
661
666
|
}, [e]), null;
|
|
662
667
|
}
|
|
663
|
-
function
|
|
668
|
+
function ut({ register: e }) {
|
|
664
669
|
let { getAccessToken: t } = c();
|
|
665
|
-
return
|
|
670
|
+
return K(() => (e(t), () => e(null)), [t, e]), null;
|
|
666
671
|
}
|
|
667
|
-
function
|
|
668
|
-
let { pathname: u } =
|
|
669
|
-
return /* @__PURE__ */
|
|
670
|
-
/* @__PURE__ */
|
|
671
|
-
r && !d ? /* @__PURE__ */
|
|
672
|
+
function dt({ config: e, productSlug: t, productName: n, privacyConsent: r, privacyConsentReopen: i, privacyConsentPlacement: a, consentRouteDenylist: o, rybbitSkipRoutes: s, globalGraphqlUrl: c, getAccessToken: l }) {
|
|
673
|
+
let { pathname: u } = Z(), d = je(u) || o?.(u) === !0;
|
|
674
|
+
return /* @__PURE__ */ X(Re, { children: [
|
|
675
|
+
/* @__PURE__ */ Y(lt, {}),
|
|
676
|
+
r && !d ? /* @__PURE__ */ Y(M, {
|
|
672
677
|
productName: n,
|
|
673
678
|
reopenable: i,
|
|
674
679
|
placement: a
|
|
675
680
|
}) : null,
|
|
676
|
-
e.enabled === !1 ? null : /* @__PURE__ */
|
|
677
|
-
e.devtools ? /* @__PURE__ */
|
|
678
|
-
e.broadcast === !1 ? null : /* @__PURE__ */
|
|
679
|
-
e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */
|
|
680
|
-
e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */
|
|
681
|
+
e.enabled === !1 ? null : /* @__PURE__ */ X(Re, { children: [
|
|
682
|
+
e.devtools ? /* @__PURE__ */ Y(le, { enabled: !0 }) : null,
|
|
683
|
+
e.broadcast === !1 ? null : /* @__PURE__ */ Y(j, {}),
|
|
684
|
+
e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ Y(ue, { endpoint: e.backendAudit.endpoint }) : null,
|
|
685
|
+
e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ Y(P, {
|
|
681
686
|
siteId: e.rybbit.siteId,
|
|
682
687
|
scriptUrl: e.rybbit.scriptUrl,
|
|
683
688
|
eventEndpoint: e.rybbit.eventEndpoint,
|
|
@@ -688,13 +693,13 @@ function ut({ config: e, productSlug: t, productName: n, privacyConsent: r, priv
|
|
|
688
693
|
skipRoutes: s,
|
|
689
694
|
pathname: u
|
|
690
695
|
}) : null,
|
|
691
|
-
ye(e) ? /* @__PURE__ */
|
|
692
|
-
product:
|
|
696
|
+
ye(e) ? /* @__PURE__ */ Y(fe, {
|
|
697
|
+
product: D(t),
|
|
693
698
|
endpoint: e.rum?.endpoint || c,
|
|
694
699
|
getAccessToken: l,
|
|
695
700
|
config: e.rum
|
|
696
701
|
}) : null,
|
|
697
|
-
e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */
|
|
702
|
+
e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ Y(de, {
|
|
698
703
|
endpoint: e.otel.endpoint,
|
|
699
704
|
serviceName: e.otel.serviceName ?? `${t}-app`,
|
|
700
705
|
flushInterval: e.otel.flushInterval
|
|
@@ -702,29 +707,29 @@ function ut({ config: e, productSlug: t, productName: n, privacyConsent: r, priv
|
|
|
702
707
|
] })
|
|
703
708
|
] });
|
|
704
709
|
}
|
|
705
|
-
function
|
|
706
|
-
let { productName: i, productSlug: a = i.toLowerCase().replace(/\s+/g, ""), tagline: c = "", domain: p, i18nProductId: m, platformI18nProductId: g, rtl:
|
|
707
|
-
Me(a,
|
|
710
|
+
function ft({ config: t, children: n, clearAuthStore: r }) {
|
|
711
|
+
let { productName: i, productSlug: a = i.toLowerCase().replace(/\s+/g, ""), tagline: c = "", domain: p, i18nProductId: m, platformI18nProductId: g, rtl: _, gatewayUrls: v, authBridge: y, defaultBrand: te = "default", defaultMode: ne, defaultDensity: re, defaultTypography: ie, defaultGlass: x, enablePWA: S = !0, brandInitial: C = i.charAt(0), defaultGateway: ae = "workspace", enableSubscriptions: w = !0, fallbackTranslations: T, queryClientOptions: E, toasterPosition: se = "bottom-right", observability: O, privacyConsent: k = !1, privacyConsentReopen: A = !1, privacyConsentPlacement: ce = "start", consentRouteDenylist: le, rybbitEvents: j, rybbitSkipRoutes: ue, tourPageIdFromPath: de, tourRouteCatalog: fe, enableWorkspaceTourPermissions: me = !1, workspaceOperationGuard: he = "off", themedNativeControls: _e = !1 } = t;
|
|
712
|
+
Me(a, fe), K(() => pe(D(a)), [a]);
|
|
708
713
|
let [ye] = Le(() => b({
|
|
709
|
-
enabled:
|
|
710
|
-
allowPreview:
|
|
711
|
-
})),
|
|
712
|
-
|
|
714
|
+
enabled: _?.enabled,
|
|
715
|
+
allowPreview: _?.preview
|
|
716
|
+
})), M = q(() => Qe(O ?? et(a, Ze()), j), [
|
|
717
|
+
O,
|
|
713
718
|
a,
|
|
714
|
-
|
|
715
|
-
]),
|
|
719
|
+
j
|
|
720
|
+
]), N = q(() => ({
|
|
716
721
|
productName: i,
|
|
717
722
|
productSlug: a,
|
|
718
|
-
brandInitial:
|
|
723
|
+
brandInitial: C,
|
|
719
724
|
tagline: c,
|
|
720
725
|
domain: p
|
|
721
726
|
}), [
|
|
722
727
|
i,
|
|
723
728
|
a,
|
|
724
|
-
|
|
729
|
+
C,
|
|
725
730
|
c,
|
|
726
731
|
p
|
|
727
|
-
]),
|
|
732
|
+
]), P = J(!1), F = J(!!y?.url), I = G((e) => {
|
|
728
733
|
if (!e?.force && (() => {
|
|
729
734
|
try {
|
|
730
735
|
let e = sessionStorage.getItem("bf-active-profile");
|
|
@@ -734,21 +739,21 @@ function dt({ config: t, children: n, clearAuthStore: r }) {
|
|
|
734
739
|
} catch {
|
|
735
740
|
return !1;
|
|
736
741
|
}
|
|
737
|
-
})() ||
|
|
738
|
-
|
|
742
|
+
})() || F.current || P.current) return;
|
|
743
|
+
P.current = !0, xe(r);
|
|
739
744
|
let t = `${window.location.pathname}${window.location.search}`, n = `/auth/login?reason=session-expired&returnTo=${encodeURIComponent(t)}`, i = /^\/vibecontrols\/(share|deck)\//.test(window.location.pathname);
|
|
740
|
-
window.location.pathname.startsWith("/auth/") || je(window.location.pathname) || i ?
|
|
741
|
-
}, [r]),
|
|
742
|
-
globalBaseUrl:
|
|
745
|
+
window.location.pathname.startsWith("/auth/") || je(window.location.pathname) || i ? P.current = !1 : window.location.replace(n);
|
|
746
|
+
}, [r]), L = q(() => ({
|
|
747
|
+
globalBaseUrl: v.globalBaseUrl,
|
|
743
748
|
...Se()
|
|
744
|
-
}), [
|
|
745
|
-
window.location.pathname.startsWith("/auth/") || await
|
|
746
|
-
}, [
|
|
747
|
-
Ce(e) ? await
|
|
748
|
-
}, [
|
|
749
|
+
}), [v.globalBaseUrl]), R = G(async () => be(L), [L]), z = G(async () => {
|
|
750
|
+
window.location.pathname.startsWith("/auth/") || await R() || I({ force: !0 });
|
|
751
|
+
}, [R, I]), B = G(async (e) => {
|
|
752
|
+
Ce(e) ? await R() || I({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
|
|
753
|
+
}, [R, I]), Oe = G(async (e) => {
|
|
749
754
|
let t = await Ee({
|
|
750
755
|
gateway: "global",
|
|
751
|
-
baseUrl:
|
|
756
|
+
baseUrl: v.globalBaseUrl,
|
|
752
757
|
authToken: "",
|
|
753
758
|
query: "mutation RefreshToken($token: String!) {\n refreshToken(token: $token) {\n accessToken\n refreshToken\n expiresIn\n }\n }",
|
|
754
759
|
variables: { token: e }
|
|
@@ -760,12 +765,12 @@ function dt({ config: t, children: n, clearAuthStore: r }) {
|
|
|
760
765
|
refreshToken: n.refreshToken,
|
|
761
766
|
expiresAt: n.expiresIn ? Date.now() + n.expiresIn * 1e3 : void 0
|
|
762
767
|
};
|
|
763
|
-
}, [
|
|
764
|
-
|
|
765
|
-
}, []), Pe =
|
|
766
|
-
let e =
|
|
768
|
+
}, [v.globalBaseUrl]), V = J(null), H = G((e) => {
|
|
769
|
+
V.current = e;
|
|
770
|
+
}, []), Pe = G(() => {
|
|
771
|
+
let e = V.current;
|
|
767
772
|
return e ? e() : Te();
|
|
768
|
-
}, []), Fe =
|
|
773
|
+
}, []), Fe = q(() => ve(v.globalBaseUrl, "global"), [v.globalBaseUrl]), Ie = G(() => l("organization"), []), U = q(() => {
|
|
769
774
|
let e = new Ue({
|
|
770
775
|
queryCache: new He({ onError: (e) => {
|
|
771
776
|
Ne(e);
|
|
@@ -779,89 +784,90 @@ function dt({ config: t, children: n, clearAuthStore: r }) {
|
|
|
779
784
|
}
|
|
780
785
|
}),
|
|
781
786
|
defaultOptions: { queries: {
|
|
782
|
-
staleTime:
|
|
783
|
-
retry:
|
|
784
|
-
refetchOnWindowFocus:
|
|
787
|
+
staleTime: E?.staleTime ?? 3e5,
|
|
788
|
+
retry: E?.retry ?? 2,
|
|
789
|
+
refetchOnWindowFocus: E?.refetchOnWindowFocus ?? !1
|
|
785
790
|
} }
|
|
786
791
|
});
|
|
787
792
|
return e;
|
|
788
|
-
}, [
|
|
789
|
-
return
|
|
793
|
+
}, [E]), W = d(U);
|
|
794
|
+
return K(() => {
|
|
790
795
|
let e = () => {
|
|
791
|
-
|
|
796
|
+
I({ force: !0 });
|
|
792
797
|
};
|
|
793
798
|
return window.addEventListener(we, e), () => {
|
|
794
799
|
window.removeEventListener(we, e);
|
|
795
800
|
};
|
|
796
|
-
}, [
|
|
801
|
+
}, [I]), K(() => {
|
|
797
802
|
let e = Ae.getInstance();
|
|
798
803
|
e.getLogger("shell") || e.getLogger("shell").addTransport(new ke());
|
|
799
|
-
}, []), /* @__PURE__ */
|
|
800
|
-
value:
|
|
801
|
-
children: /* @__PURE__ */
|
|
804
|
+
}, []), /* @__PURE__ */ Y(De, {
|
|
805
|
+
value: N,
|
|
806
|
+
children: /* @__PURE__ */ Y(ge, {
|
|
802
807
|
appName: a,
|
|
803
|
-
appVersion:
|
|
804
|
-
appEnv:
|
|
808
|
+
appVersion: M.appVersion,
|
|
809
|
+
appEnv: M.appEnv,
|
|
805
810
|
sourceMfe: a,
|
|
806
|
-
children: /* @__PURE__ */
|
|
807
|
-
FallbackComponent:
|
|
808
|
-
children: /* @__PURE__ */
|
|
809
|
-
config:
|
|
811
|
+
children: /* @__PURE__ */ Y(e, {
|
|
812
|
+
FallbackComponent: oe,
|
|
813
|
+
children: /* @__PURE__ */ X(ze, { children: [/* @__PURE__ */ Y(dt, {
|
|
814
|
+
config: M,
|
|
810
815
|
productSlug: a,
|
|
811
816
|
globalGraphqlUrl: Fe,
|
|
812
817
|
getAccessToken: Pe,
|
|
813
818
|
productName: i,
|
|
814
|
-
privacyConsent:
|
|
815
|
-
privacyConsentReopen:
|
|
816
|
-
privacyConsentPlacement:
|
|
817
|
-
consentRouteDenylist:
|
|
818
|
-
rybbitSkipRoutes:
|
|
819
|
-
}), /* @__PURE__ */
|
|
820
|
-
client:
|
|
821
|
-
children: /* @__PURE__ */
|
|
822
|
-
workspaceBaseUrl:
|
|
823
|
-
globalBaseUrl:
|
|
819
|
+
privacyConsent: k,
|
|
820
|
+
privacyConsentReopen: A,
|
|
821
|
+
privacyConsentPlacement: ce,
|
|
822
|
+
consentRouteDenylist: le,
|
|
823
|
+
rybbitSkipRoutes: ue
|
|
824
|
+
}), /* @__PURE__ */ Y(We, {
|
|
825
|
+
client: U,
|
|
826
|
+
children: /* @__PURE__ */ X(s, { children: [/* @__PURE__ */ Y(ut, { register: H }), /* @__PURE__ */ Y(u, {
|
|
827
|
+
workspaceBaseUrl: v.workspaceBaseUrl,
|
|
828
|
+
globalBaseUrl: v.globalBaseUrl,
|
|
824
829
|
organizationId: Ie,
|
|
825
830
|
productSlug: a,
|
|
826
|
-
defaultGateway:
|
|
827
|
-
enableSubscriptions:
|
|
828
|
-
onAuthError:
|
|
829
|
-
onNetworkError:
|
|
830
|
-
onRefreshToken:
|
|
831
|
-
workspaceOperationGuard:
|
|
832
|
-
children: /* @__PURE__ */
|
|
833
|
-
bridgeUrl:
|
|
834
|
-
bridgeAllowedOrigins:
|
|
835
|
-
bridgeDebug:
|
|
831
|
+
defaultGateway: ae,
|
|
832
|
+
enableSubscriptions: w,
|
|
833
|
+
onAuthError: z,
|
|
834
|
+
onNetworkError: B,
|
|
835
|
+
onRefreshToken: R,
|
|
836
|
+
workspaceOperationGuard: he,
|
|
837
|
+
children: /* @__PURE__ */ X(o, {
|
|
838
|
+
bridgeUrl: y?.url,
|
|
839
|
+
bridgeAllowedOrigins: y?.allowedOrigins,
|
|
840
|
+
bridgeDebug: y?.debug,
|
|
836
841
|
onRefreshToken: Oe,
|
|
837
842
|
onBridgeReady: () => {
|
|
838
|
-
|
|
843
|
+
F.current = !1;
|
|
839
844
|
},
|
|
840
845
|
onSessionExpiringSoon: () => {
|
|
841
846
|
console.warn("[Auth] Session will expire in 5 minutes");
|
|
842
847
|
},
|
|
843
848
|
onTokenExpired: () => {
|
|
844
|
-
|
|
849
|
+
I();
|
|
845
850
|
},
|
|
846
|
-
onBeforeIdentityChange:
|
|
847
|
-
children: [/* @__PURE__ */
|
|
851
|
+
onBeforeIdentityChange: W.onBeforeIdentityChange,
|
|
852
|
+
children: [/* @__PURE__ */ Y(f, { announcementsRef: W.announcementsRef }), /* @__PURE__ */ Y(h, {
|
|
848
853
|
syncToUrl: !0,
|
|
849
|
-
children: /* @__PURE__ */
|
|
854
|
+
children: /* @__PURE__ */ Y(ee, { children: /* @__PURE__ */ Y(ot, {
|
|
850
855
|
i18nProductId: m,
|
|
851
856
|
platformI18nProductId: g,
|
|
852
857
|
directionMode: ye,
|
|
853
|
-
fallbackTranslations:
|
|
854
|
-
defaultBrand:
|
|
855
|
-
defaultMode:
|
|
856
|
-
defaultDensity:
|
|
857
|
-
defaultTypography:
|
|
858
|
-
defaultGlass:
|
|
858
|
+
fallbackTranslations: T,
|
|
859
|
+
defaultBrand: te,
|
|
860
|
+
defaultMode: ne,
|
|
861
|
+
defaultDensity: re,
|
|
862
|
+
defaultTypography: ie,
|
|
863
|
+
defaultGlass: x,
|
|
859
864
|
productName: i,
|
|
860
|
-
brandInitial:
|
|
861
|
-
enablePWA:
|
|
862
|
-
toasterPosition:
|
|
863
|
-
tourPageIdFromPath:
|
|
864
|
-
enableWorkspaceTourPermissions:
|
|
865
|
+
brandInitial: C,
|
|
866
|
+
enablePWA: S,
|
|
867
|
+
toasterPosition: se,
|
|
868
|
+
tourPageIdFromPath: de,
|
|
869
|
+
enableWorkspaceTourPermissions: me,
|
|
870
|
+
themedNativeControls: _e,
|
|
865
871
|
children: n
|
|
866
872
|
}) })
|
|
867
873
|
})]
|
|
@@ -872,4 +878,4 @@ function dt({ config: t, children: n, clearAuthStore: r }) {
|
|
|
872
878
|
})
|
|
873
879
|
});
|
|
874
880
|
}
|
|
875
|
-
export {
|
|
881
|
+
export { ft as AppShellProvider, qe as RICH_TOAST_TOKEN_STYLE, et as resolveAppShellObservabilityConfig, Qe as withShellRybbitEvents };
|