gpui_kit/content/mod.rs
1//! Prose and conversation: the two surfaces that draw content nobody in this
2//! crate wrote.
3//!
4//! Both take text from somewhere else — a document, a model, another person —
5//! which is what makes them different from the rest of the library. A button's
6//! label is written by the application; a Markdown document's contents are
7//! not, and may contain a tag, a destination, or an image reference that would
8//! act on the reader if anything here acted on it.
9//!
10//! So nothing here acts. Raw HTML is shown as the characters it is, links
11//! report rather than open, images are named rather than fetched, and code is
12//! set plain unless the host supplies the colour. `docs/content.md` states the
13//! whole posture, and the delivery vocabulary a conversation speaks.
14//!
15//! The two media surfaces keep the same posture from the other side. Nothing
16//! is fetched, so [`ImageViewer`] draws what the host handed it and names what
17//! it did not; nothing is played, so [`TransportBar`] reports every control
18//! and moves no head. A duration nobody knows is a state, not a zero.
19
20pub mod browser;
21pub mod code_view;
22pub mod diff_view;
23pub mod image_viewer;
24pub mod log_stream;
25pub mod markdown;
26pub mod message_list;
27pub mod transport;
28
29pub use browser::{BrowserPanel, ViewportState};
30pub use code_view::{CodeLine, CodeView, LineMark};
31pub use diff_view::{DiffFile, DiffHunk, DiffLine, DiffPresentation, DiffView, DiffViewEvent};
32pub use image_viewer::{FitMode, ImageFrame, ImageSize, ImageState, ImageViewer, ImageViewerEvent};
33pub use log_stream::{LogEntry, LogStream, LogStreamState};
34pub use markdown::{
35 Block, CellAlign, CodeBlock, CodeSpan, Document, ImageRequest, Inline, ListEntry, Markdown,
36 MarkdownEvent,
37};
38pub use message_list::{
39 Attachment, DeliveryState, Message, MessageBody, MessageList, Reaction, streaming_since,
40};
41pub use transport::{
42 BufferedRange, TrackStep, TransportBar, TransportDuration, TransportEvent, TransportState,
43};