@burdenoff/fe-libs 2026.1118.13 → 2026.1119.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/chrome/globalSearch/AdvancedFiltersPanel.js +128 -127
  2. package/dist/chrome/notificationCenter/NotificationFilters.js +45 -44
  3. package/dist/connections/CredentialStorageSelector.js +135 -134
  4. package/dist/connections/SharePanels.js +70 -69
  5. package/dist/credentials/AuthMethodSelector.js +33 -32
  6. package/dist/credentials/SchemaForm.js +96 -95
  7. package/dist/shared/assistant/avatar/live/LiveAvatarSettingsFields.js +74 -73
  8. package/dist/shared/assistant/ui/AssistantLanguageMenu.d.ts +2 -0
  9. package/dist/shared/assistant/ui/AssistantLanguageMenu.js +41 -40
  10. package/dist/shared/assistant/ui/AssistantReplyLanguageSelector.d.ts +3 -1
  11. package/dist/shared/assistant/ui/AssistantReplyLanguageSelector.js +26 -25
  12. package/dist/shared/assistant/ui/composer/AssistantLanguageSelector.d.ts +3 -1
  13. package/dist/shared/assistant/ui/composer/AssistantLanguageSelector.js +22 -21
  14. package/dist/shared/assistant/ui/composer/AssistantVoiceGraceSelector.d.ts +2 -1
  15. package/dist/shared/assistant/ui/composer/AssistantVoiceGraceSelector.js +17 -16
  16. package/dist/shared/assistant/ui/composer/AssistantVoiceSelector.d.ts +3 -1
  17. package/dist/shared/assistant/ui/composer/AssistantVoiceSelector.js +22 -21
  18. package/dist/shared/pages/searchPage/FiltersPanel.js +129 -128
  19. package/dist/shared/pages/searchPage/SearchToolbar.js +24 -23
  20. package/dist/shared/providers/AppShellProvider.d.ts +8 -0
  21. package/dist/shared/providers/AppShellProvider.js +199 -193
  22. package/dist/shared/providers/shell/ThemeProvider.d.ts +6 -1
  23. package/dist/shared/providers/shell/ThemeProvider.js +65 -62
  24. package/dist/shared/providers/shell/themedNativeControls.d.ts +25 -0
  25. package/dist/shared/providers/shell/themedNativeControls.js +13 -0
  26. package/dist/sharing/ShareDialog.js +33 -32
  27. package/dist/storage/StorageFolderPicker.js +50 -49
  28. package/dist/ui/index.d.ts +2 -0
  29. package/dist/ui/themed-select-context.d.ts +9 -0
  30. package/dist/ui/themed-select-context.js +15 -0
  31. package/dist/ui/themed-select-menu.d.ts +10 -0
  32. package/dist/ui/themed-select-menu.js +70 -0
  33. package/dist/ui/themed-select-options.d.ts +42 -0
  34. package/dist/ui/themed-select-options.js +88 -0
  35. package/dist/ui/themed-select-state.d.ts +43 -0
  36. package/dist/ui/themed-select-state.js +73 -0
  37. package/dist/ui/themed-select.d.ts +7 -0
  38. package/dist/ui/themed-select.js +176 -0
  39. package/dist/ui.js +31 -29
  40. package/package.json +1 -1
  41. 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 _ } from "./shell/ContextManagerProvider.js";
