@nubase/frontend 0.1.14 → 0.1.15
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 +189 -7
- package/dist/index.d.ts +189 -7
- package/dist/index.js +1699 -1076
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1616 -997
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +39 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { ReactElement, FC, ReactNode, Key, RefObject } from 'react';
|
|
3
3
|
import * as _nubase_core from '@nubase/core';
|
|
4
|
-
import { ObjectSchema, Infer, ObjectShape, ObjectOutput, SchemaMetadata, Layout, ArraySchema, RequestSchema, InferRequestParams, InferRequestBody, InferResponseBody, BaseSchema } from '@nubase/core';
|
|
4
|
+
import { ObjectSchema, Infer, ObjectShape, ObjectOutput, SchemaMetadata, Layout, ArraySchema, Lookup, RequestSchema, InferRequestParams, InferRequestBody, InferResponseBody, BaseSchema } from '@nubase/core';
|
|
5
5
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
6
6
|
import { UseMutationOptions, UseQueryOptions, QueryClient } from '@tanstack/react-query';
|
|
7
7
|
import { AnyRouter } from '@tanstack/react-router';
|
|
@@ -620,12 +620,38 @@ type ResourceSearchView<TSchema extends ArraySchema<any> = ArraySchema<any>, TAp
|
|
|
620
620
|
};
|
|
621
621
|
type View<TSchema extends ObjectSchema<any> | ArraySchema<any> = ObjectSchema<any>, TApiEndpoints = any, TParamsSchema extends ObjectSchema<any> | undefined = undefined, TActionIds extends string = string> = ResourceCreateView<TSchema extends ObjectSchema<any> ? TSchema : ObjectSchema<any>, TApiEndpoints, TParamsSchema, TActionIds> | ResourceViewView<TSchema extends ObjectSchema<any> ? TSchema : ObjectSchema<any>, TApiEndpoints, TParamsSchema, TActionIds> | ResourceSearchView<TSchema extends ArraySchema<any> ? TSchema : ArraySchema<any>, TApiEndpoints, TParamsSchema, TActionIds>;
|
|
622
622
|
|
|
623
|
+
/**
|
|
624
|
+
* Configuration for lookup/search behavior of a resource.
|
|
625
|
+
* Defines how to search for entities when this resource is used as a lookup target.
|
|
626
|
+
*/
|
|
627
|
+
type ResourceLookupConfig = {
|
|
628
|
+
/**
|
|
629
|
+
* Callback to search for lookup items.
|
|
630
|
+
* Called by the renderer with the query and context.
|
|
631
|
+
* @param args - Contains the query string and context
|
|
632
|
+
* @returns Promise resolving to an HttpResponse with Lookup[] data
|
|
633
|
+
*/
|
|
634
|
+
onSearch: (args: {
|
|
635
|
+
query: string;
|
|
636
|
+
context: unknown;
|
|
637
|
+
}) => Promise<HttpResponse<Lookup[]>>;
|
|
638
|
+
/**
|
|
639
|
+
* Minimum number of characters before triggering search.
|
|
640
|
+
* @default 1
|
|
641
|
+
*/
|
|
642
|
+
minQueryLength?: number;
|
|
643
|
+
/**
|
|
644
|
+
* Debounce delay in milliseconds before triggering search.
|
|
645
|
+
* @default 300
|
|
646
|
+
*/
|
|
647
|
+
debounceMs?: number;
|
|
648
|
+
};
|
|
623
649
|
/**
|
|
624
650
|
* A resource descriptor defines the views available for a resource entity.
|
|
625
651
|
* Views are directly accessible without an intermediate operation wrapper.
|
|
626
652
|
* Can be extended with additional properties as needed.
|
|
627
653
|
*/
|
|
628
|
-
type ResourceDescriptor<TViews extends Record<string, View<any, any, any, any>> = Record<string, View<any, any, any, any>>, TActions extends Record<string, Action> = Record<string, Action
|
|
654
|
+
type ResourceDescriptor<TViews extends Record<string, View<any, any, any, any>> = Record<string, View<any, any, any, any>>, TActions extends Record<string, Action> = Record<string, Action>, TLookup extends ResourceLookupConfig | undefined = undefined> = {
|
|
629
655
|
id: string;
|
|
630
656
|
views: TViews;
|
|
631
657
|
/**
|
|
@@ -633,6 +659,11 @@ type ResourceDescriptor<TViews extends Record<string, View<any, any, any, any>>
|
|
|
633
659
|
* This allows views to reference actions by ID in a type-safe manner.
|
|
634
660
|
*/
|
|
635
661
|
actions?: TActions;
|
|
662
|
+
/**
|
|
663
|
+
* Lookup configuration for when this resource is used as a search/reference target.
|
|
664
|
+
* Enables other resources to reference this one via lookup fields.
|
|
665
|
+
*/
|
|
666
|
+
lookup?: TLookup;
|
|
636
667
|
};
|
|
637
668
|
/**
|
|
638
669
|
* Standard view names for resources
|
|
@@ -2374,6 +2405,114 @@ interface CheckboxProps extends React$1.ComponentProps<typeof CheckboxPrimitive.
|
|
|
2374
2405
|
}
|
|
2375
2406
|
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2376
2407
|
|
|
2408
|
+
declare const lookupSelectVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
2409
|
+
type LookupSelectProps = Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "onSelect"> & VariantProps<typeof lookupSelectVariants> & {
|
|
2410
|
+
/**
|
|
2411
|
+
* Callback to search for items. Called when user types in the input.
|
|
2412
|
+
* Returns an array of Lookup items.
|
|
2413
|
+
*/
|
|
2414
|
+
onSearch: (query: string) => Promise<Lookup[]>;
|
|
2415
|
+
/**
|
|
2416
|
+
* The currently selected value (ID of the selected item).
|
|
2417
|
+
*/
|
|
2418
|
+
value?: string | number | null;
|
|
2419
|
+
/**
|
|
2420
|
+
* Callback when the selection changes.
|
|
2421
|
+
*/
|
|
2422
|
+
onChange?: (value: string | number | null) => void;
|
|
2423
|
+
/**
|
|
2424
|
+
* Callback when a full item is selected.
|
|
2425
|
+
*/
|
|
2426
|
+
onItemSelect?: (item: Lookup | null) => void;
|
|
2427
|
+
/**
|
|
2428
|
+
* Placeholder text shown when no value is selected.
|
|
2429
|
+
*/
|
|
2430
|
+
placeholder?: string;
|
|
2431
|
+
/**
|
|
2432
|
+
* Whether the input is disabled.
|
|
2433
|
+
*/
|
|
2434
|
+
disabled?: boolean;
|
|
2435
|
+
/**
|
|
2436
|
+
* Whether to show error styling.
|
|
2437
|
+
*/
|
|
2438
|
+
hasError?: boolean;
|
|
2439
|
+
/**
|
|
2440
|
+
* Minimum number of characters before triggering search.
|
|
2441
|
+
* @default 1
|
|
2442
|
+
*/
|
|
2443
|
+
minQueryLength?: number;
|
|
2444
|
+
/**
|
|
2445
|
+
* Debounce delay in milliseconds.
|
|
2446
|
+
* @default 300
|
|
2447
|
+
*/
|
|
2448
|
+
debounceMs?: number;
|
|
2449
|
+
/**
|
|
2450
|
+
* Message shown when no results are found.
|
|
2451
|
+
*/
|
|
2452
|
+
emptyMessage?: string;
|
|
2453
|
+
/**
|
|
2454
|
+
* Whether to allow clearing the selection.
|
|
2455
|
+
*/
|
|
2456
|
+
clearable?: boolean;
|
|
2457
|
+
/**
|
|
2458
|
+
* Initial item to display (used when value is set but we need display text).
|
|
2459
|
+
*/
|
|
2460
|
+
initialItem?: Lookup;
|
|
2461
|
+
};
|
|
2462
|
+
declare const LookupSelect: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange" | "onSelect"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & {
|
|
2463
|
+
/**
|
|
2464
|
+
* Callback to search for items. Called when user types in the input.
|
|
2465
|
+
* Returns an array of Lookup items.
|
|
2466
|
+
*/
|
|
2467
|
+
onSearch: (query: string) => Promise<Lookup[]>;
|
|
2468
|
+
/**
|
|
2469
|
+
* The currently selected value (ID of the selected item).
|
|
2470
|
+
*/
|
|
2471
|
+
value?: string | number | null;
|
|
2472
|
+
/**
|
|
2473
|
+
* Callback when the selection changes.
|
|
2474
|
+
*/
|
|
2475
|
+
onChange?: (value: string | number | null) => void;
|
|
2476
|
+
/**
|
|
2477
|
+
* Callback when a full item is selected.
|
|
2478
|
+
*/
|
|
2479
|
+
onItemSelect?: (item: Lookup | null) => void;
|
|
2480
|
+
/**
|
|
2481
|
+
* Placeholder text shown when no value is selected.
|
|
2482
|
+
*/
|
|
2483
|
+
placeholder?: string;
|
|
2484
|
+
/**
|
|
2485
|
+
* Whether the input is disabled.
|
|
2486
|
+
*/
|
|
2487
|
+
disabled?: boolean;
|
|
2488
|
+
/**
|
|
2489
|
+
* Whether to show error styling.
|
|
2490
|
+
*/
|
|
2491
|
+
hasError?: boolean;
|
|
2492
|
+
/**
|
|
2493
|
+
* Minimum number of characters before triggering search.
|
|
2494
|
+
* @default 1
|
|
2495
|
+
*/
|
|
2496
|
+
minQueryLength?: number;
|
|
2497
|
+
/**
|
|
2498
|
+
* Debounce delay in milliseconds.
|
|
2499
|
+
* @default 300
|
|
2500
|
+
*/
|
|
2501
|
+
debounceMs?: number;
|
|
2502
|
+
/**
|
|
2503
|
+
* Message shown when no results are found.
|
|
2504
|
+
*/
|
|
2505
|
+
emptyMessage?: string;
|
|
2506
|
+
/**
|
|
2507
|
+
* Whether to allow clearing the selection.
|
|
2508
|
+
*/
|
|
2509
|
+
clearable?: boolean;
|
|
2510
|
+
/**
|
|
2511
|
+
* Initial item to display (used when value is set but we need display text).
|
|
2512
|
+
*/
|
|
2513
|
+
initialItem?: Lookup;
|
|
2514
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
2515
|
+
|
|
2377
2516
|
declare const searchTextInputVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
2378
2517
|
interface SearchTextInputProps extends Omit<React__default.ComponentProps<"input">, "size">, VariantProps<typeof searchTextInputVariants> {
|
|
2379
2518
|
hasError?: boolean;
|
|
@@ -2943,6 +3082,31 @@ type InlineSearchViewConfig<TApiEndpoints, TActionIds extends string, TSchema ex
|
|
|
2943
3082
|
* Union type for all inline view configs
|
|
2944
3083
|
*/
|
|
2945
3084
|
type InlineViewConfig<TApiEndpoints, TActionIds extends string> = InlineCreateViewConfig<TApiEndpoints, TActionIds, any, any> | InlineViewViewConfig<TApiEndpoints, TActionIds, any, any> | InlineSearchViewConfig<TApiEndpoints, TActionIds, any, any>;
|
|
3085
|
+
/**
|
|
3086
|
+
* Inline lookup configuration for the resource builder.
|
|
3087
|
+
* Uses a callback to search for lookup items.
|
|
3088
|
+
*/
|
|
3089
|
+
type InlineLookupConfig<TApiEndpoints> = {
|
|
3090
|
+
/**
|
|
3091
|
+
* Callback to search for lookup items.
|
|
3092
|
+
* @param args - Contains the query string and context with typed HTTP client
|
|
3093
|
+
* @returns Promise resolving to an array of Lookup items
|
|
3094
|
+
*/
|
|
3095
|
+
onSearch: (args: {
|
|
3096
|
+
query: string;
|
|
3097
|
+
context: NubaseContextData<TApiEndpoints>;
|
|
3098
|
+
}) => Promise<HttpResponse<Lookup[]>>;
|
|
3099
|
+
/**
|
|
3100
|
+
* Minimum number of characters before triggering search.
|
|
3101
|
+
* @default 1
|
|
3102
|
+
*/
|
|
3103
|
+
minQueryLength?: number;
|
|
3104
|
+
/**
|
|
3105
|
+
* Debounce delay in milliseconds before triggering search.
|
|
3106
|
+
* @default 300
|
|
3107
|
+
*/
|
|
3108
|
+
debounceMs?: number;
|
|
3109
|
+
};
|
|
2946
3110
|
/**
|
|
2947
3111
|
* Resource builder that enables chained, type-safe resource configuration.
|
|
2948
3112
|
*
|
|
@@ -2951,22 +3115,39 @@ type InlineViewConfig<TApiEndpoints, TActionIds extends string> = InlineCreateVi
|
|
|
2951
3115
|
* createResource("ticket")
|
|
2952
3116
|
* .withApiEndpoints(apiEndpoints)
|
|
2953
3117
|
* .withActions({ delete: { ... } })
|
|
3118
|
+
* .withLookup({ ... })
|
|
2954
3119
|
* .withViews({ create: { ... }, view: { ... } })
|
|
2955
3120
|
* ```
|
|
2956
3121
|
*/
|
|
2957
|
-
declare class ResourceBuilder<TId extends string, TApiEndpoints = never, TActions extends Record<string, InlineResourceActionConfig<TApiEndpoints>> = Record<string, never
|
|
3122
|
+
declare class ResourceBuilder<TId extends string, TApiEndpoints = never, TActions extends Record<string, InlineResourceActionConfig<TApiEndpoints>> = Record<string, never>, TLookup extends InlineLookupConfig<TApiEndpoints> | undefined = undefined> {
|
|
2958
3123
|
private config;
|
|
2959
3124
|
constructor(id: TId);
|
|
2960
3125
|
/**
|
|
2961
3126
|
* Configure API endpoints for this resource.
|
|
2962
3127
|
* This unlocks type-safe HTTP client in actions and views.
|
|
2963
3128
|
*/
|
|
2964
|
-
withApiEndpoints<T>(apiEndpoints: T): ResourceBuilder<TId, T, Record<string, never
|
|
3129
|
+
withApiEndpoints<T>(apiEndpoints: T): ResourceBuilder<TId, T, Record<string, never>, undefined>;
|
|
2965
3130
|
/**
|
|
2966
3131
|
* Configure actions for this resource.
|
|
2967
3132
|
* Actions can reference the API endpoints for type-safe HTTP calls.
|
|
2968
3133
|
*/
|
|
2969
|
-
withActions<T extends Record<string, InlineResourceActionConfig<TApiEndpoints>>>(actions: T): ResourceBuilder<TId, TApiEndpoints, T>;
|
|
3134
|
+
withActions<T extends Record<string, InlineResourceActionConfig<TApiEndpoints>>>(actions: T): ResourceBuilder<TId, TApiEndpoints, T, TLookup>;
|
|
3135
|
+
/**
|
|
3136
|
+
* Configure lookup behavior for this resource.
|
|
3137
|
+
* Enables this resource to be used as a lookup/reference target by other resources.
|
|
3138
|
+
*
|
|
3139
|
+
* @example
|
|
3140
|
+
* ```typescript
|
|
3141
|
+
* createResource("user")
|
|
3142
|
+
* .withApiEndpoints(apiEndpoints)
|
|
3143
|
+
* .withLookup({
|
|
3144
|
+
* endpoint: "lookupUsers",
|
|
3145
|
+
* minQueryLength: 1,
|
|
3146
|
+
* debounceMs: 300,
|
|
3147
|
+
* })
|
|
3148
|
+
* ```
|
|
3149
|
+
*/
|
|
3150
|
+
withLookup<T extends InlineLookupConfig<TApiEndpoints>>(lookup: T): ResourceBuilder<TId, TApiEndpoints, TActions, T>;
|
|
2970
3151
|
/**
|
|
2971
3152
|
* Configure views for this resource.
|
|
2972
3153
|
* Views can reference API endpoints for schemas and action keys for tableActions/rowActions.
|
|
@@ -2990,6 +3171,7 @@ declare class ResourceBuilder<TId extends string, TApiEndpoints = never, TAction
|
|
|
2990
3171
|
}>;
|
|
2991
3172
|
private setApiEndpoints;
|
|
2992
3173
|
private setActions;
|
|
3174
|
+
private setLookup;
|
|
2993
3175
|
}
|
|
2994
3176
|
/**
|
|
2995
3177
|
* Creates a new resource builder with the specified ID.
|
|
@@ -3018,7 +3200,7 @@ declare class ResourceBuilder<TId extends string, TApiEndpoints = never, TAction
|
|
|
3018
3200
|
* });
|
|
3019
3201
|
* ```
|
|
3020
3202
|
*/
|
|
3021
|
-
declare function createResource<TId extends string>(id: TId): ResourceBuilder<TId, never, Record<string, never
|
|
3203
|
+
declare function createResource<TId extends string>(id: TId): ResourceBuilder<TId, never, Record<string, never>, undefined>;
|
|
3022
3204
|
|
|
3023
3205
|
/**
|
|
3024
3206
|
* Factory function to create a ResourceCreateView with type inference.
|
|
@@ -3495,4 +3677,4 @@ declare function isServerNetworkError(error: unknown): error is ServerNetworkErr
|
|
|
3495
3677
|
*/
|
|
3496
3678
|
declare function getNetworkErrorMessage(error: unknown): string;
|
|
3497
3679
|
|
|
3498
|
-
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, 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 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, Dashboard, type DashboardDescriptor, type DashboardDragConfig, type DashboardGridConfig, type DashboardProps, DashboardRenderer, type DashboardRendererProps, type DashboardResizeConfig, DashboardWidget, type DashboardWidgetProps, DataGrid, 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 FillEvent, 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 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, 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, type NavItem, NavItems, NetworkError, type NetworkErrorOptions, NubaseApp, type NubaseAppProps, type NubaseContextData, type NubaseFrontendConfig, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type EnhancedPaginationProps as PaginationProps, type ParseErrorDetail, type ParsedKeybinding, 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 ResourceLink, 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, SchemaForm, SchemaFormBody, type SchemaFormBodyProps, SchemaFormButtonBar, type SchemaFormButtonBarProps, type SchemaFormConfiguration, type SchemaFormProps, SchemaFormValidationErrors, type SchemaFormValidationErrorsProps, SearchBar, type SearchBarProps, SearchTextInput, type SearchTextInputProps, SearchableTreeNavigator, type SearchableTreeNavigatorProps, Select, SelectCellFormatter, type SelectCellOptions, SelectColumn, type SelectHeaderRowEvent, type SelectOption, type SelectProps, type SelectRowEvent, type SelectionRange, type SeriesChartVariant, type SeriesWidgetDescriptor, ServerNetworkError, type SignupCredentials, type SortColumn, type SortDirection, type StandardViews, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, type TableWidgetDescriptor, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, type TextController, TextInput, type TextInputProps, type TextState, ThemeToggle, type ThemeToggleProps, Toast, ToastContainer, type ToastData, type ToastOptions, type ToastPosition, ToastProvider, type ToastType, ToggleGroup, 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 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, cleanupKeybindings, codeBlockCommand, codeCommand, commandRegistry, index as commands, createActionColumn, createCommand, createCommandAction, createCreateView, createDashboard, createHandlerAction, createResource, createResourceAction, createTypedApiClient, createViewFactory, createViewView, defaultKeybindings, defineCreateView, defineViewView, filterNavItems, flattenNavItems, getInitials, getLayout, getNetworkErrorMessage, getResourceLinkSearch, getWorkspaceFromRouter, groupActionsBySeparators, headingCommand, imageCommand, isClientNetworkError, isCommandAction, isHandlerAction, isNetworkError, isResourceLink, isServerNetworkError, italicCommand, keybindingManager, linkCommand, matchesKeySequence, normalizeEventKey, orderedListCommand, parseKeySequence, parseKeybinding, quoteCommand, registerKeybindings, renderCheckbox, renderHeaderCell, renderSortIcon, renderSortPriority, renderToggleGroup, renderValue, resolveMenuItem, resolveMenuItems, resolveResourceLink, resourceLink, showPromiseToast, showToast, strikethroughCommand, textEditor, unorderedListCommand, updateKeybindings, useActionExecutor, useChart, useComputedMetadata, useDialog, useHeaderRowSelection, useLayout, useModal, useNubaseMutation, useNubaseQuery, useResourceCreateMutation, useResourceDeleteMutation, useResourceInvalidation, useResourceSearchQuery, useResourceUpdateMutation, useResourceViewQuery, useRowSelection, useSchemaForm, useToast, useWorkspace, useWorkspaceOptional, workbenchOpenResourceOperation, workbenchOpenResourceOperationInModal, workbenchRunCommand, workbenchSetTheme, workbenchViewHistory };
|
|
3680
|
+
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, 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 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, Dashboard, type DashboardDescriptor, type DashboardDragConfig, type DashboardGridConfig, type DashboardProps, DashboardRenderer, type DashboardRendererProps, type DashboardResizeConfig, DashboardWidget, type DashboardWidgetProps, DataGrid, 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 FillEvent, 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, 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, type NavItem, NavItems, NetworkError, type NetworkErrorOptions, NubaseApp, type NubaseAppProps, type NubaseContextData, type NubaseFrontendConfig, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type EnhancedPaginationProps as PaginationProps, type ParseErrorDetail, type ParsedKeybinding, 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 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, SchemaForm, SchemaFormBody, type SchemaFormBodyProps, SchemaFormButtonBar, type SchemaFormButtonBarProps, type SchemaFormConfiguration, type SchemaFormProps, SchemaFormValidationErrors, type SchemaFormValidationErrorsProps, SearchBar, type SearchBarProps, SearchTextInput, type SearchTextInputProps, SearchableTreeNavigator, type SearchableTreeNavigatorProps, Select, SelectCellFormatter, type SelectCellOptions, SelectColumn, type SelectHeaderRowEvent, type SelectOption, type SelectProps, type SelectRowEvent, type SelectionRange, type SeriesChartVariant, type SeriesWidgetDescriptor, ServerNetworkError, type SignupCredentials, type SortColumn, type SortDirection, type StandardViews, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, type TableWidgetDescriptor, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, type TextController, TextInput, type TextInputProps, type TextState, ThemeToggle, type ThemeToggleProps, Toast, ToastContainer, type ToastData, type ToastOptions, type ToastPosition, ToastProvider, type ToastType, ToggleGroup, 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 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, cleanupKeybindings, codeBlockCommand, codeCommand, commandRegistry, index as commands, createActionColumn, createCommand, createCommandAction, createCreateView, createDashboard, createHandlerAction, createResource, createResourceAction, createTypedApiClient, createViewFactory, createViewView, defaultKeybindings, defineCreateView, defineViewView, filterNavItems, flattenNavItems, getInitials, getLayout, getNetworkErrorMessage, getResourceLinkSearch, getWorkspaceFromRouter, groupActionsBySeparators, headingCommand, imageCommand, isClientNetworkError, isCommandAction, isHandlerAction, isNetworkError, isResourceLink, isServerNetworkError, italicCommand, keybindingManager, linkCommand, lookupSelectVariants, matchesKeySequence, normalizeEventKey, orderedListCommand, parseKeySequence, parseKeybinding, quoteCommand, registerKeybindings, renderCheckbox, renderHeaderCell, renderSortIcon, renderSortPriority, renderToggleGroup, renderValue, resolveMenuItem, resolveMenuItems, resolveResourceLink, resourceLink, showPromiseToast, showToast, strikethroughCommand, textEditor, unorderedListCommand, updateKeybindings, useActionExecutor, useChart, useComputedMetadata, useDialog, useHeaderRowSelection, useLayout, useModal, useNubaseMutation, useNubaseQuery, useResourceCreateMutation, useResourceDeleteMutation, useResourceInvalidation, useResourceSearchQuery, useResourceUpdateMutation, useResourceViewQuery, useRowSelection, useSchemaForm, useToast, useWorkspace, useWorkspaceOptional, workbenchOpenResourceOperation, workbenchOpenResourceOperationInModal, workbenchRunCommand, workbenchSetTheme, workbenchViewHistory };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { ReactElement, FC, ReactNode, Key, RefObject } from 'react';
|
|
3
3
|
import * as _nubase_core from '@nubase/core';
|
|
4
|
-
import { ObjectSchema, Infer, ObjectShape, ObjectOutput, SchemaMetadata, Layout, ArraySchema, RequestSchema, InferRequestParams, InferRequestBody, InferResponseBody, BaseSchema } from '@nubase/core';
|
|
4
|
+
import { ObjectSchema, Infer, ObjectShape, ObjectOutput, SchemaMetadata, Layout, ArraySchema, Lookup, RequestSchema, InferRequestParams, InferRequestBody, InferResponseBody, BaseSchema } from '@nubase/core';
|
|
5
5
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
6
6
|
import { UseMutationOptions, UseQueryOptions, QueryClient } from '@tanstack/react-query';
|
|
7
7
|
import { AnyRouter } from '@tanstack/react-router';
|
|
@@ -620,12 +620,38 @@ type ResourceSearchView<TSchema extends ArraySchema<any> = ArraySchema<any>, TAp
|
|
|
620
620
|
};
|
|
621
621
|
type View<TSchema extends ObjectSchema<any> | ArraySchema<any> = ObjectSchema<any>, TApiEndpoints = any, TParamsSchema extends ObjectSchema<any> | undefined = undefined, TActionIds extends string = string> = ResourceCreateView<TSchema extends ObjectSchema<any> ? TSchema : ObjectSchema<any>, TApiEndpoints, TParamsSchema, TActionIds> | ResourceViewView<TSchema extends ObjectSchema<any> ? TSchema : ObjectSchema<any>, TApiEndpoints, TParamsSchema, TActionIds> | ResourceSearchView<TSchema extends ArraySchema<any> ? TSchema : ArraySchema<any>, TApiEndpoints, TParamsSchema, TActionIds>;
|
|
622
622
|
|
|
623
|
+
/**
|
|
624
|
+
* Configuration for lookup/search behavior of a resource.
|
|
625
|
+
* Defines how to search for entities when this resource is used as a lookup target.
|
|
626
|
+
*/
|
|
627
|
+
type ResourceLookupConfig = {
|
|
628
|
+
/**
|
|
629
|
+
* Callback to search for lookup items.
|
|
630
|
+
* Called by the renderer with the query and context.
|
|
631
|
+
* @param args - Contains the query string and context
|
|
632
|
+
* @returns Promise resolving to an HttpResponse with Lookup[] data
|
|
633
|
+
*/
|
|
634
|
+
onSearch: (args: {
|
|
635
|
+
query: string;
|
|
636
|
+
context: unknown;
|
|
637
|
+
}) => Promise<HttpResponse<Lookup[]>>;
|
|
638
|
+
/**
|
|
639
|
+
* Minimum number of characters before triggering search.
|
|
640
|
+
* @default 1
|
|
641
|
+
*/
|
|
642
|
+
minQueryLength?: number;
|
|
643
|
+
/**
|
|
644
|
+
* Debounce delay in milliseconds before triggering search.
|
|
645
|
+
* @default 300
|
|
646
|
+
*/
|
|
647
|
+
debounceMs?: number;
|
|
648
|
+
};
|
|
623
649
|
/**
|
|
624
650
|
* A resource descriptor defines the views available for a resource entity.
|
|
625
651
|
* Views are directly accessible without an intermediate operation wrapper.
|
|
626
652
|
* Can be extended with additional properties as needed.
|
|
627
653
|
*/
|
|
628
|
-
type ResourceDescriptor<TViews extends Record<string, View<any, any, any, any>> = Record<string, View<any, any, any, any>>, TActions extends Record<string, Action> = Record<string, Action
|
|
654
|
+
type ResourceDescriptor<TViews extends Record<string, View<any, any, any, any>> = Record<string, View<any, any, any, any>>, TActions extends Record<string, Action> = Record<string, Action>, TLookup extends ResourceLookupConfig | undefined = undefined> = {
|
|
629
655
|
id: string;
|
|
630
656
|
views: TViews;
|
|
631
657
|
/**
|
|
@@ -633,6 +659,11 @@ type ResourceDescriptor<TViews extends Record<string, View<any, any, any, any>>
|
|
|
633
659
|
* This allows views to reference actions by ID in a type-safe manner.
|
|
634
660
|
*/
|
|
635
661
|
actions?: TActions;
|
|
662
|
+
/**
|
|
663
|
+
* Lookup configuration for when this resource is used as a search/reference target.
|
|
664
|
+
* Enables other resources to reference this one via lookup fields.
|
|
665
|
+
*/
|
|
666
|
+
lookup?: TLookup;
|
|
636
667
|
};
|
|
637
668
|
/**
|
|
638
669
|
* Standard view names for resources
|
|
@@ -2374,6 +2405,114 @@ interface CheckboxProps extends React$1.ComponentProps<typeof CheckboxPrimitive.
|
|
|
2374
2405
|
}
|
|
2375
2406
|
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2376
2407
|
|
|
2408
|
+
declare const lookupSelectVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
2409
|
+
type LookupSelectProps = Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "onSelect"> & VariantProps<typeof lookupSelectVariants> & {
|
|
2410
|
+
/**
|
|
2411
|
+
* Callback to search for items. Called when user types in the input.
|
|
2412
|
+
* Returns an array of Lookup items.
|
|
2413
|
+
*/
|
|
2414
|
+
onSearch: (query: string) => Promise<Lookup[]>;
|
|
2415
|
+
/**
|
|
2416
|
+
* The currently selected value (ID of the selected item).
|
|
2417
|
+
*/
|
|
2418
|
+
value?: string | number | null;
|
|
2419
|
+
/**
|
|
2420
|
+
* Callback when the selection changes.
|
|
2421
|
+
*/
|
|
2422
|
+
onChange?: (value: string | number | null) => void;
|
|
2423
|
+
/**
|
|
2424
|
+
* Callback when a full item is selected.
|
|
2425
|
+
*/
|
|
2426
|
+
onItemSelect?: (item: Lookup | null) => void;
|
|
2427
|
+
/**
|
|
2428
|
+
* Placeholder text shown when no value is selected.
|
|
2429
|
+
*/
|
|
2430
|
+
placeholder?: string;
|
|
2431
|
+
/**
|
|
2432
|
+
* Whether the input is disabled.
|
|
2433
|
+
*/
|
|
2434
|
+
disabled?: boolean;
|
|
2435
|
+
/**
|
|
2436
|
+
* Whether to show error styling.
|
|
2437
|
+
*/
|
|
2438
|
+
hasError?: boolean;
|
|
2439
|
+
/**
|
|
2440
|
+
* Minimum number of characters before triggering search.
|
|
2441
|
+
* @default 1
|
|
2442
|
+
*/
|
|
2443
|
+
minQueryLength?: number;
|
|
2444
|
+
/**
|
|
2445
|
+
* Debounce delay in milliseconds.
|
|
2446
|
+
* @default 300
|
|
2447
|
+
*/
|
|
2448
|
+
debounceMs?: number;
|
|
2449
|
+
/**
|
|
2450
|
+
* Message shown when no results are found.
|
|
2451
|
+
*/
|
|
2452
|
+
emptyMessage?: string;
|
|
2453
|
+
/**
|
|
2454
|
+
* Whether to allow clearing the selection.
|
|
2455
|
+
*/
|
|
2456
|
+
clearable?: boolean;
|
|
2457
|
+
/**
|
|
2458
|
+
* Initial item to display (used when value is set but we need display text).
|
|
2459
|
+
*/
|
|
2460
|
+
initialItem?: Lookup;
|
|
2461
|
+
};
|
|
2462
|
+
declare const LookupSelect: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange" | "onSelect"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & {
|
|
2463
|
+
/**
|
|
2464
|
+
* Callback to search for items. Called when user types in the input.
|
|
2465
|
+
* Returns an array of Lookup items.
|
|
2466
|
+
*/
|
|
2467
|
+
onSearch: (query: string) => Promise<Lookup[]>;
|
|
2468
|
+
/**
|
|
2469
|
+
* The currently selected value (ID of the selected item).
|
|
2470
|
+
*/
|
|
2471
|
+
value?: string | number | null;
|
|
2472
|
+
/**
|
|
2473
|
+
* Callback when the selection changes.
|
|
2474
|
+
*/
|
|
2475
|
+
onChange?: (value: string | number | null) => void;
|
|
2476
|
+
/**
|
|
2477
|
+
* Callback when a full item is selected.
|
|
2478
|
+
*/
|
|
2479
|
+
onItemSelect?: (item: Lookup | null) => void;
|
|
2480
|
+
/**
|
|
2481
|
+
* Placeholder text shown when no value is selected.
|
|
2482
|
+
*/
|
|
2483
|
+
placeholder?: string;
|
|
2484
|
+
/**
|
|
2485
|
+
* Whether the input is disabled.
|
|
2486
|
+
*/
|
|
2487
|
+
disabled?: boolean;
|
|
2488
|
+
/**
|
|
2489
|
+
* Whether to show error styling.
|
|
2490
|
+
*/
|
|
2491
|
+
hasError?: boolean;
|
|
2492
|
+
/**
|
|
2493
|
+
* Minimum number of characters before triggering search.
|
|
2494
|
+
* @default 1
|
|
2495
|
+
*/
|
|
2496
|
+
minQueryLength?: number;
|
|
2497
|
+
/**
|
|
2498
|
+
* Debounce delay in milliseconds.
|
|
2499
|
+
* @default 300
|
|
2500
|
+
*/
|
|
2501
|
+
debounceMs?: number;
|
|
2502
|
+
/**
|
|
2503
|
+
* Message shown when no results are found.
|
|
2504
|
+
*/
|
|
2505
|
+
emptyMessage?: string;
|
|
2506
|
+
/**
|
|
2507
|
+
* Whether to allow clearing the selection.
|
|
2508
|
+
*/
|
|
2509
|
+
clearable?: boolean;
|
|
2510
|
+
/**
|
|
2511
|
+
* Initial item to display (used when value is set but we need display text).
|
|
2512
|
+
*/
|
|
2513
|
+
initialItem?: Lookup;
|
|
2514
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
2515
|
+
|
|
2377
2516
|
declare const searchTextInputVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
2378
2517
|
interface SearchTextInputProps extends Omit<React__default.ComponentProps<"input">, "size">, VariantProps<typeof searchTextInputVariants> {
|
|
2379
2518
|
hasError?: boolean;
|
|
@@ -2943,6 +3082,31 @@ type InlineSearchViewConfig<TApiEndpoints, TActionIds extends string, TSchema ex
|
|
|
2943
3082
|
* Union type for all inline view configs
|
|
2944
3083
|
*/
|
|
2945
3084
|
type InlineViewConfig<TApiEndpoints, TActionIds extends string> = InlineCreateViewConfig<TApiEndpoints, TActionIds, any, any> | InlineViewViewConfig<TApiEndpoints, TActionIds, any, any> | InlineSearchViewConfig<TApiEndpoints, TActionIds, any, any>;
|
|
3085
|
+
/**
|
|
3086
|
+
* Inline lookup configuration for the resource builder.
|
|
3087
|
+
* Uses a callback to search for lookup items.
|
|
3088
|
+
*/
|
|
3089
|
+
type InlineLookupConfig<TApiEndpoints> = {
|
|
3090
|
+
/**
|
|
3091
|
+
* Callback to search for lookup items.
|
|
3092
|
+
* @param args - Contains the query string and context with typed HTTP client
|
|
3093
|
+
* @returns Promise resolving to an array of Lookup items
|
|
3094
|
+
*/
|
|
3095
|
+
onSearch: (args: {
|
|
3096
|
+
query: string;
|
|
3097
|
+
context: NubaseContextData<TApiEndpoints>;
|
|
3098
|
+
}) => Promise<HttpResponse<Lookup[]>>;
|
|
3099
|
+
/**
|
|
3100
|
+
* Minimum number of characters before triggering search.
|
|
3101
|
+
* @default 1
|
|
3102
|
+
*/
|
|
3103
|
+
minQueryLength?: number;
|
|
3104
|
+
/**
|
|
3105
|
+
* Debounce delay in milliseconds before triggering search.
|
|
3106
|
+
* @default 300
|
|
3107
|
+
*/
|
|
3108
|
+
debounceMs?: number;
|
|
3109
|
+
};
|
|
2946
3110
|
/**
|
|
2947
3111
|
* Resource builder that enables chained, type-safe resource configuration.
|
|
2948
3112
|
*
|
|
@@ -2951,22 +3115,39 @@ type InlineViewConfig<TApiEndpoints, TActionIds extends string> = InlineCreateVi
|
|
|
2951
3115
|
* createResource("ticket")
|
|
2952
3116
|
* .withApiEndpoints(apiEndpoints)
|
|
2953
3117
|
* .withActions({ delete: { ... } })
|
|
3118
|
+
* .withLookup({ ... })
|
|
2954
3119
|
* .withViews({ create: { ... }, view: { ... } })
|
|
2955
3120
|
* ```
|
|
2956
3121
|
*/
|
|
2957
|
-
declare class ResourceBuilder<TId extends string, TApiEndpoints = never, TActions extends Record<string, InlineResourceActionConfig<TApiEndpoints>> = Record<string, never
|
|
3122
|
+
declare class ResourceBuilder<TId extends string, TApiEndpoints = never, TActions extends Record<string, InlineResourceActionConfig<TApiEndpoints>> = Record<string, never>, TLookup extends InlineLookupConfig<TApiEndpoints> | undefined = undefined> {
|
|
2958
3123
|
private config;
|
|
2959
3124
|
constructor(id: TId);
|
|
2960
3125
|
/**
|
|
2961
3126
|
* Configure API endpoints for this resource.
|
|
2962
3127
|
* This unlocks type-safe HTTP client in actions and views.
|
|
2963
3128
|
*/
|
|
2964
|
-
withApiEndpoints<T>(apiEndpoints: T): ResourceBuilder<TId, T, Record<string, never
|
|
3129
|
+
withApiEndpoints<T>(apiEndpoints: T): ResourceBuilder<TId, T, Record<string, never>, undefined>;
|
|
2965
3130
|
/**
|
|
2966
3131
|
* Configure actions for this resource.
|
|
2967
3132
|
* Actions can reference the API endpoints for type-safe HTTP calls.
|
|
2968
3133
|
*/
|
|
2969
|
-
withActions<T extends Record<string, InlineResourceActionConfig<TApiEndpoints>>>(actions: T): ResourceBuilder<TId, TApiEndpoints, T>;
|
|
3134
|
+
withActions<T extends Record<string, InlineResourceActionConfig<TApiEndpoints>>>(actions: T): ResourceBuilder<TId, TApiEndpoints, T, TLookup>;
|
|
3135
|
+
/**
|
|
3136
|
+
* Configure lookup behavior for this resource.
|
|
3137
|
+
* Enables this resource to be used as a lookup/reference target by other resources.
|
|
3138
|
+
*
|
|
3139
|
+
* @example
|
|
3140
|
+
* ```typescript
|
|
3141
|
+
* createResource("user")
|
|
3142
|
+
* .withApiEndpoints(apiEndpoints)
|
|
3143
|
+
* .withLookup({
|
|
3144
|
+
* endpoint: "lookupUsers",
|
|
3145
|
+
* minQueryLength: 1,
|
|
3146
|
+
* debounceMs: 300,
|
|
3147
|
+
* })
|
|
3148
|
+
* ```
|
|
3149
|
+
*/
|
|
3150
|
+
withLookup<T extends InlineLookupConfig<TApiEndpoints>>(lookup: T): ResourceBuilder<TId, TApiEndpoints, TActions, T>;
|
|
2970
3151
|
/**
|
|
2971
3152
|
* Configure views for this resource.
|
|
2972
3153
|
* Views can reference API endpoints for schemas and action keys for tableActions/rowActions.
|
|
@@ -2990,6 +3171,7 @@ declare class ResourceBuilder<TId extends string, TApiEndpoints = never, TAction
|
|
|
2990
3171
|
}>;
|
|
2991
3172
|
private setApiEndpoints;
|
|
2992
3173
|
private setActions;
|
|
3174
|
+
private setLookup;
|
|
2993
3175
|
}
|
|
2994
3176
|
/**
|
|
2995
3177
|
* Creates a new resource builder with the specified ID.
|
|
@@ -3018,7 +3200,7 @@ declare class ResourceBuilder<TId extends string, TApiEndpoints = never, TAction
|
|
|
3018
3200
|
* });
|
|
3019
3201
|
* ```
|
|
3020
3202
|
*/
|
|
3021
|
-
declare function createResource<TId extends string>(id: TId): ResourceBuilder<TId, never, Record<string, never
|
|
3203
|
+
declare function createResource<TId extends string>(id: TId): ResourceBuilder<TId, never, Record<string, never>, undefined>;
|
|
3022
3204
|
|
|
3023
3205
|
/**
|
|
3024
3206
|
* Factory function to create a ResourceCreateView with type inference.
|
|
@@ -3495,4 +3677,4 @@ declare function isServerNetworkError(error: unknown): error is ServerNetworkErr
|
|
|
3495
3677
|
*/
|
|
3496
3678
|
declare function getNetworkErrorMessage(error: unknown): string;
|
|
3497
3679
|
|
|
3498
|
-
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, 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 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, Dashboard, type DashboardDescriptor, type DashboardDragConfig, type DashboardGridConfig, type DashboardProps, DashboardRenderer, type DashboardRendererProps, type DashboardResizeConfig, DashboardWidget, type DashboardWidgetProps, DataGrid, 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 FillEvent, 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 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, 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, type NavItem, NavItems, NetworkError, type NetworkErrorOptions, NubaseApp, type NubaseAppProps, type NubaseContextData, type NubaseFrontendConfig, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type EnhancedPaginationProps as PaginationProps, type ParseErrorDetail, type ParsedKeybinding, 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 ResourceLink, 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, SchemaForm, SchemaFormBody, type SchemaFormBodyProps, SchemaFormButtonBar, type SchemaFormButtonBarProps, type SchemaFormConfiguration, type SchemaFormProps, SchemaFormValidationErrors, type SchemaFormValidationErrorsProps, SearchBar, type SearchBarProps, SearchTextInput, type SearchTextInputProps, SearchableTreeNavigator, type SearchableTreeNavigatorProps, Select, SelectCellFormatter, type SelectCellOptions, SelectColumn, type SelectHeaderRowEvent, type SelectOption, type SelectProps, type SelectRowEvent, type SelectionRange, type SeriesChartVariant, type SeriesWidgetDescriptor, ServerNetworkError, type SignupCredentials, type SortColumn, type SortDirection, type StandardViews, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, type TableWidgetDescriptor, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, type TextController, TextInput, type TextInputProps, type TextState, ThemeToggle, type ThemeToggleProps, Toast, ToastContainer, type ToastData, type ToastOptions, type ToastPosition, ToastProvider, type ToastType, ToggleGroup, 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 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, cleanupKeybindings, codeBlockCommand, codeCommand, commandRegistry, index as commands, createActionColumn, createCommand, createCommandAction, createCreateView, createDashboard, createHandlerAction, createResource, createResourceAction, createTypedApiClient, createViewFactory, createViewView, defaultKeybindings, defineCreateView, defineViewView, filterNavItems, flattenNavItems, getInitials, getLayout, getNetworkErrorMessage, getResourceLinkSearch, getWorkspaceFromRouter, groupActionsBySeparators, headingCommand, imageCommand, isClientNetworkError, isCommandAction, isHandlerAction, isNetworkError, isResourceLink, isServerNetworkError, italicCommand, keybindingManager, linkCommand, matchesKeySequence, normalizeEventKey, orderedListCommand, parseKeySequence, parseKeybinding, quoteCommand, registerKeybindings, renderCheckbox, renderHeaderCell, renderSortIcon, renderSortPriority, renderToggleGroup, renderValue, resolveMenuItem, resolveMenuItems, resolveResourceLink, resourceLink, showPromiseToast, showToast, strikethroughCommand, textEditor, unorderedListCommand, updateKeybindings, useActionExecutor, useChart, useComputedMetadata, useDialog, useHeaderRowSelection, useLayout, useModal, useNubaseMutation, useNubaseQuery, useResourceCreateMutation, useResourceDeleteMutation, useResourceInvalidation, useResourceSearchQuery, useResourceUpdateMutation, useResourceViewQuery, useRowSelection, useSchemaForm, useToast, useWorkspace, useWorkspaceOptional, workbenchOpenResourceOperation, workbenchOpenResourceOperationInModal, workbenchRunCommand, workbenchSetTheme, workbenchViewHistory };
|
|
3680
|
+
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, 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 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, Dashboard, type DashboardDescriptor, type DashboardDragConfig, type DashboardGridConfig, type DashboardProps, DashboardRenderer, type DashboardRendererProps, type DashboardResizeConfig, DashboardWidget, type DashboardWidgetProps, DataGrid, 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 FillEvent, 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, 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, type NavItem, NavItems, NetworkError, type NetworkErrorOptions, NubaseApp, type NubaseAppProps, type NubaseContextData, type NubaseFrontendConfig, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type EnhancedPaginationProps as PaginationProps, type ParseErrorDetail, type ParsedKeybinding, 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 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, SchemaForm, SchemaFormBody, type SchemaFormBodyProps, SchemaFormButtonBar, type SchemaFormButtonBarProps, type SchemaFormConfiguration, type SchemaFormProps, SchemaFormValidationErrors, type SchemaFormValidationErrorsProps, SearchBar, type SearchBarProps, SearchTextInput, type SearchTextInputProps, SearchableTreeNavigator, type SearchableTreeNavigatorProps, Select, SelectCellFormatter, type SelectCellOptions, SelectColumn, type SelectHeaderRowEvent, type SelectOption, type SelectProps, type SelectRowEvent, type SelectionRange, type SeriesChartVariant, type SeriesWidgetDescriptor, ServerNetworkError, type SignupCredentials, type SortColumn, type SortDirection, type StandardViews, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, type TableWidgetDescriptor, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, type TextController, TextInput, type TextInputProps, type TextState, ThemeToggle, type ThemeToggleProps, Toast, ToastContainer, type ToastData, type ToastOptions, type ToastPosition, ToastProvider, type ToastType, ToggleGroup, 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 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, cleanupKeybindings, codeBlockCommand, codeCommand, commandRegistry, index as commands, createActionColumn, createCommand, createCommandAction, createCreateView, createDashboard, createHandlerAction, createResource, createResourceAction, createTypedApiClient, createViewFactory, createViewView, defaultKeybindings, defineCreateView, defineViewView, filterNavItems, flattenNavItems, getInitials, getLayout, getNetworkErrorMessage, getResourceLinkSearch, getWorkspaceFromRouter, groupActionsBySeparators, headingCommand, imageCommand, isClientNetworkError, isCommandAction, isHandlerAction, isNetworkError, isResourceLink, isServerNetworkError, italicCommand, keybindingManager, linkCommand, lookupSelectVariants, matchesKeySequence, normalizeEventKey, orderedListCommand, parseKeySequence, parseKeybinding, quoteCommand, registerKeybindings, renderCheckbox, renderHeaderCell, renderSortIcon, renderSortPriority, renderToggleGroup, renderValue, resolveMenuItem, resolveMenuItems, resolveResourceLink, resourceLink, showPromiseToast, showToast, strikethroughCommand, textEditor, unorderedListCommand, updateKeybindings, useActionExecutor, useChart, useComputedMetadata, useDialog, useHeaderRowSelection, useLayout, useModal, useNubaseMutation, useNubaseQuery, useResourceCreateMutation, useResourceDeleteMutation, useResourceInvalidation, useResourceSearchQuery, useResourceUpdateMutation, useResourceViewQuery, useRowSelection, useSchemaForm, useToast, useWorkspace, useWorkspaceOptional, workbenchOpenResourceOperation, workbenchOpenResourceOperationInModal, workbenchRunCommand, workbenchSetTheme, workbenchViewHistory };
|