@lincyaw/aegis-ui 0.3.0 → 0.6.0
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/README.md +82 -5
- package/dist/agent/AgentProvider.d.ts +4 -0
- package/dist/agent/AskOverlay.d.ts +0 -1
- package/dist/agent/AskPanel.d.ts +0 -1
- package/dist/agent/agentContext.d.ts +6 -2
- package/dist/agent/agentmChannelClient.d.ts +1 -0
- package/dist/agent/runtime.d.ts +6 -1
- package/dist/agent/usePrimitiveSurface.d.ts +30 -0
- package/dist/commands/CommandProvider.d.ts +3 -3
- package/dist/commands/commandContext.d.ts +2 -2
- package/dist/components/ui/AgentPanel.d.ts +3 -10
- package/dist/components/ui/Alert.d.ts +14 -0
- package/dist/components/ui/AmbientBackground.d.ts +23 -0
- package/dist/components/ui/AuthLayout.d.ts +1 -1
- package/dist/components/ui/Avatar.d.ts +14 -14
- package/dist/components/ui/BlastRadiusBar.d.ts +6 -13
- package/dist/components/ui/Breadcrumb.d.ts +4 -14
- package/dist/components/ui/BucketCard.d.ts +1 -1
- package/dist/components/ui/Button.d.ts +26 -4
- package/dist/components/ui/Carousel.d.ts +28 -0
- package/dist/components/ui/ChatComposer.d.ts +1 -1
- package/dist/components/ui/ChatMessage.d.ts +7 -14
- package/dist/components/ui/ChatMessageList.d.ts +3 -10
- package/dist/components/ui/ChatSessionList.d.ts +0 -1
- package/dist/components/ui/CheckGrid.d.ts +47 -0
- package/dist/components/ui/Checkbox.d.ts +14 -0
- package/dist/components/ui/Chip.d.ts +17 -14
- package/dist/components/ui/CodeBlock.d.ts +11 -15
- package/dist/components/ui/CodeEditor.d.ts +6 -13
- package/dist/components/ui/Collapse.d.ts +16 -0
- package/dist/components/ui/ColumnLayout.d.ts +16 -0
- package/dist/components/ui/CommandInvocationCard.d.ts +7 -14
- package/dist/components/ui/CommandPalette.d.ts +0 -1
- package/dist/components/ui/ContentInspectorContent.d.ts +14 -0
- package/dist/components/ui/ContentInspectorDialog.d.ts +15 -0
- package/dist/components/ui/ControlListItem.d.ts +4 -2
- package/dist/components/ui/DangerZone.d.ts +1 -1
- package/dist/components/ui/DataList.d.ts +3 -11
- package/dist/components/ui/DataTable.d.ts +86 -10
- package/dist/components/ui/Dialog.d.ts +21 -0
- package/dist/components/ui/DiffViewer.d.ts +6 -13
- package/dist/components/ui/DropdownMenu.d.ts +6 -2
- package/dist/components/ui/EmptyState.d.ts +1 -1
- package/dist/components/ui/EnvironmentSwitcher.d.ts +0 -1
- package/dist/components/ui/ErrorState.d.ts +8 -2
- package/dist/components/ui/EventTable.d.ts +0 -1
- package/dist/components/ui/FileDropzone.d.ts +1 -1
- package/dist/components/ui/FilePreview.d.ts +8 -15
- package/dist/components/ui/FileTree.d.ts +27 -0
- package/dist/components/ui/FolderDropzone.d.ts +0 -1
- package/dist/components/ui/ForgotPasswordForm.d.ts +1 -1
- package/dist/components/ui/FormRow.d.ts +1 -1
- package/dist/components/ui/IdentityCell.d.ts +25 -0
- package/dist/components/ui/InboxPage.d.ts +3 -10
- package/dist/components/ui/KeyValueList.d.ts +3 -10
- package/dist/components/ui/LoginForm.d.ts +1 -1
- package/dist/components/ui/Markdown.d.ts +9 -3
- package/dist/components/ui/MdxDocument.d.ts +17 -0
- package/dist/components/ui/MetadataList.d.ts +0 -1
- package/dist/components/ui/MetricCard.d.ts +7 -14
- package/dist/components/ui/MetricLabel.d.ts +2 -1
- package/dist/components/ui/MonoValue.d.ts +6 -11
- package/dist/components/ui/NotificationBell.d.ts +1 -1
- package/dist/components/ui/ObjectBrowser.d.ts +1 -1
- package/dist/components/ui/ObjectInspector.d.ts +0 -1
- package/dist/components/ui/PageHeader.d.ts +8 -3
- package/dist/components/ui/PageSizeSelect.d.ts +9 -2
- package/dist/components/ui/Pagination.d.ts +13 -0
- package/dist/components/ui/Panel.d.ts +35 -14
- package/dist/components/ui/PanelTitle.d.ts +3 -3
- package/dist/components/ui/ParetoChart.d.ts +41 -0
- package/dist/components/ui/ParquetViewer.d.ts +8 -15
- package/dist/components/ui/PasswordField.d.ts +1 -1
- package/dist/components/ui/PickerField.d.ts +17 -0
- package/dist/components/ui/ProjectSelector.d.ts +8 -2
- package/dist/components/ui/QueryAutocomplete.d.ts +0 -1
- package/dist/components/ui/RankBar.d.ts +25 -0
- package/dist/components/ui/RegisterForm.d.ts +1 -1
- package/dist/components/ui/ResizableSidePanel.d.ts +17 -2
- package/dist/components/ui/Reveal.d.ts +17 -0
- package/dist/components/ui/RunPips.d.ts +25 -0
- package/dist/components/ui/SavedQueryBar.d.ts +0 -1
- package/dist/components/ui/ScoreBar.d.ts +21 -0
- package/dist/components/ui/SearchInput.d.ts +6 -2
- package/dist/components/ui/SectionDivider.d.ts +1 -1
- package/dist/components/ui/Select.d.ts +25 -0
- package/dist/components/ui/SessionRunView.d.ts +50 -0
- package/dist/components/ui/SettingsSection.d.ts +1 -1
- package/dist/components/ui/ShareLinkDialog.d.ts +22 -6
- package/dist/components/ui/SparkLine.d.ts +3 -10
- package/dist/components/ui/StackedBar.d.ts +47 -0
- package/dist/components/ui/StatBlock.d.ts +15 -16
- package/dist/components/ui/StatusDot.d.ts +2 -2
- package/dist/components/ui/TableOfContents.d.ts +20 -0
- package/dist/components/ui/Tabs.d.ts +12 -2
- package/dist/components/ui/Terminal.d.ts +3 -10
- package/dist/components/ui/TextField.d.ts +1 -1
- package/dist/components/ui/TimeDisplay.d.ts +3 -3
- package/dist/components/ui/TimeRangePicker.d.ts +0 -1
- package/dist/components/ui/Timeline.d.ts +23 -15
- package/dist/components/ui/ToolCallCard.d.ts +3 -10
- package/dist/components/ui/Toolbar.d.ts +0 -1
- package/dist/components/ui/TraceSpanInspector.d.ts +15 -0
- package/dist/components/ui/TraceTree.d.ts +16 -14
- package/dist/components/ui/TrajectoryStep.d.ts +16 -10
- package/dist/components/ui/TrajectoryTimeline.d.ts +5 -11
- package/dist/components/ui/UploadQueue.d.ts +1 -1
- package/dist/components/ui/codeFence.d.ts +5 -0
- package/dist/components/ui/index.d.ts +51 -5
- package/dist/components/ui/linkComponent.d.ts +12 -0
- package/dist/components/ui/mdxTableOfContents.d.ts +13 -0
- package/dist/components/ui/relativeTime.d.ts +1 -1
- package/dist/components/ui/tablistKeyboard.d.ts +6 -0
- package/dist/components/ui/traceFormat.d.ts +5 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useCopyToClipboard.d.ts +8 -0
- package/dist/hooks/useElementWidth.d.ts +3 -0
- package/dist/hooks/useMediaQuery.d.ts +2 -0
- package/dist/hooks/useMenuPopover.d.ts +27 -0
- package/dist/hooks/usePageHidden.d.ts +2 -0
- package/dist/hooks/useResizable.d.ts +9 -0
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -5
- package/dist/index.js +12123 -123
- package/dist/index.js.map +1 -1
- package/dist/layouts/shell/AegisShell.d.ts +1 -1
- package/dist/layouts/shell/AuthRequiredCard.d.ts +2 -2
- package/dist/layouts/shell/TopHeader.d.ts +9 -1
- package/dist/layouts/shell/paths.d.ts +11 -0
- package/dist/layouts/shell/types.d.ts +40 -13
- package/dist/lib/format.d.ts +2 -0
- package/dist/lib/id.d.ts +2 -0
- package/dist/lib/luceneQuery/lucene.d.ts +63 -0
- package/dist/lib/storage.d.ts +12 -0
- package/dist/locale/LocaleProvider.d.ts +9 -0
- package/dist/locale/index.d.ts +4 -0
- package/dist/locale/localeContext.d.ts +2 -0
- package/dist/locale/strings.d.ts +110 -0
- package/dist/locale/useStrings.d.ts +2 -0
- package/dist/mdx-modules.d.ts +22 -0
- package/dist/style.css +1 -1
- package/dist/theme/antdTheme.d.ts +2 -3
- package/dist/vite.cjs +2 -0
- package/dist/vite.cjs.map +1 -0
- package/dist/vite.d.ts +7 -0
- package/dist/vite.js +18 -0
- package/dist/vite.js.map +1 -0
- package/package.json +43 -18
- package/dist/index-6WZzHI2Z.cjs +0 -1151
- package/dist/index-6WZzHI2Z.cjs.map +0 -1
- package/dist/index-CZ_qegBG.js +0 -6736
- package/dist/index-CZ_qegBG.js.map +0 -1
- package/dist/index-DLXAAlfH.cjs +0 -15
- package/dist/index-DLXAAlfH.cjs.map +0 -1
- package/dist/index-DtgBxtmy.js +0 -56284
- package/dist/index-DtgBxtmy.js.map +0 -1
- package/dist/styles/fonts.d.ts +0 -0
- package/dist/workerBundle-D52AeOj1.js +0 -76
- package/dist/workerBundle-D52AeOj1.js.map +0 -1
- package/dist/workerBundle-FGNDqtbW.cjs +0 -73
- package/dist/workerBundle-FGNDqtbW.cjs.map +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MDXComponents, MDXContent } from 'mdx/types';
|
|
2
|
+
import { LinkComponent } from './linkComponent';
|
|
3
|
+
export interface MdxDocumentProps {
|
|
4
|
+
/** The default export of an `.mdx` module compiled by `aegisMdx()` from `@lincyaw/aegis-ui/vite`. */
|
|
5
|
+
content: MDXContent;
|
|
6
|
+
/** Components the document's JSX names, and overrides of its Markdown elements. */
|
|
7
|
+
components?: MDXComponents;
|
|
8
|
+
/** Renders links within the site (`/…`) through the host router; other links are plain anchors. */
|
|
9
|
+
linkComponent?: LinkComponent;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* A long-form document written in MDX, such as an article or a report, in the
|
|
14
|
+
* article type roles: Markdown headings, prose, lists, tables, quotes and code,
|
|
15
|
+
* with the document's own components in between.
|
|
16
|
+
*/
|
|
17
|
+
export declare function MdxDocument({ content: Content, components, linkComponent, className, }: MdxDocumentProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
label: ReactNode;
|
|
9
|
-
value: ReactNode;
|
|
10
|
-
unit?: ReactNode;
|
|
11
|
-
}) => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
|
|
12
|
-
askSuggestions?: string[];
|
|
13
|
-
ask?: boolean;
|
|
14
|
-
}
|
|
2
|
+
import { PrimitiveSurface } from '../../agent/usePrimitiveSurface';
|
|
3
|
+
export type MetricCardSurface = PrimitiveSurface<{
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
value: ReactNode;
|
|
6
|
+
unit?: ReactNode;
|
|
7
|
+
}>;
|
|
15
8
|
interface MetricCardProps {
|
|
16
9
|
label: ReactNode;
|
|
17
10
|
value: ReactNode;
|
|
@@ -27,4 +20,4 @@ interface MetricCardProps {
|
|
|
27
20
|
surface?: MetricCardSurface;
|
|
28
21
|
}
|
|
29
22
|
export declare function MetricCard({ label, value, unit, sparkline, sparklineHeight, inverted, className, onClick, surface, }: MetricCardProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export
|
|
23
|
+
export {};
|
|
@@ -3,9 +3,10 @@ interface MetricLabelProps {
|
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
as?: 'span' | 'div' | 'label';
|
|
5
5
|
inverted?: boolean;
|
|
6
|
+
/** `sm` is the small type role (secondary text), `xs` the micro role. */
|
|
6
7
|
size?: 'xs' | 'sm';
|
|
7
8
|
className?: string;
|
|
8
9
|
style?: CSSProperties;
|
|
9
10
|
}
|
|
10
11
|
export declare function MetricLabel({ children, as: Tag, inverted, size, className, style, }: MetricLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export
|
|
12
|
+
export {};
|
|
@@ -1,22 +1,17 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
id: string;
|
|
5
|
-
kind?: SurfaceKind;
|
|
6
|
-
label?: string;
|
|
7
|
-
project: (children: ReactNode) => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
|
|
8
|
-
askSuggestions?: string[];
|
|
9
|
-
ask?: boolean;
|
|
10
|
-
}
|
|
2
|
+
import { PrimitiveSurface } from '../../agent/usePrimitiveSurface';
|
|
3
|
+
export type MonoValueSurface = PrimitiveSurface<ReactNode>;
|
|
11
4
|
interface MonoValueProps {
|
|
12
5
|
children: ReactNode;
|
|
13
6
|
size?: 'sm' | 'base' | 'lg';
|
|
14
7
|
weight?: 'regular' | 'medium';
|
|
8
|
+
/** Ink colour. `danger` is the anomaly red — failures only. */
|
|
9
|
+
tone?: 'default' | 'success' | 'danger' | 'muted';
|
|
15
10
|
inverted?: boolean;
|
|
16
11
|
as?: 'span' | 'div';
|
|
17
12
|
className?: string;
|
|
18
13
|
style?: CSSProperties;
|
|
19
14
|
surface?: MonoValueSurface;
|
|
20
15
|
}
|
|
21
|
-
export declare function MonoValue({ children, size, weight, inverted, as: Tag, className, style, surface, }: MonoValueProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export
|
|
16
|
+
export declare function MonoValue({ children, size, weight, tone, inverted, as: Tag, className, style, surface, }: MonoValueProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -37,4 +37,4 @@ interface ObjectBrowserProps {
|
|
|
37
37
|
className?: string;
|
|
38
38
|
}
|
|
39
39
|
export declare function ObjectBrowser({ prefixes, currentPrefix, onPrefixChange, children, toolbar, searchSlot, viewModeSlot, footer, dragOverlay, selectionCount, hideTree, defaultTreeCollapsed, loading, className, }: ObjectBrowserProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
-
export
|
|
40
|
+
export {};
|
|
@@ -24,4 +24,3 @@ export interface ObjectInspectorProps {
|
|
|
24
24
|
defaultMaximized?: boolean;
|
|
25
25
|
}
|
|
26
26
|
export declare function ObjectInspector({ open, onClose, title, subtitle, tabs, defaultTabId, actions, width, maximizedWidth, defaultMaximized, }: ObjectInspectorProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
export default ObjectInspector;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
interface PageHeaderProps {
|
|
3
3
|
title: string;
|
|
4
|
-
|
|
4
|
+
/** Inline content beside the title, e.g. a verdict badge and scores. */
|
|
5
|
+
titleExtra?: ReactNode;
|
|
6
|
+
/** One line under the title; may carry inline content such as an avatar. */
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
/** Label row under the description, e.g. a type badge and a version. */
|
|
9
|
+
meta?: ReactNode;
|
|
5
10
|
action?: ReactNode;
|
|
6
11
|
className?: string;
|
|
7
12
|
}
|
|
8
|
-
export declare function PageHeader({ title, description, action, className, }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export
|
|
13
|
+
export declare function PageHeader({ title, titleExtra, description, meta, action, className, }: PageHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -4,8 +4,15 @@ export interface PageSizeSelectProps {
|
|
|
4
4
|
onChange: (next: number) => void;
|
|
5
5
|
options?: number[];
|
|
6
6
|
disabled?: boolean;
|
|
7
|
+
/** Defaults to the locale's "rows per page"; pass '' to hide the caption. */
|
|
7
8
|
label?: string;
|
|
8
9
|
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Preferred side for the options panel. Default is 'top' because the
|
|
12
|
+
* primitive was originally used as a pagination footer where the table
|
|
13
|
+
* content is above; use 'bottom' when the trigger sits at the top of a
|
|
14
|
+
* section. The panel flips when the preferred side has no room.
|
|
15
|
+
*/
|
|
16
|
+
placement?: 'top' | 'bottom';
|
|
9
17
|
}
|
|
10
|
-
export declare function PageSizeSelect({ value, onChange, options, disabled, label, className, }: PageSizeSelectProps): ReactElement;
|
|
11
|
-
export default PageSizeSelect;
|
|
18
|
+
export declare function PageSizeSelect({ value, onChange, options, disabled, label: labelProp, className, placement, }: PageSizeSelectProps): ReactElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface PaginationProps {
|
|
2
|
+
page: number;
|
|
3
|
+
pageSize: number;
|
|
4
|
+
/** Optional so a `DataTablePagination` can be spread straight in. */
|
|
5
|
+
total?: number;
|
|
6
|
+
onChange: (page: number, pageSize: number) => void;
|
|
7
|
+
pageSizeOptions?: number[];
|
|
8
|
+
/** Noun used in the total count, e.g. "steps"; defaults to the locale's records unit. */
|
|
9
|
+
unit?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function Pagination({ page, pageSize, total, onChange, pageSizeOptions, unit, className, }: PaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -1,22 +1,43 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
import { ContainerSurface } from '../../agent/usePrimitiveSurface';
|
|
3
|
+
import { LinkComponent } from './linkComponent';
|
|
4
|
+
export type PanelSurface = ContainerSurface;
|
|
5
|
+
/**
|
|
6
|
+
* `tint` for showcase blocks on overview and article pages, `brand` for
|
|
7
|
+
* featured content, `glass` for a panel laid over a gradient or image.
|
|
8
|
+
*/
|
|
9
|
+
export type PanelVariant = 'solid' | 'tint' | 'brand' | 'glass';
|
|
10
|
+
/** `raised` lifts featured and hero cards above the resting cards. */
|
|
11
|
+
export type PanelElevation = 'rest' | 'raised';
|
|
12
|
+
interface PanelBaseProps {
|
|
13
|
+
/** Muted line under the title, e.g. a chart's metric and direction. */
|
|
14
|
+
description?: ReactNode;
|
|
13
15
|
extra?: ReactNode;
|
|
14
|
-
|
|
16
|
+
variant?: PanelVariant;
|
|
17
|
+
elevation?: PanelElevation;
|
|
18
|
+
/** False drops the body padding, e.g. for a table that fills the panel. */
|
|
15
19
|
padded?: boolean;
|
|
16
20
|
className?: string;
|
|
17
21
|
style?: CSSProperties;
|
|
18
22
|
children?: ReactNode;
|
|
19
23
|
surface?: PanelSurface;
|
|
20
24
|
}
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
interface PanelStaticProps extends PanelBaseProps {
|
|
26
|
+
title?: ReactNode;
|
|
27
|
+
to?: undefined;
|
|
28
|
+
linkComponent?: undefined;
|
|
29
|
+
}
|
|
30
|
+
interface PanelLinkProps extends PanelBaseProps {
|
|
31
|
+
/** The link's text; the link covers the whole panel. */
|
|
32
|
+
title: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Destination; the panel lifts on hover. Controls belong in `extra`,
|
|
35
|
+
* which stays clickable above the link; the body is part of the link.
|
|
36
|
+
*/
|
|
37
|
+
to: string;
|
|
38
|
+
/** Renders the link. Defaults to an `<a href>`; routed apps pass their Link adapter. */
|
|
39
|
+
linkComponent?: LinkComponent;
|
|
40
|
+
}
|
|
41
|
+
type PanelProps = PanelStaticProps | PanelLinkProps;
|
|
42
|
+
export declare function Panel({ title, description, extra, variant, elevation, padded, to, linkComponent, className, style, children, surface, }: PanelProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export {};
|
|
@@ -2,9 +2,9 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
interface PanelTitleProps {
|
|
3
3
|
children: ReactNode;
|
|
4
4
|
as?: 'span' | 'h1' | 'h2' | 'h3' | 'h4';
|
|
5
|
-
|
|
5
|
+
/** Type roles: sm Strong, base Heading, lg Title, hero Display. */
|
|
6
6
|
size?: 'sm' | 'base' | 'lg' | 'hero';
|
|
7
7
|
className?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare function PanelTitle({ children, as: Tag,
|
|
10
|
-
export
|
|
9
|
+
export declare function PanelTitle({ children, as: Tag, size, className, }: PanelTitleProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface ParetoPoint {
|
|
3
|
+
key: string;
|
|
4
|
+
label: string;
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
/** Point fill, e.g. `var(--data-cat-2)` to match the series elsewhere. */
|
|
8
|
+
color?: string;
|
|
9
|
+
}
|
|
10
|
+
/** One series in the legend under the plot, e.g. a model and its colour. */
|
|
11
|
+
export interface ParetoLegendItem {
|
|
12
|
+
key: string;
|
|
13
|
+
label: ReactNode;
|
|
14
|
+
/** Swatch fill; the same value its points use. */
|
|
15
|
+
color?: string;
|
|
16
|
+
}
|
|
17
|
+
interface ParetoChartProps {
|
|
18
|
+
points: ParetoPoint[];
|
|
19
|
+
xLabel: string;
|
|
20
|
+
yLabel: string;
|
|
21
|
+
/** Which direction counts as better on each axis. */
|
|
22
|
+
xDirection?: 'lower' | 'higher';
|
|
23
|
+
yDirection?: 'lower' | 'higher';
|
|
24
|
+
/** Formats the 0 and maximum labels of each axis. */
|
|
25
|
+
formatX?: (value: number) => string;
|
|
26
|
+
formatY?: (value: number) => string;
|
|
27
|
+
onSelect?: (key: string) => void;
|
|
28
|
+
/** Series swatches with labels, listed under the plot. */
|
|
29
|
+
legend?: ParetoLegendItem[];
|
|
30
|
+
/**
|
|
31
|
+
* Shown in place of the plot, at its minimum height, while there are no
|
|
32
|
+
* points — e.g. an EmptyState with an icon asking for both axes. Replaces
|
|
33
|
+
* the default empty state built from `emptyTitle`.
|
|
34
|
+
*/
|
|
35
|
+
empty?: ReactNode;
|
|
36
|
+
emptyTitle?: string;
|
|
37
|
+
emptyDescription?: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
40
|
+
export declare function ParetoChart({ points, xLabel, yLabel, xDirection, yDirection, formatX, formatY, onSelect, legend, empty, emptyTitle, emptyDescription, className, }: ParetoChartProps): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export {};
|
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
file?: File | Blob;
|
|
10
|
-
totalRows: number;
|
|
11
|
-
columns: string[];
|
|
12
|
-
}) => Pick<SurfaceSnapshot, 'entities' | 'fields'>;
|
|
13
|
-
askSuggestions?: string[];
|
|
14
|
-
ask?: boolean;
|
|
15
|
-
}
|
|
2
|
+
import { PrimitiveSurface } from '../../agent/usePrimitiveSurface';
|
|
3
|
+
export type ParquetViewerSurface = PrimitiveSurface<{
|
|
4
|
+
src?: string;
|
|
5
|
+
file?: File | Blob;
|
|
6
|
+
totalRows: number;
|
|
7
|
+
columns: string[];
|
|
8
|
+
}>;
|
|
16
9
|
interface ParquetViewerProps {
|
|
17
10
|
/** Local file (e.g. from FileDropzone). Takes precedence over `src`. */
|
|
18
11
|
file?: File | Blob;
|
|
@@ -27,4 +20,4 @@ interface ParquetViewerProps {
|
|
|
27
20
|
surface?: ParquetViewerSurface;
|
|
28
21
|
}
|
|
29
22
|
export declare function ParquetViewer({ file, src, pageSize, title, className, style, surface, }: ParquetViewerProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export
|
|
23
|
+
export {};
|
|
@@ -6,4 +6,4 @@ interface PasswordFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
6
6
|
leadingIcon?: ReactNode;
|
|
7
7
|
}
|
|
8
8
|
export declare const PasswordField: import('react').ForwardRefExoticComponent<PasswordFieldProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
9
|
-
export
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface PickerFieldProps {
|
|
3
|
+
/** Caption rendered above the control, as on Select. */
|
|
4
|
+
label?: ReactNode;
|
|
5
|
+
/** Current choice; the placeholder shows while it is empty. */
|
|
6
|
+
value?: ReactNode;
|
|
7
|
+
placeholder?: ReactNode;
|
|
8
|
+
/** Opens the picker, typically a Dialog. */
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Accessible name when the caption is not plain text. */
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/** Looks like a closed Select but opens a dialog instead of a native menu. */
|
|
16
|
+
export declare function PickerField({ label, value, placeholder, onClick, disabled, ariaLabel, className, }: PickerFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { AegisAction } from '../../agent/types';
|
|
3
|
+
import { DropdownItem } from './DropdownMenu';
|
|
2
4
|
export interface ProjectOption {
|
|
3
5
|
id: string;
|
|
4
6
|
name: string;
|
|
7
|
+
/** Trailing content on the option row, e.g. a status chip or a count. */
|
|
8
|
+
meta?: ReactNode;
|
|
5
9
|
/** Optional aegis-ui agent action — fired when the option is selected. */
|
|
6
10
|
action?: AegisAction<void, unknown>;
|
|
7
11
|
}
|
|
@@ -9,9 +13,11 @@ interface ProjectSelectorProps {
|
|
|
9
13
|
projects: ProjectOption[];
|
|
10
14
|
selectedId?: string;
|
|
11
15
|
onSelect: (id: string) => void;
|
|
16
|
+
/** Actions below the project list, e.g. "View all projects" / "New project". */
|
|
17
|
+
footerItems?: DropdownItem[];
|
|
12
18
|
placeholder?: string;
|
|
13
19
|
className?: string;
|
|
14
20
|
align?: 'left' | 'right';
|
|
15
21
|
}
|
|
16
|
-
export declare function ProjectSelector({ projects, selectedId, onSelect, placeholder, className, align, }: ProjectSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export
|
|
22
|
+
export declare function ProjectSelector({ projects, selectedId, onSelect, footerItems, placeholder, className, align, }: ProjectSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -23,4 +23,3 @@ export interface QueryAutocompleteProps {
|
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
}
|
|
25
25
|
export declare function QueryAutocomplete({ value, onChange, onSubmit, fieldSuggestions, valueSuggestions, placeholder, showHelp, className, popoverClassName, disabled, }: QueryAutocompleteProps): JSX.Element;
|
|
26
|
-
export default QueryAutocomplete;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface RankBarItem {
|
|
3
|
+
key: string;
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* `null` is a missing value: an em dash over an empty track, distinct
|
|
7
|
+
* from a real 0, which keeps a visible endpoint.
|
|
8
|
+
*/
|
|
9
|
+
value: number | null;
|
|
10
|
+
/** Trailing slot for a per-row link, e.g. "逐题表现". */
|
|
11
|
+
action?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
interface RankBarProps {
|
|
14
|
+
items: RankBarItem[];
|
|
15
|
+
/** Upper bound of the scale. Defaults to the largest value, or 1 when all are 0. */
|
|
16
|
+
max?: number;
|
|
17
|
+
/** Scale hint rendered at the bottom, e.g. "越高越好". */
|
|
18
|
+
direction?: ReactNode;
|
|
19
|
+
format?: (value: number) => string;
|
|
20
|
+
/** Makes each row's label and bar track select that row. */
|
|
21
|
+
onSelect?: (key: string) => void;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function RankBar({ items, max, direction, format, onSelect, className, }: RankBarProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -9,13 +9,28 @@ export interface ResizableSidePanelProps {
|
|
|
9
9
|
maxWidth?: number;
|
|
10
10
|
/** localStorage key to persist width across reloads. */
|
|
11
11
|
persistKey?: string;
|
|
12
|
+
/** Width change per arrow-key press on the handle, in px. */
|
|
13
|
+
keyboardStep?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Narrows a proposed width after the min/max clamp, e.g. to keep the
|
|
16
|
+
* neighbouring content above its own minimum width.
|
|
17
|
+
*/
|
|
18
|
+
constrainWidth?: (width: number) => number;
|
|
19
|
+
/** Double-clicking the handle restores `defaultWidth`. */
|
|
20
|
+
resetOnDoubleClick?: boolean;
|
|
12
21
|
/** Whether the panel can be fully collapsed (rendered as a thin handle bar). */
|
|
13
22
|
collapsible?: boolean;
|
|
14
23
|
/** Controlled collapsed state. If omitted, internal state is used. */
|
|
15
24
|
collapsed?: boolean;
|
|
16
25
|
onCollapsedChange?: (collapsed: boolean) => void;
|
|
26
|
+
/**
|
|
27
|
+
* At ≤768 px, fill the parent's width with a bounded height and hide the
|
|
28
|
+
* resize handle — for layouts that stack the panel above or below its
|
|
29
|
+
* neighbour on narrow screens. The parent still owns the stacking
|
|
30
|
+
* (e.g. `flex-direction: column`).
|
|
31
|
+
*/
|
|
32
|
+
stackOnMobile?: boolean;
|
|
17
33
|
/** Optional className appended to the root. */
|
|
18
34
|
className?: string;
|
|
19
35
|
}
|
|
20
|
-
export declare function ResizableSidePanel({ children, side, defaultWidth, minWidth, maxWidth, persistKey, collapsible, collapsed: collapsedProp, onCollapsedChange, className, }: ResizableSidePanelProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export default ResizableSidePanel;
|
|
36
|
+
export declare function ResizableSidePanel({ children, side, defaultWidth, minWidth, maxWidth, persistKey, keyboardStep, constrainWidth, resetOnDoubleClick, collapsible, collapsed: collapsedProp, onCollapsedChange, stackOnMobile, className, }: ResizableSidePanelProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface RevealProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* Position within a group that enters together: delays the entrance by
|
|
6
|
+
* that many `--motion-reveal-stagger`s.
|
|
7
|
+
*/
|
|
8
|
+
staggerIndex?: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Fades its content in and lifts it by `--motion-reveal-offset` the first
|
|
13
|
+
* time it enters the viewport. Content is hidden only while an
|
|
14
|
+
* IntersectionObserver is watching it, so it stays visible without one,
|
|
15
|
+
* and under prefers-reduced-motion it appears without moving.
|
|
16
|
+
*/
|
|
17
|
+
export declare function Reveal({ children, staggerIndex, className }: RevealProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface RunPipsCounts {
|
|
2
|
+
passed: number;
|
|
3
|
+
/** Ran and was graded as failing. */
|
|
4
|
+
failed: number;
|
|
5
|
+
/** The run itself failed (no gradable answer). */
|
|
6
|
+
errored: number;
|
|
7
|
+
/** Not finished yet. */
|
|
8
|
+
pending?: number;
|
|
9
|
+
}
|
|
10
|
+
interface RunPipsProps {
|
|
11
|
+
counts: RunPipsCounts;
|
|
12
|
+
/** Above this many runs the dots collapse into a proportional bar. */
|
|
13
|
+
maxDots?: number;
|
|
14
|
+
/** Accessible name; defaults to a localized count summary. */
|
|
15
|
+
ariaLabel?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Per-run outcome strip: "passed/total" in the numeric type role, then one
|
|
20
|
+
* dot per run (passed, failed, execution failed as a hollow ring, pending).
|
|
21
|
+
* The text and the accessible name always carry the counts, so colour is
|
|
22
|
+
* never the only signal.
|
|
23
|
+
*/
|
|
24
|
+
export declare function RunPips({ counts, maxDots, ariaLabel, className, }: RunPipsProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -13,4 +13,3 @@ export interface SavedQueryBarProps {
|
|
|
13
13
|
maxInlineUnpinned?: number;
|
|
14
14
|
}
|
|
15
15
|
export declare function SavedQueryBar({ namespace, currentValue, onApply, allowEmptySave, className, maxInlineUnpinned, }: SavedQueryBarProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export default SavedQueryBar;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface ScoreBarProps {
|
|
2
|
+
/**
|
|
3
|
+
* `null` is a missing value: an em dash over an empty track, distinct
|
|
4
|
+
* from a real 0, which keeps a visible endpoint.
|
|
5
|
+
*/
|
|
6
|
+
value: number | null;
|
|
7
|
+
/** Value of a full track. */
|
|
8
|
+
max?: number;
|
|
9
|
+
format?: (value: number) => string;
|
|
10
|
+
/** Accessible name; defaults to "<value> of <max>". */
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Position in a list (e.g. the table row index): delays the draw-in by
|
|
14
|
+
* that many `--motion-stagger-step`s so rows fill one after another.
|
|
15
|
+
*/
|
|
16
|
+
staggerIndex?: number;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
/** Inline score: a right-aligned tabular value and a short bar, for table cells. */
|
|
20
|
+
export declare function ScoreBar({ value, max, format, ariaLabel, staggerIndex, className, }: ScoreBarProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -6,7 +6,11 @@ export interface SearchInputProps {
|
|
|
6
6
|
/** Optional keyboard shortcut hint, e.g. `⌘K`. */
|
|
7
7
|
kbd?: ReactNode;
|
|
8
8
|
onClear?: () => void;
|
|
9
|
+
/**
|
|
10
|
+
* Fills the container's width, the field taking the free space. A host
|
|
11
|
+
* that sizes the search (e.g. a flex-basis in a toolbar) sets this too.
|
|
12
|
+
*/
|
|
13
|
+
block?: boolean;
|
|
9
14
|
className?: string;
|
|
10
15
|
}
|
|
11
|
-
export declare function SearchInput({ value, onChange, placeholder, kbd, onClear, className, }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export default SearchInput;
|
|
16
|
+
export declare function SearchInput({ value, onChange, placeholder, kbd, onClear, block, className, }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface SelectOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface SelectProps {
|
|
8
|
+
value: string;
|
|
9
|
+
options: SelectOption[];
|
|
10
|
+
onChange: (value: string) => void;
|
|
11
|
+
/** Caption rendered above the control. */
|
|
12
|
+
label?: ReactNode;
|
|
13
|
+
/** Accessible name for a select shown without a visible caption, e.g. a compact filter. */
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
/** Rendered as a disabled first option when `value` is empty. */
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
/** Shows a clear control once a value is set. */
|
|
18
|
+
allowClear?: boolean;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** Lets a caller's `<label htmlFor>` point at the control. */
|
|
21
|
+
id?: string;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function Select({ value, options, onChange, label, ariaLabel, placeholder, allowClear, disabled, id, className, }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { InspectableContent } from './ContentInspectorContent';
|
|
3
|
+
export interface SessionRunMessage {
|
|
4
|
+
id?: string;
|
|
5
|
+
role: string;
|
|
6
|
+
content: unknown[];
|
|
7
|
+
highlighted?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface SessionRunSummary {
|
|
10
|
+
lineage: string;
|
|
11
|
+
startedAt: string;
|
|
12
|
+
inputTokens: string;
|
|
13
|
+
outputTokens: string;
|
|
14
|
+
}
|
|
15
|
+
export interface SessionRunFact {
|
|
16
|
+
key: string;
|
|
17
|
+
label: string;
|
|
18
|
+
value: ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export interface SessionRunToolCall {
|
|
21
|
+
id: string;
|
|
22
|
+
tool: string;
|
|
23
|
+
duration: string;
|
|
24
|
+
args: unknown;
|
|
25
|
+
result: unknown;
|
|
26
|
+
errored?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface SessionRunSubmission {
|
|
29
|
+
tool: string;
|
|
30
|
+
payload: unknown;
|
|
31
|
+
result: unknown;
|
|
32
|
+
summary: string;
|
|
33
|
+
}
|
|
34
|
+
export interface SessionRunTrajectoryViewProps {
|
|
35
|
+
summary: SessionRunSummary;
|
|
36
|
+
messages: SessionRunMessage[];
|
|
37
|
+
loading?: boolean;
|
|
38
|
+
error?: string;
|
|
39
|
+
onInspectContent: (content: InspectableContent) => void;
|
|
40
|
+
}
|
|
41
|
+
export interface SessionRunOutputViewProps {
|
|
42
|
+
facts: SessionRunFact[];
|
|
43
|
+
acceptedSubmission?: SessionRunSubmission | null;
|
|
44
|
+
tools: SessionRunToolCall[];
|
|
45
|
+
loading?: boolean;
|
|
46
|
+
error?: string;
|
|
47
|
+
onInspectContent: (content: InspectableContent) => void;
|
|
48
|
+
}
|
|
49
|
+
export declare function SessionRunTrajectoryView({ summary, messages, loading, error, onInspectContent, }: SessionRunTrajectoryViewProps): ReactElement;
|
|
50
|
+
export declare function SessionRunOutputView({ facts, acceptedSubmission, tools, loading, error, onInspectContent, }: SessionRunOutputViewProps): ReactElement;
|