14
- import { ThemeProvider as v } from "./shell/ThemeProvider.js";
15
- import { ProfileI18nBridge as y } from "./shell/ProfileI18nBridge.js";
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 x } from "./shell/ProfileGeographyBridge.js";
18
- import { FeatureFlagsProvider as ee } from "./shell/FeatureFlagsProvider.js";
19
- import { GlobalUiProvider as te } from "./shell/GlobalUiProvider.js";
20
- import { ShellUiProvider as ne } from "./shell/ShellUiProvider.js";
21
- import { FeatureFlagProvider as re } from "../feature-flags/FeatureFlagProvider.js";
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 w, useToursContext as T } from "../tours/ToursContext.js";
25
- import { tourRouteBootstrap as E } from "../tours/routeBootstrap.js";
26
- import { ErrorFallback as ie } from "../components/ErrorFallback.js";
27
- import { BUILDMYIQ_RYBBIT_EVENTS as D } from "../events/buildmyiq.js";
28
- import { GGNOMAD_RYBBIT_EVENTS as O } from "../events/ggnomad.js";
29
- import { emitProductSlug as ae, legacyProductSlug as oe } from "../config/productSlug.js";
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 se } from "../events/theculturepost.js";
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 ue } from "../events/sinks/BroadcastChannelSink.js";
35
- import { BackendAuditSink as A } from "../events/sinks/BackendAuditSink.js";
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 j, DEFAULT_RYBBIT_ALLOWLIST as M, RybbitSink as N } from "../events/sinks/RybbitSink.js";
45
- import { SEMANTICFED_ANALYTICS_ROUTES as P, SEMANTICFED_RYBBIT_EVENTS as F } from "../events/semanticfed.js";
46
- import { COMRADECIRCLE_ANALYTICS_ROUTES as I, COMRADECIRCLE_RYBBIT_EVENTS as L } from "../events/comradecircle.js";
47
- import { ATHELETEBRIDGE_ANALYTICS_ROUTES as R, ATHELETEBRIDGE_RYBBIT_EVENTS as z } from "../events/atheletebridge.js";
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 B, CONNECTION_STATUS_EVENT as V, dispatchBackendErrorEvent as Ne, getBackendErrorToastDedupe as Pe, isBackendErrorDisplay as Fe, shouldToastBackendError as Ie } from "../utils/backendErrors.js";
57
- import { usePushDeviceRegistration as H } from "../hooks/usePushDeviceRegistration.js";
58
- import { Suspense as U, useCallback as W, useEffect as G, useMemo as K, useRef as q, useState as Le } from "react";
59
- import { Fragment as Re, jsx as J, jsxs as Y } from "react/jsx-runtime";
60
- import { BrowserRouter as ze, useLocation as X } from "react-router";
61
- import { Toaster as Be, toast as Z } from "sonner";
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
- ...D,
138
+ ...E,
139
+ ...A,
138
140
  ...se,
