@ateam-ai-mobile/ui 0.1.3 → 0.1.5

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/dist/index.d.mts CHANGED
@@ -177,8 +177,10 @@ declare const useLightboxStore: zustand.UseBoundStore<zustand.StoreApi<LightboxS
177
177
  interface Props {
178
178
  visible: boolean;
179
179
  onClose: () => void;
180
+ /** Optional skill to hand the mic to on connect (voice /session → takeMic). */
181
+ skillSlug?: string;
180
182
  }
181
- declare function VoiceCallSheet({ visible, onClose }: Props): react_jsx_runtime.JSX.Element | null;
183
+ declare function VoiceCallSheet({ visible, onClose, skillSlug }: Props): react_jsx_runtime.JSX.Element | null;
182
184
 
183
185
  interface TranscriptEntry {
184
186
  role: 'user' | 'ai' | 'tool';
@@ -186,7 +188,9 @@ interface TranscriptEntry {
186
188
  ts: number;
187
189
  }
188
190
  type CallState = 'idle' | 'connecting' | 'connected' | 'error';
189
- declare function useVoiceCall(): {
191
+ declare function useVoiceCall({ skillSlug }?: {
192
+ skillSlug?: string;
193
+ }): {
190
194
  callState: CallState;
191
195
  sessionId: string | null;
192
196
  error: string | null;
@@ -194,7 +198,7 @@ declare function useVoiceCall(): {
194
198
  aiPartial: string;
195
199
  userPartial: string;
196
200
  muted: boolean;
197
- startCall: () => void;
201
+ startCall: () => Promise<void>;
198
202
  stopCall: () => void;
199
203
  toggleMute: () => void;
200
204
  handleWebViewMessage: (event: any) => void;
package/dist/index.d.ts CHANGED
@@ -177,8 +177,10 @@ declare const useLightboxStore: zustand.UseBoundStore<zustand.StoreApi<LightboxS
177
177
  interface Props {
178
178
  visible: boolean;
179
179
  onClose: () => void;
180
+ /** Optional skill to hand the mic to on connect (voice /session → takeMic). */
181
+ skillSlug?: string;
180
182
  }
181
- declare function VoiceCallSheet({ visible, onClose }: Props): react_jsx_runtime.JSX.Element | null;
183
+ declare function VoiceCallSheet({ visible, onClose, skillSlug }: Props): react_jsx_runtime.JSX.Element | null;
182
184
 
183
185
  interface TranscriptEntry {
184
186
  role: 'user' | 'ai' | 'tool';
@@ -186,7 +188,9 @@ interface TranscriptEntry {
186
188
  ts: number;
187
189
  }
188
190
  type CallState = 'idle' | 'connecting' | 'connected' | 'error';
189
- declare function useVoiceCall(): {
191
+ declare function useVoiceCall({ skillSlug }?: {
192
+ skillSlug?: string;
193
+ }): {
190
194
  callState: CallState;
191
195
  sessionId: string | null;
192
196
  error: string | null;
@@ -194,7 +198,7 @@ declare function useVoiceCall(): {
194
198
  aiPartial: string;
195
199
  userPartial: string;
196
200
  muted: boolean;
197
- startCall: () => void;
201
+ startCall: () => Promise<void>;
198
202
  stopCall: () => void;
199
203
  toggleMute: () => void;
200
204
  handleWebViewMessage: (event: any) => void;