@ai-react-markdown/core 1.4.5 → 1.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -325,15 +325,16 @@ function CustomCodeBlock({ children }: PropsWithChildren) {
325
325
 
326
326
  **Returns** `AIMarkdownRenderState<TConfig>`:
327
327
 
328
- | Field | Type | Description |
329
- | --------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
330
- | `streaming` | `boolean` | Whether content is being streamed. |
331
- | `fontSize` | `string` | Resolved CSS font-size value. |
332
- | `variant` | `AIMarkdownVariant` | Active typography variant. |
333
- | `colorScheme` | `AIMarkdownColorScheme` | Active color scheme. |
334
- | `documentId` | `string` | Stable id for the logical markdown document — caller-supplied or auto-generated via `useId()`. |
335
- | `clobberPrefix` | `string` | URI-safe id prefix derived from `documentId` (with MurmurHash3 Base62 shortening applied for >16-char ids), used by every clobberable HTML attribute (`id=…` / `href="#…"`). Read this from the render state rather than recomputing locally when writing components that emit anchors the prefix's exact byte form is not part of the stability contract and may shift across versions. |
336
- | `config` | `TConfig` | Active render configuration (merged with defaults). |
328
+ | Field | Type | Description |
329
+ | -------------------- | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
330
+ | `streaming` | `boolean` | Whether content is being streamed. |
331
+ | `fontSize` | `string` | Resolved CSS font-size value. |
332
+ | `variant` | `AIMarkdownVariant` | Active typography variant. |
333
+ | `colorScheme` | `AIMarkdownColorScheme` | Active color scheme. |
334
+ | `documentId` | `string` | Stable id for the logical markdown document — caller-supplied or auto-generated via `useId()`. |
335
+ | `documentIdExplicit` | `boolean` (optional) | Whether `documentId` was explicitly supplied by the caller (vs. auto-generated). Internal coordination signal `useDocumentRegistry` uses it so an auto-generated id never opts a standalone chunk into cross-chunk coordination. Most custom components can ignore this. |
336
+ | `clobberPrefix` | `string` | URI-safe id prefix derived from `documentId` (with MurmurHash3 → Base62 shortening applied for >16-char ids), used by every clobberable HTML attribute (`id=…` / `href="#…"`). Read this from the render state rather than recomputing locally when writing components that emit anchors — the prefix's exact byte form is not part of the stability contract and may shift across versions. |
337
+ | `config` | `TConfig` | Active render configuration (merged with defaults). |
337
338
 
338
339
  ### `useAIMarkdownMetadata<TMetadata>()`
339
340