File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 < body >
1818 < script >
1919 window . chatbotConfig = {
20- api_base : "http://localhost:8080" ,
21- assistant_id : "2291436907428577280" ,
20+ assistant_id : "2289465470006329344" ,
2221 token :
23- "e691ea71f5c99bf9e4a53bbd724436ca441d3bf5be1a45a7e7b840ae18d1dfbb" ,
24- // assistant_id: "2139456643765633024",
25- // token:
26- // "5e04b962dfd988ca0f4ac9e097f17841ebf34d7e38c50297e245c12bddce2117",
22+ "rpdbca387c4e5cb8fd4cbcaeb194389216959c14dcaee4069d76c52093f5f571171" ,
2723 user : {
2824 id : "demo-user" ,
2925 name : "Guest" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @rapidaai/web-widget" ,
3- "version" : " 1.1 .0" ,
3+ "version" : " 1.2 .0" ,
44 "description" : " Rapida AI chat widget — embeddable voice + text AI agent" ,
55 "main" : " dist/app.min.js" ,
66 "files" : [
Original file line number Diff line number Diff line change @@ -68,13 +68,9 @@ const TextInput: FC<{
6868 register,
6969 handleSubmit,
7070 reset,
71- watch,
7271 formState : { isValid } ,
7372 } = useForm ( { mode : "onChange" } ) ;
7473
75- const messageValue = watch ( "message" , "" ) ;
76- const hasContent = Boolean ( messageValue && messageValue . trim ( ) . length > 0 ) ;
77-
7874 const onSubmitForm = ( data : any ) => {
7975 if ( isValid ) {
8076 onSendMessage ( data . message ) ;
@@ -121,10 +117,9 @@ const TextInput: FC<{
121117
122118 { /* Action buttons */ }
123119 < div className = "rpd-input__actions" >
124- { hasContent ? (
120+ { isValid ? (
125121 < button
126122 className = "rpd-action-btn rpd-action-btn--primary"
127- disabled = { ! isValid }
128123 type = "submit"
129124 aria-label = "Send"
130125 >
@@ -147,9 +142,18 @@ const TextInput: FC<{
147142 < AudioLines width = "14" height = "14" />
148143 ) }
149144 </ button >
150- ) : null }
145+ ) : (
146+ < button
147+ className = "rpd-action-btn rpd-action-btn--primary"
148+ type = "submit"
149+ disabled
150+ aria-label = "Send"
151+ >
152+ < Send width = "14" height = "14" />
153+ </ button >
154+ ) }
151155
152- { voiceEnabled && ( isConnected || isConnecting ) && (
156+ { ( isConnected || isConnecting ) && (
153157 < button
154158 className = "rpd-action-btn rpd-action-btn--danger"
155159 type = "button"
Original file line number Diff line number Diff line change @@ -704,7 +704,7 @@ body.rpd-body--docked-left {
704704.rpd-input {
705705 display : flex;
706706 flex-direction : row;
707- align-items : flex-end ;
707+ align-items : center ;
708708 background : var (--rpd-ui-01 );
709709 border : 1px solid var (--rpd-border-subtle );
710710 flex-shrink : 0 ;
You can’t perform that action at this time.
0 commit comments