zidane-ui/ chat/ blocks
import { … } from 'zidane-ui/chat/blocks'ui/src/chat/blocks/index.ts
Components#
ViewFenceComponent#
A ```view fence: the view the host stored for its anchor (turn and fence index), or until there is one, the fence parsed on the client. A fence drawn as a draft keeps it until the stored view can draw at once (its record and its parts' chunks loaded), so the two swap in one commit, with no empty frame between them. Once swapped, it stays the stored view: a new version (a refresh, a source fetch) draws the one before until it loads, never the draft again. A stored view with no height yet holds its place with the fence drawn from its source.
function ViewFence(props: ViewFenceProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | ViewFenceProps |
|
Returns
ElementViewTurnScopeComponent#
A reply's turn for the view fences in it, and the unplaced codemode views of its exchange above it when it is the final reply (docs/VIEWS.md, Life of a view).
function ViewTurnScope(props: ViewTurnScopeProps): ElementParameters
| Name | Type | Description |
|---|---|---|
| props | ViewTurnScopeProps | The |
Returns
ElementFunctions#
createBlocksHighlighterFunction#
A code highlighter for the blocks' page.
function createBlocksHighlighter(): CodeHighlighterReturns
Re-exports#
These names are documented on the entry point that owns them.