@deepagents/react-genai 7.7.1 → 7.8.0

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
@@ -8,7 +8,7 @@ React components that render AI SDK chat flows, trajectories, tools, citations,
8
8
  npm i @deepagents/react-genai @zukhruf/ui @zukhruf/shadcn
9
9
  ```
10
10
 
11
- The peer dependencies are `@zukhruf/ui`, `react` 19 and `react-dom` 19. Install `@zukhruf/ui` yourself. npm does not install it for you when `legacy-peer-deps` is set.
11
+ The peer dependencies are `@zukhruf/shadcn`, `@zukhruf/ui`, `react` 19 and `react-dom` 19. Install `@zukhruf/shadcn` and `@zukhruf/ui` yourself. npm does not install them for you when `legacy-peer-deps` is set.
12
12
 
13
13
  ## Stylesheets
14
14
 
@@ -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, and the spinner of a running tool. 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.