@skippr/live-agent-sdk 0.30.0 → 0.32.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 +18 -1
- package/dist/esm/lib-exports.js +946 -962
- package/dist/skippr-sdk.css +1 -1
- package/dist/skippr-sdk.js +123 -123
- package/dist/types/components/LauncherStatusPill.d.ts +1 -0
- package/dist/types/components/LiveAgent.d.ts +0 -1
- package/package.json +1 -1
- package/dist/types/components/AgentStateBanner.d.ts +0 -1
- package/dist/types/components/ui/tooltip.d.ts +0 -10
package/README.md
CHANGED
|
@@ -196,7 +196,6 @@ Self-contained widget component. Renders a floating button that opens a sidebar
|
|
|
196
196
|
| `autoFocusChat` | `boolean` | `true` | Whether the chat input auto-focuses when opened |
|
|
197
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
198
|
| `agentControls` | `{ highlight?: boolean }` | — | Opt-in agent capabilities (e.g. element highlighting). **Requires `captureMode: 'auto'`.** |
|
|
199
|
-
| `showAgentStateBanner` | `boolean` | `true` | Whether to show the top-pinned status banner (talking / thinking / listening / observing) while connected |
|
|
200
199
|
|
|
201
200
|
### `useLiveAgent()`
|
|
202
201
|
|
|
@@ -256,6 +255,24 @@ Available on `window.Skippr` when using the script tag bundle.
|
|
|
256
255
|
| `Skippr.destroy()` | Remove the widget from the page and clear auth tokens |
|
|
257
256
|
|
|
258
257
|
|
|
258
|
+
## Hiding elements from the agent
|
|
259
|
+
|
|
260
|
+
To hide an element (and everything inside it) from the agent in `captureMode: 'auto'`, add the `data-skippr-private` attribute:
|
|
261
|
+
|
|
262
|
+
```jsx
|
|
263
|
+
<div data-skippr-private>
|
|
264
|
+
<SensitiveContent />
|
|
265
|
+
</div>
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
```html
|
|
269
|
+
<section data-skippr-private>
|
|
270
|
+
<input type="password" />
|
|
271
|
+
</section>
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
Use this for sensitive content or anything you don't want the agent to see or reference.
|
|
275
|
+
|
|
259
276
|
## Support
|
|
260
277
|
|
|
261
278
|
For questions, technical support, or feedback:
|