@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
|
@@ -1,55 +1,61 @@
|
|
|
1
1
|
import { useShellLabel as e } from "../../shared/providers/shell/useShellLabel.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { AccessNeededChip as t } from "../../ui/access-needed-chip.js";
|
|
3
|
+
import { Clock as n, Loader2 as r } from "lucide-react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
5
|
// src/chrome/globalSearch/ResultsList.tsx
|
|
5
|
-
function
|
|
6
|
-
let
|
|
7
|
-
return /* @__PURE__ */
|
|
6
|
+
function o({ loading: o, error: s, query: c, results: l, groupedResults: u, recentSearches: d, onRecentSelect: f, onResultSelect: p }) {
|
|
7
|
+
let m = e();
|
|
8
|
+
return /* @__PURE__ */ a("div", {
|
|
8
9
|
className: "max-h-[60dvh] overflow-y-auto p-2",
|
|
9
10
|
children: [
|
|
10
|
-
|
|
11
|
+
o && /* @__PURE__ */ i("div", {
|
|
11
12
|
className: "flex items-center justify-center py-6",
|
|
12
|
-
children: /* @__PURE__ */ r
|
|
13
|
+
children: /* @__PURE__ */ i(r, { className: "size-4 animate-spin" })
|
|
13
14
|
}),
|
|
14
|
-
|
|
15
|
+
s && /* @__PURE__ */ i("div", {
|
|
15
16
|
className: "py-6 text-center text-sm text-status-error-text",
|
|
16
|
-
children:
|
|
17
|
+
children: s
|
|
17
18
|
}),
|
|
18
|
-
!
|
|
19
|
+
!o && !s && !c && d.length > 0 && /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("div", {
|
|
19
20
|
className: "px-2 py-1.5 text-[11px] font-medium uppercase tracking-wider text-text-muted",
|
|
20
|
-
children:
|
|
21
|
-
}),
|
|
21
|
+
children: m("search.recentSearches", "Recent Searches")
|
|
22
|
+
}), d.map((e, t) => /* @__PURE__ */ a("button", {
|
|
22
23
|
type: "button",
|
|
23
|
-
onClick: () =>
|
|
24
|
+
onClick: () => f(e),
|
|
24
25
|
className: "w-full flex items-center gap-2 px-2 py-2 text-sm rounded-button text-text-secondary hover:bg-bg-sunken hover:text-text-primary transition-colors text-start",
|
|
25
|
-
children: [/* @__PURE__ */
|
|
26
|
-
},
|
|
27
|
-
!
|
|
26
|
+
children: [/* @__PURE__ */ i(n, { className: "size-4 opacity-50" }), e]
|
|
27
|
+
}, t))] }),
|
|
28
|
+
!o && !s && c && l.length === 0 && /* @__PURE__ */ i("div", {
|
|
28
29
|
className: "py-6 text-center text-sm text-text-muted",
|
|
29
|
-
children:
|
|
30
|
+
children: m("search.noResultsFor", "No results found for \"{{query}}\"", { query: c })
|
|
30
31
|
}),
|
|
31
|
-
!
|
|
32
|
+
!o && !s && Object.entries(u).map(([e, n]) => /* @__PURE__ */ a("div", { children: [/* @__PURE__ */ i("div", {
|
|
32
33
|
className: "px-2 py-1.5 text-[11px] font-medium uppercase tracking-wider text-text-muted",
|
|
33
34
|
children: e
|
|
34
|
-
}),
|
|
35
|
-
let
|
|
36
|
-
return /* @__PURE__ */
|
|
35
|
+
}), n.map((e) => {
|
|
36
|
+
let n = e.icon, r = e.access === "denied";
|
|
37
|
+
return /* @__PURE__ */ a("button", {
|
|
37
38
|
type: "button",
|
|
38
|
-
onClick: () =>
|
|
39
|
+
onClick: () => p(e),
|
|
40
|
+
"data-access": r ? "denied" : void 0,
|
|
39
41
|
className: "w-full flex items-start gap-2 px-2 py-2 text-sm rounded-button text-text-secondary hover:bg-bg-sunken hover:text-text-primary transition-colors text-start",
|
|
40
|
-
children: [
|
|
41
|
-
className: "
|
|
42
|
-
|
|
43
|
-
className: "
|
|
44
|
-
children:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
children: [
|
|
43
|
+
n && /* @__PURE__ */ i(n, { className: "size-4 mt-0.5 flex-shrink-0" }),
|
|
44
|
+
/* @__PURE__ */ a("div", {
|
|
45
|
+
className: "flex-1 min-w-0",
|
|
46
|
+
children: [/* @__PURE__ */ i("div", {
|
|
47
|
+
className: "font-medium truncate text-text-primary",
|
|
48
|
+
children: e.title
|
|
49
|
+
}), e.description && /* @__PURE__ */ i("div", {
|
|
50
|
+
className: "text-xs text-text-muted truncate",
|
|
51
|
+
children: e.description
|
|
52
|
+
})]
|
|
53
|
+
}),
|
|
54
|
+
r && /* @__PURE__ */ i(t, { className: "mt-0.5" })
|
|
55
|
+
]
|
|
50
56
|
}, e.id);
|
|
51
57
|
})] }, e))
|
|
52
58
|
]
|
|
53
59
|
});
|
|
54
60
|
}
|
|
55
|
-
export {
|
|
61
|
+
export { o as ResultsList };
|
package/dist/chrome/index.d.ts
CHANGED
|
@@ -136,6 +136,7 @@ export { applyShellNavSurface, isShellNavMoreEntry } from './shell/shellNavVisib
|
|
|
136
136
|
export type { ShellNavSurfaceOptions } from './shell/shellNavVisibility';
|
|
137
137
|
export { ShellKbd, ShellRailTooltipLabel, ShellSidebar, ShellSidebarCompactRow, ShellSidebarRail, ShellSidebarSection, } from './shell/ShellSidebar';
|
|
138
138
|
export type { ShellSidebarProps, ShellSidebarRailProps } from './shell/ShellSidebar';
|
|
139
|
+
export { SHELL_SIDEBAR_WIDTH_VAR, publishShellSidebarWidth, usePublishShellSidebarWidth, } from './shell/shellSidebarWidth';
|
|
139
140
|
export { ShellTopBar, type ShellTopBarProps } from './shell/ShellTopBar';
|
|
140
141
|
export { SegmentedTabs } from './shell/SegmentedTabs';
|
|
141
142
|
export type { SegmentedTabsItem, SegmentedTabsProps } from './shell/SegmentedTabs';
|