@deepagents/react-genai 7.7.2 → 7.8.1

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
@@ -24,7 +24,7 @@ Import `TheButton` directly from `@zukhruf/ui`. This package does not export it.
24
24
 
25
25
  ## The clock
26
26
 
27
- `AssistantSnapshot` renders a `TheButton` of `@zukhruf/ui`. `TheButton` gets its clock from a `ClockProvider` above it, and throws at its first render when there is none. `AssistantSnapshot` renders inside the tree of the host, so this package gives no clock. The tree has one clock, and the host gives it.
27
+ A component of this package that waits on a timer gets its clock from `useClock` of `@zukhruf/ui`, which throws at its first render when no `ClockProvider` is above it. These components wait: `AssistantSnapshot` (its `TheButton` and its copied label), `CodeBlockCopyButton`, `TipLine`, the copy buttons of a message, the spinner of a running tool, and `ChatComposer` (its `Composer` of `@deepagents/react-input` reads the clock for the time of a submission). They render inside the tree of the host, so this package gives no clock. The tree has one clock, and the host gives it.
28
28
 
29
29
  The root of the host gives `globalThis`:
30
30
 
@@ -65,4 +65,4 @@ Version 7.5.2 lists `@zukhruf/ui` as a dependency, with the range `^0.8.10`. An
65
65
  Do these steps:
66
66
 
67
67
  1. Add `@zukhruf/ui` to the dependencies of the host.
68
- 2. If the host renders `AssistantSnapshot`, put a `ClockProvider` above it, at the root of the host.
68
+ 2. Put a `ClockProvider` above the components of this package, at the root of the host.