@burdenoff/fe-libs 2026.1115.9 → 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 (36) 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/constants/shellCssVars.d.ts +9 -0
  9. package/dist/shared/constants/shellCssVars.js +3 -0
  10. package/dist/shared/events/sinks/RybbitSink.d.ts +13 -1
  11. package/dist/shared/events/sinks/RybbitSink.js +129 -121
  12. package/dist/shared/events/sinks/index.d.ts +1 -1
  13. package/dist/shared/pages/SearchPage.d.ts +17 -1
  14. package/dist/shared/pages/SearchPage.js +284 -243
  15. package/dist/shared/pages/searchPage/PageResultsGroup.d.ts +16 -0
  16. package/dist/shared/pages/searchPage/PageResultsGroup.js +29 -0
  17. package/dist/shared/pages/searchPage/ResultsList.d.ts +6 -1
  18. package/dist/shared/pages/searchPage/ResultsList.js +9 -53
  19. package/dist/shared/pages/searchPage/SearchResultCard.d.ts +14 -0
  20. package/dist/shared/pages/searchPage/SearchResultCard.js +57 -0
  21. package/dist/shared/providers/AppShellProvider.d.ts +8 -0
  22. package/dist/shared/providers/AppShellProvider.js +91 -89
  23. package/dist/shared/providers/shell/PersonaSurfaceProvider.d.ts +27 -1
  24. package/dist/shared/providers/shell/PersonaSurfaceProvider.js +214 -179
  25. package/dist/shared/providers/shell/index.d.ts +2 -0
  26. package/dist/shared/providers/shell/navIdMigration.d.ts +29 -0
  27. package/dist/shared/providers/shell/navIdMigration.js +57 -0
  28. package/dist/shared/providers/shell/personaSurfaceRemote.d.ts +7 -0
  29. package/dist/shared/providers/shell/personaSurfaceRemote.js +1 -1
  30. package/dist/shared/types/index.d.ts +11 -0
  31. package/dist/shared-providers-shell.js +13 -12
  32. package/dist/ui/access-needed-chip.d.ts +16 -0
  33. package/dist/ui/access-needed-chip.js +17 -0
  34. package/dist/ui/index.d.ts +1 -0
  35. package/dist/ui.js +50 -49
  36. package/package.json +1 -1
@@ -0,0 +1,16 @@
1
+ import { RefObject } from 'react';
2
+ import { SHELL_SIDEBAR_WIDTH_VAR } from '../../shared/constants/shellCssVars';
3
+ export { SHELL_SIDEBAR_WIDTH_VAR };
4
+ type ResizeObserverConstructor = new (callback: () => void) => {
5
+ observe: (target: Element) => void;
6
+ disconnect: () => void;
7
+ };
8
+ /**
9
+ * Publishes `sidebar`'s rendered width on `root` and keeps it current (a
10
+ * sidebar hidden by CSS measures 0). Returns the cleanup. While the expanded
11
+ * sidebar hands over to the rail both may be mounted for a moment; the larger
12
+ * width is published, and the property is removed only when the last one goes.
13
+ */
14
+ export declare function publishShellSidebarWidth(sidebar: Element, root: HTMLElement, ResizeObserverImpl?: ResizeObserverConstructor | undefined): () => void;
15
+ /** Publishes the width of the sidebar element `ref` points at while it is mounted. */
16
+ export declare function usePublishShellSidebarWidth(ref: RefObject<HTMLElement | null>): void;
@@ -0,0 +1,26 @@
1
+ import { SHELL_SIDEBAR_WIDTH_VAR as e } from "../../shared/constants/shellCssVars.js";
2
+ import { useEffect as t } from "react";
3
+ // src/chrome/shell/shellSidebarWidth.ts
4
+ var n = /* @__PURE__ */ new WeakMap();
5
+ function r(t, n) {
6
+ n.size === 0 ? t.style.removeProperty(e) : t.style.setProperty(e, `${Math.max(...n.values())}px`);
7
+ }
8
+ function i(e, t, i = typeof ResizeObserver > "u" ? void 0 : ResizeObserver) {
9
+ let a = n.get(t);
10
+ a || (a = /* @__PURE__ */ new Map(), n.set(t, a));
11
+ let o = a, s = () => {
12
+ o.set(e, Math.ceil(e.getBoundingClientRect().width)), r(t, o);
13
+ };
14
+ s();
15
+ let c = i ? new i(s) : null;
16
+ return c?.observe(e), () => {
17
+ c?.disconnect(), o.delete(e), r(t, o);
18
+ };
19
+ }
20
+ function a(e) {
21
+ t(() => {
22
+ let t = e.current;
23
+ if (t && typeof document < "u") return i(t, document.documentElement);
24
+ }, [e]);
25
+ }
26
+ export { e as SHELL_SIDEBAR_WIDTH_VAR, i as publishShellSidebarWidth, a as usePublishShellSidebarWidth };
@@ -38,3 +38,11 @@ export declare const SHELL_LABELS_ADDED_BOFF_10854: readonly string[];
38
38
  * English.