139
- ...O,
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 Q(e, t) {
378
+ function Qe(e, t) {
378
379
  if (!t || t.length === 0 || !e.rybbit) return e;
379
- let n = e.rybbit.allowlist ?? M, r = [.../* @__PURE__ */ new Set([...n, ...t])];
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 Qe = {
389
+ var $e = {
389
390
  comradecircle: {
390
- routes: I,
391
- events: L
391
+ routes: L,
392
+ events: R
392
393
  },
393
394
  semanticfed: {
394
- routes: P,
395
- events: F
395
+ routes: F,
396
+ events: I
396
397
  },
397
398
  atheletebridge: {
398
- routes: R,
399
- events: z
399
+ routes: z,
400
+ events: B
400
401
  }
401
402
  };
402
- function $e(e, t) {
403
- let n = Ye(t.VITE_DEPLOY_ENV ?? t.MODE), r = Xe(t, n), i = Ge[e] ?? Ge[oe(e)], a = n === "prod" ? i?.prod : i?.nonProd, o = t.VITE_RYBBIT_SITE_ID || a, s = Qe[e], c = t.VITE_BACKEND_AUDIT_ENDPOINT || (t.PROD ? "/api/fe-events" : void 0);
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 et({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
432
- let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } = T(), l = W((e, t) => e.steps?.[t], []), u = W((e) => {
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 = W((e) => {
435
+ }, [s, a]), d = G((e) => {
435
436
  a(e.id, "completed"), s("TOUR_COMPLETED", e.id);
436
- }, [s, a]), f = W((e, t) => {
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 = W((e, t) => {
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 = W((e, t) => {
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__ */ Y(C, {
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__ */ J(S, {}),
472
+ /* @__PURE__ */ Y(S, {}),
472
473
  e,
473
- /* @__PURE__ */ J(tt, {}),
474
- /* @__PURE__ */ J(p, {}),
475
- /* @__PURE__ */ J(rt, {}),
476
- /* @__PURE__ */ J(Be, {
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__ */ J(he, {}),
483
- t && /* @__PURE__ */ J(U, {
483
+ /* @__PURE__ */ Y(he, {}),
484
+ t && /* @__PURE__ */ Y(W, {
484
485
  fallback: null,
485
- children: /* @__PURE__ */ J(me, {
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 tt() {
494
- let e = q(null), t = m();
495
- return G(() => {
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
- Z.error(c, { duration: 7e3 });
508
+ Q.error(c, { duration: 7e3 });
508
509
  };
509
- return window.addEventListener(B, n), () => window.removeEventListener(B, n);
510
+ return window.addEventListener(V, n), () => window.removeEventListener(V, n);
510
511
  }, [t]), null;
511
512
  }
512
- var $ = "burdenoff-connection-status", nt = 1500;
513
- function rt() {
514
- let e = q(null), t = q(!1);
515
- return G(() => {
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, Z.error("Connection lost. Trying to reconnect…", {
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
- }, nt));
525
+ }, rt));
525
526
  }, i = (n) => {
526
- e.current &&= (clearTimeout(e.current), null), t.current ? (t.current = !1, n ? Z.success("Back online", {
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
- }) : Z.dismiss($)) : Z.dismiss($);
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(V, a), window.addEventListener("offline", o), window.addEventListener("online", s), () => {
538
- window.removeEventListener(V, a), window.removeEventListener("offline", o), window.removeEventListener("online", s), e.current && clearTimeout(e.current);
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 it() {
543
- return H(), null;
543
+ function at() {
544
+ return U(), null;
544
545
  }
545
- function at({ 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: _ }) {
546
- let b = X();
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 S = E(b.pathname, !!_), C = /* @__PURE__ */ J(x, { children: /* @__PURE__ */ J(ee, { children: /* @__PURE__ */ J(re, {
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__ */ J(te, { children: /* @__PURE__ */ J(ne, { children: /* @__PURE__ */ J(e, {
553
+ children: /* @__PURE__ */ Y(re, { children: /* @__PURE__ */ Y(ie, { children: /* @__PURE__ */ Y(e, {
553
554
  fallback: null,
554
- children: /* @__PURE__ */ J(g, {
555
- enabled: S.workspacePermissions,
556
- children: /* @__PURE__ */ J(w, {
557
- requireWorkspace: S.requireWorkspace,
558
- disabled: S.toursDisabled,
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__ */ Y(et, {
561
+ children: /* @__PURE__ */ X(tt, {
561
562
  enablePWA: p,
562
563
  toasterPosition: m,
563
564
  productName: d,
564
565
  brandInitial: f,
565
- children: [/* @__PURE__ */ J(it, {}), t]
566
+ children: [/* @__PURE__ */ Y(at, {}), t]
566
567
  })
567
568
  })
568
569
  })
569
570
  }) }) })
570
571
  }) }) });
571
- return /* @__PURE__ */ Y(v, {
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
- children: [/* @__PURE__ */ J(ot, {}), /* @__PURE__ */ J(y, {
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: C
584
+ children: /* @__PURE__ */ Y(y, {
585
+ enabled: b,
586
+ children: w
587
+ })
583
588
  })]
584
589
  });
585
590
  }
586
- function ot() {
587
- let e = X();
588
- return G(() => {
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 st(e) {
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 ct() {
616
- let e = _e(), o = X(), s = q(void 0), c = q(void 0), l = q(null);
617
- return G(() => {
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
- ]), G(() => {
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: st(t.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]), G(() => {
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 lt({ register: e }) {
668
+ function ut({ register: e }) {
664
669
  let { getAccessToken: t } = c();
665
- return G(() => (e(t), () => e(null)), [t, e]), null;
670
+ return K(() => (e(t), () => e(null)), [t, e]), null;
666
671
  }
667
- function ut({ config: e, productSlug: t, productName: n, privacyConsent: r, privacyConsentReopen: i, privacyConsentPlacement: a, consentRouteDenylist: o, rybbitSkipRoutes: s, globalGraphqlUrl: c, getAccessToken: l }) {
668
- let { pathname: u } = X(), d = je(u) || o?.(u) === !0;
669
- return /* @__PURE__ */ Y(Re, { children: [
670
- /* @__PURE__ */ J(ct, {}),
671
- r && !d ? /* @__PURE__ */ J(j, {
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__ */ Y(Re, { children: [
677
- e.devtools ? /* @__PURE__ */ J(le, { enabled: !0 }) : null,
678
- e.broadcast === !1 ? null : /* @__PURE__ */ J(ue, {}),
679
- e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ J(A, { endpoint: e.backendAudit.endpoint }) : null,
680
- e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ J(N, {
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__ */ J(fe, {
692
- product: ae(t),
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__ */ J(de, {
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 dt({ config: t, children: n, clearAuthStore: r }) {
706
- let { productName: i, productSlug: a = i.toLowerCase().replace(/\s+/g, ""), tagline: c = "", domain: p, i18nProductId: m, platformI18nProductId: g, rtl: v, gatewayUrls: y, authBridge: x, defaultBrand: ee = "default", defaultMode: te, defaultDensity: ne, defaultTypography: re, defaultGlass: S, enablePWA: C = !0, brandInitial: w = i.charAt(0), defaultGateway: T = "workspace", enableSubscriptions: E = !0, fallbackTranslations: D, queryClientOptions: O, toasterPosition: oe = "bottom-right", observability: k, privacyConsent: se = !1, privacyConsentReopen: ce = !1, privacyConsentPlacement: le = "start", consentRouteDenylist: ue, rybbitEvents: A, rybbitSkipRoutes: de, tourPageIdFromPath: fe, tourRouteCatalog: me, enableWorkspaceTourPermissions: he = !1, workspaceOperationGuard: _e = "off" } = t;
707
- Me(a, me), G(() => pe(ae(a)), [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: v?.enabled,
710
- allowPreview: v?.preview
711
- })), j = K(() => Q(k ?? $e(a, Ze()), A), [
712
- k,
714
+ enabled: _?.enabled,
715
+ allowPreview: _?.preview
716
+ })), M = q(() => Qe(O ?? et(a, Ze()), j), [
717
+ O,
713
718
  a,
714
- A
715
- ]), M = K(() => ({
719
+ j
720
+ ]), N = q(() => ({
716
721
  productName: i,
717
722
  productSlug: a,
718
- brandInitial: w,
723
+ brandInitial: C,
719
724
  tagline: c,
720
725
  domain: p
721
726
  }), [
722
727
  i,
723
728
  a,
724
- w,
729
+ C,
725
730
  c,
726
731
  p
727
- ]), N = q(!1), P = q(!!x?.url), F = W((e) => {
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
- })() || P.current || N.current) return;
738
- N.current = !0, xe(r);
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 ? N.current = !1 : window.location.replace(n);
741
- }, [r]), I = K(() => ({
742
- globalBaseUrl: y.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
- }), [y.globalBaseUrl]), L = W(async () => be(I), [I]), R = W(async () => {
745
- window.location.pathname.startsWith("/auth/") || await L() || F({ force: !0 });
746
- }, [L, F]), z = W(async (e) => {
747
- Ce(e) ? await L() || F({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
748
- }, [L, F]), Oe = W(async (e) => {
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: y.globalBaseUrl,
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
- }, [y.globalBaseUrl]), B = q(null), V = W((e) => {
764
- B.current = e;
765
- }, []), Pe = W(() => {
766
- let e = B.current;
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 = K(() => ve(y.globalBaseUrl, "global"), [y.globalBaseUrl]), Ie = W(() => l("organization"), []), H = K(() => {
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: O?.staleTime ?? 3e5,
783
- retry: O?.retry ?? 2,
784
- refetchOnWindowFocus: O?.refetchOnWindowFocus ?? !1
787
+ staleTime: E?.staleTime ?? 3e5,
788
+ retry: E?.retry ?? 2,
789
+ refetchOnWindowFocus: E?.refetchOnWindowFocus ?? !1
785
790
  } }
786
791
  });
787
792
  return e;
788
- }, [O]), U = d(H);
789
- return G(() => {
793
+ }, [E]), W = d(U);
794
+ return K(() => {
790
795
  let e = () => {
791
- F({ force: !0 });
796
+ I({ force: !0 });
792
797
  };
793
798
  return window.addEventListener(we, e), () => {
794
799
  window.removeEventListener(we, e);
795
800
  };
796
- }, [F]), G(() => {
801
+ }, [I]), K(() => {
797
802
  let e = Ae.getInstance();
798
803
  e.getLogger("shell") || e.getLogger("shell").addTransport(new ke());
799
- }, []), /* @__PURE__ */ J(De, {
800
- value: M,
801
- children: /* @__PURE__ */ J(ge, {
804
+ }, []), /* @__PURE__ */ Y(De, {
805
+ value: N,
806
+ children: /* @__PURE__ */ Y(ge, {
802
807
  appName: a,
803
- appVersion: j.appVersion,
804
- appEnv: j.appEnv,
808
+ appVersion: M.appVersion,
809
+ appEnv: M.appEnv,
805
810
  sourceMfe: a,
806
- children: /* @__PURE__ */ J(e, {
807
- FallbackComponent: ie,
808
- children: /* @__PURE__ */ Y(ze, { children: [/* @__PURE__ */ J(ut, {
809
- config: j,
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: se,
815
- privacyConsentReopen: ce,
816
- privacyConsentPlacement: le,
817
- consentRouteDenylist: ue,
818
- rybbitSkipRoutes: de
819
- }), /* @__PURE__ */ J(We, {
820
- client: H,
821
- children: /* @__PURE__ */ Y(s, { children: [/* @__PURE__ */ J(lt, { register: V }), /* @__PURE__ */ J(u, {
822
- workspaceBaseUrl: y.workspaceBaseUrl,
823
- globalBaseUrl: y.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: T,
827
- enableSubscriptions: E,
828
- onAuthError: R,
829
- onNetworkError: z,
830
- onRefreshToken: L,
831
- workspaceOperationGuard: _e,
832
- children: /* @__PURE__ */ Y(o, {
833
- bridgeUrl: x?.url,
834
- bridgeAllowedOrigins: x?.allowedOrigins,
835
- bridgeDebug: x?.debug,
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
- P.current = !1;
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
- F();
849
+ I();
845
850
  },
846
- onBeforeIdentityChange: U.onBeforeIdentityChange,
847
- children: [/* @__PURE__ */ J(f, { announcementsRef: U.announcementsRef }), /* @__PURE__ */ J(h, {
851
+ onBeforeIdentityChange: W.onBeforeIdentityChange,
852
+ children: [/* @__PURE__ */ Y(f, { announcementsRef: W.announcementsRef }), /* @__PURE__ */ Y(h, {
848
853
  syncToUrl: !0,
849
- children: /* @__PURE__ */ J(_, { children: /* @__PURE__ */ J(at, {
854
+ children: /* @__PURE__ */ Y(ee, { children: /* @__PURE__ */ Y(ot, {
850
855
  i18nProductId: m,
851
856
  platformI18nProductId: g,
852
857
  directionMode: ye,
853
- fallbackTranslations: D,
854
- defaultBrand: ee,
855
- defaultMode: te,
856
- defaultDensity: ne,
857
- defaultTypography: re,
858
- defaultGlass: S,
858
+ fallbackTranslations: T,
859
+ defaultBrand: te,
860
+ defaultMode: ne,
861
+ defaultDensity: re,
862
+ defaultTypography: ie,
863
+ defaultGlass: x,
859
864
  productName: i,
860
- brandInitial: w,
861
- enablePWA: C,
862
- toasterPosition: oe,
863
- tourPageIdFromPath: fe,
864
- enableWorkspaceTourPermissions: he,
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 { dt as AppShellProvider, qe as RICH_TOAST_TOKEN_STYLE, $e as resolveAppShellObservabilityConfig, Q as withShellRybbitEvents };
881
+ export { ft as AppShellProvider, qe as RICH_TOAST_TOKEN_STYLE, et as resolveAppShellObservabilityConfig, Qe as withShellRybbitEvents };