@burdenoff/fe-libs 2026.1115.8 → 2026.1115.10

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 (48) hide show
  1. package/dist/chrome/globalSearch/ResultsList.js +39 -33
  2. package/dist/chrome/index.d.ts +1 -0
  3. package/dist/chrome/shell/ShellSidebar.js +287 -281
  4. package/dist/chrome/shell/shellSidebarWidth.d.ts +16 -0
  5. package/dist/chrome/shell/shellSidebarWidth.js +26 -0
  6. package/dist/chrome/shellLabelManifest.d.ts +8 -0
  7. package/dist/chrome.js +65 -63
  8. package/dist/shared/assistant/i18nManifest.d.ts +6 -4
  9. package/dist/shared/assistant/i18nManifest.js +6 -4
  10. package/dist/shared/assistant/index.d.ts +1 -0
  11. package/dist/shared/assistant/ui/AssistantChatArea.js +1108 -1107
  12. package/dist/shared/assistant/ui/AssistantSpeechProvider.js +16 -6
  13. package/dist/shared/assistant/voice/phraseGate.js +2 -0
  14. package/dist/shared/assistant/voice/revealSpoken.d.ts +14 -0
  15. package/dist/shared/assistant/voice/revealSpoken.js +28 -0
  16. package/dist/shared/assistant/voice/speakableText.d.ts +27 -3
  17. package/dist/shared/assistant/voice/speakableText.js +149 -120
  18. package/dist/shared/assistant/voice/speechLabels.js +28 -16
  19. package/dist/shared/constants/shellCssVars.d.ts +9 -0
  20. package/dist/shared/constants/shellCssVars.js +3 -0
  21. package/dist/shared/events/sinks/RybbitSink.d.ts +13 -1
  22. package/dist/shared/events/sinks/RybbitSink.js +129 -121
  23. package/dist/shared/events/sinks/index.d.ts +1 -1
  24. package/dist/shared/pages/SearchPage.d.ts +17 -1
  25. package/dist/shared/pages/SearchPage.js +284 -243
  26. package/dist/shared/pages/searchPage/PageResultsGroup.d.ts +16 -0
  27. package/dist/shared/pages/searchPage/PageResultsGroup.js +29 -0
  28. package/dist/shared/pages/searchPage/ResultsList.d.ts +6 -1
  29. package/dist/shared/pages/searchPage/ResultsList.js +9 -53
  30. package/dist/shared/pages/searchPage/SearchResultCard.d.ts +14 -0
  31. package/dist/shared/pages/searchPage/SearchResultCard.js +57 -0
  32. package/dist/shared/providers/AppShellProvider.d.ts +8 -0
  33. package/dist/shared/providers/AppShellProvider.js +91 -89
  34. package/dist/shared/providers/shell/PersonaSurfaceProvider.d.ts +27 -1
  35. package/dist/shared/providers/shell/PersonaSurfaceProvider.js +214 -179
  36. package/dist/shared/providers/shell/index.d.ts +2 -0
  37. package/dist/shared/providers/shell/navIdMigration.d.ts +29 -0
  38. package/dist/shared/providers/shell/navIdMigration.js +57 -0
  39. package/dist/shared/providers/shell/personaSurfaceRemote.d.ts +7 -0
  40. package/dist/shared/providers/shell/personaSurfaceRemote.js +1 -1
  41. package/dist/shared/types/index.d.ts +11 -0
  42. package/dist/shared-assistant.js +396 -395
  43. package/dist/shared-providers-shell.js +13 -12
  44. package/dist/ui/access-needed-chip.d.ts +16 -0
  45. package/dist/ui/access-needed-chip.js +17 -0
  46. package/dist/ui/index.d.ts +1 -0
  47. package/dist/ui.js +50 -49
  48. package/package.json +1 -1
@@ -0,0 +1,16 @@
1
+ import { SearchResult } from '../../types';
2
+ export interface PageResultsGroupProps {
3
+ results: readonly SearchResult[];
4
+ getEntityIcon: (entityType: string) => React.ComponentType<{
5
+ className?: string;
6
+ }>;
7
+ onResultClick: (result: SearchResult) => void;
8
+ /** True when record results follow, so they get a heading of their own. */
9
+ recordsFollow: boolean;
10
+ }
11
+ /**
12
+ * The opt-in "Pages" group of the full search page (BOFF-11842): the host's
13
+ * page destinations, listed above the record results. Renders nothing when
14
+ * there are no page results, so a host without page search sees no change.
15
+ */
16
+ export declare function PageResultsGroup({ results, getEntityIcon, onResultClick, recordsFollow, }: PageResultsGroupProps): import('react').JSX.Element | null;
@@ -0,0 +1,29 @@
1
+ import { useShellLabel as e } from "../../providers/shell/useShellLabel.js";
2
+ import { SearchResultCard as t } from "./SearchResultCard.js";
3
+ import { useId as n } from "react";
4
+ import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ // src/shared/pages/searchPage/PageResultsGroup.tsx
6
+ function o({ results: o, getEntityIcon: s, onResultClick: c, recordsFollow: l }) {
7
+ let u = e(), d = n();
8
+ return o.length === 0 ? null : /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("section", {
9
+ "aria-labelledby": d,
10
+ className: "mb-6",
11
+ "data-search-group": "pages",
12
+ children: [/* @__PURE__ */ i("h2", {
13
+ id: d,
14
+ className: "mb-2 text-xs font-medium uppercase tracking-wider text-text-muted",
15
+ children: u("search.group.pages", "Pages")
16
+ }), /* @__PURE__ */ i("div", {
17
+ className: "space-y-3",
18
+ children: o.map((e) => /* @__PURE__ */ i(t, {
19
+ result: e,
20
+ getEntityIcon: s,
21
+ onResultClick: c
22
+ }, e.id))
23
+ })]
24
+ }), l ? /* @__PURE__ */ i("h2", {
25
+ className: "mb-2 text-xs font-medium uppercase tracking-wider text-text-muted",
26
+ children: u("search.group.records", "Results")
27
+ }) : null] });
28
+ }
29
+ export { o as PageResultsGroup };
@@ -8,5 +8,10 @@ export interface ResultsListProps {
8
8
  className?: string;
9
9
  }>;