39
39
  */
40
40
  export declare const SHELL_LABELS_ADDED_BOFF_13461: readonly string[];
41
+ /**
42
+ * The keys the opt-in search additions introduced (BOFF-11842): the "You need
43
+ * access" marker on a result the caller's role cannot open, and the full
44
+ * search page's "Pages" group. Not in any dictionary yet: seed them into
45
+ * `workspaces` (and a product's curated words, where it keeps its own). Until
46
+ * then each renders its English.
47
+ */
48
+ export declare const SHELL_LABELS_ADDED_BOFF_11842: readonly string[];
package/dist/chrome.js CHANGED
@@ -1,64 +1,66 @@
1
1
  import { AppShellLayout as e } from "./chrome/AppShellLayout.js";
2
- import { PageHeader as t } from "./chrome/PageHeader.js";
3
- import { HeaderBar as n } from "./chrome/HeaderBar.js";
4
- import { FooterBar as r } from "./chrome/FooterBar.js";
5
- import { DEFAULT_FOOTER_COLUMNS as i, DEFAULT_SOCIAL_LINKS as a, Footer as o } from "./chrome/Footer.js";
6
- import { SideNavigation as s } from "./chrome/SideNavigation.js";
7
- import { GlobalSearch as c } from "./chrome/GlobalSearch.js";
8
- import { COMMAND_PALETTE_HELP_SHORTCUT as l, COMMAND_PALETTE_SHORTCUT as u, CommandPalette as d } from "./chrome/CommandPalette.js";
9
- import { Breadcrumbs as f } from "./chrome/Breadcrumbs.js";
10
- import { NavLink as p } from "./chrome/NavLink.js";
11
- import { Tabs as m } from "./chrome/Tabs.js";
12
- import { Sidebar as h } from "./chrome/Sidebar.js";
13
- import { ProfileSwitcher as g } from "./chrome/ProfileSwitcher.js";
14
- import { ProductSwitcher as _ } from "./chrome/ProductSwitcher.js";
15
- import { LanguageSwitcher as v } from "./chrome/LanguageSwitcher.js";
16
- import { ContextSwitcher as y } from "./chrome/ContextSwitcher.js";
17
- import { GeographySwitcher as b } from "./chrome/GeographySwitcher.js";
18
- import { NotificationCenter as x } from "./chrome/NotificationCenter.js";
19
- import { PushOptInToggle as S } from "./chrome/notificationCenter/PushOptInToggle.js";
20
- import { LanguagePickerSheet as C } from "./chrome/LanguagePickerSheet.js";
21
- import { ProductPickerSheet as w } from "./chrome/ProductPickerSheet.js";
22
- import { AccountSwitcher as T } from "./chrome/AccountSwitcher.js";
23
- import { ShortcutHelpDialog as E } from "./chrome/ShortcutHelpDialog.js";
24
- import { useContextSwitchController as D } from "./chrome/contextSwitcher/useContextSwitchController.js";
25
- import { firstProjectOfWorkspace as O, switchOrganization as k, switchWorkspace as A } from "./chrome/contextSwitcher/contextSwitch.js";
26
- import { resolveSwitchTarget as j, sectionLandingRule as M } from "./chrome/contextSwitcher/resolveSwitchTarget.js";
27
- import { AutoBreadcrumbs as N, registerBreadcrumbName as P, unregisterBreadcrumbName as F } from "./chrome/AutoBreadcrumbs.js";
28
- import { ProductSideNav as I } from "./chrome/ProductSideNav.js";
29
- import { PersonaSimulationPill as L, PersonaSurfaceControls as R } from "./chrome/PersonaSurfaceControls.js";
30
- import { NavCustomizeDialog as z } from "./chrome/NavCustomizeDialog.js";
31
- import { NAV_MORE_ID_PREFIX as B, applyNavVisibility as V, applyPermissionFilter as H, applySurfaceVisibility as U, isItemEffectivelyShown as W } from "./chrome/sideNavigation/navVisibility.js";
32
- import { DynamicFooter as G } from "./chrome/DynamicFooter.js";
33
- import { PanelContainer as K } from "./chrome/PanelContainer.js";
34
- import { PanelTabs as q } from "./chrome/PanelTabs.js";
35
- import { StatusBar as J } from "./chrome/StatusBar.js";
36
- import { PluginRoutes as Y } from "./chrome/PluginRoutes.js";
37
- import { PluginSettingsPage as X } from "./chrome/PluginSettingsPage.js";
38
- import { PluginToolbar as Z } from "./chrome/PluginToolbar.js";
39
- import { PluginWidgetGrid as Q } from "./chrome/PluginWidgetGrid.js";
40
- import { PluginContextMenuTarget as $ } from "./chrome/PluginContextMenuTarget.js";
41
- import { PluginFooterStrip as ee } from "./chrome/PluginFooterStrip.js";
42
- import { ThemePreferences as te } from "./chrome/ThemePreferences.js";
43
- import { BrandMark as ne, DecorativeBrandMarkScope as re } from "./chrome/BrandMark.js";
44
- import { MobileTabBar as ie } from "./chrome/MobileTabBar.js";
45
- import { useMobileTabBarVisible as ae } from "./chrome/mobileTabBar/useMobileTabBarVisible.js";
46
- import { resolveTabLabel as oe, selectMobileTabs as se } from "./chrome/mobileTabBar/selectTabs.js";
47
- import { NativeTopBar as ce } from "./chrome/NativeTopBar.js";
48
- import { SwipeNavigation as le } from "./chrome/SwipeNavigation.js";
49
- import { NativePageTransition as ue } from "./chrome/NativePageTransition.js";
50
- import { findNavTitle as de, useNativeTopBarTitle as fe } from "./chrome/nativeTopBarTitle.js";
51
- import { shellPathMatchScore as pe, useProfileBoundJson as me, useShellNavViews as he } from "./chrome/shell/useShellNavViews.js";
52
- import { applyShellNavSurface as ge, isShellNavMoreEntry as _e } from "./chrome/shell/shellNavVisibility.js";
53
- import { ShellKbd as ve, ShellRailTooltipLabel as ye, ShellSidebar as be, ShellSidebarCompactRow as xe, ShellSidebarRail as Se, ShellSidebarSection as Ce } from "./chrome/shell/ShellSidebar.js";
54
- import { ShellTopBar as we } from "./chrome/shell/ShellTopBar.js";
55
- import { SegmentedTabs as Te } from "./chrome/shell/SegmentedTabs.js";
56
- import { WorkspaceMenu as Ee } from "./chrome/shell/WorkspaceMenu.js";
57
- import { NewMenu as De } from "./chrome/shell/NewMenu.js";
58
- import { SidebarSearchTrigger as Oe } from "./chrome/shell/SidebarSearchTrigger.js";
59
- import { PlanUsageCard as ke, SidebarProfileMenu as Ae } from "./chrome/shell/SidebarProfileMenu.js";
60
- import { MAX_PINNED_PAGES as je, usePinSuggestion as Me, usePinnedPages as Ne } from "./chrome/shell/usePinnedPages.js";
61
- import { PinSuggestionToast as Pe } from "./chrome/shell/PinSuggestionToast.js";
62
- import { ShellBellButton as Fe } from "./chrome/notificationCenter/ShellBellButton.js";
63
- import { NotificationPopoverPanel as Ie } from "./chrome/notificationCenter/NotificationPopoverPanel.js";
64
- export { T as AccountSwitcher, e as AppShellLayout, N as AutoBreadcrumbs, ne as BrandMark, f as Breadcrumbs, l as COMMAND_PALETTE_HELP_SHORTCUT, u as COMMAND_PALETTE_SHORTCUT, d as CommandPalette, y as ContextSwitcher, i as DEFAULT_FOOTER_COLUMNS, a as DEFAULT_SOCIAL_LINKS, re as DecorativeBrandMarkScope, G as DynamicFooter, o as Footer, r as FooterBar, b as GeographySwitcher, c as GlobalSearch, n as HeaderBar, C as LanguagePickerSheet, v as LanguageSwitcher, je as MAX_PINNED_PAGES, ie as MobileTabBar, B as NAV_MORE_ID_PREFIX, ue as NativePageTransition, ce as NativeTopBar, z as NavCustomizeDialog, p as NavLink, De as NewMenu, x as NotificationCenter, Ie as NotificationPopoverPanel, t as PageHeader, K as PanelContainer, q as PanelTabs, L as PersonaSimulationPill, R as PersonaSurfaceControls, Pe as PinSuggestionToast, ke as PlanUsageCard, $ as PluginContextMenuTarget, ee as PluginFooterStrip, Y as PluginRoutes, X as PluginSettingsPage, Z as PluginToolbar, Q as PluginWidgetGrid, w as ProductPickerSheet, I as ProductSideNav, _ as ProductSwitcher, g as ProfileSwitcher, S as PushOptInToggle, Te as SegmentedTabs, Fe as ShellBellButton, ve as ShellKbd, ye as ShellRailTooltipLabel, be as ShellSidebar, xe as ShellSidebarCompactRow, Se as ShellSidebarRail, Ce as ShellSidebarSection, we as ShellTopBar, E as ShortcutHelpDialog, s as SideNavigation, h as Sidebar, Ae as SidebarProfileMenu, Oe as SidebarSearchTrigger, J as StatusBar, le as SwipeNavigation, m as Tabs, te as ThemePreferences, Ee as WorkspaceMenu, V as applyNavVisibility, H as applyPermissionFilter, ge as applyShellNavSurface, U as applySurfaceVisibility, de as findNavTitle, O as firstProjectOfWorkspace, W as isItemEffectivelyShown, _e as isShellNavMoreEntry, P as registerBreadcrumbName, j as resolveSwitchTarget, oe as resolveTabLabel, M as sectionLandingRule, se as selectMobileTabs, pe as shellPathMatchScore, k as switchOrganization, A as switchWorkspace, F as unregisterBreadcrumbName, D as useContextSwitchController, ae as useMobileTabBarVisible, fe as useNativeTopBarTitle, Me as usePinSuggestion, Ne as usePinnedPages, me as useProfileBoundJson, he as useShellNavViews };
2
+ import { SHELL_SIDEBAR_WIDTH_VAR as t } from "./shared/constants/shellCssVars.js";
3
+ import { PageHeader as n } from "./chrome/PageHeader.js";
4
+ import { HeaderBar as r } from "./chrome/HeaderBar.js";
5
+ import { FooterBar as i } from "./chrome/FooterBar.js";
6
+ import { DEFAULT_FOOTER_COLUMNS as a, DEFAULT_SOCIAL_LINKS as o, Footer as s } from "./chrome/Footer.js";
7
+ import { SideNavigation as c } from "./chrome/SideNavigation.js";
8
+ import { GlobalSearch as l } from "./chrome/GlobalSearch.js";
9
+ import { COMMAND_PALETTE_HELP_SHORTCUT as u, COMMAND_PALETTE_SHORTCUT as d, CommandPalette as f } from "./chrome/CommandPalette.js";
10
+ import { Breadcrumbs as p } from "./chrome/Breadcrumbs.js";
11
+ import { NavLink as m } from "./chrome/NavLink.js";
12
+ import { Tabs as h } from "./chrome/Tabs.js";
13
+ import { Sidebar as g } from "./chrome/Sidebar.js";
14
+ import { ProfileSwitcher as _ } from "./chrome/ProfileSwitcher.js";
15
+ import { ProductSwitcher as v } from "./chrome/ProductSwitcher.js";
16
+ import { LanguageSwitcher as y } from "./chrome/LanguageSwitcher.js";
17
+ import { ContextSwitcher as b } from "./chrome/ContextSwitcher.js";
18
+ import { GeographySwitcher as x } from "./chrome/GeographySwitcher.js";
19
+ import { NotificationCenter as S } from "./chrome/NotificationCenter.js";
20
+ import { PushOptInToggle as C } from "./chrome/notificationCenter/PushOptInToggle.js";
21
+ import { LanguagePickerSheet as w } from "./chrome/LanguagePickerSheet.js";
22
+ import { ProductPickerSheet as T } from "./chrome/ProductPickerSheet.js";
23
+ import { AccountSwitcher as E } from "./chrome/AccountSwitcher.js";
24
+ import { ShortcutHelpDialog as D } from "./chrome/ShortcutHelpDialog.js";
25
+ import { useContextSwitchController as O } from "./chrome/contextSwitcher/useContextSwitchController.js";
26
+ import { firstProjectOfWorkspace as k, switchOrganization as A, switchWorkspace as j } from "./chrome/contextSwitcher/contextSwitch.js";
27
+ import { resolveSwitchTarget as M, sectionLandingRule as N } from "./chrome/contextSwitcher/resolveSwitchTarget.js";
28
+ import { AutoBreadcrumbs as P, registerBreadcrumbName as F, unregisterBreadcrumbName as I } from "./chrome/AutoBreadcrumbs.js";
29
+ import { ProductSideNav as L } from "./chrome/ProductSideNav.js";
30
+ import { PersonaSimulationPill as R, PersonaSurfaceControls as z } from "./chrome/PersonaSurfaceControls.js";
31
+ import { NavCustomizeDialog as B } from "./chrome/NavCustomizeDialog.js";
32
+ import { NAV_MORE_ID_PREFIX as V, applyNavVisibility as H, applyPermissionFilter as U, applySurfaceVisibility as W, isItemEffectivelyShown as G } from "./chrome/sideNavigation/navVisibility.js";
33
+ import { DynamicFooter as K } from "./chrome/DynamicFooter.js";
34
+ import { PanelContainer as q } from "./chrome/PanelContainer.js";
35
+ import { PanelTabs as J } from "./chrome/PanelTabs.js";
36
+ import { StatusBar as Y } from "./chrome/StatusBar.js";
37
+ import { PluginRoutes as X } from "./chrome/PluginRoutes.js";
38
+ import { PluginSettingsPage as Z } from "./chrome/PluginSettingsPage.js";
39
+ import { PluginToolbar as Q } from "./chrome/PluginToolbar.js";
40
+ import { PluginWidgetGrid as $ } from "./chrome/PluginWidgetGrid.js";
41
+ import { PluginContextMenuTarget as ee } from "./chrome/PluginContextMenuTarget.js";
42
+ import { PluginFooterStrip as te } from "./chrome/PluginFooterStrip.js";
43
+ import { ThemePreferences as ne } from "./chrome/ThemePreferences.js";
44
+ import { BrandMark as re, DecorativeBrandMarkScope as ie } from "./chrome/BrandMark.js";
45
+ import { MobileTabBar as ae } from "./chrome/MobileTabBar.js";
46
+ import { useMobileTabBarVisible as oe } from "./chrome/mobileTabBar/useMobileTabBarVisible.js";
47
+ import { resolveTabLabel as se, selectMobileTabs as ce } from "./chrome/mobileTabBar/selectTabs.js";
48
+ import { NativeTopBar as le } from "./chrome/NativeTopBar.js";
49
+ import { SwipeNavigation as ue } from "./chrome/SwipeNavigation.js";
50
+ import { NativePageTransition as de } from "./chrome/NativePageTransition.js";
51
+ import { findNavTitle as fe, useNativeTopBarTitle as pe } from "./chrome/nativeTopBarTitle.js";
52
+ import { shellPathMatchScore as me, useProfileBoundJson as he, useShellNavViews as ge } from "./chrome/shell/useShellNavViews.js";
53
+ import { applyShellNavSurface as _e, isShellNavMoreEntry as ve } from "./chrome/shell/shellNavVisibility.js";
54
+ import { ShellKbd as ye, ShellRailTooltipLabel as be, ShellSidebar as xe, ShellSidebarCompactRow as Se, ShellSidebarRail as Ce, ShellSidebarSection as we } from "./chrome/shell/ShellSidebar.js";
55
+ import { publishShellSidebarWidth as Te, usePublishShellSidebarWidth as Ee } from "./chrome/shell/shellSidebarWidth.js";
56
+ import { ShellTopBar as De } from "./chrome/shell/ShellTopBar.js";
57
+ import { SegmentedTabs as Oe } from "./chrome/shell/SegmentedTabs.js";
58
+ import { WorkspaceMenu as ke } from "./chrome/shell/WorkspaceMenu.js";
59
+ import { NewMenu as Ae } from "./chrome/shell/NewMenu.js";
60
+ import { SidebarSearchTrigger as je } from "./chrome/shell/SidebarSearchTrigger.js";
61
+ import { PlanUsageCard as Me, SidebarProfileMenu as Ne } from "./chrome/shell/SidebarProfileMenu.js";
62
+ import { MAX_PINNED_PAGES as Pe, usePinSuggestion as Fe, usePinnedPages as Ie } from "./chrome/shell/usePinnedPages.js";
63
+ import { PinSuggestionToast as Le } from "./chrome/shell/PinSuggestionToast.js";
64
+ import { ShellBellButton as Re } from "./chrome/notificationCenter/ShellBellButton.js";
65
+ import { NotificationPopoverPanel as ze } from "./chrome/notificationCenter/NotificationPopoverPanel.js";
66
+ export { E as AccountSwitcher, e as AppShellLayout, P as AutoBreadcrumbs, re as BrandMark, p as Breadcrumbs, u as COMMAND_PALETTE_HELP_SHORTCUT, d as COMMAND_PALETTE_SHORTCUT, f as CommandPalette, b as ContextSwitcher, a as DEFAULT_FOOTER_COLUMNS, o as DEFAULT_SOCIAL_LINKS, ie as DecorativeBrandMarkScope, K as DynamicFooter, s as Footer, i as FooterBar, x as GeographySwitcher, l as GlobalSearch, r as HeaderBar, w as LanguagePickerSheet, y as LanguageSwitcher, Pe as MAX_PINNED_PAGES, ae as MobileTabBar, V as NAV_MORE_ID_PREFIX, de as NativePageTransition, le as NativeTopBar, B as NavCustomizeDialog, m as NavLink, Ae as NewMenu, S as NotificationCenter, ze as NotificationPopoverPanel, n as PageHeader, q as PanelContainer, J as PanelTabs, R as PersonaSimulationPill, z as PersonaSurfaceControls, Le as PinSuggestionToast, Me as PlanUsageCard, ee as PluginContextMenuTarget, te as PluginFooterStrip, X as PluginRoutes, Z as PluginSettingsPage, Q as PluginToolbar, $ as PluginWidgetGrid, T as ProductPickerSheet, L as ProductSideNav, v as ProductSwitcher, _ as ProfileSwitcher, C as PushOptInToggle, t as SHELL_SIDEBAR_WIDTH_VAR, Oe as SegmentedTabs, Re as ShellBellButton, ye as ShellKbd, be as ShellRailTooltipLabel, xe as ShellSidebar, Se as ShellSidebarCompactRow, Ce as ShellSidebarRail, we as ShellSidebarSection, De as ShellTopBar, D as ShortcutHelpDialog, c as SideNavigation, g as Sidebar, Ne as SidebarProfileMenu, je as SidebarSearchTrigger, Y as StatusBar, ue as SwipeNavigation, h as Tabs, ne as ThemePreferences, ke as WorkspaceMenu, H as applyNavVisibility, U as applyPermissionFilter, _e as applyShellNavSurface, W as applySurfaceVisibility, fe as findNavTitle, k as firstProjectOfWorkspace, G as isItemEffectivelyShown, ve as isShellNavMoreEntry, Te as publishShellSidebarWidth, F as registerBreadcrumbName, M as resolveSwitchTarget, se as resolveTabLabel, N as sectionLandingRule, ce as selectMobileTabs, me as shellPathMatchScore, A as switchOrganization, j as switchWorkspace, I as unregisterBreadcrumbName, O as useContextSwitchController, oe as useMobileTabBarVisible, pe as useNativeTopBarTitle, Fe as usePinSuggestion, Ie as usePinnedPages, he as useProfileBoundJson, Ee as usePublishShellSidebarWidth, ge as useShellNavViews };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * CSS custom properties the app shell publishes on `<html>`.
3
+ *
4
+ * They live in `shared` so code below the shell (for example the analytics
5
+ * consent banner in `shared/events`) can read them without importing from
6
+ * `chrome`, which sits above `shared` in the layering.
7
+ */
8
+ /** The shell sidebar's current width; see `chrome/shell/shellSidebarWidth`. */
9
+ export declare const SHELL_SIDEBAR_WIDTH_VAR = "--bf-shell-sidebar-width";
@@ -0,0 +1,3 @@
1
+ // src/shared/constants/shellCssVars.ts
2
+ var e = "--bf-shell-sidebar-width";
3
+ export { e as SHELL_SIDEBAR_WIDTH_VAR };
@@ -89,6 +89,16 @@ type ResizeObserverConstructor = new (callback: () => void) => {
89
89
  * the last one goes.
90
90
  */
91
91
  export declare function publishConsentBannerOffset(banner: Element, root: HTMLElement, ResizeObserverImpl?: ResizeObserverConstructor | undefined): () => void;
92
+ /**
93
+ * Where the consent banner (and its reopen button) sits along the bottom edge.
94
+ * - 'start' (default): 1rem from the viewport's inline-start edge, as always.
95
+ * - 'after-sidebar' (opt-in, BOFF-11842): 1rem after the shell sidebar, read
96
+ * from `--bf-shell-sidebar-width` (published by `ShellSidebar` and
97
+ * `ShellSidebarRail`), so it never covers the sidebar's profile button, the
98
+ * rail's bell or an open drill-down. With no sidebar mounted (phones) the
99
+ * property is unset and the banner sits where 'start' puts it.
100
+ */
101
+ export type ConsentBannerPlacement = 'start' | 'after-sidebar';
92
102
  /**
93
103
  * The optional-analytics prompt.
94
104
  *
@@ -96,8 +106,10 @@ export declare function publishConsentBannerOffset(banner: Element, root: HTMLEl
96
106
  * calling `useLocation()` here would crash outside a Router. Route suppression is the MOUNT
97
107
  * SITE's job — see `ShellTelemetrySinks` in AppShellProvider, a direct child of `<BrowserRouter>`.
98
108
  */
99
- export declare function AnalyticsConsentBanner({ productName, reopenable, }: {
109
+ export declare function AnalyticsConsentBanner({ productName, reopenable, placement, }: {
100
110
  productName?: string;
101
111
  reopenable?: boolean;
112
+ /** Where along the bottom edge it sits; see `ConsentBannerPlacement`. */
113
+ placement?: ConsentBannerPlacement;
102
114
  }): import('react').JSX.Element | null;
103
115
  export {};