@theoremjs/react 0.3.5-next.987.ge2681d2 → 0.3.5-next.988.gb2d8ffd
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/package.json +3 -3
- package/ui/ChatComposerBar.js +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theoremjs/react",
|
|
3
|
-
"version": "0.3.5-next.
|
|
3
|
+
"version": "0.3.5-next.988.gb2d8ffd",
|
|
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.5-next.
|
|
64
|
-
"@theoremjs/web": "^0.3.5-next.
|
|
63
|
+
"@theoremjs/agents": "^0.3.5-next.988.gb2d8ffd",
|
|
64
|
+
"@theoremjs/web": "^0.3.5-next.988.gb2d8ffd"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
67
|
"@astryxdesign/core": {
|
package/ui/ChatComposerBar.js
CHANGED
|
@@ -286,8 +286,8 @@ function composerTray(t, props, stagedFiles, onVoiceRemove) {
|
|
|
286
286
|
* The text field, with the send menu's shortcuts while it has focus: each acts only when the
|
|
287
287
|
* menu offers it. `field` wires it up when it stands outside Astryx's composer (the row layout).
|
|
288
288
|
*/
|
|
289
|
-
function ComposerTextInput({ editorRef, handleRef, menuActions, onMenuAction, field, }) {
|
|
290
|
-
return (_jsx(ChatComposerInput, { ref: editorRef, handleRef: handleRef, ...(field
|
|
289
|
+
function ComposerTextInput({ editorRef, handleRef, menuActions, onMenuAction, onFiles, field, }) {
|
|
290
|
+
return (_jsx(ChatComposerInput, { ref: editorRef, handleRef: handleRef, onFiles: onFiles, ...(field
|
|
291
291
|
? {
|
|
292
292
|
value: field.value,
|
|
293
293
|
onChange: field.onChange,
|
|
@@ -394,6 +394,8 @@ function useComposerParts(props) {
|
|
|
394
394
|
placeholder,
|
|
395
395
|
// why: A profile that takes no text has no text field (false, not null: null gets Astryx's default one).
|
|
396
396
|
input: inputs.text && (_jsx(ComposerTextInput, { editorRef: editorRef, handleRef: props.inputRef, menuActions: actions.menuActions, onMenuAction: props.onMenuAction,
|
|
397
|
+
// why: A pasted or dropped file goes through the same staging and limits as the attach button.
|
|
398
|
+
onFiles: inputs.attachments ? stageFiles : undefined,
|
|
397
399
|
// why: The row draws its own surface, outside Astryx's ChatComposer, so the field takes its value here.
|
|
398
400
|
field: props.layout === 'row'
|
|
399
401
|
? {
|