Skip to main content

gpui_table_runtime/
lib.rs

1//! GPUI-facing runtime contracts for generated and manual table integrations.
2//!
3//! This crate owns row rendering traits, load-more traits, default cell
4//! rendering, filter-shape contracts, and generic generated-filter helpers.
5//! Built-in filter widget shape implementations live in `gpui-table-component`
6//! so this runtime crate can be used without depending on concrete components.
7
8mod cell;
9pub mod generated_filters;
10mod load;
11pub mod ordering;
12mod row;
13pub use ordering::{OrderedTableDelegate, TableRowSelection, set_table_ordering};
14pub mod shape;
15
16pub use cell::{DisplayCell, FormattedCell, TableCell};
17pub use generated_filters::{
18    FilterEntitiesExt, FilterSidebarData, FilterSidebarGroup, FilterSidebarItem, icon_from_name,
19};
20pub use gpui_table_schema::registry::TableId;
21pub use load::{TableDataLoader, TableLoader};
22pub use row::{
23    TableRowContextMenu, TableRowGeneratedContextMenu, TableRowMeta, TableRowStyle,
24    default_render_cell, default_render_row,
25};
26pub use shape::{
27    ComponentShapeFor, ComponentShapeMetadata, DeclaredComponentShape, McpInput, McpInputShape,
28    McpPrimitiveKind, McpRangeBoundKind,
29};
30
31/// Private module for macro internals. Not part of public API.
32#[doc(hidden)]
33pub mod __private {
34    pub use crate::load::LoadMoreDelegate;
35}