@perspective-ai/sdk-react 1.14.1 → 1.15.0-pr-72-20260713145635
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 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -285,6 +285,10 @@ import { FloatBubble } from "@perspective-ai/sdk-react";
|
|
|
285
285
|
|
|
286
286
|
// Disable the welcome sequence entirely (no teaser, chime, or dot)
|
|
287
287
|
<FloatBubble researchId="your-research-id" teaser={{ enabled: false }} />
|
|
288
|
+
|
|
289
|
+
// Hide the teaser's × button (by default users can dismiss the teaser
|
|
290
|
+
// without opening the chat; a dismissal holds for the browser session)
|
|
291
|
+
<FloatBubble researchId="your-research-id" teaser={{ dismissible: false }} />
|
|
288
292
|
```
|
|
289
293
|
|
|
290
294
|
## Hook Options
|
|
@@ -298,7 +302,7 @@ interface UsePopupOptions {
|
|
|
298
302
|
theme?: "light" | "dark" | "system";
|
|
299
303
|
channel?: "TEXT" | "VOICE" | ["TEXT", "VOICE"]; // Interaction mode
|
|
300
304
|
welcomeMessage?: string; // Teaser text (float only)
|
|
301
|
-
teaser?: TeaserConfig; // Teaser on/off, delay (ms),
|
|
305
|
+
teaser?: TeaserConfig; // Teaser on/off, delay (ms), chime sound, and dismissibility (float only)
|
|
302
306
|
buttonText?: string; // Trigger button text (popup/slider)
|
|
303
307
|
params?: Record<string, string>;
|
|
304
308
|
brand?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perspective-ai/sdk-react",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0-pr-72-20260713145635",
|
|
4
4
|
"description": "React components for Perspective AI embed SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@perspective-ai/sdk": "^1.
|
|
59
|
+
"@perspective-ai/sdk": "^1.15.0-pr-72-20260713145635"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@testing-library/dom": "^10.4.1",
|