@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.
- package/dist/chrome/globalSearch/ResultsList.js +39 -33
- package/dist/chrome/index.d.ts +1 -0
- package/dist/chrome/shell/ShellSidebar.js +287 -281
- package/dist/chrome/shell/shellSidebarWidth.d.ts +16 -0
- package/dist/chrome/shell/shellSidebarWidth.js +26 -0
- package/dist/chrome/shellLabelManifest.d.ts +8 -0
- package/dist/chrome.js +65 -63
- package/dist/shared/constants/shellCssVars.d.ts +9 -0
- package/dist/shared/constants/shellCssVars.js +3 -0
- package/dist/shared/events/sinks/RybbitSink.d.ts +13 -1
- package/dist/shared/events/sinks/RybbitSink.js +129 -121
- package/dist/shared/events/sinks/index.d.ts +1 -1
- package/dist/shared/pages/SearchPage.d.ts +17 -1
- package/dist/shared/pages/SearchPage.js +284 -243
- package/dist/shared/pages/searchPage/PageResultsGroup.d.ts +16 -0
- package/dist/shared/pages/searchPage/PageResultsGroup.js +29 -0
- package/dist/shared/pages/searchPage/ResultsList.d.ts +6 -1
- package/dist/shared/pages/searchPage/ResultsList.js +9 -53
- package/dist/shared/pages/searchPage/SearchResultCard.d.ts +14 -0
- package/dist/shared/pages/searchPage/SearchResultCard.js +57 -0
- package/dist/shared/providers/AppShellProvider.d.ts +8 -0
- package/dist/shared/providers/AppShellProvider.js +91 -89
- package/dist/shared/providers/shell/PersonaSurfaceProvider.d.ts +27 -1
- package/dist/shared/providers/shell/PersonaSurfaceProvider.js +214 -179
- package/dist/shared/providers/shell/index.d.ts +2 -0
- package/dist/shared/providers/shell/navIdMigration.d.ts +29 -0
- package/dist/shared/providers/shell/navIdMigration.js +57 -0
- package/dist/shared/providers/shell/personaSurfaceRemote.d.ts +7 -0
- package/dist/shared/providers/shell/personaSurfaceRemote.js +1 -1
- package/dist/shared/types/index.d.ts +11 -0
- package/dist/shared-providers-shell.js +13 -12
- package/dist/ui/access-needed-chip.d.ts +16 -0
- package/dist/ui/access-needed-chip.js +17 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui.js +50 -49
- 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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
|
|
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";
|
|
@@ -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 {};
|