10
10
  onResultClick: (result: SearchResult) => void;
11
+ /**
12
+ * True when other results (the opt-in "Pages" group, BOFF-11842) are shown
13
+ * above this list, so an empty record list is not a "No results found" page.
14
+ */
15
+ hasOtherResults?: boolean;
11
16
  }
12
- export declare function ResultsList({ isSearching, error, query, results, getEntityIcon, onResultClick, }: ResultsListProps): import('react').JSX.Element;
17
+ export declare function ResultsList({ isSearching, error, query, results, getEntityIcon, onResultClick, hasOtherResults, }: ResultsListProps): import('react').JSX.Element;
@@ -1,7 +1,8 @@
1
- import { Clock as e, Search as t } from "lucide-react";
1
+ import { SearchResultCard as e } from "./SearchResultCard.js";
2
+ import { Search as t } from "lucide-react";
2
3
  import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
3
4
  // src/shared/pages/searchPage/ResultsList.tsx
4
- function a({ isSearching: a, error: o, query: s, results: c, getEntityIcon: l, onResultClick: u }) {
5
+ function a({ isSearching: a, error: o, query: s, results: c, getEntityIcon: l, onResultClick: u, hasOtherResults: d = !1 }) {
5
6
  return /* @__PURE__ */ i("div", {
6
7
  className: "space-y-3",
7
8
  children: [
@@ -21,7 +22,7 @@ function a({ isSearching: a, error: o, query: s, results: c, getEntityIcon: l, o
21
22
  })]
22
23
  })
23
24
  }, e)) }),
24
- !a && !o && c.length === 0 && s && /* @__PURE__ */ i("div", {
25
+ !a && !o && c.length === 0 && s && !d && /* @__PURE__ */ i("div", {
25
26
  className: "py-12 text-center",
26
27
  children: [
27
28
  /* @__PURE__ */ r(t, { className: "size-12 mx-auto text-text-tertiary mb-4" }),
@@ -65,56 +66,11 @@ function a({ isSearching: a, error: o, query: s, results: c, getEntityIcon: l, o
65
66
  })
66
67
  ]
67
68
  }),
68
- c.map((t) => {
69
- let n = l(t.entityType || t.category);
70
- return /* @__PURE__ */ r("button", {
71
- type: "button",
72
- onClick: () => u(t),
73
- className: "w-full p-4 bg-bg-surface rounded-lg border border-border-default hover:border-primary-default hover:shadow-sm transition-all text-start group",
74
- children: /* @__PURE__ */ i("div", {
75
- className: "flex items-start gap-3",
76
- children: [/* @__PURE__ */ r("div", {
77
- className: "flex-shrink-0 size-10 rounded-md bg-bg-muted flex items-center justify-center group-hover:bg-primary-default/10 transition-colors",
78
- children: /* @__PURE__ */ r(n, { className: "size-5 text-text-tertiary group-hover:text-primary-default" })
79
- }), /* @__PURE__ */ i("div", {
80
- className: "flex-1 min-w-0",
81
- children: [
82
- /* @__PURE__ */ i("div", {
83
- className: "flex items-center gap-2 mb-1",
84
- children: [
85
- /* @__PURE__ */ r("h3", {
86
- className: "text-base font-medium text-text-primary truncate group-hover:text-primary-default",
87
- children: t.title
88
- }),
89
- /* @__PURE__ */ r("span", {
90
- className: "flex-shrink-0 px-2 py-0.5 text-xs font-medium bg-bg-muted text-text-tertiary rounded",
91
- children: t.entityType || t.category
92
- }),
93
- t.productSource && /* @__PURE__ */ r("span", {
94
- className: "flex-shrink-0 px-2 py-0.5 text-xs font-medium bg-bg-muted text-text-tertiary rounded",
95
- children: t.productSource
96
- })
97
- ]
98
- }),
99
- t.description && /* @__PURE__ */ r("p", {
100
- className: "text-sm text-text-secondary line-clamp-2",
101
- children: t.description
102
- }),
103
- /* @__PURE__ */ i("div", {
104
- className: "flex items-center gap-4 mt-2 text-xs text-text-tertiary",
105
- children: [t.score !== void 0 && t.score > 0 && /* @__PURE__ */ i("span", {
106
- className: "flex items-center gap-1",
107
- children: ["Score: ", t.score.toFixed(2)]
108
- }), t.metadata?.createdAt && /* @__PURE__ */ i("span", {
109
- className: "flex items-center gap-1",
110
- children: [/* @__PURE__ */ r(e, { className: "size-3" }), new Date(String(t.metadata.createdAt)).toLocaleDateString()]
111
- })]
112
- })
113
- ]
114
- })]
115
- })
116
- }, t.id);
117
- })
69
+ c.map((t) => /* @__PURE__ */ r(e, {
70
+ result: t,
71
+ getEntityIcon: l,
72
+ onResultClick: u
73
+ }, t.id))
118
74
  ]
119
75
  });
