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;
11mod row;
12pub mod shape;
13
14pub use cell::{DisplayCell, FormattedCell, TableCell};
15pub use generated_filters::{
16    FilterEntitiesExt, FilterSidebarData, FilterSidebarGroup, FilterSidebarItem, icon_from_name,
17};
18pub use gpui_table_schema::registry::TableId;
19pub use load::{TableDataLoader, TableLoader};
20pub use row::{
21    TableRowContextMenu, TableRowGeneratedContextMenu, TableRowMeta, TableRowStyle,
22    default_render_cell, default_render_row,
23};
24pub use shape::{
25    ComponentShapeFor, ComponentShapeMetadata, DeclaredComponentShape, McpInput, McpInputShape,
26    McpPrimitiveKind, McpRangeBoundKind,
27};
28
29/// Private module for macro internals. Not part of public API.
30#[doc(hidden)]
31pub mod __private {
32    pub use crate::load::LoadMoreDelegate;
33}