@sidebandai/sideband-react 1.4.6 → 1.4.7-rc.1
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 +16 -4
- package/dist/{SurveyRenderer-BhNcL0CG.js → SurveyRenderer-i_3cbRr9.js} +405 -350
- package/dist/components/SurveyQuestionView.d.ts.map +1 -1
- package/dist/components/SurveySnackbar.d.ts.map +1 -1
- package/dist/context/SidebandProvider.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/preview.d.ts +1 -1
- package/dist/preview.d.ts.map +1 -1
- package/dist/preview.js +13 -10
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -107,11 +107,9 @@ If your site sends a Content Security Policy, allow the Sideband API origin in
|
|
|
107
107
|
`connect-src`. Without it, the browser blocks every send: no events arrive and
|
|
108
108
|
no pulses show.
|
|
109
109
|
|
|
110
|
-
|
|
|
110
|
+
| Channel | `connect-src` | `img-src` (pulse images) |
|
|
111
111
|
| --- | --- | --- |
|
|
112
|
-
| Production
|
|
113
|
-
| Development (`syncEndpoint: 'dev'`) | `https://api.dev-sideband.ai` | `https://images-dev.sideband.ai` |
|
|
114
|
-
| A custom `baseUrl` | That URL's origin, and the final origin if it redirects | That environment's image host |
|
|
112
|
+
| Development or Production | `https://api.sideband.ai` | `https://images.sideband.ai` |
|
|
115
113
|
|
|
116
114
|
If your policy restricts images, `img-src` must allow `data:` (the close
|
|
117
115
|
button's icon is a `data:` image in the stylesheet) and the image host above.
|
|
@@ -375,6 +373,20 @@ Switching from user A to user B sends `system_logout` for A, then `system_login`
|
|
|
375
373
|
for B, with the same timestamp. Repeating the same ID, clearing an ID that is
|
|
376
374
|
not set, and restoring the stored ID on a page load send nothing.
|
|
377
375
|
|
|
376
|
+
## Feedback bar
|
|
377
|
+
|
|
378
|
+
When a Pulse uses a toolbar, its first two-answer yes/no question appears in a
|
|
379
|
+
bottom bar. Selecting an answer opens the survey and follows the authored route.
|
|
380
|
+
For a single-question survey, route the answers directly to completion in the
|
|
381
|
+
Pulse. **Not Now** declines an unanswered Pulse; closing after an answer sends
|
|
382
|
+
a partial response.
|
|
383
|
+
|
|
384
|
+
In `SidebandProvider`'s `config`, use `barPosition: 'top'` to change the edge.
|
|
385
|
+
`sentimentPresentation: 'bar'` selects a bar for a Pulse with no presentation
|
|
386
|
+
specified; an explicit Pulse presentation or root `isSnackBar` flag takes
|
|
387
|
+
precedence. `presentSimulatedPulse` and `mountSidebandPulsePreview` also accept
|
|
388
|
+
these options per preview.
|
|
389
|
+
|
|
378
390
|
## Other options
|
|
379
391
|
|
|
380
392
|
The SDK sends events in batches, by default about once a second. Set
|