@theoremjs/react 0.3.4-next.421.g4bac1c7 → 0.3.4-next.423.g9c79ac8

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
@@ -170,6 +170,7 @@ The profile, the keys, and the system prompt stay on the server. The browser rec
170
170
  | `conversation`, `conversationView`, `onConversationChange` | Resume a conversation that the server keeps, or open one you started. See below. |
171
171
  | `initialText` | The text that the composer starts with. The user can send it or change it. The component reads it once, when it mounts. |
172
172
  | `initialFiles` | The files that the composer starts with, staged to send. The component reads them once, when it mounts. |
173
+ | `initialVoice` | The voice notes that the composer starts with, staged to send. The component reads them once, when it mounts. |
173
174
  | `initialPending` | The messages that the composer starts with set aside: queued, stashed, or steering, as `createComposerPendingMessage` from `@theoremjs/agents/interface` makes them. The component reads them once, when it mounts. |
174
175
  | `chatRef` | Sends a message from your code. See below. |
175
176
  | `composer` | `false` leaves the composer out. The chat is the transcript alone, and your own control sends through `chatRef`. Default: `true`. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theoremjs/react",
3
- "version": "0.3.4-next.421.g4bac1c7",
3
+ "version": "0.3.4-next.423.g9c79ac8",
4
4
  "description": "React bindings for Theorem: headless hooks + transport, an Astryx chat UI, and a Web-standard server handler.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -60,8 +60,8 @@
60
60
  "@stylexjs/stylex": "0.19.0",
61
61
  "react": "^19.0.0",
62
62
  "react-dom": "^19.0.0",
63
- "@theoremjs/agents": "^0.3.4-next.421.g4bac1c7",
64
- "@theoremjs/web": "^0.3.4-next.421.g4bac1c7"
63
+ "@theoremjs/agents": "^0.3.4-next.423.g9c79ac8",
64
+ "@theoremjs/web": "^0.3.4-next.423.g9c79ac8"
65
65
  },
66
66
  "peerDependenciesMeta": {
67
67
  "@astryxdesign/core": {
@@ -87,6 +87,8 @@ export type TheoremChatProps = {
87
87
  initialText?: string;
88
88
  /** The files the composer starts with, staged to send. Read once, when the chat mounts. */
89
89
  initialFiles?: readonly File[];
90
+ /** The voice notes the composer starts with, staged to send. Read once, when the chat mounts. */
91
+ initialVoice?: readonly File[];
90
92
  /**
91
93
  * The messages the composer starts with set aside: queued, stashed or steering, as
92
94
  * `createComposerPendingMessage` makes them. Read once, when the chat mounts.
package/ui/TheoremChat.js CHANGED
@@ -53,7 +53,7 @@ function ChatComposerForChat({ chat, iface, placeholder, inputRef, }) {
53
53
  void chat.handleSendNow(message);
54
54
  } }));
55
55
  }
56
- function ChatBody({ transport, iface, placeholder, emptyState, density, maxWidth = DEFAULT_CHAT_MAX_WIDTH, scrollRef, trace, usage, className, style, conversation, conversationView, initialText, initialFiles, initialPending, onConversationChange, chatRef, composer: hasComposer = true, slots, onSlotsChange, context, pageTools, onTurnEvent, }) {
56
+ function ChatBody({ transport, iface, placeholder, emptyState, density, maxWidth = DEFAULT_CHAT_MAX_WIDTH, scrollRef, trace, usage, className, style, conversation, conversationView, initialText, initialFiles, initialVoice, initialPending, onConversationChange, chatRef, composer: hasComposer = true, slots, onSlotsChange, context, pageTools, onTurnEvent, }) {
57
57
  const t = useLabels();
58
58
  const chat = useTheoremChat({
59
59
  transport,
@@ -62,6 +62,7 @@ function ChatBody({ transport, iface, placeholder, emptyState, density, maxWidth
62
62
  conversationView,
63
63
  initialText,
64
64
  initialFiles,
65
+ initialVoice,
65
66
  initialPending,
66
67
  onConversationChange,
67
68
  slots,