Skip to content

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.

TypeScript
function ViewFence(props: ViewFenceProps): Element
Parameters
NameTypeDescription
propsViewFenceProps

ViewFenceProps.

Element

ui/src/views/TranscriptViews.tsx:37

ViewTurnScopeComponent#

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).

TypeScript
function ViewTurnScope(props: ViewTurnScopeProps): Element
Parameters
NameTypeDescription
propsViewTurnScopeProps

The ViewTurnScopeProps.

Element

ui/src/chat/transcript/view-scope.tsx:519

Functions#

createBlocksHighlighterFunction#

A code highlighter for the blocks' page.

TypeScript
function createBlocksHighlighter(): CodeHighlighter

ui/src/chat/blocks/highlighter.ts:11

Re-exports#

These names are documented on the entry point that owns them.