120
76
  }
@@ -0,0 +1,14 @@
1
+ import { SearchResult } from '../../types';
2
+ export interface SearchResultCardProps {
3
+ result: SearchResult;
4
+ getEntityIcon: (entityType: string) => React.ComponentType<{
5
+ className?: string;
6
+ }>;
7
+ onResultClick: (result: SearchResult) => void;
8
+ }
9
+ /**
10
+ * One result on the full search page. A result marked `access: 'denied'`
11
+ * (BOFF-11842) also carries a lock and "You need access"; it stays a button and
12
+ * clicking it still calls `onResultClick`, so the host decides where it goes.
13
+ */
14
+ export declare function SearchResultCard({ result, getEntityIcon, onResultClick }: SearchResultCardProps): import('react').JSX.Element;
@@ -0,0 +1,57 @@
1
+ import { AccessNeededChip as e } from "../../../ui/access-needed-chip.js";
2
+ import { Clock as t } from "lucide-react";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ // src/shared/pages/searchPage/SearchResultCard.tsx
5
+ function i({ result: i, getEntityIcon: a, onResultClick: o }) {
6
+ let s = a(i.entityType || i.category), c = i.access === "denied";
7
+ return /* @__PURE__ */ n("button", {
8
+ type: "button",
9
+ onClick: () => o(i),
10
+ "data-access": c ? "denied" : void 0,
11
+ className: "w-full p-4 bg-bg-surface rounded-lg border border-border-default hover:border-primary-default hover:shadow-sm transition-[box-shadow,border-color] text-start group",
12
+ children: /* @__PURE__ */ r("div", {
13
+ className: "flex items-start gap-3",
14
+ children: [/* @__PURE__ */ n("div", {
15
+ className: "flex-shrink-0 size-10 rounded-md bg-bg-muted flex items-center justify-center group-hover:bg-primary-default/10 transition-colors",
16
+ children: /* @__PURE__ */ n(s, { className: "size-5 text-text-tertiary group-hover:text-primary-default" })
17
+ }), /* @__PURE__ */ r("div", {
18
+ className: "flex-1 min-w-0",
19
+ children: [
20
+ /* @__PURE__ */ r("div", {
21
+ className: "flex items-center gap-2 mb-1",
22
+ children: [
23
+ /* @__PURE__ */ n("h3", {
24
+ className: "text-base font-medium text-text-primary truncate group-hover:text-primary-default",
25
+ children: i.title
26
+ }),
27
+ /* @__PURE__ */ n("span", {
28
+ className: "flex-shrink-0 px-2 py-0.5 text-xs font-medium bg-bg-muted text-text-tertiary rounded",
29
+ children: i.entityType || i.category
30
+ }),
31
+ i.productSource && /* @__PURE__ */ n("span", {
32
+ className: "flex-shrink-0 px-2 py-0.5 text-xs font-medium bg-bg-muted text-text-tertiary rounded",
33
+ children: i.productSource
34
+ }),
35
+ c && /* @__PURE__ */ n(e, {})
36
+ ]
37
+ }),
38
+ i.description && /* @__PURE__ */ n("p", {
39
+ className: "text-sm text-text-secondary line-clamp-2",
40
+ children: i.description
41
+ }),
42
+ /* @__PURE__ */ r("div", {
43
+ className: "flex items-center gap-4 mt-2 text-xs text-text-tertiary",
44
+ children: [i.score !== void 0 && i.score > 0 && /* @__PURE__ */ r("span", {
45
+ className: "flex items-center gap-1",
46
+ children: ["Score: ", i.score.toFixed(2)]
47
+ }), i.metadata?.createdAt && /* @__PURE__ */ r("span", {
48
+ className: "flex items-center gap-1",
49
+ children: [/* @__PURE__ */ n(t, { className: "size-3" }), new Date(String(i.metadata.createdAt)).toLocaleDateString()]
50
+ })]
51
+ })
52
+ ]
53
+ })]
54
+ })
55
+ });
56
+ }
57
+ export { i as SearchResultCard };
@@ -3,6 +3,7 @@ import { WorkspaceOperationGuardMode } from '../graphql/workspaceOperationGuard'
3
3
  import { Brand, ThemeMode, Density, Typography, GlassIntensity } from './shell/ThemeProvider';
4
4
  import { TranslationDictionary } from './shell/I18nProvider';
5
5
  import { BurdenoffEventName } from '../events';
6
+ import { ConsentBannerPlacement } from '../events/sinks/RybbitSink';
6
7
  import { TourRouteCatalogEntry } from '../tours/routeCatalog';
