@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 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: