@bytexbyte/nxtlinq-ai-agent-ui-react-native-development 0.3.0 → 0.3.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.
@@ -1 +1 @@
1
- {"version":3,"file":"useVoiceTranscriptMessages.d.ts","sourceRoot":"","sources":["../../src/voice/useVoiceTranscriptMessages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,oBAAoB,EACrB,MAAM,8CAA8C,CAAC;AAGtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE,KAAK,uBAAuB,GAAG;IAC7B,WAAW,EAAE,MAAM,OAAO,EAAE,CAAC;IAC7B,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IAC3C,oBAAoB,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACtE,CAAC;AAWF,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,uBAAuB,EAC5B,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,MAAM,GAAG,IAAI;8BA6FnB,oBAAoB;wBA+BpB,cAAc;;EAwBzB"}
1
+ {"version":3,"file":"useVoiceTranscriptMessages.d.ts","sourceRoot":"","sources":["../../src/voice/useVoiceTranscriptMessages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,oBAAoB,EACrB,MAAM,8CAA8C,CAAC;AAGtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAExE,KAAK,uBAAuB,GAAG;IAC7B,WAAW,EAAE,MAAM,OAAO,EAAE,CAAC;IAC7B,WAAW,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IAC3C,oBAAoB,EAAE,CAAC,OAAO,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACtE,CAAC;AAWF,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,uBAAuB,EAC5B,eAAe,EAAE,eAAe,EAChC,cAAc,EAAE,MAAM,GAAG,IAAI;8BA6FnB,oBAAoB;wBA4BpB,cAAc;;EAwBzB"}
@@ -82,13 +82,9 @@ export function useVoiceTranscriptMessages(api, interactionMode, voiceSessionId)
82
82
  return;
83
83
  const text = event.text?.trim() ?? '';
84
84
  if (event.role === 'assistant') {
85
- if (event.interim) {
86
- if (text)
87
- upsertStreaming(text);
88
- return;
89
- }
85
+ // Keep one streaming bubble for the whole turn; finalize only in handleDone.
90
86
  if (text)
91
- finalizeAssistant(text);
87
+ upsertStreaming(text);
92
88
  return;
93
89
  }
94
90
  if (event.role === 'user' && !event.interim && text) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytexbyte/nxtlinq-ai-agent-ui-react-native-development",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Official React Native UI for nxtlinq AI Agent — drop-in assistant widget",
5
5
  "main": "dist/index.js",
6
6
  "react-native": "src/index.ts",
@@ -51,8 +51,8 @@
51
51
  }
52
52
  },
53
53
  "dependencies": {
54
- "@bytexbyte/nxtlinq-ai-agent-core-development": "^0.3.4",
55
- "@bytexbyte/nxtlinq-ai-agent-react-native-development": "^0.3.4"
54
+ "@bytexbyte/nxtlinq-ai-agent-core-development": "0.3.8",
55
+ "@bytexbyte/nxtlinq-ai-agent-react-native-development": "0.3.8"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@bytexbyte/nxtlinq-ai-agent-core-development": "workspace:^",
@@ -122,11 +122,8 @@ export function useVoiceTranscriptMessages(
122
122
  if (!isVoiceUiActive()) return;
123
123
  const text = event.text?.trim() ?? '';
124
124
  if (event.role === 'assistant') {
125
- if (event.interim) {
126
- if (text) upsertStreaming(text);
127
- return;
128
- }
129
- if (text) finalizeAssistant(text);
125
+ // Keep one streaming bubble for the whole turn; finalize only in handleDone.
126
+ if (text) upsertStreaming(text);
130
127
  return;
131
128
  }
132
129
  if (event.role === 'user' && !event.interim && text) {