@burdenoff/fe-libs 2026.1111.6 → 2026.1112.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.
@@ -194,8 +194,8 @@ function f(e, t, n, r) {
194
194
  case "aitoolevent": return "/vibecontrols/agents";
195
195
  case "workspace": return `/workspaces/${t}`;
196
196
  case "project": return n ? `/workspaces/${n}/projects/${t}` : `/projects/${t}`;
197
+ case "file": return `/files/preview/${encodeURIComponent(t)}`;
197
198
  case "document":
198
- case "file":
199
199
  case "page": return `/docs/${t}`;
200
200
  case "task": return `/tasks/${t}`;
201
201
  case "universaltag":
@@ -17,43 +17,44 @@ import { ProfileGeographyBridge as te } from "./shell/ProfileGeographyBridge.js"
17
17
  import { FeatureFlagsProvider as _ } from "./shell/FeatureFlagsProvider.js";
18
18
  import { GlobalUiProvider as v } from "./shell/GlobalUiProvider.js";
19
19
  import { ShellUiProvider as y } from "./shell/ShellUiProvider.js";
20
- import { FeatureFlagProvider as b } from "../feature-flags/FeatureFlagProvider.js";
21
- import { TourInitializer as x } from "../tours/TourInitializer.js";
22
- import { TourPlayerProvider as S } from "../tours/TourPlayerProvider.js";
23
- import { ToursProvider as ne, useToursContext as C } from "../tours/ToursContext.js";
24
- import { ErrorFallback as w } from "../components/ErrorFallback.js";
25
- import { BUILDMYIQ_RYBBIT_EVENTS as T } from "../events/buildmyiq.js";
26
- import { GGNOMAD_RYBBIT_EVENTS as E } from "../events/ggnomad.js";
27
- import { emitProductSlug as re, legacyProductSlug as ie } from "../config/productSlug.js";
28
- import { TIMECAMPUS_RYBBIT_EVENTS as ae } from "../events/timecampus.js";
29
- import { THECULTUREPOST_RYBBIT_EVENTS as oe } from "../events/theculturepost.js";
20
+ import { FeatureFlagProvider as ne } from "../feature-flags/FeatureFlagProvider.js";
21
+ import { TourInitializer as b } from "../tours/TourInitializer.js";
22
+ import { TourPlayerProvider as x } from "../tours/TourPlayerProvider.js";
23
+ import { ToursProvider as S, useToursContext as C } from "../tours/ToursContext.js";
24
+ import { tourRouteBootstrap as re } from "../tours/routeBootstrap.js";
25
+ import { BUILDMYIQ_RYBBIT_EVENTS as w } from "../events/buildmyiq.js";
26
+ import { GGNOMAD_RYBBIT_EVENTS as T } from "../events/ggnomad.js";
27
+ import { ErrorFallback as ie } from "../components/ErrorFallback.js";
28
+ import { TIMECAMPUS_RYBBIT_EVENTS as E } from "../events/timecampus.js";
29
+ import { THECULTUREPOST_RYBBIT_EVENTS as ae } from "../events/theculturepost.js";
30
30
  import { FLUIDGRIDS_RYBBIT_EVENTS as D } from "../events/fluidgrids.js";
31
- import { DevtoolsSink as se } from "../events/sinks/DevtoolsSink.js";
32
- import { BroadcastChannelSink as O } from "../events/sinks/BroadcastChannelSink.js";
33
- import { BackendAuditSink as ce } from "../events/sinks/BackendAuditSink.js";
34
- import { OtelBrowserSink as le } from "../events/sinks/OtelBrowserSink.js";
35
- import { setAssistantProductId as ue } from "../assistant/productContext.js";
36
- import { PWAInstallBanner as de } from "../components/PWAInstallBanner.js";
37
- import { DesktopUpdateToast as k } from "../components/DesktopUpdateToast.js";
38
- import { EventBusProvider as fe, useEventBus as pe } from "../../shared-events.js";
39
- import { AnalyticsConsentBanner as me, DEFAULT_RYBBIT_ALLOWLIST as he, RybbitSink as A } from "../events/sinks/RybbitSink.js";
40
- import { SEMANTICFED_ANALYTICS_ROUTES as j, SEMANTICFED_RYBBIT_EVENTS as M } from "../events/semanticfed.js";
41
- import { COMRADECIRCLE_ANALYTICS_ROUTES as N, COMRADECIRCLE_RYBBIT_EVENTS as P } from "../events/comradecircle.js";
42
- import { ATHELETEBRIDGE_ANALYTICS_ROUTES as F, ATHELETEBRIDGE_RYBBIT_EVENTS as I } from "../events/atheletebridge.js";
31
+ import { DevtoolsSink as O } from "../events/sinks/DevtoolsSink.js";
32
+ import { BroadcastChannelSink as k } from "../events/sinks/BroadcastChannelSink.js";
33
+ import { BackendAuditSink as A } from "../events/sinks/BackendAuditSink.js";
34
+ import { OtelBrowserSink as oe } from "../events/sinks/OtelBrowserSink.js";
35
+ import { emitProductSlug as se, legacyProductSlug as j } from "../config/productSlug.js";
36
+ import { setAssistantProductId as ce } from "../assistant/productContext.js";
37
+ import { PWAInstallBanner as M } from "../components/PWAInstallBanner.js";
38
+ import { DesktopUpdateToast as N } from "../components/DesktopUpdateToast.js";
39
+ import { EventBusProvider as le, useEventBus as ue } from "../../shared-events.js";
40
+ import { AnalyticsConsentBanner as de, DEFAULT_RYBBIT_ALLOWLIST as fe, RybbitSink as pe } from "../events/sinks/RybbitSink.js";
41
+ import { SEMANTICFED_ANALYTICS_ROUTES as me, SEMANTICFED_RYBBIT_EVENTS as P } from "../events/semanticfed.js";
42
+ import { COMRADECIRCLE_ANALYTICS_ROUTES as he, COMRADECIRCLE_RYBBIT_EVENTS as F } from "../events/comradecircle.js";
43
+ import { ATHELETEBRIDGE_ANALYTICS_ROUTES as I, ATHELETEBRIDGE_RYBBIT_EVENTS as L } from "../events/atheletebridge.js";
43
44
  import { attemptTokenRefresh as ge, clearAuthSessionStorage as _e, getSharedTokenRefreshRefs as ve, isAuthNetworkError as ye } from "../utils/authErrorHandling.js";
44
- import { SESSION_EXPIRED_EVENT as L, graphqlFetch as be } from "../graphql/fetch.js";
45
+ import { SESSION_EXPIRED_EVENT as R, graphqlFetch as be } from "../graphql/fetch.js";
45
46
  import { AppShellContextProvider as xe } from "./shell/AppShellContext.js";
46
- import { useReferralAttribution as R } from "../hooks/useReferralAttribution.js";
47
+ import { useReferralAttribution as z } from "../hooks/useReferralAttribution.js";
47
48
  import { ConsoleTransport as Se } from "../logger/ConsoleTransport.js";
48
49
  import { LogManager as Ce } from "../logger/LogManager.js";
49
- import { isShellLessRoute as z } from "../config/shellRoutes.js";
50
+ import { isShellLessRoute as B } from "../config/shellRoutes.js";
50
51
  import { useRegisterTourRouteCatalog as we } from "../tours/useTourRouteCatalog.js";
51
- import { BACKEND_ERROR_EVENT as B, CONNECTION_STATUS_EVENT as V, dispatchBackendErrorEvent as Te, getBackendErrorToastDedupe as Ee, isBackendErrorDisplay as De, shouldToastBackendError as Oe } from "../utils/backendErrors.js";
52
- import { usePushDeviceRegistration as ke } from "../hooks/usePushDeviceRegistration.js";
53
- import { Suspense as H, useCallback as U, useEffect as W, useMemo as G, useRef as K, useState as Ae } from "react";
54
- import { Fragment as q, jsx as J, jsxs as Y } from "react/jsx-runtime";
55
- import { BrowserRouter as je, useLocation as X } from "react-router";
56
- import { Toaster as Me, toast as Z } from "sonner";
52
+ import { BACKEND_ERROR_EVENT as V, CONNECTION_STATUS_EVENT as H, dispatchBackendErrorEvent as Te, getBackendErrorToastDedupe as Ee, isBackendErrorDisplay as De, shouldToastBackendError as Oe } from "../utils/backendErrors.js";
53
+ import { usePushDeviceRegistration as U } from "../hooks/usePushDeviceRegistration.js";
54
+ import { Suspense as W, useCallback as G, useEffect as K, useMemo as q, useRef as J, useState as ke } from "react";
55
+ import { Fragment as Ae, jsx as Y, jsxs as X } from "react/jsx-runtime";
56
+ import { BrowserRouter as je, useLocation as Z } from "react-router";
57
+ import { Toaster as Me, toast as Q } from "sonner";
57
58
  import { MutationCache as Ne, QueryCache as Pe, QueryClient as Fe, QueryClientProvider as Ie } from "@tanstack/react-query";
58
59
  // src/shared/providers/AppShellProvider.tsx
59
60
  var Le = {
@@ -129,10 +130,10 @@ var Le = {
129
130
  "coolandlovely.search.performed",
130
131
  "vibecontrols.agent.registered",
131
132
  ...D,
133
+ ...w,
134
+ ...ae,
132
135
  ...T,
133
- ...oe,
134
- ...E,
135
- ...I,
136
+ ...L,
136
137
  "vibecontrols.agent.gateway_auth_setup",
137
138
  "vibecontrols.session.created",
138
139
  "vibecontrols.session.started",
@@ -308,7 +309,7 @@ var Le = {
308
309
  "labsofscience.pipeline.run_started",
309
310
  "hookmovies.page.viewed",
310
311
  "headshotmarketing.page.viewed",
311
- ...ae,
312
+ ...E,
312
313
  "kadaikodi.page.viewed",
313
314
  "kadaikodi.discover.viewed",
314
315
  "kadaikodi.discover.searched",
@@ -328,7 +329,7 @@ var Le = {
328
329
  "project.created",
329
330
  "workspace-member.added",
330
331
  "project-member.added"
331
- ], Q = {
332
+ ], ze = {
332
333
  "--success-bg": "var(--color-status-success-bgSubtle)",
333
334
  "--success-border": "var(--color-status-success-border)",
334
335
  "--success-text": "var(--color-status-success-text)",
@@ -342,7 +343,7 @@ var Le = {
342
343
  "--error-border": "var(--color-status-error-border)",
343
344
  "--error-text": "var(--color-status-error-text)"
344
345
  };
345
- function ze(e) {
346
+ function Be(e) {
346
347
  let t = e.technicalMessage ?? e.extensions?.technicalMessage, n = {
347
348
  code: e.code,
348
349
  operationName: e.operationName,
@@ -354,13 +355,13 @@ function ze(e) {
354
355
  };
355
356
  console.error("[Burdenoff backend error]", e.message, n);
356
357
  }
357
- function Be(e) {
358
+ function Ve(e) {
358
359
  return e === "prod" || e === "production" ? "prod" : e === "alpha" || e === "staging" ? "alpha" : "dev";
359
360
  }
360
- function Ve(e, t) {
361
+ function He(e, t) {
361
362
  return e.VITE_DISABLE_ANALYTICS === "true" ? !1 : e.VITE_ENABLE_ANALYTICS === "true" || e.PROD || t !== "dev" ? !0 : e.VITE_ENABLE_ANALYTICS !== "false";
362
363
  }
363
- function He() {
364
+ function Ue() {
364
365
  return {
365
366
  BASE_URL: "/",
366
367
  DEV: !1,
@@ -369,9 +370,9 @@ function He() {
369
370
  SSR: !1
370
371
  };
371
372
  }
372
- function Ue(e, t) {
373
+ function We(e, t) {
373
374
  if (!t || t.length === 0 || !e.rybbit) return e;
374
- let n = e.rybbit.allowlist ?? he, r = [.../* @__PURE__ */ new Set([...n, ...t])];
375
+ let n = e.rybbit.allowlist ?? fe, r = [.../* @__PURE__ */ new Set([...n, ...t])];
375
376
  return {
376
377
  ...e,
377
378
  rybbit: {
@@ -380,22 +381,22 @@ function Ue(e, t) {
380
381
  }
381
382
  };
382
383
  }
383
- var We = {
384
+ var Ge = {
384
385
  comradecircle: {
385
- routes: N,
386
- events: P
386
+ routes: he,
387
+ events: F
387
388
  },
388
389
  semanticfed: {
389
- routes: j,
390
- events: M
390
+ routes: me,
391
+ events: P
391
392
  },
392
393
  atheletebridge: {
393
- routes: F,
394
- events: I
394
+ routes: I,
395
+ events: L
395
396
  }
396
397
  };
397
- function Ge(e, t) {
398
- let n = Be(t.VITE_DEPLOY_ENV ?? t.MODE), r = Ve(t, n), i = Le[e] ?? Le[ie(e)], a = n === "prod" ? i?.prod : i?.nonProd, o = t.VITE_RYBBIT_SITE_ID || a, s = We[e], c = t.VITE_BACKEND_AUDIT_ENDPOINT || (t.PROD ? "/api/fe-events" : void 0);
398
+ function Ke(e, t) {
399
+ let n = Ve(t.VITE_DEPLOY_ENV ?? t.MODE), r = He(t, n), i = Le[e] ?? Le[j(e)], a = n === "prod" ? i?.prod : i?.nonProd, o = t.VITE_RYBBIT_SITE_ID || a, s = Ge[e], c = t.VITE_BACKEND_AUDIT_ENDPOINT || (t.PROD ? "/api/fe-events" : void 0);
399
400
  return {
400
401
  enabled: r,
401
402
  appVersion: t.VITE_APP_VERSION || "0.0.0",
@@ -423,12 +424,12 @@ function Ge(e, t) {
423
424
  }
424
425
  };
425
426
  }
426
- function Ke({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
427
- let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } = C(), l = U((e, t) => e.steps?.[t], []), u = U((e) => {
427
+ function qe({ children: e, enablePWA: t, toasterPosition: n, productName: r, brandInitial: i }) {
428
+ let { trackProgress: a, recordStepCompletion: o, trackEvent: s, progressScopeKey: c } = C(), l = G((e, t) => e.steps?.[t], []), u = G((e) => {
428
429
  a(e.id, "started"), s("TOUR_STARTED", e.id);
429
- }, [s, a]), f = U((e) => {
430
+ }, [s, a]), f = G((e) => {
430
431
  a(e.id, "completed"), s("TOUR_COMPLETED", e.id);
431
- }, [s, a]), p = U((e, t) => {
432
+ }, [s, a]), p = G((e, t) => {
432
433
  let n = l(e, t);
433
434
  a(e.id, "skipped"), s("TOUR_SKIPPED", e.id, {
434
435
  stepId: n?.id,
@@ -438,13 +439,13 @@ function Ke({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
438
439
  l,
439
440
  s,
440
441
  a
441
- ]), m = U((e, t) => {
442
+ ]), m = G((e, t) => {
442
443
  let n = l(e, t);
443
444
  n && s("STEP_VIEWED", e.id, {
444
445
  stepId: n.id,
445
446
  stepOrder: n.stepOrder
446
447
  });
447
- }, [l, s]), h = U((e, t) => {
448
+ }, [l, s]), h = G((e, t) => {
448
449
  let n = l(e, t);
449
450
  n && (o(e.id, n.id), s("STEP_COMPLETED", e.id, {
450
451
  stepId: n.id,
@@ -455,7 +456,7 @@ function Ke({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
455
456
  o,
456
457
  s
457
458
  ]);
458
- return /* @__PURE__ */ Y(S, {
459
+ return /* @__PURE__ */ X(x, {
459
460
  scopeKey: c,
460
461
  onTourStart: u,
461
462
  onTourComplete: f,
@@ -463,21 +464,21 @@ function Ke({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
463
464
  onStepChange: m,
464
465
  onStepComplete: h,
465
466
  children: [
466
- /* @__PURE__ */ J(x, {}),
467
+ /* @__PURE__ */ Y(b, {}),
467
468
  e,
468
- /* @__PURE__ */ J(qe, {}),
469
- /* @__PURE__ */ J(d, {}),
470
- /* @__PURE__ */ J(Ye, {}),
471
- /* @__PURE__ */ J(Me, {
469
+ /* @__PURE__ */ Y(Je, {}),
470
+ /* @__PURE__ */ Y(d, {}),
471
+ /* @__PURE__ */ Y(Xe, {}),
472
+ /* @__PURE__ */ Y(Me, {
472
473
  position: n,
473
474
  richColors: !0,
474
475
  closeButton: !0,
475
- style: Q
476
+ style: ze
476
477
  }),
477
- /* @__PURE__ */ J(k, {}),
478
- t && /* @__PURE__ */ J(H, {
478
+ /* @__PURE__ */ Y(N, {}),
479
+ t && /* @__PURE__ */ Y(W, {
479
480
  fallback: null,
480
- children: /* @__PURE__ */ J(de, {
481
+ children: /* @__PURE__ */ Y(M, {
481
482
  productName: r,
482
483
  brandInitial: i
483
484
  })
@@ -485,40 +486,40 @@ function Ke({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
485
486
  ]
486
487
  });
487
488
  }
488
- function qe() {
489
- let e = K(null);
490
- return W(() => {
489
+ function Je() {
490
+ let e = J(null);
491
+ return K(() => {
491
492
  let t = (t) => {
492
493
  let n = t instanceof CustomEvent && De(t.detail) ? t.detail : null;
493
494
  if (!Oe(n)) return;
494
- ze(n);
495
+ Be(n);
495
496
  let { key: r, windowMs: i } = Ee(n), a = Date.now(), o = e.current;
496
497
  o?.key === r && a - o.shownAt < i || (e.current = {
497
498
  key: r,
498
499
  shownAt: a
499
- }, Z.error(n.message, { duration: 7e3 }));
500
+ }, Q.error(n.message, { duration: 7e3 }));
500
501
  };
501
- return window.addEventListener(B, t), () => window.removeEventListener(B, t);
502
+ return window.addEventListener(V, t), () => window.removeEventListener(V, t);
502
503
  }, []), null;
503
504
  }
504
- var $ = "burdenoff-connection-status", Je = 1500;
505
- function Ye() {
506
- let e = K(null), t = K(!1);
507
- return W(() => {
505
+ var $ = "burdenoff-connection-status", Ye = 1500;
506
+ function Xe() {
507
+ let e = J(null), t = J(!1);
508
+ return K(() => {
508
509
  let n = () => {
509
- t.current || (t.current = !0, Z.error("Connection lost. Trying to reconnect…", {
510
+ t.current || (t.current = !0, Q.error("Connection lost. Trying to reconnect…", {
510
511
  id: $,
511
512
  duration: Infinity
512
513
  }));
513
514
  }, r = () => {
514
515
  t.current || e.current || (e.current = setTimeout(() => {
515
516
  e.current = null, n();
516
- }, Je));
517
+ }, Ye));
517
518
  }, i = (n) => {
518
- e.current &&= (clearTimeout(e.current), null), t.current ? (t.current = !1, n ? Z.success("Back online", {
519
+ e.current &&= (clearTimeout(e.current), null), t.current ? (t.current = !1, n ? Q.success("Back online", {
519
520
  id: $,
520
521
  duration: 2500
521
- }) : Z.dismiss($)) : Z.dismiss($);
522
+ }) : Q.dismiss($)) : Q.dismiss($);
522
523
  }, a = (e) => {
523
524
  if (!(e instanceof CustomEvent)) return;
524
525
  let t = e.detail;
@@ -526,58 +527,58 @@ function Ye() {
526
527
  }, o = () => r(), s = () => {
527
528
  e.current &&= (clearTimeout(e.current), null);
528
529
  };
529
- return window.addEventListener(V, a), window.addEventListener("offline", o), window.addEventListener("online", s), () => {
530
- window.removeEventListener(V, a), window.removeEventListener("offline", o), window.removeEventListener("online", s), e.current && clearTimeout(e.current);
530
+ return window.addEventListener(H, a), window.addEventListener("offline", o), window.addEventListener("online", s), () => {
531
+ window.removeEventListener(H, a), window.removeEventListener("offline", o), window.removeEventListener("online", s), e.current && clearTimeout(e.current);
531
532
  };
532
533
  }, []), null;
533
534
  }
534
- function Xe() {
535
- return ke(), null;
535
+ function Ze() {
536
+ return U(), null;
536
537
  }
537
- function Ze({ 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: m, toasterPosition: ee, tourPageIdFromPath: x, enableWorkspaceTourPermissions: S }) {
538
- let C = X();
539
- R();
540
- let w = C.pathname.startsWith("/devportal") || C.pathname.startsWith("/organizations") || C.pathname.startsWith("/workspaces");
541
- return /* @__PURE__ */ Y(h, {
538
+ function Qe({ 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: m, toasterPosition: ee, tourPageIdFromPath: b, enableWorkspaceTourPermissions: x }) {
539
+ let C = Z();
540
+ z();
541
+ let w = re(C.pathname, !!x), T = /* @__PURE__ */ Y(te, { children: /* @__PURE__ */ Y(_, { children: /* @__PURE__ */ Y(ne, {
542
+ workspaceId: null,
543
+ gateway: "global",
544
+ defaultEnabled: !0,
545
+ children: /* @__PURE__ */ Y(v, { children: /* @__PURE__ */ Y(y, { children: /* @__PURE__ */ Y(e, {
546
+ fallback: null,
547
+ children: /* @__PURE__ */ Y(p, {
548
+ enabled: w.workspacePermissions,
549
+ children: /* @__PURE__ */ Y(S, {
550
+ requireWorkspace: w.requireWorkspace,
551
+ disabled: w.toursDisabled,
552
+ getPageIdFromPath: b,
553
+ children: /* @__PURE__ */ X(qe, {
554
+ enablePWA: m,
555
+ toasterPosition: ee,
556
+ productName: d,
557
+ brandInitial: f,
558
+ children: [/* @__PURE__ */ Y(Ze, {}), t]
559
+ })
560
+ })
561
+ })
562
+ }) }) })
563
+ }) }) });
564
+ return /* @__PURE__ */ X(h, {
542
565
  defaultBrand: o,
543
566
  defaultMode: s,
544
567
  defaultDensity: c,
545
568
  defaultTypography: l,
546
569
  defaultGlass: u,
547
- children: [/* @__PURE__ */ J(Qe, {}), /* @__PURE__ */ J(g, {
570
+ children: [/* @__PURE__ */ Y($e, {}), /* @__PURE__ */ Y(g, {
548
571
  i18nProductId: n,
549
572
  platformI18nProductId: r,
550
573
  directionMode: i,
551
574
  fallbackTranslations: a,
552
- children: /* @__PURE__ */ J(te, { children: /* @__PURE__ */ J(_, { children: /* @__PURE__ */ J(b, {
553
- workspaceId: null,
554
- gateway: "global",
555
- defaultEnabled: !0,
556
- children: /* @__PURE__ */ J(v, { children: /* @__PURE__ */ J(y, { children: /* @__PURE__ */ J(e, {
557
- fallback: null,
558
- children: /* @__PURE__ */ J(p, {
559
- enabled: S && !w,
560
- children: /* @__PURE__ */ J(ne, {
561
- requireWorkspace: S,
562
- disabled: w,
563
- getPageIdFromPath: x,
564
- children: /* @__PURE__ */ Y(Ke, {
565
- enablePWA: m,
566
- toasterPosition: ee,
567
- productName: d,
568
- brandInitial: f,
569
- children: [/* @__PURE__ */ J(Xe, {}), t]
570
- })
571
- })
572
- })
573
- }) }) })
574
- }) }) })
575
+ children: T
575
576
  })]
576
577
  });
577
578
  }
578
- function Qe() {
579
- let e = X();
580
- return W(() => {
579
+ function $e() {
580
+ let e = Z();
581
+ return K(() => {
581
582
  e.hash || requestAnimationFrame(() => {
582
583
  window.scrollTo({
583
584
  top: 0,
@@ -595,7 +596,7 @@ function Qe() {
595
596
  e.hash
596
597
  ]), null;
597
598
  }
598
- function $e(e) {
599
+ function et(e) {
599
600
  if (e instanceof Error) return e.message;
600
601
  if (typeof e == "string") return e;
601
602
  try {
@@ -604,9 +605,9 @@ function $e(e) {
604
605
  return String(e);
605
606
  }
606
607
  }
607
- function et() {
608
- let e = pe(), a = X(), o = K(void 0), s = K(void 0), c = K(null);
609
- return W(() => {
608
+ function tt() {
609
+ let e = ue(), a = Z(), o = J(void 0), s = J(void 0), c = J(null);
610
+ return K(() => {
610
611
  let t = `${a.pathname}${a.search}${a.hash}`;
611
612
  if (s.current !== t) return c.current && clearTimeout(c.current), c.current = setTimeout(() => {
612
613
  c.current = null;
@@ -626,7 +627,7 @@ function et() {
626
627
  a.hash,
627
628
  a.pathname,
628
629
  a.search
629
- ]), W(() => {
630
+ ]), K(() => {
630
631
  let t = (t) => {
631
632
  e.emit("error.runtime.caught", {
632
633
  message: t.message || "Runtime error",
@@ -636,12 +637,12 @@ function et() {
636
637
  errorName: t.error instanceof Error ? t.error.name : void 0
637
638
  });
638
639
  }, n = (t) => {
639
- e.emit("error.unhandledrejection", { reason: $e(t.reason) });
640
+ e.emit("error.unhandledrejection", { reason: et(t.reason) });
640
641
  };
641
642
  return window.addEventListener("error", t), window.addEventListener("unhandledrejection", n), () => {
642
643
  window.removeEventListener("error", t), window.removeEventListener("unhandledrejection", n);
643
644
  };
644
- }, [e]), W(() => {
645
+ }, [e]), K(() => {
645
646
  r((t) => {
646
647
  e.emit("perf.lcp.measured", {
647
648
  metric: "LCP",
@@ -673,19 +674,19 @@ function et() {
673
674
  });
674
675
  }, [e]), null;
675
676
  }
676
- function tt({ config: e, productSlug: t, productName: n, privacyConsent: r, privacyConsentReopen: i, consentRouteDenylist: a, rybbitSkipRoutes: o }) {
677
- let { pathname: s } = X(), c = z(s) || a?.(s) === !0;
678
- return /* @__PURE__ */ Y(q, { children: [
679
- /* @__PURE__ */ J(et, {}),
680
- r && !c ? /* @__PURE__ */ J(me, {
677
+ function nt({ config: e, productSlug: t, productName: n, privacyConsent: r, privacyConsentReopen: i, consentRouteDenylist: a, rybbitSkipRoutes: o }) {
678
+ let { pathname: s } = Z(), c = B(s) || a?.(s) === !0;
679
+ return /* @__PURE__ */ X(Ae, { children: [
680
+ /* @__PURE__ */ Y(tt, {}),
681
+ r && !c ? /* @__PURE__ */ Y(de, {
681
682
  productName: n,
682
683
  reopenable: i
683
684
  }) : null,
684
- e.enabled === !1 ? null : /* @__PURE__ */ Y(q, { children: [
685
- e.devtools ? /* @__PURE__ */ J(se, { enabled: !0 }) : null,
686
- e.broadcast === !1 ? null : /* @__PURE__ */ J(O, {}),
687
- e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ J(ce, { endpoint: e.backendAudit.endpoint }) : null,
688
- e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ J(A, {
685
+ e.enabled === !1 ? null : /* @__PURE__ */ X(Ae, { children: [
686
+ e.devtools ? /* @__PURE__ */ Y(O, { enabled: !0 }) : null,
687
+ e.broadcast === !1 ? null : /* @__PURE__ */ Y(k, {}),
688
+ e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ Y(A, { endpoint: e.backendAudit.endpoint }) : null,
689
+ e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ Y(pe, {
689
690
  siteId: e.rybbit.siteId,
690
691
  scriptUrl: e.rybbit.scriptUrl,
691
692
  eventEndpoint: e.rybbit.eventEndpoint,
@@ -696,7 +697,7 @@ function tt({ config: e, productSlug: t, productName: n, privacyConsent: r, priv
696
697
  skipRoutes: o,
697
698
  pathname: s
698
699
  }) : null,
699
- e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ J(le, {
700
+ e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ Y(oe, {
700
701
  endpoint: e.otel.endpoint,
701
702
  serviceName: e.otel.serviceName ?? `${t}-app`,
702
703
  flushInterval: e.otel.flushInterval
@@ -704,29 +705,29 @@ function tt({ config: e, productSlug: t, productName: n, privacyConsent: r, priv
704
705
  ] })
705
706
  ] });
706
707
  }
707
- function nt({ config: t, children: n, clearAuthStore: r }) {
708
- let { productName: i, productSlug: d = i.toLowerCase().replace(/\s+/g, ""), tagline: p = "", domain: h, i18nProductId: g, platformI18nProductId: te, rtl: _, gatewayUrls: v, authBridge: y, defaultBrand: b = "default", defaultMode: x, defaultDensity: S, defaultTypography: ne, defaultGlass: C, enablePWA: T = !0, brandInitial: E = i.charAt(0), defaultGateway: ie = "workspace", enableSubscriptions: ae = !0, fallbackTranslations: oe, queryClientOptions: D, toasterPosition: se = "bottom-right", observability: O, privacyConsent: ce = !1, privacyConsentReopen: le = !1, consentRouteDenylist: de, rybbitEvents: k, rybbitSkipRoutes: pe, tourPageIdFromPath: me, tourRouteCatalog: he, enableWorkspaceTourPermissions: A = !1, workspaceOperationGuard: j = "off" } = t;
709
- we(d, he), W(() => ue(re(d)), [d]);
710
- let [M] = Ae(() => ee({
708
+ function rt({ config: t, children: n, clearAuthStore: r }) {
709
+ let { productName: i, productSlug: d = i.toLowerCase().replace(/\s+/g, ""), tagline: p = "", domain: h, i18nProductId: g, platformI18nProductId: te, rtl: _, gatewayUrls: v, authBridge: y, defaultBrand: ne = "default", defaultMode: b, defaultDensity: x, defaultTypography: S, defaultGlass: C, enablePWA: re = !0, brandInitial: w = i.charAt(0), defaultGateway: T = "workspace", enableSubscriptions: E = !0, fallbackTranslations: ae, queryClientOptions: D, toasterPosition: O = "bottom-right", observability: k, privacyConsent: A = !1, privacyConsentReopen: oe = !1, consentRouteDenylist: j, rybbitEvents: M, rybbitSkipRoutes: N, tourPageIdFromPath: ue, tourRouteCatalog: de, enableWorkspaceTourPermissions: fe = !1, workspaceOperationGuard: pe = "off" } = t;
710
+ we(d, de), K(() => ce(se(d)), [d]);
711
+ let [me] = ke(() => ee({
711
712
  enabled: _?.enabled,
712
713
  allowPreview: _?.preview
713
- })), N = G(() => Ue(O ?? Ge(d, He()), k), [
714
- O,
714
+ })), P = q(() => We(k ?? Ke(d, Ue()), M), [
715
+ k,
715
716
  d,
716
- k
717
- ]), P = G(() => ({
717
+ M
718
+ ]), he = q(() => ({
718
719
  productName: i,
719
720
  productSlug: d,
720
- brandInitial: E,
721
+ brandInitial: w,
721
722
  tagline: p,
722
723
  domain: h
723
724
  }), [
724
725
  i,
725
726
  d,
726
- E,
727
+ w,
727
728
  p,
728
729
  h
729
- ]), F = K(!1), I = K(!!y?.url), R = U((e) => {
730
+ ]), F = J(!1), I = J(!!y?.url), L = G((e) => {
730
731
  if (!e?.force && (() => {
731
732
  try {
732
733
  let e = sessionStorage.getItem("bf-active-profile");
@@ -739,15 +740,15 @@ function nt({ config: t, children: n, clearAuthStore: r }) {
739
740
  })() || I.current || F.current) return;
740
741
  F.current = !0, _e(r);
741
742
  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);
742
- window.location.pathname.startsWith("/auth/") || z(window.location.pathname) || i ? F.current = !1 : window.location.replace(n);
743
- }, [r]), B = G(() => ({
743
+ window.location.pathname.startsWith("/auth/") || B(window.location.pathname) || i ? F.current = !1 : window.location.replace(n);
744
+ }, [r]), z = q(() => ({
744
745
  globalBaseUrl: v.globalBaseUrl,
745
746
  ...ve()
746
- }), [v.globalBaseUrl]), V = U(async () => ge(B), [B]), Ee = U(async () => {
747
- window.location.pathname.startsWith("/auth/") || await V() || R({ force: !0 });
748
- }, [V, R]), De = U(async (e) => {
749
- ye(e) ? await V() || R({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
750
- }, [V, R]), Oe = U(async (e) => {
747
+ }), [v.globalBaseUrl]), V = G(async () => ge(z), [z]), H = G(async () => {
748
+ window.location.pathname.startsWith("/auth/") || await V() || L({ force: !0 });
749
+ }, [V, L]), Ee = G(async (e) => {
750
+ ye(e) ? await V() || L({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
751
+ }, [V, L]), De = G(async (e) => {
751
752
  let t = await be({
752
753
  gateway: "global",
753
754
  baseUrl: v.globalBaseUrl,
@@ -762,7 +763,7 @@ function nt({ config: t, children: n, clearAuthStore: r }) {
762
763
  refreshToken: n.refreshToken,
763
764
  expiresAt: n.expiresIn ? Date.now() + n.expiresIn * 1e3 : void 0
764
765
  };
765
- }, [v.globalBaseUrl]), ke = U(() => s("organization"), []), H = G(() => {
766
+ }, [v.globalBaseUrl]), Oe = G(() => s("organization"), []), U = q(() => {
766
767
  let e = new Fe({
767
768
  queryCache: new Pe({ onError: (e) => {
768
769
  Te(e);
@@ -782,52 +783,52 @@ function nt({ config: t, children: n, clearAuthStore: r }) {
782
783
  } }
783
784
  });
784
785
  return e;
785
- }, [D]), q = l(H);
786
- return W(() => {
786
+ }, [D]), W = l(U);
787
+ return K(() => {
787
788
  let e = () => {
788
- R({ force: !0 });
789
+ L({ force: !0 });
789
790
  };
790
- return window.addEventListener(L, e), () => {
791
- window.removeEventListener(L, e);
791
+ return window.addEventListener(R, e), () => {
792
+ window.removeEventListener(R, e);
792
793
  };
793
- }, [R]), W(() => {
794
+ }, [L]), K(() => {
794
795
  let e = Ce.getInstance();
795
796
  e.getLogger("shell") || e.getLogger("shell").addTransport(new Se());
796
- }, []), /* @__PURE__ */ J(xe, {
797
- value: P,
798
- children: /* @__PURE__ */ J(fe, {
797
+ }, []), /* @__PURE__ */ Y(xe, {
798
+ value: he,
799
+ children: /* @__PURE__ */ Y(le, {
799
800
  appName: d,
800
- appVersion: N.appVersion,
801
- appEnv: N.appEnv,
801
+ appVersion: P.appVersion,
802
+ appEnv: P.appEnv,
802
803
  sourceMfe: d,
803
- children: /* @__PURE__ */ J(e, {
804
- FallbackComponent: w,
805
- children: /* @__PURE__ */ Y(je, { children: [/* @__PURE__ */ J(tt, {
806
- config: N,
804
+ children: /* @__PURE__ */ Y(e, {
805
+ FallbackComponent: ie,
806
+ children: /* @__PURE__ */ X(je, { children: [/* @__PURE__ */ Y(nt, {
807
+ config: P,
807
808
  productSlug: d,
808
809
  productName: i,
809
- privacyConsent: ce,
810
- privacyConsentReopen: le,
811
- consentRouteDenylist: de,
812
- rybbitSkipRoutes: pe
813
- }), /* @__PURE__ */ J(Ie, {
814
- client: H,
815
- children: /* @__PURE__ */ J(o, { children: /* @__PURE__ */ J(c, {
810
+ privacyConsent: A,
811
+ privacyConsentReopen: oe,
812
+ consentRouteDenylist: j,
813
+ rybbitSkipRoutes: N
814
+ }), /* @__PURE__ */ Y(Ie, {
815
+ client: U,
816
+ children: /* @__PURE__ */ Y(o, { children: /* @__PURE__ */ Y(c, {
816
817
  workspaceBaseUrl: v.workspaceBaseUrl,
817
818
  globalBaseUrl: v.globalBaseUrl,
818
- organizationId: ke,
819
+ organizationId: Oe,
819
820
  productSlug: d,
820
- defaultGateway: ie,
821
- enableSubscriptions: ae,
822
- onAuthError: Ee,
823
- onNetworkError: De,
821
+ defaultGateway: T,
822
+ enableSubscriptions: E,
823
+ onAuthError: H,
824
+ onNetworkError: Ee,
824
825
  onRefreshToken: V,
825
- workspaceOperationGuard: j,
826
- children: /* @__PURE__ */ Y(a, {
826
+ workspaceOperationGuard: pe,
827
+ children: /* @__PURE__ */ X(a, {
827
828
  bridgeUrl: y?.url,
828
829
  bridgeAllowedOrigins: y?.allowedOrigins,
829
830
  bridgeDebug: y?.debug,
830
- onRefreshToken: Oe,
831
+ onRefreshToken: De,
831
832
  onBridgeReady: () => {
832
833
  I.current = !1;
833
834
  },
@@ -835,27 +836,27 @@ function nt({ config: t, children: n, clearAuthStore: r }) {
835
836
  console.warn("[Auth] Session will expire in 5 minutes");
836
837
  },
837
838
  onTokenExpired: () => {
838
- R();
839
+ L();
839
840
  },
840
- onBeforeIdentityChange: q.onBeforeIdentityChange,
841
- children: [/* @__PURE__ */ J(u, { announcementsRef: q.announcementsRef }), /* @__PURE__ */ J(f, {
841
+ onBeforeIdentityChange: W.onBeforeIdentityChange,
842
+ children: [/* @__PURE__ */ Y(u, { announcementsRef: W.announcementsRef }), /* @__PURE__ */ Y(f, {
842
843
  syncToUrl: !0,
843
- children: /* @__PURE__ */ J(m, { children: /* @__PURE__ */ J(Ze, {
844
+ children: /* @__PURE__ */ Y(m, { children: /* @__PURE__ */ Y(Qe, {
844
845
  i18nProductId: g,
845
846
  platformI18nProductId: te,
846
- directionMode: M,
847
- fallbackTranslations: oe,
848
- defaultBrand: b,
849
- defaultMode: x,
850
- defaultDensity: S,
851
- defaultTypography: ne,
847
+ directionMode: me,
848
+ fallbackTranslations: ae,
849
+ defaultBrand: ne,
850
+ defaultMode: b,
851
+ defaultDensity: x,
852
+ defaultTypography: S,
852
853
  defaultGlass: C,
853
854
  productName: i,
854
- brandInitial: E,
855
- enablePWA: T,
856
- toasterPosition: se,
857
- tourPageIdFromPath: me,
858
- enableWorkspaceTourPermissions: A,
855
+ brandInitial: w,
856
+ enablePWA: re,
857
+ toasterPosition: O,
858
+ tourPageIdFromPath: ue,
859
+ enableWorkspaceTourPermissions: fe,
859
860
  children: n
860
861
  }) })
861
862
  })]
@@ -866,4 +867,4 @@ function nt({ config: t, children: n, clearAuthStore: r }) {
866
867
  })
867
868
  });
868
869
  }
869
- export { nt as AppShellProvider, Q as RICH_TOAST_TOKEN_STYLE, Ge as resolveAppShellObservabilityConfig, Ue as withShellRybbitEvents };
870
+ export { rt as AppShellProvider, ze as RICH_TOAST_TOKEN_STYLE, Ke as resolveAppShellObservabilityConfig, We as withShellRybbitEvents };
@@ -20,7 +20,7 @@ import { useLocation as oe } from "react-router";
20
20
  // src/shared/tours/ToursContext.tsx
21
21
  var y = f(null);
22
22
  function b({ children: f, defaultPageId: p = "home", getPageIdFromPath: b, disabled: x = !1, requireWorkspace: S = !1 }) {
23
- let C = oe(), w = e("global"), { workspaceId: se } = t(), { user: T } = a(), E = n(), { productSlug: D } = o(), O = i("ToursContext"), k = se ?? void 0, A = x || S && !k || C.pathname.startsWith("/devportal"), { moduleId: j, pageId: M } = g(() => te(C.pathname, D, p, b), [
23
+ let C = oe(), w = e("global"), { workspaceId: se } = t(), { user: T } = a(), E = n(), { productSlug: D } = o(), O = i("ToursContext"), k = se ?? void 0, A = x || S && !k, { moduleId: j, pageId: M } = g(() => te(C.pathname, D, p, b), [
24
24
  p,
25
25
  b,
26
26
  C.pathname,
@@ -0,0 +1,21 @@
1
+ /**
2
+ * How the shell bootstraps tours on a route (BOFF-11707).
3
+ *
4
+ * Deferred-bootstrap routes (/organizations, /workspaces, /devportal) render
5
+ * before the workspace context settles, so workspace RBAC for tour targeting
6
+ * is not resolved there. /organizations and /workspaces are context pickers
7
+ * and load no tours. /devportal is a global-only product module with its own
8
+ * tours, so tours load there with global auth: no workspace is required and
9
+ * only tours without required permissions are offered.
10
+ */
11
+ export interface TourRouteBootstrap {
12
+ /** The route renders before the full app bootstrap completes. */
13
+ deferredBootstrap: boolean;
14
+ /** Load no tours on this route. */
15
+ toursDisabled: boolean;
16
+ /** Wait for a workspace before loading tours. */
17
+ requireWorkspace: boolean;
18
+ /** Resolve workspace RBAC for permission-targeted tours. */
19
+ workspacePermissions: boolean;
20
+ }
21
+ export declare function tourRouteBootstrap(pathname: string, enableWorkspaceTourPermissions: boolean): TourRouteBootstrap;
@@ -0,0 +1,16 @@
1
+ // src/shared/tours/routeBootstrap.ts
2
+ var e = [
3
+ "/devportal",
4
+ "/organizations",
5
+ "/workspaces"
6
+ ], t = ["/devportal"], n = (e, t) => t.some((t) => e === t || e.startsWith(`${t}/`));
7
+ function r(r, i) {
8
+ let a = n(r, e), o = n(r, t);
9
+ return {
10
+ deferredBootstrap: a,
11
+ toursDisabled: a && !o,
12
+ requireWorkspace: i && !o,
13
+ workspacePermissions: i && !a
14
+ };
15
+ }
16
+ export { r as tourRouteBootstrap };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/fe-libs",
3
- "version": "2026.1111.6",
3
+ "version": "2026.1112.2",
4
4
  "description": "Burdenoff frontend primitives and domain libraries",
5
5
  "repository": {
6
6
  "type": "git",