7
8
  export interface AppShellConfig {
8
9
  /** Product display name (e.g., "VibeControls", "FluidGrids") */
@@ -77,6 +78,13 @@ export interface AppShellConfig {
77
78
  privacyConsent?: boolean;
78
79
  /** Keep a visible control for changing or withdrawing the analytics choice. */
79
80
  privacyConsentReopen?: boolean;
81
+ /**
82
+ * Where the consent banner and its reopen button sit (BOFF-11842). 'start'
83
+ * (default) keeps them 1rem from the viewport edge. 'after-sidebar' starts
84
+ * them after the fe-libs shell sidebar (`ShellSidebar` / `ShellSidebarRail`
85
+ * publish their width), so they never cover its profile button or bell.
86
+ */
87
+ privacyConsentPlacement?: ConsentBannerPlacement;
80
88
  /**
81
89
  * Extra routes on which the analytics-consent prompt must NOT render (BOFF-6373).
82
90
  *
@@ -18,28 +18,28 @@ import { ProfileGeographyBridge as v } from "./shell/ProfileGeographyBridge.js";
18
18
  import { FeatureFlagsProvider as y } from "./shell/FeatureFlagsProvider.js";
19
19
  import { GlobalUiProvider as b } from "./shell/GlobalUiProvider.js";
20
20
  import { ShellUiProvider as te } from "./shell/ShellUiProvider.js";
21
- import { FeatureFlagProvider as x } from "../feature-flags/FeatureFlagProvider.js";
22
- import { TourInitializer as S } from "../tours/TourInitializer.js";
23
- import { TourPlayerProvider as C } from "../tours/TourPlayerProvider.js";
24
- import { ToursProvider as ne, useToursContext as w } from "../tours/ToursContext.js";
21
+ import { FeatureFlagProvider as ne } from "../feature-flags/FeatureFlagProvider.js";
22
+ import { TourInitializer as x } from "../tours/TourInitializer.js";
23
+ import { TourPlayerProvider as S } from "../tours/TourPlayerProvider.js";
24
+ import { ToursProvider as C, useToursContext as w } from "../tours/ToursContext.js";
25
25
  import { tourRouteBootstrap as T } from "../tours/routeBootstrap.js";
26
26
  import { BUILDMYIQ_RYBBIT_EVENTS as E } from "../events/buildmyiq.js";
27
27
  import { GGNOMAD_RYBBIT_EVENTS as re } from "../events/ggnomad.js";
28
28
  import { ErrorFallback as ie } from "../components/ErrorFallback.js";
29
- import { TIMECAMPUS_RYBBIT_EVENTS as ae } from "../events/timecampus.js";
30
- import { THECULTUREPOST_RYBBIT_EVENTS as D } from "../events/theculturepost.js";
31
- import { FLUIDGRIDS_RYBBIT_EVENTS as oe } from "../events/fluidgrids.js";
32
- import { DevtoolsSink as O } from "../events/sinks/DevtoolsSink.js";
33
- import { BroadcastChannelSink as k } from "../events/sinks/BroadcastChannelSink.js";
34
- import { BackendAuditSink as A } from "../events/sinks/BackendAuditSink.js";
35
- import { OtelBrowserSink as j } from "../events/sinks/OtelBrowserSink.js";
36
- import { emitProductSlug as se, legacyProductSlug as M } from "../config/productSlug.js";
37
- import { setAssistantProductId as ce } from "../assistant/productContext.js";
38
- import { PWAInstallBanner as le } from "../components/PWAInstallBanner.js";
29
+ import { TIMECAMPUS_RYBBIT_EVENTS as D } from "../events/timecampus.js";
30
+ import { THECULTUREPOST_RYBBIT_EVENTS as O } from "../events/theculturepost.js";
31
+ import { FLUIDGRIDS_RYBBIT_EVENTS as ae } from "../events/fluidgrids.js";
32
+ import { DevtoolsSink as k } from "../events/sinks/DevtoolsSink.js";
33
+ import { BroadcastChannelSink as A } from "../events/sinks/BroadcastChannelSink.js";
34
+ import { BackendAuditSink as j } from "../events/sinks/BackendAuditSink.js";
35
+ import { OtelBrowserSink as oe } from "../events/sinks/OtelBrowserSink.js";
36
+ import { emitProductSlug as se, legacyProductSlug as ce } from "../config/productSlug.js";
37
+ import { setAssistantProductId as le } from "../assistant/productContext.js";
38
+ import { PWAInstallBanner as M } from "../components/PWAInstallBanner.js";
39
39
  import { DesktopUpdateToast as ue } from "../components/DesktopUpdateToast.js";
40
40
  import { EventBusProvider as de, useEventBus as fe } from "../../shared-events.js";
41
41
  import { AnalyticsConsentBanner as pe, DEFAULT_RYBBIT_ALLOWLIST as me, RybbitSink as he } from "../events/sinks/RybbitSink.js";
42
- import { SEMANTICFED_ANALYTICS_ROUTES as N, SEMANTICFED_RYBBIT_EVENTS as ge } from "../events/semanticfed.js";
42
+ import { SEMANTICFED_ANALYTICS_ROUTES as ge, SEMANTICFED_RYBBIT_EVENTS as N } from "../events/semanticfed.js";
43
43
  import { COMRADECIRCLE_ANALYTICS_ROUTES as P, COMRADECIRCLE_RYBBIT_EVENTS as F } from "../events/comradecircle.js";
44
44
  import { ATHELETEBRIDGE_ANALYTICS_ROUTES as I, ATHELETEBRIDGE_RYBBIT_EVENTS as L } from "../events/atheletebridge.js";
45
45
  import { attemptTokenRefresh as _e, clearAuthSessionStorage as ve, getSharedTokenRefreshRefs as ye, isAuthNetworkError as be } from "../utils/authErrorHandling.js";
@@ -50,9 +50,9 @@ import { ConsoleTransport as Ce } from "../logger/ConsoleTransport.js";
50
50
  import { LogManager as we } from "../logger/LogManager.js";
51
51
  import { isShellLessRoute as B } from "../config/shellRoutes.js";
52
52
  import { useRegisterTourRouteCatalog as Te } from "../tours/useTourRouteCatalog.js";
53
- import { BACKEND_ERROR_EVENT as V, CONNECTION_STATUS_EVENT as H, dispatchBackendErrorEvent as Ee, getBackendErrorToastDedupe as De, isBackendErrorDisplay as Oe, shouldToastBackendError as U } from "../utils/backendErrors.js";
54
- import { usePushDeviceRegistration as W } from "../hooks/usePushDeviceRegistration.js";
55
- import { Suspense as ke, useCallback as G, useEffect as K, useMemo as q, useRef as J, useState as Ae } from "react";
53
+ import { BACKEND_ERROR_EVENT as V, CONNECTION_STATUS_EVENT as H, dispatchBackendErrorEvent as Ee, getBackendErrorToastDedupe as De, isBackendErrorDisplay as Oe, shouldToastBackendError as ke } from "../utils/backendErrors.js";
54
+ import { usePushDeviceRegistration as U } from "../hooks/usePushDeviceRegistration.js";
55
+ import { Suspense as W, useCallback as G, useEffect as K, useMemo as q, useRef as J, useState as Ae } from "react";
56
56
  import { Fragment as je, jsx as Y, jsxs as X } from "react/jsx-runtime";
57
57
  import { BrowserRouter as Me, useLocation as Z } from "react-router";
58
58
  import { Toaster as Ne, toast as Q } from "sonner";
@@ -130,9 +130,9 @@ var Re = {
130
130
  "coolandlovely.wardrobe.item_added",
131
131
  "coolandlovely.search.performed",
132
132
  "vibecontrols.agent.registered",
133
- ...oe,
133
+ ...ae,
134
134
  ...E,
135
- ...D,
135
+ ...O,
136
136
  ...re,
137
137
  ...L,
138
138
  "vibecontrols.agent.gateway_auth_setup",
@@ -310,7 +310,7 @@ var Re = {
310
310
  "labsofscience.pipeline.run_started",
311
311
  "hookmovies.page.viewed",
312
312
  "headshotmarketing.page.viewed",
313
- ...ae,
313
+ ...D,
314
314
  "kadaikodi.page.viewed",
315
315
  "kadaikodi.discover.viewed",
316
316
  "kadaikodi.discover.searched",
@@ -388,8 +388,8 @@ var Ke = {
388
388
  events: F
389
389
  },
390
390
  semanticfed: {
391
- routes: N,
392
- events: ge
391
+ routes: ge,
392
+ events: N
393
393
  },
394
394
  atheletebridge: {
395
395
  routes: I,
@@ -397,7 +397,7 @@ var Ke = {
397
397
  }
398
398
  };
399
399
  function qe(e, t) {
400
- let n = He(t.VITE_DEPLOY_ENV ?? t.MODE), r = Ue(t, n), i = Re[e] ?? Re[M(e)], a = n === "prod" ? i?.prod : i?.nonProd, o = t.VITE_RYBBIT_SITE_ID || a, s = Ke[e], c = t.VITE_BACKEND_AUDIT_ENDPOINT || (t.PROD ? "/api/fe-events" : void 0);
400
+ let n = He(t.VITE_DEPLOY_ENV ?? t.MODE), r = Ue(t, n), i = Re[e] ?? Re[ce(e)], a = n === "prod" ? i?.prod : i?.nonProd, o = t.VITE_RYBBIT_SITE_ID || a, s = Ke[e], c = t.VITE_BACKEND_AUDIT_ENDPOINT || (t.PROD ? "/api/fe-events" : void 0);
401
401
  return {
402
402
  enabled: r,
403
403
  appVersion: t.VITE_APP_VERSION || "0.0.0",
@@ -457,7 +457,7 @@ function Je({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
457
457
  o,
458
458
  s
459
459
  ]);
460
- return /* @__PURE__ */ X(C, {
460
+ return /* @__PURE__ */ X(S, {
461
461
  scopeKey: c,
462
462
  onTourStart: u,
463
463
  onTourComplete: f,
@@ -465,7 +465,7 @@ function Je({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
465
465
  onStepChange: m,
466
466
  onStepComplete: h,
467
467
  children: [
468
- /* @__PURE__ */ Y(S, {}),
468
+ /* @__PURE__ */ Y(x, {}),
469
469
  e,
470
470
  /* @__PURE__ */ Y(Ye, {}),
471
471
  /* @__PURE__ */ Y(d, {}),
@@ -477,9 +477,9 @@ function Je({ children: e, enablePWA: t, toasterPosition: n, productName: r, bra
477
477
  style: Be
478
478
  }),
479
479
  /* @__PURE__ */ Y(ue, {}),
480
- t && /* @__PURE__ */ Y(ke, {
480
+ t && /* @__PURE__ */ Y(W, {
481
481
  fallback: null,
482
- children: /* @__PURE__ */ Y(le, {
482
+ children: /* @__PURE__ */ Y(M, {
483
483
  productName: r,
484
484
  brandInitial: i
485
485
  })
@@ -492,7 +492,7 @@ function Ye() {
492
492
  return K(() => {
493
493
  let n = (n) => {
494
494
  let r = n instanceof CustomEvent && Oe(n.detail) ? n.detail : null;
495
- if (!U(r)) return;
495
+ if (!ke(r)) return;
496
496
  Ve(r);
497
497
  let { key: i, windowMs: a } = De(r), o = Date.now(), s = e.current;
498
498
  if (s?.key === i && o - s.shownAt < a) return;
@@ -537,12 +537,12 @@ function Ze() {
537
537
  }, []), null;
538
538
  }
539
539
  function Qe() {
540
- return W(), null;
540
+ return U(), null;
541
541
  }
542
- function $e({ 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: h, tourPageIdFromPath: ee, enableWorkspaceTourPermissions: S }) {
543
- let C = Z();
542
+ function $e({ 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: h, tourPageIdFromPath: ee, enableWorkspaceTourPermissions: x }) {
543
+ let S = Z();
544
544
  z();
545
- let w = T(C.pathname, !!S), E = /* @__PURE__ */ Y(v, { children: /* @__PURE__ */ Y(y, { children: /* @__PURE__ */ Y(x, {
545
+ let w = T(S.pathname, !!x), E = /* @__PURE__ */ Y(v, { children: /* @__PURE__ */ Y(y, { children: /* @__PURE__ */ Y(ne, {
546
546
  workspaceId: null,
547
547
  gateway: "global",
548
548
  defaultEnabled: !0,
@@ -550,7 +550,7 @@ function $e({ children: t, i18nProductId: n, platformI18nProductId: r, direction
550
550
  fallback: null,
551
551
  children: /* @__PURE__ */ Y(m, {
552
552
  enabled: w.workspacePermissions,
553
- children: /* @__PURE__ */ Y(ne, {
553
+ children: /* @__PURE__ */ Y(C, {
554
554
  requireWorkspace: w.requireWorkspace,
555
555
  disabled: w.toursDisabled,
556
556
  getPageIdFromPath: ee,
@@ -678,18 +678,19 @@ function nt() {
678
678
  });
679
679
  }, [e]), null;
680
680
  }
681
- function rt({ config: e, productSlug: t, productName: n, privacyConsent: r, privacyConsentReopen: i, consentRouteDenylist: a, rybbitSkipRoutes: o }) {
682
- let { pathname: s } = Z(), c = B(s) || a?.(s) === !0;
681
+ function rt({ config: e, productSlug: t, productName: n, privacyConsent: r, privacyConsentReopen: i, privacyConsentPlacement: a, consentRouteDenylist: o, rybbitSkipRoutes: s }) {
682
+ let { pathname: c } = Z(), l = B(c) || o?.(c) === !0;
683
683
  return /* @__PURE__ */ X(je, { children: [
684
684
  /* @__PURE__ */ Y(nt, {}),
685
- r && !c ? /* @__PURE__ */ Y(pe, {
685
+ r && !l ? /* @__PURE__ */ Y(pe, {
686
686
  productName: n,
687
- reopenable: i
687
+ reopenable: i,
688
+ placement: a
688
689
  }) : null,
689
690
  e.enabled === !1 ? null : /* @__PURE__ */ X(je, { children: [
690
- e.devtools ? /* @__PURE__ */ Y(O, { enabled: !0 }) : null,
691
- e.broadcast === !1 ? null : /* @__PURE__ */ Y(k, {}),
692
- e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ Y(A, { endpoint: e.backendAudit.endpoint }) : null,
691
+ e.devtools ? /* @__PURE__ */ Y(k, { enabled: !0 }) : null,
692
+ e.broadcast === !1 ? null : /* @__PURE__ */ Y(A, {}),
693
+ e.backendAudit?.enabled && e.backendAudit.endpoint ? /* @__PURE__ */ Y(j, { endpoint: e.backendAudit.endpoint }) : null,
693
694
  e.rybbit?.enabled && e.rybbit.siteId ? /* @__PURE__ */ Y(he, {
694
695
  siteId: e.rybbit.siteId,
695
696
  scriptUrl: e.rybbit.scriptUrl,
@@ -698,10 +699,10 @@ function rt({ config: e, productSlug: t, productName: n, privacyConsent: r, priv
698
699
  allowlist: e.rybbit.allowlist,
699
700
  identifyOn: e.rybbit.identifyOn,
700
701
  rename: e.rybbit.rename,
701
- skipRoutes: o,
702
- pathname: s
702
+ skipRoutes: s,
703
+ pathname: c
703
704
  }) : null,
704
- e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ Y(j, {
705
+ e.otel?.enabled && e.otel.endpoint ? /* @__PURE__ */ Y(oe, {
705
706
  endpoint: e.otel.endpoint,
706
707
  serviceName: e.otel.serviceName ?? `${t}-app`,
707
708
  flushInterval: e.otel.flushInterval
@@ -710,16 +711,16 @@ function rt({ config: e, productSlug: t, productName: n, privacyConsent: r, priv
710
711
  ] });
711
712
  }
712
713
  function it({ config: t, children: n, clearAuthStore: r }) {
713
- let { productName: i, productSlug: d = i.toLowerCase().replace(/\s+/g, ""), tagline: f = "", domain: m, i18nProductId: g, platformI18nProductId: _, rtl: v, gatewayUrls: y, authBridge: b, defaultBrand: te = "default", defaultMode: x, defaultDensity: S, defaultTypography: C, defaultGlass: ne, enablePWA: w = !0, brandInitial: T = i.charAt(0), defaultGateway: E = "workspace", enableSubscriptions: re = !0, fallbackTranslations: ae, queryClientOptions: D, toasterPosition: oe = "bottom-right", observability: O, privacyConsent: k = !1, privacyConsentReopen: A = !1, consentRouteDenylist: j, rybbitEvents: M, rybbitSkipRoutes: le, tourPageIdFromPath: ue, tourRouteCatalog: fe, enableWorkspaceTourPermissions: pe = !1, workspaceOperationGuard: me = "off" } = t;
714
- Te(d, fe), K(() => ce(se(d)), [d]);
715
- let [he] = Ae(() => ee({
714
+ let { productName: i, productSlug: d = i.toLowerCase().replace(/\s+/g, ""), tagline: f = "", domain: m, i18nProductId: g, platformI18nProductId: _, rtl: v, gatewayUrls: y, authBridge: b, defaultBrand: te = "default", defaultMode: ne, defaultDensity: x, defaultTypography: S, defaultGlass: C, enablePWA: w = !0, brandInitial: T = i.charAt(0), defaultGateway: E = "workspace", enableSubscriptions: re = !0, fallbackTranslations: D, queryClientOptions: O, toasterPosition: ae = "bottom-right", observability: k, privacyConsent: A = !1, privacyConsentReopen: j = !1, privacyConsentPlacement: oe = "start", consentRouteDenylist: ce, rybbitEvents: M, rybbitSkipRoutes: ue, tourPageIdFromPath: fe, tourRouteCatalog: pe, enableWorkspaceTourPermissions: me = !1, workspaceOperationGuard: he = "off" } = t;
715
+ Te(d, pe), K(() => le(se(d)), [d]);
716
+ let [ge] = Ae(() => ee({
716
717
  enabled: v?.enabled,
717
718
  allowPreview: v?.preview
718
- })), N = q(() => Ge(O ?? qe(d, We()), M), [
719
- O,
719
+ })), N = q(() => Ge(k ?? qe(d, We()), M), [
720
+ k,
720
721
  d,
721
722
  M
722
- ]), ge = q(() => ({
723
+ ]), P = q(() => ({
723
724
  productName: i,
724
725
  productSlug: d,
725
726
  brandInitial: T,
@@ -731,7 +732,7 @@ function it({ config: t, children: n, clearAuthStore: r }) {
731
732
  T,
732
733
  f,
733
734
  m
734
- ]), P = J(!1), F = J(!!b?.url), I = G((e) => {
735
+ ]), F = J(!1), I = J(!!b?.url), L = G((e) => {
735
736
  if (!e?.force && (() => {
736
737
  try {
737
738
  let e = sessionStorage.getItem("bf-active-profile");
@@ -741,18 +742,18 @@ function it({ config: t, children: n, clearAuthStore: r }) {
741
742
  } catch {
742
743
  return !1;
743
744
  }
744
- })() || F.current || P.current) return;
745
- P.current = !0, ve(r);
745
+ })() || I.current || F.current) return;
746
+ F.current = !0, ve(r);
746
747
  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);
747
- window.location.pathname.startsWith("/auth/") || B(window.location.pathname) || i ? P.current = !1 : window.location.replace(n);
748
- }, [r]), L = q(() => ({
748
+ window.location.pathname.startsWith("/auth/") || B(window.location.pathname) || i ? F.current = !1 : window.location.replace(n);
749
+ }, [r]), z = q(() => ({
749
750
  globalBaseUrl: y.globalBaseUrl,
750
751
  ...ye()
751
- }), [y.globalBaseUrl]), z = G(async () => _e(L), [L]), V = G(async () => {
752
- window.location.pathname.startsWith("/auth/") || await z() || I({ force: !0 });
753
- }, [z, I]), H = G(async (e) => {
754
- be(e) ? await z() || I({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
755
- }, [z, I]), De = G(async (e) => {
752
+ }), [y.globalBaseUrl]), V = G(async () => _e(z), [z]), H = G(async () => {
753
+ window.location.pathname.startsWith("/auth/") || await V() || L({ force: !0 });
754
+ }, [V, L]), De = G(async (e) => {
755
+ be(e) ? await V() || L({ force: !0 }) : console.error("[Network] Backend unreachable:", e.message);
756
+ }, [V, L]), Oe = G(async (e) => {
756
757
  let t = await xe({
757
758
  gateway: "global",
758
759
  baseUrl: y.globalBaseUrl,
@@ -767,7 +768,7 @@ function it({ config: t, children: n, clearAuthStore: r }) {
767
768
  refreshToken: n.refreshToken,
768
769
  expiresAt: n.expiresIn ? Date.now() + n.expiresIn * 1e3 : void 0
769
770
  };
770
- }, [y.globalBaseUrl]), Oe = G(() => s("organization"), []), U = q(() => {
771
+ }, [y.globalBaseUrl]), ke = G(() => s("organization"), []), U = q(() => {
771
772
  let e = new Ie({
772
773
  queryCache: new Fe({ onError: (e) => {
773
774
  Ee(e);
@@ -781,25 +782,25 @@ function it({ config: t, children: n, clearAuthStore: r }) {
781
782
  }
782
783
  }),
783
784
  defaultOptions: { queries: {
784
- staleTime: D?.staleTime ?? 3e5,
785
- retry: D?.retry ?? 2,
786
- refetchOnWindowFocus: D?.refetchOnWindowFocus ?? !1
785
+ staleTime: O?.staleTime ?? 3e5,
786
+ retry: O?.retry ?? 2,
787
+ refetchOnWindowFocus: O?.refetchOnWindowFocus ?? !1
787
788
  } }
788
789
  });
789
790
  return e;
790
- }, [D]), W = l(U);
791
+ }, [O]), W = l(U);
791
792
  return K(() => {
792
793
  let e = () => {
793
- I({ force: !0 });
794
+ L({ force: !0 });
794
795
  };
795
796
  return window.addEventListener(R, e), () => {
796
797
  window.removeEventListener(R, e);
797
798
  };
798
- }, [I]), K(() => {
799
+ }, [L]), K(() => {
799
800
  let e = we.getInstance();
800
801
  e.getLogger("shell") || e.getLogger("shell").addTransport(new Ce());
801
802
  }, []), /* @__PURE__ */ Y(Se, {
802
- value: ge,
803
+ value: P,
803
804
  children: /* @__PURE__ */ Y(de, {
804
805
  appName: d,
805
806
  appVersion: N.appVersion,
@@ -811,36 +812,37 @@ function it({ config: t, children: n, clearAuthStore: r }) {
811
812
  config: N,
812
813
  productSlug: d,
813
814
  productName: i,
814
- privacyConsent: k,
815
- privacyConsentReopen: A,
816
- consentRouteDenylist: j,
817
- rybbitSkipRoutes: le
815
+ privacyConsent: A,
816
+ privacyConsentReopen: j,
817
+ privacyConsentPlacement: oe,
818
+ consentRouteDenylist: ce,
819
+ rybbitSkipRoutes: ue
818
820
  }), /* @__PURE__ */ Y(Le, {
819
821
  client: U,
820
822
  children: /* @__PURE__ */ Y(o, { children: /* @__PURE__ */ Y(c, {
821
823
  workspaceBaseUrl: y.workspaceBaseUrl,
822
824
  globalBaseUrl: y.globalBaseUrl,
823
- organizationId: Oe,
825
+ organizationId: ke,
824
826
  productSlug: d,
825
827
  defaultGateway: E,
826
828
  enableSubscriptions: re,
827
- onAuthError: V,
828
- onNetworkError: H,
829
- onRefreshToken: z,
830
- workspaceOperationGuard: me,
829
+ onAuthError: H,
830
+ onNetworkError: De,
831
+ onRefreshToken: V,
832
+ workspaceOperationGuard: he,
831
833
  children: /* @__PURE__ */ X(a, {
832
834
  bridgeUrl: b?.url,
833
835
  bridgeAllowedOrigins: b?.allowedOrigins,
834
836
  bridgeDebug: b?.debug,
835
- onRefreshToken: De,
837
+ onRefreshToken: Oe,
836
838
  onBridgeReady: () => {
837
- F.current = !1;
839
+ I.current = !1;
838
840
  },
839
841
  onSessionExpiringSoon: () => {
840
842
  console.warn("[Auth] Session will expire in 5 minutes");
841
843
  },
842
844
  onTokenExpired: () => {
843
- I();
845
+ L();
844
846
  },
845
847
  onBeforeIdentityChange: W.onBeforeIdentityChange,
846
848
  children: [/* @__PURE__ */ Y(u, { announcementsRef: W.announcementsRef }), /* @__PURE__ */ Y(p, {
@@ -848,19 +850,19 @@ function it({ config: t, children: n, clearAuthStore: r }) {
848
850
  children: /* @__PURE__ */ Y(h, { children: /* @__PURE__ */ Y($e, {
849
851
  i18nProductId: g,
850
852
  platformI18nProductId: _,
851
- directionMode: he,
852
- fallbackTranslations: ae,
853
+ directionMode: ge,
854
+ fallbackTranslations: D,
853
855
  defaultBrand: te,
854
- defaultMode: x,
855
- defaultDensity: S,
856
- defaultTypography: C,
857
- defaultGlass: ne,
856
+ defaultMode: ne,
857
+ defaultDensity: x,
858
+ defaultTypography: S,
859
+ defaultGlass: C,
858
860
  productName: i,
859
861
  brandInitial: T,
860
862
  enablePWA: w,
861
- toasterPosition: oe,
862
- tourPageIdFromPath: ue,
863
- enableWorkspaceTourPermissions: pe,
863
+ toasterPosition: ae,
864
+ tourPageIdFromPath: fe,
865
+ enableWorkspaceTourPermissions: me,
864
866
  children: n
865
867
  }) })
866
868
  })]