@skippr/live-agent-sdk 0.89.0 → 0.90.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 +1 -0
- package/dist/esm/lib-exports.js +757 -492
- package/dist/skippr-sdk.css +1 -1
- package/dist/skippr-sdk.js +142 -142
- package/dist/types/components/LinkCard.d.ts +7 -0
- package/dist/types/components/LiveAgent.d.ts +2 -1
- package/dist/types/components/MessageList.d.ts +3 -1
- package/dist/types/components/VoiceBarLinkCard.d.ts +7 -0
- package/dist/types/context/LiveAgentContext.d.ts +1 -0
- package/dist/types/hooks/useLinkCard.d.ts +7 -0
- package/dist/types/hooks/useSession.d.ts +3 -2
- package/dist/types/lib/clipboard.d.ts +1 -0
- package/dist/types/lib/constants.d.ts +1 -0
- package/dist/types/lib-exports.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -245,6 +245,7 @@ Self-contained widget component. Renders a floating button that opens a sidebar
|
|
|
245
245
|
| `agentId` | `string` | — | Pin the widget to a specific module (pass that module's id). Omit to let the user pick from all your active modules at runtime. |
|
|
246
246
|
| `getUserToken` | `() => Promise<string>` | — | Async callback returning a freshly signed JWT for secret mode. The SDK calls it to bootstrap, again proactively before the bearer expires, and once more on a `401` to re-bootstrap. |
|
|
247
247
|
| `userToken` | `string` | — | Static signed JWT for secret mode (testing). Exchanged for a bearer token but can't be refreshed once expired. `getUserToken` takes precedence when both are set. |
|
|
248
|
+
| `userContext` | `Record<string, string \| number \| boolean>` | — | Background facts about the current user so the agent can tailor the conversation (e.g. `{ name: 'Alex', plan: 'pro', signedUpDaysAgo: 3, hasCompletedSetup: false }`). Must be a flat object of strings, numbers, or booleans - nested objects and arrays are not supported. |
|
|
248
249
|
| `variant` | `'floating' \| 'sidebar'` | `'floating'` | Widget display mode |
|
|
249
250
|
| `minimizable` | `boolean` | `true` | Whether the widget can be minimized |
|
|
250
251
|
| `defaultOpen` | `boolean` | `false` | Whether the panel starts open |
|