@nubase/frontend 0.1.33 → 0.1.35

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/index.d.mts CHANGED
@@ -286,16 +286,15 @@ interface UseComputedMetadataResult<TShape extends ObjectShape> {
286
286
  declare function useComputedMetadata<TShape extends ObjectShape>(schema: ObjectSchema<TShape>, formData: Partial<ObjectOutput<TShape>>, options?: UseComputedMetadataOptions): UseComputedMetadataResult<TShape>;
287
287
 
288
288
  /**
289
- * Pure function version of useLayout for testing and non-React contexts.
290
- * Returns a FormLayout for use in form rendering.
289
+ * Returns the form layout attached to the schema via `withFormLayout`. If
290
+ * none is attached, a default layout is built with all fields in a single
291
+ * full-width group.
291
292
  */
292
- declare function getLayout<TShape extends ObjectShape>(schema: ObjectSchema<TShape>, layoutName?: string): FormLayout<TShape>;
293
+ declare function getLayout<TShape extends ObjectShape>(schema: ObjectSchema<TShape>): FormLayout<TShape>;
293
294
  /**
294
- * Hook to get a form layout for a schema. If a layoutName is provided and exists in the schema,
295
- * returns that layout. Otherwise, returns a default layout with all fields in a single group
296
- * with size 12 (full width).
295
+ * Hook wrapper around `getLayout` — returns the form layout for rendering.
297
296
  */
298
- declare function useLayout<TShape extends ObjectShape>(schema: ObjectSchema<TShape>, layoutName?: string): FormLayout<TShape>;
297
+ declare function useLayout<TShape extends ObjectShape>(schema: ObjectSchema<TShape>): FormLayout<TShape>;
299
298
 
300
299
  interface HttpResponse<T = any> {
301
300
  status: number;
@@ -552,7 +551,6 @@ declare function useSchemaFilters<TSchema extends ObjectSchema<any>>(schema: TSc
552
551
  interface SchemaFormBodyProps {
553
552
  form: SchemaFormConfiguration<any>;
554
553
  className?: string;
555
- layoutName?: string;
556
554
  computedMetadata?: {
557
555
  debounceMs?: number;
558
556
  };
@@ -920,6 +918,33 @@ type ResourceCreateView<TSchema extends ObjectSchema<any> = ObjectSchema<any>, T
920
918
  context: NubaseContextData<TApiEndpoints, TParamsSchema>;
921
919
  }) => Promise<HttpResponse<any>>;
922
920
  };
921
+ /**
922
+ * Per-field handler for a virtual relationship field (declared on the
923
+ * schema via `nu.relation(...)`). The schema declares *what* the
924
+ * relationship is (target resource, row shape, label); this handler
925
+ * declares *how* to fetch the related rows at runtime.
926
+ *
927
+ * Lives on the view rather than the schema because it needs `context.http`,
928
+ * which is frontend-only — schemas live in `common/`.
929
+ */
930
+ type RelationshipFieldHandler<TParent = any, TApiEndpoints = any, TRow = any> = {
931
+ /**
932
+ * Loads the related rows for a "searchable" relationship. Called whenever
933
+ * the (debounced) query changes. `parent` is the loaded record from the
934
+ * parent view's `onLoad`.
935
+ */
936
+ onSearch: (args: {
937
+ parent: TParent;
938
+ query: string;
939
+ context: NubaseContextData<TApiEndpoints>;
940
+ }) => Promise<HttpResponse<TRow[]>>;
941
+ };
942
+ /**
943
+ * Map of field-name → handler for virtual relationship fields on the view's
944
+ * schema. Each key must match a field declared via `nu.relation(...)` in
945
+ * the schema shape.
946
+ */
947
+ type FieldHandlers<TParent = any, TApiEndpoints = any> = Record<string, RelationshipFieldHandler<TParent, TApiEndpoints>>;
923
948
  type ResourceViewView<TSchema extends ObjectSchema<any> = ObjectSchema<any>, TApiEndpoints = any, TParamsSchema extends ObjectSchema<any> | undefined = undefined, TActionIds extends string = string> = ViewBase<TApiEndpoints, TParamsSchema, Infer<TSchema>> & {
924
949
  type: "resource-view";
925
950
  /**
@@ -947,6 +972,12 @@ type ResourceViewView<TSchema extends ObjectSchema<any> = ObjectSchema<any>, TAp
947
972
  data: Partial<Infer<TSchema>>;
948
973
  context: NubaseContextData<TApiEndpoints, TParamsSchema>;
949
974
  }) => Promise<HttpResponse<any>>;
975
+ /**
976
+ * Optional handlers for virtual relationship fields declared on the
977
+ * schema via `nu.relation(...)`. Keyed by field name. Each handler
978
+ * provides the runtime fetch logic for its field.
979
+ */
980
+ fieldHandlers?: FieldHandlers<Infer<TSchema>, TApiEndpoints>;
950
981
  };
951
982
  type ResourceSearchView<TSchema extends ArraySchema<any> = ArraySchema<any>, TApiEndpoints = any, TParamsSchema extends ObjectSchema<any> | undefined = undefined, TActionIds extends string = string, TFilterSchema extends ObjectSchema<any> | undefined = undefined, TPatchSchema extends ObjectSchema<any> | undefined = undefined> = ViewBase<TApiEndpoints, TParamsSchema> & {
952
983
  type: "resource-search";
@@ -2879,6 +2910,21 @@ interface SchemaFormButtonBarProps {
2879
2910
  }
2880
2911
  declare const SchemaFormButtonBar: React__default.FC<SchemaFormButtonBarProps>;
2881
2912
 
2913
+ declare const SchemaFormLabelSplitter: () => react_jsx_runtime.JSX.Element;
2914
+
2915
+ declare const DEFAULT_LABEL_WIDTH = 128;
2916
+ declare const MIN_LABEL_WIDTH = 60;
2917
+ declare const MAX_LABEL_WIDTH = 400;
2918
+ interface SchemaFormLayoutContextValue {
2919
+ labelWidth: number;
2920
+ setLabelWidth: (width: number) => void;
2921
+ }
2922
+ interface SchemaFormLayoutProviderProps {
2923
+ children: React__default.ReactNode;
2924
+ }
2925
+ declare const SchemaFormLayoutProvider: ({ children, }: SchemaFormLayoutProviderProps) => react_jsx_runtime.JSX.Element;
2926
+ declare const useSchemaFormLayout: () => SchemaFormLayoutContextValue;
2927
+
2882
2928
  type SchemaFormValidationErrorsProps = {
2883
2929
  form: SchemaFormConfiguration<any>;
2884
2930
  className?: string;
@@ -3453,6 +3499,35 @@ type TextFilterProps = {
3453
3499
  };
3454
3500
  declare const TextFilter: React$1.ForwardRefExoticComponent<TextFilterProps & React$1.RefAttributes<HTMLButtonElement>>;
3455
3501
 
3502
+ type SearchableTableProps<TRow extends Record<string, any>> = {
3503
+ /** Object schema describing the row shape. Used to derive columns from its `default` (or `table`) layout. */
3504
+ schema: ObjectSchema<any>;
3505
+ /** Rows to display. */
3506
+ rows: readonly TRow[];
3507
+ /** Current value of the search input. */
3508
+ searchValue: string;
3509
+ /** Called when the (debounced) search input changes. */
3510
+ onSearchChange: (value: string) => void;
3511
+ /** Whether the table is loading data. Shown as an overlay over the grid. */
3512
+ loading?: boolean;
3513
+ /** Called when a row is clicked. */
3514
+ onRowClick?: (row: TRow) => void;
3515
+ /** Placeholder for the search input. */
3516
+ searchPlaceholder?: string;
3517
+ /** Debounce delay for the search input in ms. Defaults to 200. */
3518
+ searchDebounceMs?: number;
3519
+ /** Additional className for the container. */
3520
+ className?: string;
3521
+ };
3522
+ /**
3523
+ * A general-purpose searchable table: a debounced text-search input above a
3524
+ * `DataGrid`. Columns are derived from the schema's table layout.
3525
+ *
3526
+ * Search is controlled by the parent — `onSearchChange` is called with the
3527
+ * (debounced) query string and the parent decides how to fetch / filter rows.
3528
+ */
3529
+ declare const SearchableTable: <TRow extends Record<string, any>>({ schema, rows, searchValue, onSearchChange, loading, onRowClick, searchPlaceholder, searchDebounceMs, className, }: SearchableTableProps<TRow>) => react_jsx_runtime.JSX.Element;
3530
+
3456
3531
  declare function Pagination({ className, ...props }: React$1.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
3457
3532
  declare function PaginationContent({ className, ...props }: React$1.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
3458
3533
  declare function PaginationItem({ ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
@@ -3786,6 +3861,11 @@ type InlineViewViewConfig<TApiEndpoints, TActionIds extends string, TSchema exte
3786
3861
  data: Partial<Infer<TSchema>>;
3787
3862
  context: NubaseContextData<TApiEndpoints, TParamsSchema>;
3788
3863
  }) => Promise<HttpResponse<any>>;
3864
+ /**
3865
+ * Optional handlers for virtual relationship fields declared on the
3866
+ * schema via `nu.relation(...)`. Keyed by field name.
3867
+ */
3868
+ fieldHandlers?: FieldHandlers<Infer<TSchema>, TApiEndpoints>;
3789
3869
  };
3790
3870
  /**
3791
3871
  * Inline view definition for search views
@@ -4423,4 +4503,4 @@ declare function isServerNetworkError(error: unknown): error is ServerNetworkErr
4423
4503
  */
4424
4504
  declare function getNetworkErrorMessage(error: unknown): string;
4425
4505
 
4426
- export { ACTION_COLUMN_KEY, type Action, ActionBar, ActionBarContainer, type ActionBarContainerProps, type ActionBarProps, ActionCellFormatter, ActionCellRendererCell, ActionCellRendererGroup, ActionDropdownMenu, type ActionDropdownMenuProps, type ActionKeybinding, type ActionLayout, type ActionOrSeparator, ActivityIndicator, type ActivityIndicatorProps, type AuthenticatedUser, type AuthenticationController, type AuthenticationState, type AuthenticationStateListener, type BaseAction, type BaseModalFrameProps, type BaseWidgetDescriptor, BooleanCellEditRenderer, Breadcrumb, BreadcrumbBar, type BreadcrumbBarProps, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Button, ButtonBar, type ButtonBarProps, type ButtonProps, type CalculatedColumn, type CalculatedColumnOrColumnGroup, type CalculatedColumnParent, Callout, type CalloutProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, CellComponent as Cell, type CellCopyArgs, type CellEditLifecycle, type CellEditRendererProps, type CellEditRendererResult, type CellKeyDownArgs, type CellKeyboardEvent, type CellMouseArgs, type CellMouseEvent, type CellPasteArgs, type CellRendererProps, type CellSelectArgs, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, type CheckboxProps, ClientNetworkError, type ColSpanArgs, type Column, type ColumnGroup, type ColumnOrColumnGroup, type ColumnWidth, type ColumnWidths, type CommandAction, type CommandRegistry, ConnectedWidget, type ConnectedWidgetProps, ControllableSearchableTree, type ControllableSearchableTreeProps, type CreatePatchableColumnOptions, Dashboard, type DashboardDescriptor, type DashboardDragConfig, type DashboardGridConfig, type DashboardProps, DashboardRenderer, type DashboardRendererProps, type DashboardResizeConfig, DashboardWidget, type DashboardWidgetProps, DataGrid, DataGridCellPatchWrapper, type DataGridCellPatchWrapperProps, DataGridDefaultRenderersContext, type DataGridHandle, type DataGridProps, DataState, type DataStateProps, type DefaultColumnOptions, Dialog, type DialogProps, Dock, type DockProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EnhancedPagination, type EnhancedPaginationProps, type ErrorListener, type ErrorPayload, type EventListener, type EventSource, type FillEvent, type FilterFieldDescriptor, type FlatItem, type FlatMenuItem, FormControl, type FormControlProps, FormFieldRenderer, type FormFieldRendererProps, FormValidationErrors, type FormValidationErrorsProps, type GlobalActionsConfig, type HandlerAction, HttpClient, type HttpRequestConfig, type HttpResponse, type IconComponent, type InlineCreateViewConfig, type InlineLookupConfig, type InlineResourceActionConfig, type InlineSearchViewConfig, type InlineViewConfig, type InlineViewViewConfig, type KeySequence, type Keybinding, type KeybindingState, type KpiWidgetDescriptor, Label, type LabelProps, EnhancedPagination as LegacyPagination, ListNavigator, type ListNavigatorItem, type ListNavigatorProps, type LoginCompleteCredentials, type LoginCredentials, type LoginStartResponse, LookupSelect, LookupSelectFilter, type LookupSelectFilterProps, type LookupSelectProps, MainNav, type MainNavProps, type MarkdownCommand, MarkdownTextArea, type MarkdownTextAreaHandle, type MarkdownTextAreaProps, type MenuItem, MenuItemComponent, type MenuItemOrSeparator, Modal, type ModalAlignment, type ModalConfig, ModalFrame, type ModalFrameProps, ModalFrameSchemaForm, type ModalFrameSchemaFormProps, ModalFrameStructured, type ModalFrameStructuredProps, type ModalInstance, type ModalProps, ModalProvider, type ModalSize, ModalViewRenderer, type ModalViewRendererProps, NAVIGATE_COLUMN_KEY, type NavItem, NavItems, NetworkError, type NetworkErrorOptions, type NotificationRule, type NotificationRules, NubaseApp, type NubaseAppProps, type NubaseContextData, type NubaseEventMap, type NubaseEventType, type NubaseFrontendConfig, NumberCellEditRenderer, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type EnhancedPaginationProps as PaginationProps, type ParseErrorDetail, type ParsedKeybinding, type PatchResult, type PromiseResult, type PromiseToastCallback, type PromiseToastConfig, type PromiseToastOptions, type ProportionalChartVariant, type ProportionalWidgetDescriptor, type RenderCellProps, type RenderCheckboxProps, type RenderEditCellProps, type RenderGroupCellProps, type RenderHeaderCellProps, type RenderRowProps, type RenderSortIconProps, type RenderSortPriorityProps, type RenderSortStatusProps, type RenderSummaryCellProps, type Renderers, type ResolvedMenuItem, type ResourceAction, type ResourceActionExecutionContext, type ResourceCreateView, ResourceCreateViewModalRenderer, type ResourceCreateViewModalRendererProps, ResourceCreateViewRenderer, type ResourceCreateViewRendererProps, type ResourceDescriptor, type ResourceEventPayload, type ResourceLink, type ResourceLookupConfig, type ResourceSearchView, ResourceSearchViewModalRenderer, type ResourceSearchViewModalRendererProps, ResourceSearchViewRenderer, type ResourceSearchViewRendererProps, type ResourceViewView, ResourceViewViewModalRenderer, type ResourceViewViewModalRendererProps, ResourceViewViewRenderer, type ResourceViewViewRendererProps, RowComponent as Row, type RowHeightArgs, type RowsChangeData, SELECT_COLUMN_KEY, SchemaFilterBar, type SchemaFilterBarProps, type SchemaFilterConfig, type SchemaFilterState, SchemaForm, SchemaFormBody, type SchemaFormBodyProps, SchemaFormButtonBar, type SchemaFormButtonBarProps, type SchemaFormConfiguration, type SchemaFormProps, SchemaFormValidationErrors, type SchemaFormValidationErrorsProps, SearchBar, type SearchBarProps, SearchFilterBadge, type SearchFilterBadgeProps, SearchFilterBar, type SearchFilterBarProps, SearchFilterCheckIndicator, SearchFilterChevron, type SearchFilterChevronProps, SearchFilterDropdown, type SearchFilterDropdownProps, SearchTextInput, type SearchTextInputProps, SearchableTreeNavigator, type SearchableTreeNavigatorProps, Select, SelectCellFormatter, type SelectCellOptions, SelectColumn, SelectFilter, type SelectFilterOption, type SelectFilterProps, type SelectHeaderRowEvent, type SelectOption, type SelectProps, type SelectRowEvent, type SelectionRange, type SeriesChartVariant, type SeriesWidgetDescriptor, ServerNetworkError, type SignupCredentials, type SortColumn, type SortDirection, type StandardViews, StringCellEditRenderer, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, type TableWidgetDescriptor, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, type TextController, TextFilter, type TextFilterProps, TextInput, type TextInputProps, type TextState, ThemeToggle, type ThemeToggleProps, Toast, ToastContainer, type ToastData, type ToastOptions, type ToastPosition, ToastProvider, type ToastType, Toggle, ToggleGroup, type ToggleProps, TopBar, type TopBarProps, TreeDataGrid, type TreeDataGridProps, TreeNavigator, type TreeNavigatorItem, type TreeNavigatorProps, TypedApiClient, type TypedApiClientFromEndpoints, type TypedCommandDefinition, type UseDialogResult, type UseModalResult, type UseNubaseMutationOptions, type UseNubaseQueryOptions, type UseSchemaFiltersOptions, type UseSchemaFiltersReturn, type UseSchemaFormOptions, UserAvatar, type UserAvatarProps, UserMenu, type UserMenuProps, type View, type ViewBase, type ViewType, Widget, type WidgetDescriptor, type WidgetLayoutConfig, type WidgetProps, type WorkspaceContext, type WorkspaceInfo, boldCommand, checkListCommand, checkboxVariants, cleanupKeybindings, codeBlockCommand, codeCommand, commandRegistry, index as commands, createActionColumn, createCommand, createCommandAction, createCreateView, createDashboard, createHandlerAction, createNavigateColumn, createPatchableColumn, createPatchableColumns, createResource, createResourceAction, createTypedApiClient, createViewFactory, createViewView, defaultKeybindings, defaultNotificationRules, defineCreateView, defineViewView, emitEvent, eventManager, filterNavItems, flattenNavItems, getInitials, getLayout, getNetworkErrorMessage, getResourceLinkSearch, getWorkspaceFromRouter, groupActionsBySeparators, headingCommand, imageCommand, introspectSchemaForFilters, isClientNetworkError, isCommandAction, isHandlerAction, isNetworkError, isResourceLink, isServerNetworkError, italicCommand, keybindingManager, linkCommand, lookupSelectVariants, matchesKeySequence, normalizeEventKey, optionVariants, orderedListCommand, parseKeySequence, parseKeybinding, quoteCommand, registerKeybindings, renderCheckbox, renderHeaderCell, renderSortIcon, renderSortPriority, renderToggleGroup, renderValue, renderCellEdit as resolveEditRenderer, resolveMenuItem, resolveMenuItems, resolveResourceLink, renderCellView as resolveViewRenderer, resourceLink, searchFilterBarClearButtonVariants, searchFilterBarInputVariants, searchFilterBarVariants, searchFilterContentVariants, searchFilterTriggerVariants, setGlobalEventEmitter, showPromiseToast, showToast, strikethroughCommand, textEditor, toggleThumbVariants, toggleVariants, unorderedListCommand, updateKeybindings, useActionExecutor, useChart, useComputedMetadata, useDialog, useHeaderRowSelection, useLayout, useModal, useNubaseMutation, useNubaseQuery, useResourceCreateMutation, useResourceDeleteMutation, useResourceInvalidation, useResourceSearchQuery, useResourceUpdateMutation, useResourceViewQuery, useRowSelection, useSchemaFilters, useSchemaForm, useToast, useWorkspace, useWorkspaceOptional, workbenchOpenResourceOperation, workbenchOpenResourceOperationInModal, workbenchRunCommand, workbenchSetTheme, workbenchViewHistory };
4506
+ export { ACTION_COLUMN_KEY, type Action, ActionBar, ActionBarContainer, type ActionBarContainerProps, type ActionBarProps, ActionCellFormatter, ActionCellRendererCell, ActionCellRendererGroup, ActionDropdownMenu, type ActionDropdownMenuProps, type ActionKeybinding, type ActionLayout, type ActionOrSeparator, ActivityIndicator, type ActivityIndicatorProps, type AuthenticatedUser, type AuthenticationController, type AuthenticationState, type AuthenticationStateListener, type BaseAction, type BaseModalFrameProps, type BaseWidgetDescriptor, BooleanCellEditRenderer, Breadcrumb, BreadcrumbBar, type BreadcrumbBarProps, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Button, ButtonBar, type ButtonBarProps, type ButtonProps, type CalculatedColumn, type CalculatedColumnOrColumnGroup, type CalculatedColumnParent, Callout, type CalloutProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, CellComponent as Cell, type CellCopyArgs, type CellEditLifecycle, type CellEditRendererProps, type CellEditRendererResult, type CellKeyDownArgs, type CellKeyboardEvent, type CellMouseArgs, type CellMouseEvent, type CellPasteArgs, type CellRendererProps, type CellSelectArgs, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, type CheckboxProps, ClientNetworkError, type ColSpanArgs, type Column, type ColumnGroup, type ColumnOrColumnGroup, type ColumnWidth, type ColumnWidths, type CommandAction, type CommandRegistry, ConnectedWidget, type ConnectedWidgetProps, ControllableSearchableTree, type ControllableSearchableTreeProps, type CreatePatchableColumnOptions, DEFAULT_LABEL_WIDTH, Dashboard, type DashboardDescriptor, type DashboardDragConfig, type DashboardGridConfig, type DashboardProps, DashboardRenderer, type DashboardRendererProps, type DashboardResizeConfig, DashboardWidget, type DashboardWidgetProps, DataGrid, DataGridCellPatchWrapper, type DataGridCellPatchWrapperProps, DataGridDefaultRenderersContext, type DataGridHandle, type DataGridProps, DataState, type DataStateProps, type DefaultColumnOptions, Dialog, type DialogProps, Dock, type DockProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EnhancedPagination, type EnhancedPaginationProps, type ErrorListener, type ErrorPayload, type EventListener, type EventSource, type FieldHandlers, type FillEvent, type FilterFieldDescriptor, type FlatItem, type FlatMenuItem, FormControl, type FormControlProps, FormFieldRenderer, type FormFieldRendererProps, FormValidationErrors, type FormValidationErrorsProps, type GlobalActionsConfig, type HandlerAction, HttpClient, type HttpRequestConfig, type HttpResponse, type IconComponent, type InlineCreateViewConfig, type InlineLookupConfig, type InlineResourceActionConfig, type InlineSearchViewConfig, type InlineViewConfig, type InlineViewViewConfig, type KeySequence, type Keybinding, type KeybindingState, type KpiWidgetDescriptor, Label, type LabelProps, EnhancedPagination as LegacyPagination, ListNavigator, type ListNavigatorItem, type ListNavigatorProps, type LoginCompleteCredentials, type LoginCredentials, type LoginStartResponse, LookupSelect, LookupSelectFilter, type LookupSelectFilterProps, type LookupSelectProps, MAX_LABEL_WIDTH, MIN_LABEL_WIDTH, MainNav, type MainNavProps, type MarkdownCommand, MarkdownTextArea, type MarkdownTextAreaHandle, type MarkdownTextAreaProps, type MenuItem, MenuItemComponent, type MenuItemOrSeparator, Modal, type ModalAlignment, type ModalConfig, ModalFrame, type ModalFrameProps, ModalFrameSchemaForm, type ModalFrameSchemaFormProps, ModalFrameStructured, type ModalFrameStructuredProps, type ModalInstance, type ModalProps, ModalProvider, type ModalSize, ModalViewRenderer, type ModalViewRendererProps, NAVIGATE_COLUMN_KEY, type NavItem, NavItems, NetworkError, type NetworkErrorOptions, type NotificationRule, type NotificationRules, NubaseApp, type NubaseAppProps, type NubaseContextData, type NubaseEventMap, type NubaseEventType, type NubaseFrontendConfig, NumberCellEditRenderer, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type EnhancedPaginationProps as PaginationProps, type ParseErrorDetail, type ParsedKeybinding, type PatchResult, type PromiseResult, type PromiseToastCallback, type PromiseToastConfig, type PromiseToastOptions, type ProportionalChartVariant, type ProportionalWidgetDescriptor, type RelationshipFieldHandler, type RenderCellProps, type RenderCheckboxProps, type RenderEditCellProps, type RenderGroupCellProps, type RenderHeaderCellProps, type RenderRowProps, type RenderSortIconProps, type RenderSortPriorityProps, type RenderSortStatusProps, type RenderSummaryCellProps, type Renderers, type ResolvedMenuItem, type ResourceAction, type ResourceActionExecutionContext, type ResourceCreateView, ResourceCreateViewModalRenderer, type ResourceCreateViewModalRendererProps, ResourceCreateViewRenderer, type ResourceCreateViewRendererProps, type ResourceDescriptor, type ResourceEventPayload, type ResourceLink, type ResourceLookupConfig, type ResourceSearchView, ResourceSearchViewModalRenderer, type ResourceSearchViewModalRendererProps, ResourceSearchViewRenderer, type ResourceSearchViewRendererProps, type ResourceViewView, ResourceViewViewModalRenderer, type ResourceViewViewModalRendererProps, ResourceViewViewRenderer, type ResourceViewViewRendererProps, RowComponent as Row, type RowHeightArgs, type RowsChangeData, SELECT_COLUMN_KEY, SchemaFilterBar, type SchemaFilterBarProps, type SchemaFilterConfig, type SchemaFilterState, SchemaForm, SchemaFormBody, type SchemaFormBodyProps, SchemaFormButtonBar, type SchemaFormButtonBarProps, type SchemaFormConfiguration, SchemaFormLabelSplitter, type SchemaFormLayoutContextValue, SchemaFormLayoutProvider, type SchemaFormLayoutProviderProps, type SchemaFormProps, SchemaFormValidationErrors, type SchemaFormValidationErrorsProps, SearchBar, type SearchBarProps, SearchFilterBadge, type SearchFilterBadgeProps, SearchFilterBar, type SearchFilterBarProps, SearchFilterCheckIndicator, SearchFilterChevron, type SearchFilterChevronProps, SearchFilterDropdown, type SearchFilterDropdownProps, SearchTextInput, type SearchTextInputProps, SearchableTable, type SearchableTableProps, SearchableTreeNavigator, type SearchableTreeNavigatorProps, Select, SelectCellFormatter, type SelectCellOptions, SelectColumn, SelectFilter, type SelectFilterOption, type SelectFilterProps, type SelectHeaderRowEvent, type SelectOption, type SelectProps, type SelectRowEvent, type SelectionRange, type SeriesChartVariant, type SeriesWidgetDescriptor, ServerNetworkError, type SignupCredentials, type SortColumn, type SortDirection, type StandardViews, StringCellEditRenderer, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, type TableWidgetDescriptor, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, type TextController, TextFilter, type TextFilterProps, TextInput, type TextInputProps, type TextState, ThemeToggle, type ThemeToggleProps, Toast, ToastContainer, type ToastData, type ToastOptions, type ToastPosition, ToastProvider, type ToastType, Toggle, ToggleGroup, type ToggleProps, TopBar, type TopBarProps, TreeDataGrid, type TreeDataGridProps, TreeNavigator, type TreeNavigatorItem, type TreeNavigatorProps, TypedApiClient, type TypedApiClientFromEndpoints, type TypedCommandDefinition, type UseDialogResult, type UseModalResult, type UseNubaseMutationOptions, type UseNubaseQueryOptions, type UseSchemaFiltersOptions, type UseSchemaFiltersReturn, type UseSchemaFormOptions, UserAvatar, type UserAvatarProps, UserMenu, type UserMenuProps, type View, type ViewBase, type ViewType, Widget, type WidgetDescriptor, type WidgetLayoutConfig, type WidgetProps, type WorkspaceContext, type WorkspaceInfo, boldCommand, checkListCommand, checkboxVariants, cleanupKeybindings, codeBlockCommand, codeCommand, commandRegistry, index as commands, createActionColumn, createCommand, createCommandAction, createCreateView, createDashboard, createHandlerAction, createNavigateColumn, createPatchableColumn, createPatchableColumns, createResource, createResourceAction, createTypedApiClient, createViewFactory, createViewView, defaultKeybindings, defaultNotificationRules, defineCreateView, defineViewView, emitEvent, eventManager, filterNavItems, flattenNavItems, getInitials, getLayout, getNetworkErrorMessage, getResourceLinkSearch, getWorkspaceFromRouter, groupActionsBySeparators, headingCommand, imageCommand, introspectSchemaForFilters, isClientNetworkError, isCommandAction, isHandlerAction, isNetworkError, isResourceLink, isServerNetworkError, italicCommand, keybindingManager, linkCommand, lookupSelectVariants, matchesKeySequence, normalizeEventKey, optionVariants, orderedListCommand, parseKeySequence, parseKeybinding, quoteCommand, registerKeybindings, renderCheckbox, renderHeaderCell, renderSortIcon, renderSortPriority, renderToggleGroup, renderValue, renderCellEdit as resolveEditRenderer, resolveMenuItem, resolveMenuItems, resolveResourceLink, renderCellView as resolveViewRenderer, resourceLink, searchFilterBarClearButtonVariants, searchFilterBarInputVariants, searchFilterBarVariants, searchFilterContentVariants, searchFilterTriggerVariants, setGlobalEventEmitter, showPromiseToast, showToast, strikethroughCommand, textEditor, toggleThumbVariants, toggleVariants, unorderedListCommand, updateKeybindings, useActionExecutor, useChart, useComputedMetadata, useDialog, useHeaderRowSelection, useLayout, useModal, useNubaseMutation, useNubaseQuery, useResourceCreateMutation, useResourceDeleteMutation, useResourceInvalidation, useResourceSearchQuery, useResourceUpdateMutation, useResourceViewQuery, useRowSelection, useSchemaFilters, useSchemaForm, useSchemaFormLayout, useToast, useWorkspace, useWorkspaceOptional, workbenchOpenResourceOperation, workbenchOpenResourceOperationInModal, workbenchRunCommand, workbenchSetTheme, workbenchViewHistory };
package/dist/index.d.ts CHANGED
@@ -286,16 +286,15 @@ interface UseComputedMetadataResult<TShape extends ObjectShape> {
286
286
  declare function useComputedMetadata<TShape extends ObjectShape>(schema: ObjectSchema<TShape>, formData: Partial<ObjectOutput<TShape>>, options?: UseComputedMetadataOptions): UseComputedMetadataResult<TShape>;
287
287
 
288
288
  /**
289
- * Pure function version of useLayout for testing and non-React contexts.
290
- * Returns a FormLayout for use in form rendering.
289
+ * Returns the form layout attached to the schema via `withFormLayout`. If
290
+ * none is attached, a default layout is built with all fields in a single
291
+ * full-width group.
291
292
  */
292
- declare function getLayout<TShape extends ObjectShape>(schema: ObjectSchema<TShape>, layoutName?: string): FormLayout<TShape>;
293
+ declare function getLayout<TShape extends ObjectShape>(schema: ObjectSchema<TShape>): FormLayout<TShape>;
293
294
  /**
294
- * Hook to get a form layout for a schema. If a layoutName is provided and exists in the schema,
295
- * returns that layout. Otherwise, returns a default layout with all fields in a single group
296
- * with size 12 (full width).
295
+ * Hook wrapper around `getLayout` — returns the form layout for rendering.
297
296
  */
298
- declare function useLayout<TShape extends ObjectShape>(schema: ObjectSchema<TShape>, layoutName?: string): FormLayout<TShape>;
297
+ declare function useLayout<TShape extends ObjectShape>(schema: ObjectSchema<TShape>): FormLayout<TShape>;
299
298
 
300
299
  interface HttpResponse<T = any> {
301
300
  status: number;
@@ -552,7 +551,6 @@ declare function useSchemaFilters<TSchema extends ObjectSchema<any>>(schema: TSc
552
551
  interface SchemaFormBodyProps {
553
552
  form: SchemaFormConfiguration<any>;
554
553
  className?: string;
555
- layoutName?: string;
556
554
  computedMetadata?: {
557
555
  debounceMs?: number;
558
556
  };
@@ -920,6 +918,33 @@ type ResourceCreateView<TSchema extends ObjectSchema<any> = ObjectSchema<any>, T
920
918
  context: NubaseContextData<TApiEndpoints, TParamsSchema>;
921
919
  }) => Promise<HttpResponse<any>>;
922
920
  };
921
+ /**
922
+ * Per-field handler for a virtual relationship field (declared on the
923
+ * schema via `nu.relation(...)`). The schema declares *what* the
924
+ * relationship is (target resource, row shape, label); this handler
925
+ * declares *how* to fetch the related rows at runtime.
926
+ *
927
+ * Lives on the view rather than the schema because it needs `context.http`,
928
+ * which is frontend-only — schemas live in `common/`.
929
+ */
930
+ type RelationshipFieldHandler<TParent = any, TApiEndpoints = any, TRow = any> = {
931
+ /**
932
+ * Loads the related rows for a "searchable" relationship. Called whenever
933
+ * the (debounced) query changes. `parent` is the loaded record from the
934
+ * parent view's `onLoad`.
935
+ */
936
+ onSearch: (args: {
937
+ parent: TParent;
938
+ query: string;
939
+ context: NubaseContextData<TApiEndpoints>;
940
+ }) => Promise<HttpResponse<TRow[]>>;
941
+ };
942
+ /**
943
+ * Map of field-name → handler for virtual relationship fields on the view's
944
+ * schema. Each key must match a field declared via `nu.relation(...)` in
945
+ * the schema shape.
946
+ */
947
+ type FieldHandlers<TParent = any, TApiEndpoints = any> = Record<string, RelationshipFieldHandler<TParent, TApiEndpoints>>;
923
948
  type ResourceViewView<TSchema extends ObjectSchema<any> = ObjectSchema<any>, TApiEndpoints = any, TParamsSchema extends ObjectSchema<any> | undefined = undefined, TActionIds extends string = string> = ViewBase<TApiEndpoints, TParamsSchema, Infer<TSchema>> & {
924
949
  type: "resource-view";
925
950
  /**
@@ -947,6 +972,12 @@ type ResourceViewView<TSchema extends ObjectSchema<any> = ObjectSchema<any>, TAp
947
972
  data: Partial<Infer<TSchema>>;
948
973
  context: NubaseContextData<TApiEndpoints, TParamsSchema>;
949
974
  }) => Promise<HttpResponse<any>>;
975
+ /**
976
+ * Optional handlers for virtual relationship fields declared on the
977
+ * schema via `nu.relation(...)`. Keyed by field name. Each handler
978
+ * provides the runtime fetch logic for its field.
979
+ */
980
+ fieldHandlers?: FieldHandlers<Infer<TSchema>, TApiEndpoints>;
950
981
  };
951
982
  type ResourceSearchView<TSchema extends ArraySchema<any> = ArraySchema<any>, TApiEndpoints = any, TParamsSchema extends ObjectSchema<any> | undefined = undefined, TActionIds extends string = string, TFilterSchema extends ObjectSchema<any> | undefined = undefined, TPatchSchema extends ObjectSchema<any> | undefined = undefined> = ViewBase<TApiEndpoints, TParamsSchema> & {
952
983
  type: "resource-search";
@@ -2879,6 +2910,21 @@ interface SchemaFormButtonBarProps {
2879
2910
  }
2880
2911
  declare const SchemaFormButtonBar: React__default.FC<SchemaFormButtonBarProps>;
2881
2912
 
2913
+ declare const SchemaFormLabelSplitter: () => react_jsx_runtime.JSX.Element;
2914
+
2915
+ declare const DEFAULT_LABEL_WIDTH = 128;
2916
+ declare const MIN_LABEL_WIDTH = 60;
2917
+ declare const MAX_LABEL_WIDTH = 400;
2918
+ interface SchemaFormLayoutContextValue {
2919
+ labelWidth: number;
2920
+ setLabelWidth: (width: number) => void;
2921
+ }
2922
+ interface SchemaFormLayoutProviderProps {
2923
+ children: React__default.ReactNode;
2924
+ }
2925
+ declare const SchemaFormLayoutProvider: ({ children, }: SchemaFormLayoutProviderProps) => react_jsx_runtime.JSX.Element;
2926
+ declare const useSchemaFormLayout: () => SchemaFormLayoutContextValue;
2927
+
2882
2928
  type SchemaFormValidationErrorsProps = {
2883
2929
  form: SchemaFormConfiguration<any>;
2884
2930
  className?: string;
@@ -3453,6 +3499,35 @@ type TextFilterProps = {
3453
3499
  };
3454
3500
  declare const TextFilter: React$1.ForwardRefExoticComponent<TextFilterProps & React$1.RefAttributes<HTMLButtonElement>>;
3455
3501
 
3502
+ type SearchableTableProps<TRow extends Record<string, any>> = {
3503
+ /** Object schema describing the row shape. Used to derive columns from its `default` (or `table`) layout. */
3504
+ schema: ObjectSchema<any>;
3505
+ /** Rows to display. */
3506
+ rows: readonly TRow[];
3507
+ /** Current value of the search input. */
3508
+ searchValue: string;
3509
+ /** Called when the (debounced) search input changes. */
3510
+ onSearchChange: (value: string) => void;
3511
+ /** Whether the table is loading data. Shown as an overlay over the grid. */
3512
+ loading?: boolean;
3513
+ /** Called when a row is clicked. */
3514
+ onRowClick?: (row: TRow) => void;
3515
+ /** Placeholder for the search input. */
3516
+ searchPlaceholder?: string;
3517
+ /** Debounce delay for the search input in ms. Defaults to 200. */
3518
+ searchDebounceMs?: number;
3519
+ /** Additional className for the container. */
3520
+ className?: string;
3521
+ };
3522
+ /**
3523
+ * A general-purpose searchable table: a debounced text-search input above a
3524
+ * `DataGrid`. Columns are derived from the schema's table layout.
3525
+ *
3526
+ * Search is controlled by the parent — `onSearchChange` is called with the
3527
+ * (debounced) query string and the parent decides how to fetch / filter rows.
3528
+ */
3529
+ declare const SearchableTable: <TRow extends Record<string, any>>({ schema, rows, searchValue, onSearchChange, loading, onRowClick, searchPlaceholder, searchDebounceMs, className, }: SearchableTableProps<TRow>) => react_jsx_runtime.JSX.Element;
3530
+
3456
3531
  declare function Pagination({ className, ...props }: React$1.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
3457
3532
  declare function PaginationContent({ className, ...props }: React$1.ComponentProps<"ul">): react_jsx_runtime.JSX.Element;
3458
3533
  declare function PaginationItem({ ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
@@ -3786,6 +3861,11 @@ type InlineViewViewConfig<TApiEndpoints, TActionIds extends string, TSchema exte
3786
3861
  data: Partial<Infer<TSchema>>;
3787
3862
  context: NubaseContextData<TApiEndpoints, TParamsSchema>;
3788
3863
  }) => Promise<HttpResponse<any>>;
3864
+ /**
3865
+ * Optional handlers for virtual relationship fields declared on the
3866
+ * schema via `nu.relation(...)`. Keyed by field name.
3867
+ */
3868
+ fieldHandlers?: FieldHandlers<Infer<TSchema>, TApiEndpoints>;
3789
3869
  };
3790
3870
  /**
3791
3871
  * Inline view definition for search views
@@ -4423,4 +4503,4 @@ declare function isServerNetworkError(error: unknown): error is ServerNetworkErr
4423
4503
  */
4424
4504
  declare function getNetworkErrorMessage(error: unknown): string;
4425
4505
 
4426
- export { ACTION_COLUMN_KEY, type Action, ActionBar, ActionBarContainer, type ActionBarContainerProps, type ActionBarProps, ActionCellFormatter, ActionCellRendererCell, ActionCellRendererGroup, ActionDropdownMenu, type ActionDropdownMenuProps, type ActionKeybinding, type ActionLayout, type ActionOrSeparator, ActivityIndicator, type ActivityIndicatorProps, type AuthenticatedUser, type AuthenticationController, type AuthenticationState, type AuthenticationStateListener, type BaseAction, type BaseModalFrameProps, type BaseWidgetDescriptor, BooleanCellEditRenderer, Breadcrumb, BreadcrumbBar, type BreadcrumbBarProps, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Button, ButtonBar, type ButtonBarProps, type ButtonProps, type CalculatedColumn, type CalculatedColumnOrColumnGroup, type CalculatedColumnParent, Callout, type CalloutProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, CellComponent as Cell, type CellCopyArgs, type CellEditLifecycle, type CellEditRendererProps, type CellEditRendererResult, type CellKeyDownArgs, type CellKeyboardEvent, type CellMouseArgs, type CellMouseEvent, type CellPasteArgs, type CellRendererProps, type CellSelectArgs, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, type CheckboxProps, ClientNetworkError, type ColSpanArgs, type Column, type ColumnGroup, type ColumnOrColumnGroup, type ColumnWidth, type ColumnWidths, type CommandAction, type CommandRegistry, ConnectedWidget, type ConnectedWidgetProps, ControllableSearchableTree, type ControllableSearchableTreeProps, type CreatePatchableColumnOptions, Dashboard, type DashboardDescriptor, type DashboardDragConfig, type DashboardGridConfig, type DashboardProps, DashboardRenderer, type DashboardRendererProps, type DashboardResizeConfig, DashboardWidget, type DashboardWidgetProps, DataGrid, DataGridCellPatchWrapper, type DataGridCellPatchWrapperProps, DataGridDefaultRenderersContext, type DataGridHandle, type DataGridProps, DataState, type DataStateProps, type DefaultColumnOptions, Dialog, type DialogProps, Dock, type DockProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EnhancedPagination, type EnhancedPaginationProps, type ErrorListener, type ErrorPayload, type EventListener, type EventSource, type FillEvent, type FilterFieldDescriptor, type FlatItem, type FlatMenuItem, FormControl, type FormControlProps, FormFieldRenderer, type FormFieldRendererProps, FormValidationErrors, type FormValidationErrorsProps, type GlobalActionsConfig, type HandlerAction, HttpClient, type HttpRequestConfig, type HttpResponse, type IconComponent, type InlineCreateViewConfig, type InlineLookupConfig, type InlineResourceActionConfig, type InlineSearchViewConfig, type InlineViewConfig, type InlineViewViewConfig, type KeySequence, type Keybinding, type KeybindingState, type KpiWidgetDescriptor, Label, type LabelProps, EnhancedPagination as LegacyPagination, ListNavigator, type ListNavigatorItem, type ListNavigatorProps, type LoginCompleteCredentials, type LoginCredentials, type LoginStartResponse, LookupSelect, LookupSelectFilter, type LookupSelectFilterProps, type LookupSelectProps, MainNav, type MainNavProps, type MarkdownCommand, MarkdownTextArea, type MarkdownTextAreaHandle, type MarkdownTextAreaProps, type MenuItem, MenuItemComponent, type MenuItemOrSeparator, Modal, type ModalAlignment, type ModalConfig, ModalFrame, type ModalFrameProps, ModalFrameSchemaForm, type ModalFrameSchemaFormProps, ModalFrameStructured, type ModalFrameStructuredProps, type ModalInstance, type ModalProps, ModalProvider, type ModalSize, ModalViewRenderer, type ModalViewRendererProps, NAVIGATE_COLUMN_KEY, type NavItem, NavItems, NetworkError, type NetworkErrorOptions, type NotificationRule, type NotificationRules, NubaseApp, type NubaseAppProps, type NubaseContextData, type NubaseEventMap, type NubaseEventType, type NubaseFrontendConfig, NumberCellEditRenderer, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type EnhancedPaginationProps as PaginationProps, type ParseErrorDetail, type ParsedKeybinding, type PatchResult, type PromiseResult, type PromiseToastCallback, type PromiseToastConfig, type PromiseToastOptions, type ProportionalChartVariant, type ProportionalWidgetDescriptor, type RenderCellProps, type RenderCheckboxProps, type RenderEditCellProps, type RenderGroupCellProps, type RenderHeaderCellProps, type RenderRowProps, type RenderSortIconProps, type RenderSortPriorityProps, type RenderSortStatusProps, type RenderSummaryCellProps, type Renderers, type ResolvedMenuItem, type ResourceAction, type ResourceActionExecutionContext, type ResourceCreateView, ResourceCreateViewModalRenderer, type ResourceCreateViewModalRendererProps, ResourceCreateViewRenderer, type ResourceCreateViewRendererProps, type ResourceDescriptor, type ResourceEventPayload, type ResourceLink, type ResourceLookupConfig, type ResourceSearchView, ResourceSearchViewModalRenderer, type ResourceSearchViewModalRendererProps, ResourceSearchViewRenderer, type ResourceSearchViewRendererProps, type ResourceViewView, ResourceViewViewModalRenderer, type ResourceViewViewModalRendererProps, ResourceViewViewRenderer, type ResourceViewViewRendererProps, RowComponent as Row, type RowHeightArgs, type RowsChangeData, SELECT_COLUMN_KEY, SchemaFilterBar, type SchemaFilterBarProps, type SchemaFilterConfig, type SchemaFilterState, SchemaForm, SchemaFormBody, type SchemaFormBodyProps, SchemaFormButtonBar, type SchemaFormButtonBarProps, type SchemaFormConfiguration, type SchemaFormProps, SchemaFormValidationErrors, type SchemaFormValidationErrorsProps, SearchBar, type SearchBarProps, SearchFilterBadge, type SearchFilterBadgeProps, SearchFilterBar, type SearchFilterBarProps, SearchFilterCheckIndicator, SearchFilterChevron, type SearchFilterChevronProps, SearchFilterDropdown, type SearchFilterDropdownProps, SearchTextInput, type SearchTextInputProps, SearchableTreeNavigator, type SearchableTreeNavigatorProps, Select, SelectCellFormatter, type SelectCellOptions, SelectColumn, SelectFilter, type SelectFilterOption, type SelectFilterProps, type SelectHeaderRowEvent, type SelectOption, type SelectProps, type SelectRowEvent, type SelectionRange, type SeriesChartVariant, type SeriesWidgetDescriptor, ServerNetworkError, type SignupCredentials, type SortColumn, type SortDirection, type StandardViews, StringCellEditRenderer, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, type TableWidgetDescriptor, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, type TextController, TextFilter, type TextFilterProps, TextInput, type TextInputProps, type TextState, ThemeToggle, type ThemeToggleProps, Toast, ToastContainer, type ToastData, type ToastOptions, type ToastPosition, ToastProvider, type ToastType, Toggle, ToggleGroup, type ToggleProps, TopBar, type TopBarProps, TreeDataGrid, type TreeDataGridProps, TreeNavigator, type TreeNavigatorItem, type TreeNavigatorProps, TypedApiClient, type TypedApiClientFromEndpoints, type TypedCommandDefinition, type UseDialogResult, type UseModalResult, type UseNubaseMutationOptions, type UseNubaseQueryOptions, type UseSchemaFiltersOptions, type UseSchemaFiltersReturn, type UseSchemaFormOptions, UserAvatar, type UserAvatarProps, UserMenu, type UserMenuProps, type View, type ViewBase, type ViewType, Widget, type WidgetDescriptor, type WidgetLayoutConfig, type WidgetProps, type WorkspaceContext, type WorkspaceInfo, boldCommand, checkListCommand, checkboxVariants, cleanupKeybindings, codeBlockCommand, codeCommand, commandRegistry, index as commands, createActionColumn, createCommand, createCommandAction, createCreateView, createDashboard, createHandlerAction, createNavigateColumn, createPatchableColumn, createPatchableColumns, createResource, createResourceAction, createTypedApiClient, createViewFactory, createViewView, defaultKeybindings, defaultNotificationRules, defineCreateView, defineViewView, emitEvent, eventManager, filterNavItems, flattenNavItems, getInitials, getLayout, getNetworkErrorMessage, getResourceLinkSearch, getWorkspaceFromRouter, groupActionsBySeparators, headingCommand, imageCommand, introspectSchemaForFilters, isClientNetworkError, isCommandAction, isHandlerAction, isNetworkError, isResourceLink, isServerNetworkError, italicCommand, keybindingManager, linkCommand, lookupSelectVariants, matchesKeySequence, normalizeEventKey, optionVariants, orderedListCommand, parseKeySequence, parseKeybinding, quoteCommand, registerKeybindings, renderCheckbox, renderHeaderCell, renderSortIcon, renderSortPriority, renderToggleGroup, renderValue, renderCellEdit as resolveEditRenderer, resolveMenuItem, resolveMenuItems, resolveResourceLink, renderCellView as resolveViewRenderer, resourceLink, searchFilterBarClearButtonVariants, searchFilterBarInputVariants, searchFilterBarVariants, searchFilterContentVariants, searchFilterTriggerVariants, setGlobalEventEmitter, showPromiseToast, showToast, strikethroughCommand, textEditor, toggleThumbVariants, toggleVariants, unorderedListCommand, updateKeybindings, useActionExecutor, useChart, useComputedMetadata, useDialog, useHeaderRowSelection, useLayout, useModal, useNubaseMutation, useNubaseQuery, useResourceCreateMutation, useResourceDeleteMutation, useResourceInvalidation, useResourceSearchQuery, useResourceUpdateMutation, useResourceViewQuery, useRowSelection, useSchemaFilters, useSchemaForm, useToast, useWorkspace, useWorkspaceOptional, workbenchOpenResourceOperation, workbenchOpenResourceOperationInModal, workbenchRunCommand, workbenchSetTheme, workbenchViewHistory };
4506
+ export { ACTION_COLUMN_KEY, type Action, ActionBar, ActionBarContainer, type ActionBarContainerProps, type ActionBarProps, ActionCellFormatter, ActionCellRendererCell, ActionCellRendererGroup, ActionDropdownMenu, type ActionDropdownMenuProps, type ActionKeybinding, type ActionLayout, type ActionOrSeparator, ActivityIndicator, type ActivityIndicatorProps, type AuthenticatedUser, type AuthenticationController, type AuthenticationState, type AuthenticationStateListener, type BaseAction, type BaseModalFrameProps, type BaseWidgetDescriptor, BooleanCellEditRenderer, Breadcrumb, BreadcrumbBar, type BreadcrumbBarProps, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Button, ButtonBar, type ButtonBarProps, type ButtonProps, type CalculatedColumn, type CalculatedColumnOrColumnGroup, type CalculatedColumnParent, Callout, type CalloutProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, CellComponent as Cell, type CellCopyArgs, type CellEditLifecycle, type CellEditRendererProps, type CellEditRendererResult, type CellKeyDownArgs, type CellKeyboardEvent, type CellMouseArgs, type CellMouseEvent, type CellPasteArgs, type CellRendererProps, type CellSelectArgs, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, type CheckboxProps, ClientNetworkError, type ColSpanArgs, type Column, type ColumnGroup, type ColumnOrColumnGroup, type ColumnWidth, type ColumnWidths, type CommandAction, type CommandRegistry, ConnectedWidget, type ConnectedWidgetProps, ControllableSearchableTree, type ControllableSearchableTreeProps, type CreatePatchableColumnOptions, DEFAULT_LABEL_WIDTH, Dashboard, type DashboardDescriptor, type DashboardDragConfig, type DashboardGridConfig, type DashboardProps, DashboardRenderer, type DashboardRendererProps, type DashboardResizeConfig, DashboardWidget, type DashboardWidgetProps, DataGrid, DataGridCellPatchWrapper, type DataGridCellPatchWrapperProps, DataGridDefaultRenderersContext, type DataGridHandle, type DataGridProps, DataState, type DataStateProps, type DefaultColumnOptions, Dialog, type DialogProps, Dock, type DockProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EnhancedPagination, type EnhancedPaginationProps, type ErrorListener, type ErrorPayload, type EventListener, type EventSource, type FieldHandlers, type FillEvent, type FilterFieldDescriptor, type FlatItem, type FlatMenuItem, FormControl, type FormControlProps, FormFieldRenderer, type FormFieldRendererProps, FormValidationErrors, type FormValidationErrorsProps, type GlobalActionsConfig, type HandlerAction, HttpClient, type HttpRequestConfig, type HttpResponse, type IconComponent, type InlineCreateViewConfig, type InlineLookupConfig, type InlineResourceActionConfig, type InlineSearchViewConfig, type InlineViewConfig, type InlineViewViewConfig, type KeySequence, type Keybinding, type KeybindingState, type KpiWidgetDescriptor, Label, type LabelProps, EnhancedPagination as LegacyPagination, ListNavigator, type ListNavigatorItem, type ListNavigatorProps, type LoginCompleteCredentials, type LoginCredentials, type LoginStartResponse, LookupSelect, LookupSelectFilter, type LookupSelectFilterProps, type LookupSelectProps, MAX_LABEL_WIDTH, MIN_LABEL_WIDTH, MainNav, type MainNavProps, type MarkdownCommand, MarkdownTextArea, type MarkdownTextAreaHandle, type MarkdownTextAreaProps, type MenuItem, MenuItemComponent, type MenuItemOrSeparator, Modal, type ModalAlignment, type ModalConfig, ModalFrame, type ModalFrameProps, ModalFrameSchemaForm, type ModalFrameSchemaFormProps, ModalFrameStructured, type ModalFrameStructuredProps, type ModalInstance, type ModalProps, ModalProvider, type ModalSize, ModalViewRenderer, type ModalViewRendererProps, NAVIGATE_COLUMN_KEY, type NavItem, NavItems, NetworkError, type NetworkErrorOptions, type NotificationRule, type NotificationRules, NubaseApp, type NubaseAppProps, type NubaseContextData, type NubaseEventMap, type NubaseEventType, type NubaseFrontendConfig, NumberCellEditRenderer, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type EnhancedPaginationProps as PaginationProps, type ParseErrorDetail, type ParsedKeybinding, type PatchResult, type PromiseResult, type PromiseToastCallback, type PromiseToastConfig, type PromiseToastOptions, type ProportionalChartVariant, type ProportionalWidgetDescriptor, type RelationshipFieldHandler, type RenderCellProps, type RenderCheckboxProps, type RenderEditCellProps, type RenderGroupCellProps, type RenderHeaderCellProps, type RenderRowProps, type RenderSortIconProps, type RenderSortPriorityProps, type RenderSortStatusProps, type RenderSummaryCellProps, type Renderers, type ResolvedMenuItem, type ResourceAction, type ResourceActionExecutionContext, type ResourceCreateView, ResourceCreateViewModalRenderer, type ResourceCreateViewModalRendererProps, ResourceCreateViewRenderer, type ResourceCreateViewRendererProps, type ResourceDescriptor, type ResourceEventPayload, type ResourceLink, type ResourceLookupConfig, type ResourceSearchView, ResourceSearchViewModalRenderer, type ResourceSearchViewModalRendererProps, ResourceSearchViewRenderer, type ResourceSearchViewRendererProps, type ResourceViewView, ResourceViewViewModalRenderer, type ResourceViewViewModalRendererProps, ResourceViewViewRenderer, type ResourceViewViewRendererProps, RowComponent as Row, type RowHeightArgs, type RowsChangeData, SELECT_COLUMN_KEY, SchemaFilterBar, type SchemaFilterBarProps, type SchemaFilterConfig, type SchemaFilterState, SchemaForm, SchemaFormBody, type SchemaFormBodyProps, SchemaFormButtonBar, type SchemaFormButtonBarProps, type SchemaFormConfiguration, SchemaFormLabelSplitter, type SchemaFormLayoutContextValue, SchemaFormLayoutProvider, type SchemaFormLayoutProviderProps, type SchemaFormProps, SchemaFormValidationErrors, type SchemaFormValidationErrorsProps, SearchBar, type SearchBarProps, SearchFilterBadge, type SearchFilterBadgeProps, SearchFilterBar, type SearchFilterBarProps, SearchFilterCheckIndicator, SearchFilterChevron, type SearchFilterChevronProps, SearchFilterDropdown, type SearchFilterDropdownProps, SearchTextInput, type SearchTextInputProps, SearchableTable, type SearchableTableProps, SearchableTreeNavigator, type SearchableTreeNavigatorProps, Select, SelectCellFormatter, type SelectCellOptions, SelectColumn, SelectFilter, type SelectFilterOption, type SelectFilterProps, type SelectHeaderRowEvent, type SelectOption, type SelectProps, type SelectRowEvent, type SelectionRange, type SeriesChartVariant, type SeriesWidgetDescriptor, ServerNetworkError, type SignupCredentials, type SortColumn, type SortDirection, type StandardViews, StringCellEditRenderer, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, type TableWidgetDescriptor, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, type TextController, TextFilter, type TextFilterProps, TextInput, type TextInputProps, type TextState, ThemeToggle, type ThemeToggleProps, Toast, ToastContainer, type ToastData, type ToastOptions, type ToastPosition, ToastProvider, type ToastType, Toggle, ToggleGroup, type ToggleProps, TopBar, type TopBarProps, TreeDataGrid, type TreeDataGridProps, TreeNavigator, type TreeNavigatorItem, type TreeNavigatorProps, TypedApiClient, type TypedApiClientFromEndpoints, type TypedCommandDefinition, type UseDialogResult, type UseModalResult, type UseNubaseMutationOptions, type UseNubaseQueryOptions, type UseSchemaFiltersOptions, type UseSchemaFiltersReturn, type UseSchemaFormOptions, UserAvatar, type UserAvatarProps, UserMenu, type UserMenuProps, type View, type ViewBase, type ViewType, Widget, type WidgetDescriptor, type WidgetLayoutConfig, type WidgetProps, type WorkspaceContext, type WorkspaceInfo, boldCommand, checkListCommand, checkboxVariants, cleanupKeybindings, codeBlockCommand, codeCommand, commandRegistry, index as commands, createActionColumn, createCommand, createCommandAction, createCreateView, createDashboard, createHandlerAction, createNavigateColumn, createPatchableColumn, createPatchableColumns, createResource, createResourceAction, createTypedApiClient, createViewFactory, createViewView, defaultKeybindings, defaultNotificationRules, defineCreateView, defineViewView, emitEvent, eventManager, filterNavItems, flattenNavItems, getInitials, getLayout, getNetworkErrorMessage, getResourceLinkSearch, getWorkspaceFromRouter, groupActionsBySeparators, headingCommand, imageCommand, introspectSchemaForFilters, isClientNetworkError, isCommandAction, isHandlerAction, isNetworkError, isResourceLink, isServerNetworkError, italicCommand, keybindingManager, linkCommand, lookupSelectVariants, matchesKeySequence, normalizeEventKey, optionVariants, orderedListCommand, parseKeySequence, parseKeybinding, quoteCommand, registerKeybindings, renderCheckbox, renderHeaderCell, renderSortIcon, renderSortPriority, renderToggleGroup, renderValue, renderCellEdit as resolveEditRenderer, resolveMenuItem, resolveMenuItems, resolveResourceLink, renderCellView as resolveViewRenderer, resourceLink, searchFilterBarClearButtonVariants, searchFilterBarInputVariants, searchFilterBarVariants, searchFilterContentVariants, searchFilterTriggerVariants, setGlobalEventEmitter, showPromiseToast, showToast, strikethroughCommand, textEditor, toggleThumbVariants, toggleVariants, unorderedListCommand, updateKeybindings, useActionExecutor, useChart, useComputedMetadata, useDialog, useHeaderRowSelection, useLayout, useModal, useNubaseMutation, useNubaseQuery, useResourceCreateMutation, useResourceDeleteMutation, useResourceInvalidation, useResourceSearchQuery, useResourceUpdateMutation, useResourceViewQuery, useRowSelection, useSchemaFilters, useSchemaForm, useSchemaFormLayout, useToast, useWorkspace, useWorkspaceOptional, workbenchOpenResourceOperation, workbenchOpenResourceOperationInModal, workbenchRunCommand, workbenchSetTheme, workbenchViewHistory };