@skippr/live-agent-sdk 0.25.0 → 0.27.0
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 +2 -2
- package/dist/esm/lib-exports.js +417 -307
- package/dist/skippr-sdk.css +1 -1
- package/dist/skippr-sdk.js +139 -139
- package/dist/types/components/AgentStateBanner.d.ts +1 -0
- package/dist/types/components/LiveAgent.d.ts +2 -2
- package/dist/types/components/Logo.d.ts +5 -0
- package/dist/types/components/SessionAgenda.d.ts +2 -1
- package/dist/types/hooks/useAgentVoiceState.d.ts +1 -2
- package/package.json +1 -1
- package/dist/esm/logo-icon-cn8fyke6.png +0 -0
- package/dist/logo-icon-cn8fyke6.png +0 -0
- package/dist/types/components/ObservingBanner.d.ts +0 -1
- package/dist/types/lib/assets.d.ts +0 -1
package/README.md
CHANGED
|
@@ -193,7 +193,7 @@ Self-contained widget component. Renders a floating button that opens a sidebar
|
|
|
193
193
|
| `welcomeMessage` | `string` | — | Message shown on the minimized bubble |
|
|
194
194
|
| `startSessionLabel` | `string` | `'Talk to Skippr'` | Label for the start-session button |
|
|
195
195
|
| `autoFocusChat` | `boolean` | `true` | Whether the chat input auto-focuses when opened |
|
|
196
|
-
| `
|
|
196
|
+
| `showAgentStateBanner` | `boolean` | `true` | Whether to show the top-pinned status banner (talking / thinking / listening / observing) while connected |
|
|
197
197
|
|
|
198
198
|
### `useLiveAgent()`
|
|
199
199
|
|
|
@@ -232,7 +232,7 @@ All hooks must be called within `<LiveAgent>`.
|
|
|
232
232
|
| Hook | Returns | Description |
|
|
233
233
|
|------|---------|-------------|
|
|
234
234
|
| `useMediaControls()` | `{ isMuted, isScreenSharing, toggleMute, toggleScreenShare }` | Mic and screen share state and toggles |
|
|
235
|
-
| `useAgentVoiceState()` | `{ isSpeaking,
|
|
235
|
+
| `useAgentVoiceState()` | `{ state, isSpeaking, isListening }` | Agent voice activity state — `state` is the full agent state (`'listening' \| 'thinking' \| 'speaking' \| ...`) |
|
|
236
236
|
| `useIsLocalSpeaking()` | `boolean` | Whether the local user is currently speaking |
|
|
237
237
|
| `useElapsedSeconds(isRunning)` | `number` | Drift-safe elapsed seconds since the flag flipped to `true` |
|
|
238
238
|
|