shared_ui/src/rich_text_formatting/domain/domain library
Domain layer for rich text formatting
Contains business logic, entities, repository interfaces, and use cases
Classes
- ApplyFormatUseCase
- Use case for applying formatting to text
- DetectActiveFormatsUseCase
- Use case for detecting which formats are active at cursor position
- FormatCompatibility
- Provides format compatibility checking based on Slack's rules.
- FormatResult
- Immutable entity representing the result of applying a text format.
- FormattedSegment
- Immutable entity representing a segment of formatted text.
- LinkData
- Immutable entity representing link data for hyperlink formatting.
- ParseFormattedTextUseCase
- Use case for parsing formatted text into segments
- RichTextRepository
- Repository interface for rich text formatting operations.
- ValidateLinkUseCase
- Use case for validating a URL for link formatting
Enums
- FormatType
- Enum representing different text formatting types supported by the rich text editor.
Extensions
- FormatTypeExtension on FormatType
- Extension providing icons and labels for format types