@skippr/live-agent-sdk 0.27.0 → 0.29.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 +5 -2
- package/dist/esm/lib-exports.js +1457 -302
- package/dist/skippr-sdk.js +153 -144
- package/dist/types/capture/a11yTree.d.ts +11 -0
- package/dist/types/capture/a11yUtils.d.ts +6 -0
- package/dist/types/capture/domEvents.d.ts +31 -0
- package/dist/types/capture/snapdom.d.ts +2 -0
- package/dist/types/components/DomCapture.d.ts +1 -0
- package/dist/types/components/HighlightOverlay.d.ts +1 -0
- package/dist/types/components/LiveAgent.d.ts +10 -2
- package/dist/types/components/MeetingControls.d.ts +2 -1
- package/dist/types/context/LiveAgentContext.d.ts +6 -0
- package/dist/types/hooks/useAgentVoiceState.d.ts +1 -1
- package/dist/types/hooks/useSession.d.ts +4 -1
- package/dist/types/lib/constants.d.ts +7 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -7,7 +7,8 @@ Embed an autonomous product specialist that sees, speaks, and acts in real time
|
|
|
7
7
|
## Key Features
|
|
8
8
|
|
|
9
9
|
- **Real-time voice** — two-way audio with live transcription
|
|
10
|
-
- **
|
|
10
|
+
- **Capture modes** — `screenshare` (user shares screen) or `auto` (DOM capture)
|
|
11
|
+
- **Agent controls** — opt-in capabilities like element highlighting (auto mode only)
|
|
11
12
|
- **Chat + transcript** — text messaging with voice transcripts merged into one thread
|
|
12
13
|
- **Session agenda** — structured phases with progress tracking
|
|
13
14
|
- **Flexible auth** — email OTP (direct auth) or backend-signed JWT (secret mode)
|
|
@@ -193,6 +194,8 @@ Self-contained widget component. Renders a floating button that opens a sidebar
|
|
|
193
194
|
| `welcomeMessage` | `string` | — | Message shown on the minimized bubble |
|
|
194
195
|
| `startSessionLabel` | `string` | `'Talk to Skippr'` | Label for the start-session button |
|
|
195
196
|
| `autoFocusChat` | `boolean` | `true` | Whether the chat input auto-focuses when opened |
|
|
197
|
+
| `captureMode` | `'screenshare' \| 'auto'` | `'screenshare'` | How the agent sees the page - `'screenshare'` prompts the user to share, `'auto'` uses DOM capture (no permission prompt) |
|
|
198
|
+
| `agentControls` | `{ highlight?: boolean }` | — | Opt-in agent capabilities (e.g. element highlighting). **Requires `captureMode: 'auto'`.** |
|
|
196
199
|
| `showAgentStateBanner` | `boolean` | `true` | Whether to show the top-pinned status banner (talking / thinking / listening / observing) while connected |
|
|
197
200
|
|
|
198
201
|
### `useLiveAgent()`
|
|
@@ -248,7 +251,7 @@ Available on `window.Skippr` when using the script tag bundle.
|
|
|
248
251
|
|
|
249
252
|
| Method | Description |
|
|
250
253
|
|--------|-------------|
|
|
251
|
-
| `Skippr.initialize(config)` | Mount the widget. Accepts `agentId`, `appKey`, `userToken`, `position`, `variant`, `minimizable`. |
|
|
254
|
+
| `Skippr.initialize(config)` | Mount the widget. Accepts `agentId`, `appKey`, `userToken`, `position`, `variant`, `minimizable`, `captureMode`, `agentControls`. |
|
|
252
255
|
| `Skippr.logout()` | Clear stored auth token and show the login form (direct auth mode) |
|
|
253
256
|
| `Skippr.destroy()` | Remove the widget from the page and clear auth tokens |
|
|
254
257
|
|