@makinbakin/sdk 0.0.1-rc.26 → 0.0.1-rc.28
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 +247 -3
- package/_internal/app/components/agent-avatar.d.ts +2 -1
- package/_internal/app/components/conversation/fold.d.ts +3 -129
- package/_internal/app/components/drawer.d.ts +29 -0
- package/_internal/app/components/ui/button.d.ts +2 -8
- package/_internal/app/components/ui/dialog.d.ts +2 -17
- package/_internal/app/components/ui/sheet.d.ts +2 -14
- package/_internal/app/core/conversation-turns.d.ts +83 -2
- package/_internal/app/core/tool-access.d.ts +42 -0
- package/_internal/app/hooks/use-history-back.d.ts +5 -1
- package/_internal/app/hooks/use-json-fetch.d.ts +13 -3
- package/_internal/app/hooks/use-nav-badge.d.ts +1 -1
- package/_internal/app/hooks/use-query-state.d.ts +3 -14
- package/_internal/core/adapters/runtime/channels.d.ts +231 -0
- package/_internal/core/adapters/runtime/concepts.d.ts +42 -167
- package/_internal/core/adapters/runtime/index.d.ts +2 -1
- package/_internal/core/adapters/runtime/skill-files.d.ts +12 -0
- package/_internal/core/adapters/shared.d.ts +11 -0
- package/_internal/core/delivery/bridge.d.ts +36 -0
- package/_internal/core/format.d.ts +12 -1
- package/_internal/core/plugin-types.d.ts +20 -1
- package/_internal/core/routing/define.d.ts +1 -0
- package/_internal/host/ui/action-status.d.ts +13 -0
- package/_internal/host/ui/modals.d.ts +5 -0
- package/_internal/ui/behaviors/clipboard.d.ts +10 -0
- package/_internal/ui/behaviors/selection-navigation.d.ts +5 -0
- package/_internal/ui/behaviors/use-persisted-leading-edge-resize.d.ts +29 -0
- package/_internal/ui/charts/area-chart.d.ts +27 -0
- package/_internal/ui/charts/axis.d.ts +13 -0
- package/_internal/ui/charts/bar-chart.d.ts +21 -0
- package/_internal/ui/charts/chart-data-table.d.ts +61 -0
- package/_internal/ui/charts/chart-explainer.d.ts +4 -0
- package/_internal/ui/charts/composition-bar.d.ts +41 -0
- package/_internal/ui/charts/index.d.ts +24 -0
- package/_internal/ui/charts/line-chart.d.ts +26 -0
- package/_internal/ui/charts/monotone-curve.d.ts +23 -0
- package/_internal/ui/charts/palette.d.ts +32 -0
- package/_internal/ui/charts/pie-chart.d.ts +80 -0
- package/_internal/ui/charts/ranked-bar-chart.d.ts +41 -0
- package/_internal/ui/charts/sparkline.d.ts +16 -0
- package/_internal/ui/charts/stacked-column-chart.d.ts +33 -0
- package/_internal/ui/content/code-block.d.ts +43 -0
- package/_internal/ui/content/index.d.ts +2 -0
- package/_internal/ui/conversation/activity-group.d.ts +27 -0
- package/_internal/ui/conversation/agent-turn.d.ts +47 -0
- package/_internal/ui/conversation/composer.d.ts +62 -0
- package/_internal/ui/conversation/context-meter.d.ts +37 -0
- package/_internal/ui/conversation/conversation-empty-state.d.ts +13 -0
- package/_internal/ui/conversation/conversation-header.d.ts +26 -0
- package/_internal/ui/conversation/conversation-panel.d.ts +59 -0
- package/_internal/ui/conversation/conversation.d.ts +35 -0
- package/_internal/ui/conversation/fold.d.ts +150 -0
- package/_internal/ui/conversation/glyphs.d.ts +30 -0
- package/_internal/ui/conversation/index.d.ts +31 -0
- package/_internal/ui/conversation/queued-message-list.d.ts +22 -0
- package/_internal/ui/conversation/relative-time.d.ts +8 -0
- package/_internal/ui/conversation/resize-handle.d.ts +13 -0
- package/_internal/ui/conversation/tool-call-drawer.d.ts +14 -0
- package/_internal/ui/conversation/turn-controls.d.ts +9 -0
- package/_internal/ui/conversation/turn-output.d.ts +42 -0
- package/_internal/ui/conversation/turn-usage.d.ts +16 -0
- package/_internal/ui/conversation/user-message.d.ts +13 -0
- package/_internal/ui/forms/field.d.ts +25 -0
- package/_internal/ui/forms/fieldset.d.ts +10 -0
- package/_internal/ui/forms/form.d.ts +19 -0
- package/_internal/ui/forms/index.d.ts +6 -0
- package/_internal/ui/index.d.ts +86 -0
- package/_internal/ui/layout/bounded-overflow.d.ts +42 -0
- package/_internal/ui/layout/disclosure-panel.d.ts +24 -0
- package/_internal/ui/layout/flow.d.ts +27 -0
- package/_internal/ui/layout/grid.d.ts +16 -0
- package/_internal/ui/layout/index.d.ts +14 -0
- package/_internal/ui/layout/page-shell.d.ts +11 -0
- package/_internal/ui/layout/panel.d.ts +28 -0
- package/_internal/ui/layout/section.d.ts +15 -0
- package/_internal/ui/layout/sticky-overflow-scrollbar.d.ts +11 -0
- package/_internal/ui/layout/utils.d.ts +1 -0
- package/_internal/ui/patterns/agent-filter.d.ts +20 -0
- package/_internal/ui/patterns/calendar-grid.d.ts +80 -0
- package/_internal/ui/patterns/calendar-item.d.ts +42 -0
- package/_internal/ui/patterns/calendar-nav.d.ts +21 -0
- package/_internal/ui/patterns/confirm-dialog.d.ts +29 -0
- package/_internal/ui/patterns/copy-button.d.ts +15 -0
- package/_internal/ui/patterns/danger-zone.d.ts +17 -0
- package/_internal/ui/patterns/data-table.d.ts +151 -0
- package/_internal/ui/patterns/drawer-section.d.ts +11 -0
- package/_internal/ui/patterns/facet-filter.d.ts +22 -0
- package/_internal/ui/patterns/index.d.ts +73 -0
- package/_internal/ui/patterns/inspector-panel.d.ts +39 -0
- package/_internal/ui/patterns/kanban.d.ts +70 -0
- package/_internal/ui/patterns/key-value.d.ts +35 -0
- package/_internal/ui/patterns/list-rows.d.ts +105 -0
- package/_internal/ui/patterns/nav-list.d.ts +41 -0
- package/_internal/ui/patterns/node-card.d.ts +37 -0
- package/_internal/ui/patterns/page-aside.d.ts +49 -0
- package/_internal/ui/patterns/page-body.d.ts +49 -0
- package/_internal/ui/patterns/page-canvas.d.ts +12 -0
- package/_internal/ui/patterns/page-composer.d.ts +8 -0
- package/_internal/ui/patterns/page-controls.d.ts +31 -0
- package/_internal/ui/patterns/page-header.d.ts +40 -0
- package/_internal/ui/patterns/page-timeline.d.ts +18 -0
- package/_internal/ui/patterns/page.d.ts +32 -0
- package/_internal/ui/patterns/pagination.d.ts +23 -0
- package/_internal/ui/patterns/save-bar.d.ts +21 -0
- package/_internal/ui/patterns/search-input.d.ts +20 -0
- package/_internal/ui/patterns/segmented-control.d.ts +22 -0
- package/_internal/ui/patterns/sortable-head.d.ts +13 -0
- package/_internal/ui/patterns/stat-group.d.ts +8 -0
- package/_internal/ui/patterns/stat-tile.d.ts +25 -0
- package/_internal/ui/patterns/status-badge.d.ts +15 -0
- package/_internal/ui/patterns/status-marker.d.ts +10 -0
- package/_internal/ui/patterns/timeline.d.ts +59 -0
- package/_internal/ui/patterns/unsaved-changes-dialog.d.ts +22 -0
- package/_internal/ui/patterns/workspace-page.d.ts +76 -0
- package/_internal/ui/primitives/alert.d.ts +17 -0
- package/_internal/ui/primitives/avatar.d.ts +13 -0
- package/_internal/ui/primitives/badge.d.ts +27 -0
- package/_internal/ui/primitives/button.d.ts +32 -0
- package/_internal/ui/primitives/card.d.ts +47 -0
- package/_internal/ui/primitives/checkbox.d.ts +3 -0
- package/_internal/ui/primitives/collapsible.d.ts +7 -0
- package/_internal/ui/primitives/color-input.d.ts +21 -0
- package/_internal/ui/primitives/command.d.ts +36 -0
- package/_internal/ui/primitives/dialog.d.ts +31 -0
- package/_internal/ui/primitives/dropdown-menu.d.ts +54 -0
- package/_internal/ui/primitives/file-input.d.ts +33 -0
- package/_internal/ui/primitives/input-group.d.ts +24 -0
- package/_internal/ui/primitives/input.d.ts +5 -0
- package/_internal/ui/primitives/interactive-surface.d.ts +24 -0
- package/_internal/ui/primitives/label.d.ts +3 -0
- package/_internal/ui/primitives/modal-context.d.ts +9 -0
- package/_internal/ui/primitives/option-list.d.ts +10 -0
- package/_internal/ui/primitives/popover.d.ts +18 -0
- package/_internal/ui/primitives/portal-ownership.d.ts +11 -0
- package/_internal/ui/primitives/progress.d.ts +38 -0
- package/_internal/ui/primitives/radio-group.d.ts +12 -0
- package/_internal/ui/primitives/select.d.ts +25 -0
- package/_internal/ui/primitives/separator.d.ts +7 -0
- package/_internal/ui/primitives/sheet.d.ts +34 -0
- package/_internal/ui/primitives/shimmer-text.d.ts +13 -0
- package/_internal/ui/primitives/skeleton.d.ts +6 -0
- package/_internal/ui/primitives/spinner.d.ts +31 -0
- package/_internal/ui/primitives/switch.d.ts +6 -0
- package/_internal/{app/components/ui → ui/primitives}/tabs.d.ts +1 -1
- package/_internal/ui/primitives/text.d.ts +43 -0
- package/_internal/ui/primitives/textarea.d.ts +3 -0
- package/_internal/ui/primitives/tooltip.d.ts +14 -0
- package/_internal/ui/private-ui-boundary-probe.d.ts +9 -0
- package/_internal/ui/states/banner.d.ts +15 -0
- package/_internal/ui/states/index.d.ts +6 -0
- package/_internal/ui/states/system-state.d.ts +88 -0
- package/_internal/ui/states/toast.d.ts +26 -0
- package/_internal/ui/utils.d.ts +14 -0
- package/bin/bakin-plugin-test-ui.js +6822 -0
- package/charts/index.d.ts +3 -0
- package/charts/index.js +2 -0
- package/content/index.d.ts +14 -0
- package/content/index.js +39 -0
- package/content/markdown-content.d.ts +16 -0
- package/content/markdown-editor.d.ts +35 -0
- package/conversation/index.d.ts +50 -0
- package/conversation/index.js +4 -0
- package/{_internal/app/components/conversation → conversation}/use-conversation-thread.d.ts +21 -3
- package/hooks/index.d.ts +9 -9
- package/hooks/index.js +1 -16243
- package/hooks/router.d.ts +4 -52
- package/index.d.ts +10 -3
- package/index.js +10 -14248
- package/internal/index.d.ts +18 -14
- package/internal/index.js +1 -408
- package/internal/lazy.d.ts +58 -0
- package/internal/plugin-ownership.d.ts +18 -0
- package/internal/private-ui-boundary-probe.d.ts +2 -0
- package/layout/index.d.ts +9 -0
- package/layout/index.js +2 -0
- package/metadata/index.js +1 -30
- package/navigation/history-back.d.ts +5 -0
- package/navigation/index.d.ts +23 -0
- package/navigation/index.js +2 -0
- package/navigation/plugin-link.d.ts +11 -0
- package/navigation/query-state.d.ts +7 -0
- package/navigation/router.d.ts +35 -0
- package/navigation/search-params.d.ts +7 -0
- package/navigation/unsaved-changes-guard.d.ts +35 -0
- package/package.json +54 -9
- package/patterns/agent-patterns.d.ts +79 -0
- package/patterns/asset-library-picker.d.ts +38 -0
- package/patterns/channel-patterns.d.ts +32 -0
- package/patterns/index.d.ts +40 -0
- package/patterns/index.js +47 -0
- package/patterns/picker-patterns.d.ts +96 -0
- package/patterns/plugin-settings-renderer.d.ts +41 -0
- package/patterns/presentation-color.d.ts +2 -0
- package/patterns/search-patterns.d.ts +51 -0
- package/routing/index.js +10 -14054
- package/slots/index.d.ts +4 -4
- package/slots/index.js +1 -276
- package/slots/registry.d.ts +45 -0
- package/styles.css +2 -0
- package/testing/index.d.ts +1 -1
- package/testing/index.js +56 -21837
- package/testing/ui/conformance/cli.d.ts +2 -0
- package/testing/ui/conformance/contracts.d.ts +73 -0
- package/testing/ui/conformance/index.d.ts +11 -0
- package/testing/ui/conformance/index.js +85 -0
- package/testing/ui/conformance/plugin-css.d.ts +37 -0
- package/testing/ui/conformance/plugin-id.d.ts +6 -0
- package/testing/ui/conformance/runner.d.ts +13 -0
- package/testing/ui/index.d.ts +24 -0
- package/testing/ui/index.js +2 -0
- package/testing/ui/plugin-ui-fixture-host.d.ts +36 -0
- package/testing/ui/runtime.d.ts +70 -0
- package/types/api-route.d.ts +89 -0
- package/types/context.d.ts +166 -0
- package/types/conversation-turns.d.ts +229 -0
- package/types/events.d.ts +10 -0
- package/types/health.d.ts +374 -0
- package/types/index.d.ts +10 -10
- package/types/index.js +1 -16
- package/types/manifest.d.ts +221 -0
- package/types/primitives.d.ts +33 -0
- package/types/registration.d.ts +281 -0
- package/types/runtime.d.ts +286 -0
- package/types/scheduled-events.d.ts +80 -0
- package/types/services.d.ts +570 -0
- package/ui/index.d.ts +70 -31
- package/ui/index.js +38 -28705
- package/utils/asset-id.d.ts +15 -0
- package/utils/index.d.ts +5 -10
- package/utils/index.js +4 -2228
- package/utils/plugin-fetch.d.ts +23 -0
- package/_internal/app/components/agent-filter.d.ts +0 -8
- package/_internal/app/components/agent-select.d.ts +0 -29
- package/_internal/app/components/agent-status.d.ts +0 -8
- package/_internal/app/components/asset-picker.d.ts +0 -25
- package/_internal/app/components/bakin-drawer.d.ts +0 -23
- package/_internal/app/components/charts/bar-chart.d.ts +0 -16
- package/_internal/app/components/charts/chart-data-table.d.ts +0 -31
- package/_internal/app/components/charts/chart-explainer.d.ts +0 -9
- package/_internal/app/components/charts/line-chart.d.ts +0 -13
- package/_internal/app/components/charts/palette.d.ts +0 -24
- package/_internal/app/components/charts/sparkline.d.ts +0 -12
- package/_internal/app/components/charts/stacked-column-chart.d.ts +0 -40
- package/_internal/app/components/color-picker.d.ts +0 -7
- package/_internal/app/components/confirm-dialog.d.ts +0 -54
- package/_internal/app/components/conversation/activity-group.d.ts +0 -15
- package/_internal/app/components/conversation/agent-turn.d.ts +0 -36
- package/_internal/app/components/conversation/composer.d.ts +0 -35
- package/_internal/app/components/conversation/conversation-empty-state.d.ts +0 -8
- package/_internal/app/components/conversation/conversation-panel.d.ts +0 -33
- package/_internal/app/components/conversation/conversation.d.ts +0 -14
- package/_internal/app/components/conversation/relative-time.d.ts +0 -8
- package/_internal/app/components/conversation/tool-call-drawer.d.ts +0 -7
- package/_internal/app/components/conversation/user-message.d.ts +0 -11
- package/_internal/app/components/danger-zone.d.ts +0 -28
- package/_internal/app/components/empty-state.d.ts +0 -22
- package/_internal/app/components/error-banner.d.ts +0 -6
- package/_internal/app/components/error-state.d.ts +0 -8
- package/_internal/app/components/facet-filter.d.ts +0 -17
- package/_internal/app/components/markdown-content.d.ts +0 -3
- package/_internal/app/components/markdown-editor.d.ts +0 -11
- package/_internal/app/components/model-select.d.ts +0 -9
- package/_internal/app/components/page-layout.d.ts +0 -9
- package/_internal/app/components/plugin-header.d.ts +0 -17
- package/_internal/app/components/plugin-settings-renderer.d.ts +0 -9
- package/_internal/app/components/save-bar.d.ts +0 -32
- package/_internal/app/components/score-overlay.d.ts +0 -33
- package/_internal/app/components/search-degraded-chip.d.ts +0 -4
- package/_internal/app/components/search-partial-chip.d.ts +0 -13
- package/_internal/app/components/search-unavailable.d.ts +0 -12
- package/_internal/app/components/section-card.d.ts +0 -22
- package/_internal/app/components/segmented-control.d.ts +0 -28
- package/_internal/app/components/sortable-head.d.ts +0 -13
- package/_internal/app/components/stat-tile.d.ts +0 -26
- package/_internal/app/components/status-badge.d.ts +0 -19
- package/_internal/app/components/turn-output-view.d.ts +0 -57
- package/_internal/app/components/ui/alert.d.ts +0 -10
- package/_internal/app/components/ui/avatar.d.ts +0 -11
- package/_internal/app/components/ui/badge.d.ts +0 -7
- package/_internal/app/components/ui/card.d.ts +0 -11
- package/_internal/app/components/ui/checkbox.d.ts +0 -3
- package/_internal/app/components/ui/collapsible.d.ts +0 -5
- package/_internal/app/components/ui/command.d.ts +0 -19
- package/_internal/app/components/ui/dropdown-menu.d.ts +0 -29
- package/_internal/app/components/ui/form.d.ts +0 -23
- package/_internal/app/components/ui/input-group.d.ts +0 -18
- package/_internal/app/components/ui/input.d.ts +0 -3
- package/_internal/app/components/ui/label.d.ts +0 -3
- package/_internal/app/components/ui/popover.d.ts +0 -9
- package/_internal/app/components/ui/progress.d.ts +0 -7
- package/_internal/app/components/ui/select.d.ts +0 -15
- package/_internal/app/components/ui/separator.d.ts +0 -3
- package/_internal/app/components/ui/skeleton.d.ts +0 -2
- package/_internal/app/components/ui/switch.d.ts +0 -5
- package/_internal/app/components/ui/textarea.d.ts +0 -3
- package/_internal/app/components/ui/tooltip.d.ts +0 -6
- package/_internal/app/components/underline-tabs.d.ts +0 -19
- package/_internal/app/components/unsaved-changes-guard.d.ts +0 -34
- package/_internal/app/lib/utils.d.ts +0 -2
- package/_internal/plugins/workflows/hooks/channel-icon.d.ts +0 -6
- package/components/index.d.ts +0 -140
- package/components/index.js +0 -71930
- /package/_internal/{app/components → ui}/charts/chart-tooltip.d.ts +0 -0
- /package/_internal/{app/components/ui → ui/primitives}/table.d.ts +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface PageLayoutProps {
|
|
2
|
-
title: string;
|
|
3
|
-
subtitle?: string;
|
|
4
|
-
actions?: React.ReactNode;
|
|
5
|
-
className?: string;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
}
|
|
8
|
-
export declare function PageLayout({ title, subtitle, actions, className, children }: PageLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface PluginHeaderProps {
|
|
2
|
-
title: string;
|
|
3
|
-
subtitle?: string;
|
|
4
|
-
count?: number;
|
|
5
|
-
/** Optional path context rendered above the title. Supply a labelled nav when interactive. */
|
|
6
|
-
breadcrumbs?: React.ReactNode;
|
|
7
|
-
actions?: React.ReactNode;
|
|
8
|
-
meta?: React.ReactNode;
|
|
9
|
-
search?: {
|
|
10
|
-
value: string;
|
|
11
|
-
onChange: (value: string) => void;
|
|
12
|
-
placeholder?: string;
|
|
13
|
-
/** Debounce delay in ms (default: 300) */
|
|
14
|
-
debounce?: number;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export declare function PluginHeader({ title, subtitle, count, breadcrumbs, actions, meta, search, }: PluginHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { PluginSettingsSchema } from '../../core/plugin-types';
|
|
2
|
-
export type { PluginSettingsSchema };
|
|
3
|
-
interface PluginSettingsRendererProps {
|
|
4
|
-
pluginId: string;
|
|
5
|
-
schema: PluginSettingsSchema;
|
|
6
|
-
values: Record<string, unknown>;
|
|
7
|
-
onSave: (values: Record<string, unknown>) => Promise<void>;
|
|
8
|
-
}
|
|
9
|
-
export declare function PluginSettingsRenderer({ pluginId, schema, values, onSave }: PluginSettingsRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
export interface SaveBarProps {
|
|
3
|
-
/** Whether there are staged, unsaved changes. The bar renders only while dirty (or briefly flashing "Saved"). */
|
|
4
|
-
dirty: boolean;
|
|
5
|
-
/** Save in flight — disables both actions and spins the save button. */
|
|
6
|
-
saving?: boolean;
|
|
7
|
-
/** Inline error from the last failed save. */
|
|
8
|
-
error?: string | null;
|
|
9
|
-
/** Save button label (default "Save changes"). */
|
|
10
|
-
saveLabel?: string;
|
|
11
|
-
/** Extra content rendered before the actions (e.g. a changed-fields summary). */
|
|
12
|
-
children?: ReactNode;
|
|
13
|
-
className?: string;
|
|
14
|
-
onSave: () => void;
|
|
15
|
-
onDiscard: () => void;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Sticky bottom save/discard bar for pages that stage edits into one draft —
|
|
19
|
-
* the single dirty-state pattern (converges with PluginSettingsRenderer's
|
|
20
|
-
* disabled-until-dirty save; migrating the renderer onto this bar is a tracked
|
|
21
|
-
* follow-up). Renders nothing when clean; after a successful save it flashes
|
|
22
|
-
* "Saved" briefly so success is never silent.
|
|
23
|
-
*
|
|
24
|
-
* Pair with `useUnsavedGuard(dirty)` so a hard navigation can't eat staged edits.
|
|
25
|
-
*/
|
|
26
|
-
export declare function SaveBar({ dirty, saving, error, saveLabel, children, className, onSave, onDiscard, }: SaveBarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
27
|
-
/**
|
|
28
|
-
* Blocks the hard ways out (tab close, reload) while `dirty`. In-app route
|
|
29
|
-
* guards are the router's job — wire those at the page level where the
|
|
30
|
-
* navigation happens.
|
|
31
|
-
*/
|
|
32
|
-
export declare function useUnsavedGuard(dirty: boolean): void;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Search-relevance debug overlay (spec req 2 / D17). Renders the fused
|
|
3
|
-
* score plus ONE badge per leg in `scoreBreakdown` — whatever legs the
|
|
4
|
-
* adapter reports, by their neutral names. No engine-specific key sniffing:
|
|
5
|
-
* the engine returns `full_text` plus the table's declared leg names.
|
|
6
|
-
*
|
|
7
|
-
* Embedding legs report -cosine_distance (higher = better, but negative);
|
|
8
|
-
* they render as cosine similarity (1 + score) so they read as a normal
|
|
9
|
-
* 0..1 relevance. Detection is by sign: negative = distance-based leg.
|
|
10
|
-
*/
|
|
11
|
-
export interface ScoreOverlayInfo {
|
|
12
|
-
/** Fused (RRF/RSF) score. */
|
|
13
|
-
score: number;
|
|
14
|
-
/** Per-leg scores keyed by neutral leg name (from the adapter). */
|
|
15
|
-
indexScores?: Record<string, number>;
|
|
16
|
-
/**
|
|
17
|
-
* Field names whose text contains the query terms (client-side
|
|
18
|
-
* approximation — see `computeMatchedFields`). Empty array = nothing
|
|
19
|
-
* matched textually, i.e. a pure semantic hit.
|
|
20
|
-
*/
|
|
21
|
-
matchedFields?: string[];
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Which of a hit's fields textually contain any query term (case-
|
|
25
|
-
* insensitive). An honest approximation for debug display — the engine
|
|
26
|
-
* exposes no per-field match info; a hit with NO textual match is a
|
|
27
|
-
* semantic (meaning-based) match and is labeled as such.
|
|
28
|
-
*/
|
|
29
|
-
export declare function computeMatchedFields(query: string, fields: Record<string, unknown>): string[];
|
|
30
|
-
export declare function ScoreOverlay({ info, className }: {
|
|
31
|
-
info: ScoreOverlayInfo;
|
|
32
|
-
className?: string;
|
|
33
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface SearchPartialMeta {
|
|
2
|
-
partial?: boolean;
|
|
3
|
-
tables?: Array<{
|
|
4
|
-
table: string;
|
|
5
|
-
hits: number;
|
|
6
|
-
took_ms: number;
|
|
7
|
-
budget?: 'degraded' | 'omitted';
|
|
8
|
-
}>;
|
|
9
|
-
}
|
|
10
|
-
export declare function SearchPartialChip({ meta, className }: {
|
|
11
|
-
meta: SearchPartialMeta | null | undefined;
|
|
12
|
-
className?: string;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
interface SearchUnavailableProps {
|
|
2
|
-
/** Re-run the query that hit the unavailable state. */
|
|
3
|
-
retry?: () => void;
|
|
4
|
-
className?: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Honest engine-down state (spec D11): search UIs show THIS — never a
|
|
8
|
-
* silent client-side fallback whose quality degrades invisibly. Browse
|
|
9
|
-
* and filter views keep working; only search is down.
|
|
10
|
-
*/
|
|
11
|
-
export declare function SearchUnavailable({ retry, className }: SearchUnavailableProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
-
export interface SectionCardProps {
|
|
3
|
-
title: ReactNode;
|
|
4
|
-
/** Lucide icon component rendered before the title. */
|
|
5
|
-
icon?: ComponentType<{
|
|
6
|
-
className?: string;
|
|
7
|
-
}>;
|
|
8
|
-
/** One line answering "why does this matter to me?" — every user-facing section should have one. */
|
|
9
|
-
description?: ReactNode;
|
|
10
|
-
/** Right-aligned header action (button, toggle, hint). */
|
|
11
|
-
action?: ReactNode;
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
className?: string;
|
|
14
|
-
contentClassName?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* The standard titled settings/detail card: icon + title, a muted one-line
|
|
18
|
-
* description explaining why the section matters, an optional header action,
|
|
19
|
-
* and the section body. Compose this instead of hand-rolling card headers so
|
|
20
|
-
* every surface explains itself the same way.
|
|
21
|
-
*/
|
|
22
|
-
export declare function SectionCard({ title, icon: Icon, description, action, children, className, contentClassName, }: SectionCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
-
export interface SegmentedControlOption<T extends string> {
|
|
3
|
-
value: T;
|
|
4
|
-
label: ReactNode;
|
|
5
|
-
icon?: ComponentType<{
|
|
6
|
-
className?: string;
|
|
7
|
-
}>;
|
|
8
|
-
/** Icon-only segment — the label stays for screen readers + the hover title. */
|
|
9
|
-
hideLabel?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface SegmentedControlProps<T extends string> {
|
|
12
|
-
options: ReadonlyArray<SegmentedControlOption<T>>;
|
|
13
|
-
value: T;
|
|
14
|
-
onValueChange: (value: T) => void;
|
|
15
|
-
/** `sm` (default) for toolbars, `md` for page-level view switchers. */
|
|
16
|
-
size?: 'sm' | 'md';
|
|
17
|
-
/** Accessible name for the group — always pass one. */
|
|
18
|
-
ariaLabel: string;
|
|
19
|
-
className?: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* THE segmented control / mode toggle (Edit|Preview, Board|Log, 5m|1h|24h...).
|
|
23
|
-
* Five plugins hand-rolled this in two drifted dialects with almost no a11y —
|
|
24
|
-
* this is the one implementation: neutral track, card-colored active segment
|
|
25
|
-
* (selection is never accent — accent is signal only), proper tablist
|
|
26
|
-
* semantics.
|
|
27
|
-
*/
|
|
28
|
-
export declare function SegmentedControl<T extends string>({ options, value, onValueChange, size, ariaLabel, className, }: SegmentedControlProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export type SortDir = 'asc' | 'desc';
|
|
2
|
-
interface SortableHeadProps<F extends string> {
|
|
3
|
-
field: F;
|
|
4
|
-
current: F;
|
|
5
|
-
dir: SortDir;
|
|
6
|
-
onSort: (f: F) => void;
|
|
7
|
-
/** When true, clicks are ignored and the sort indicator is hidden. Used
|
|
8
|
-
* when an upstream relevance order should win. */
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
}
|
|
12
|
-
export declare function SortableHead<F extends string>({ field, current, dir, onSort, disabled, children, }: SortableHeadProps<F>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
-
export interface StatTileProps {
|
|
3
|
-
icon?: ComponentType<{
|
|
4
|
-
className?: string;
|
|
5
|
-
}>;
|
|
6
|
-
/** Uppercase micro-label above the number. */
|
|
7
|
-
label: ReactNode;
|
|
8
|
-
/** The big number (tabular). */
|
|
9
|
-
value: ReactNode;
|
|
10
|
-
/** Small line under the number (unit, denominator, context). */
|
|
11
|
-
sub?: ReactNode;
|
|
12
|
-
/** Optional meter under the number — `tone` follows the status scale. */
|
|
13
|
-
progress?: {
|
|
14
|
-
percent: number;
|
|
15
|
-
tone?: 'success' | 'warning' | 'destructive';
|
|
16
|
-
};
|
|
17
|
-
/** Makes the tile a jump link. */
|
|
18
|
-
onClick?: () => void;
|
|
19
|
-
className?: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* THE metric tile (promoted from the brands overview; ≥7 surfaces hand-rolled
|
|
23
|
-
* the same label + big-number card with drifting styles): icon + uppercase
|
|
24
|
-
* micro-label, `text-2xl tabular-nums` value, optional sublabel and meter.
|
|
25
|
-
*/
|
|
26
|
-
export declare function StatTile({ icon: Icon, label, value, sub, progress, onClick, className }: StatTileProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ComponentType, ReactNode } from 'react';
|
|
2
|
-
export type StatusTone = 'neutral' | 'success' | 'warning' | 'destructive' | 'accent';
|
|
3
|
-
export interface StatusBadgeProps {
|
|
4
|
-
tone?: StatusTone;
|
|
5
|
-
/** `solid` (default) or `outline` (softer fill + toned border). */
|
|
6
|
-
variant?: 'solid' | 'outline';
|
|
7
|
-
icon?: ComponentType<{
|
|
8
|
-
className?: string;
|
|
9
|
-
}>;
|
|
10
|
-
className?: string;
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* THE status chip: one tone scale for every "what state is this thing in"
|
|
15
|
-
* badge (Draft/Published/Queued/Blocked/...). Ad-hoc Badge classNames drifted
|
|
16
|
-
* into three different Draft chips across one plugin — status chips compose
|
|
17
|
-
* this instead so state reads the same everywhere.
|
|
18
|
-
*/
|
|
19
|
-
export declare function StatusBadge({ tone, variant, icon: Icon, className, children }: StatusBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TurnOutputView — legacy-shaped renderer for normalized turn chunks,
|
|
3
|
-
* now a thin wrapper over the conversation kit: foldTurnChunks delegates
|
|
4
|
-
* to foldConversation (ONE folding engine) and flattens the turn model
|
|
5
|
-
* back to the flat segments/tools shape existing consumers pin.
|
|
6
|
-
*
|
|
7
|
-
* New surfaces should compose the kit directly (Conversation/AgentTurn/
|
|
8
|
-
* ActivityGroup); this stays for single-turn output embeds (task step
|
|
9
|
-
* viewer, workflow step drawer).
|
|
10
|
-
*/
|
|
11
|
-
import type { ReactNode } from 'react';
|
|
12
|
-
import type { RuntimeChatChunk, RuntimeChatTextFormat } from '@makinbakin/sdk/types';
|
|
13
|
-
export interface TurnTextSegment {
|
|
14
|
-
format: RuntimeChatTextFormat;
|
|
15
|
-
text: string;
|
|
16
|
-
}
|
|
17
|
-
export interface TurnToolChipState {
|
|
18
|
-
key: string;
|
|
19
|
-
toolName: string;
|
|
20
|
-
summary?: string;
|
|
21
|
-
status: 'running' | 'completed' | 'failed';
|
|
22
|
-
}
|
|
23
|
-
export interface FoldedTurnOutput {
|
|
24
|
-
segments: TurnTextSegment[];
|
|
25
|
-
tools: TurnToolChipState[];
|
|
26
|
-
/** Latest status chunk content (e.g. 'thinking'), if any. */
|
|
27
|
-
status: string | null;
|
|
28
|
-
error: {
|
|
29
|
-
message: string;
|
|
30
|
-
kind?: string;
|
|
31
|
-
} | null;
|
|
32
|
-
done: boolean;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Fold a chunk list into the flat renderable shape. Delegates to
|
|
36
|
-
* foldConversation and flattens: text items → segments (consecutive
|
|
37
|
-
* same-format segments re-merged across tool boundaries, preserving the
|
|
38
|
-
* legacy contract), activity calls → chips, latest status label, first
|
|
39
|
-
* error, done flag.
|
|
40
|
-
*/
|
|
41
|
-
export declare function foldTurnChunks(chunks: readonly RuntimeChatChunk[]): FoldedTurnOutput;
|
|
42
|
-
/** One tool-activity chip (kit ToolCallRow under the legacy name/props). */
|
|
43
|
-
export declare function TurnToolChip({ toolName, summary, status }: Omit<TurnToolChipState, 'key'>): import("react/jsx-runtime").JSX.Element;
|
|
44
|
-
export interface TurnOutputViewProps {
|
|
45
|
-
chunks: readonly RuntimeChatChunk[];
|
|
46
|
-
/**
|
|
47
|
-
* Turn still in flight: renders the latest status ('thinking…') until
|
|
48
|
-
* text arrives, so the user sees life before the first token/tool.
|
|
49
|
-
*/
|
|
50
|
-
live?: boolean;
|
|
51
|
-
/** Optional frame around the merged text block (e.g. chat's avatar bubble). */
|
|
52
|
-
textFrame?: (text: ReactNode) => ReactNode;
|
|
53
|
-
/** Applied to each tool/status/error row (e.g. chat's `pl-8` indent). */
|
|
54
|
-
rowClassName?: string;
|
|
55
|
-
className?: string;
|
|
56
|
-
}
|
|
57
|
-
export declare function TurnOutputView({ chunks, live, textFrame, rowClassName, className }: TurnOutputViewProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
declare const alertVariants: (props?: ({
|
|
4
|
-
variant?: "destructive" | "default" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
-
declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function AlertAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export { Alert, AlertTitle, AlertDescription, AlertAction };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Avatar as AvatarPrimitive } from "@base-ui/react/avatar";
|
|
3
|
-
declare function Avatar({ className, size, ...props }: AvatarPrimitive.Root.Props & {
|
|
4
|
-
size?: "default" | "sm" | "lg";
|
|
5
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function AvatarImage({ className, ...props }: AvatarPrimitive.Image.Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function AvatarFallback({ className, ...props }: AvatarPrimitive.Fallback.Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function AvatarBadge({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function AvatarGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare function AvatarGroupCount({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export { Avatar, AvatarImage, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarBadge, };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "destructive" | "default" | "link" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
-
declare function Badge({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
7
|
-
export { Badge, badgeVariants };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare function Card({ className, size, ...props }: React.ComponentProps<"div"> & {
|
|
3
|
-
size?: "default" | "sm";
|
|
4
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Collapsible as CollapsiblePrimitive } from "@base-ui/react/collapsible";
|
|
2
|
-
declare function Collapsible({ ...props }: CollapsiblePrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare function CollapsibleTrigger({ ...props }: CollapsiblePrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function CollapsibleContent({ ...props }: CollapsiblePrimitive.Panel.Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Command as CommandPrimitive } from "cmdk";
|
|
3
|
-
import { Dialog } from "./dialog";
|
|
4
|
-
declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: Omit<React.ComponentProps<typeof Dialog>, "children"> & {
|
|
6
|
-
title?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
showCloseButton?: boolean;
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare function CommandEmpty({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
declare function CommandItem({ className, children, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
|
|
3
|
-
declare function DropdownMenu({ ...props }: MenuPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function DropdownMenuPortal({ ...props }: MenuPrimitive.Portal.Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function DropdownMenuTrigger({ ...props }: MenuPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function DropdownMenuContent({ align, alignOffset, side, sideOffset, className, ...props }: MenuPrimitive.Popup.Props & Pick<MenuPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function DropdownMenuGroup({ ...props }: MenuPrimitive.Group.Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function DropdownMenuLabel({ className, inset, ...props }: MenuPrimitive.GroupLabel.Props & {
|
|
9
|
-
inset?: boolean;
|
|
10
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
declare function DropdownMenuItem({ className, inset, variant, ...props }: MenuPrimitive.Item.Props & {
|
|
12
|
-
inset?: boolean;
|
|
13
|
-
variant?: "default" | "destructive";
|
|
14
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
declare function DropdownMenuSub({ ...props }: MenuPrimitive.SubmenuRoot.Props): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: MenuPrimitive.SubmenuTrigger.Props & {
|
|
17
|
-
inset?: boolean;
|
|
18
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
declare function DropdownMenuSubContent({ align, alignOffset, side, sideOffset, className, ...props }: React.ComponentProps<typeof DropdownMenuContent>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: MenuPrimitive.CheckboxItem.Props & {
|
|
21
|
-
inset?: boolean;
|
|
22
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
declare function DropdownMenuRadioGroup({ ...props }: MenuPrimitive.RadioGroup.Props): import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
declare function DropdownMenuRadioItem({ className, children, inset, ...props }: MenuPrimitive.RadioItem.Props & {
|
|
25
|
-
inset?: boolean;
|
|
26
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
declare function DropdownMenuSeparator({ className, ...props }: MenuPrimitive.Separator.Props): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type ControllerProps, type FieldPath, type FieldValues } from "react-hook-form";
|
|
3
|
-
import { Label } from "./label";
|
|
4
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
5
|
-
declare function FormField<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function useFormField(): {
|
|
7
|
-
invalid: boolean;
|
|
8
|
-
isDirty: boolean;
|
|
9
|
-
isTouched: boolean;
|
|
10
|
-
isValidating: boolean;
|
|
11
|
-
error?: import("react-hook-form").FieldError;
|
|
12
|
-
id: string;
|
|
13
|
-
name: string;
|
|
14
|
-
formItemId: string;
|
|
15
|
-
formDescriptionId: string;
|
|
16
|
-
formMessageId: string;
|
|
17
|
-
};
|
|
18
|
-
declare function FormItem({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
declare function FormLabel({ className, ...props }: React.ComponentProps<typeof Label>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
declare function FormControl({ ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
declare function FormDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
declare function FormMessage({ className, children, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element | null;
|
|
23
|
-
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
import { Button } from "./button";
|
|
4
|
-
declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare const inputGroupAddonVariants: (props?: ({
|
|
6
|
-
align?: "inline-end" | "inline-start" | "block-start" | "block-end" | null | undefined;
|
|
7
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
-
declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare const inputGroupButtonVariants: (props?: ({
|
|
10
|
-
size?: "sm" | "xs" | "icon-xs" | "icon-sm" | null | undefined;
|
|
11
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
12
|
-
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, "size" | "type"> & VariantProps<typeof inputGroupButtonVariants> & {
|
|
13
|
-
type?: "button" | "submit" | "reset";
|
|
14
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
declare function InputGroupText({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
declare function InputGroupInput({ className, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<"textarea">): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
|
|
3
|
-
declare function Popover({ ...props }: PopoverPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function PopoverTrigger({ ...props }: PopoverPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function PopoverContent({ className, align, alignOffset, side, sideOffset, ...props }: PopoverPrimitive.Popup.Props & Pick<PopoverPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function PopoverHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function PopoverTitle({ className, ...props }: PopoverPrimitive.Title.Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function PopoverDescription({ className, ...props }: PopoverPrimitive.Description.Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export { Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Progress as ProgressPrimitive } from "@base-ui/react/progress";
|
|
2
|
-
declare function Progress({ className, children, value, ...props }: ProgressPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare function ProgressTrack({ className, ...props }: ProgressPrimitive.Track.Props): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function ProgressIndicator({ className, ...props }: ProgressPrimitive.Indicator.Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function ProgressLabel({ className, ...props }: ProgressPrimitive.Label.Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function ProgressValue({ className, ...props }: ProgressPrimitive.Value.Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export { Progress, ProgressTrack, ProgressIndicator, ProgressLabel, ProgressValue, };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
3
|
-
declare const Select: typeof SelectPrimitive.Root;
|
|
4
|
-
declare function SelectGroup({ className, ...props }: SelectPrimitive.Group.Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function SelectValue({ className, ...props }: SelectPrimitive.Value.Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function SelectTrigger({ className, size, children, ...props }: SelectPrimitive.Trigger.Props & {
|
|
7
|
-
size?: "sm" | "default";
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function SelectContent({ className, children, side, sideOffset, align, alignOffset, alignItemWithTrigger, ...props }: SelectPrimitive.Popup.Props & Pick<SelectPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset" | "alignItemWithTrigger">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare function SelectLabel({ className, ...props }: SelectPrimitive.GroupLabel.Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
declare function SelectItem({ className, children, ...props }: SelectPrimitive.Item.Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
declare function SelectSeparator({ className, ...props }: SelectPrimitive.Separator.Props): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpArrow>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownArrow>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
2
|
-
declare function TooltipProvider({ delay, ...props }: TooltipPrimitive.Provider.Props): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare function Tooltip({ ...props }: TooltipPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function TooltipTrigger({ ...props }: TooltipPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: TooltipPrimitive.Popup.Props & Pick<TooltipPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
export interface UnderlineTab {
|
|
3
|
-
id: string;
|
|
4
|
-
label: string;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
}
|
|
7
|
-
interface UnderlineTabsProps {
|
|
8
|
-
tabs: readonly UnderlineTab[];
|
|
9
|
-
value: string;
|
|
10
|
-
onValueChange: (id: string) => void;
|
|
11
|
-
className?: string;
|
|
12
|
-
rightSlot?: ReactNode;
|
|
13
|
-
/** Accessible name for the tab list. */
|
|
14
|
-
ariaLabel?: string;
|
|
15
|
-
/** Links each tab to `${idPrefix}-panel-${tab.id}` and enables arrow-key activation. */
|
|
16
|
-
idPrefix?: string;
|
|
17
|
-
}
|
|
18
|
-
export declare function UnderlineTabs({ tabs, value, onValueChange, className, rightSlot, ariaLabel, idPrefix, }: UnderlineTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
|
-
export interface UnsavedChangesGuardOptions {
|
|
3
|
-
/** True while the surface holds unsaved edits — gates all the interception. */
|
|
4
|
-
hasUnsavedChanges: boolean;
|
|
5
|
-
/** True while a save is in flight — disables the dialog actions. */
|
|
6
|
-
saving: boolean;
|
|
7
|
-
/** Whether the "Save and exit" action is offered (default true; e.g. managed sources can't save in place). */
|
|
8
|
-
canSaveInPlace?: boolean;
|
|
9
|
-
/** Extra disable for "Save and exit" beyond `saving` (e.g. an open node drawer). */
|
|
10
|
-
saveDisabled?: boolean;
|
|
11
|
-
/** Final navigation when there is nothing to confirm / after the user proceeds. */
|
|
12
|
-
onCancel?: () => void;
|
|
13
|
-
/** Persist + clear dirty state. Resolves true to proceed with the exit, false to stay. */
|
|
14
|
-
onSaveAndExit: () => Promise<boolean>;
|
|
15
|
-
/** Drop dirty state without saving. */
|
|
16
|
-
onDiscardAndExit: () => void;
|
|
17
|
-
/** Dialog copy overrides — defaults are surface-neutral. */
|
|
18
|
-
title?: ReactNode;
|
|
19
|
-
description?: ReactNode;
|
|
20
|
-
saveLabel?: string;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Generic unsaved-changes navigation guard: beforeunload, the TanStack
|
|
24
|
-
* history blocker, and a capture-phase anchor-click interceptor (TanStack's
|
|
25
|
-
* blocker misses plain `<a href>` navigation). Surfaces an exit-confirmation
|
|
26
|
-
* dialog and a `requestExit()` to drive from an explicit cancel/back button.
|
|
27
|
-
* `reset()` clears the in-flight prompt state — call it when the host re-seeds
|
|
28
|
-
* (its props-change reset effect) so a stale prompt can't linger.
|
|
29
|
-
*/
|
|
30
|
-
export declare function useUnsavedChangesGuard({ hasUnsavedChanges, saving, canSaveInPlace, saveDisabled, onCancel, onSaveAndExit, onDiscardAndExit, title, description, saveLabel, }: UnsavedChangesGuardOptions): {
|
|
31
|
-
requestExit: () => void;
|
|
32
|
-
reset: () => void;
|
|
33
|
-
dialog: ReactNode;
|
|
34
|
-
};
|