@sidebandai/sideband-web 1.4.5-rc.1 → 1.4.5-rc.3
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 +259 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +178 -178
- package/dist/sideband.iife.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -33,6 +33,223 @@ Replace `1.0.0` with your application's version, not the SDK version.
|
|
|
33
33
|
Sideband presents available Pulses automatically. Styles are included; no
|
|
34
34
|
stylesheet import is required.
|
|
35
35
|
|
|
36
|
+
## Content Security Policy
|
|
37
|
+
|
|
38
|
+
If your site sends a Content Security Policy, allow the Sideband API origin in
|
|
39
|
+
`connect-src`. Without it, the browser blocks every send: no events arrive and
|
|
40
|
+
no pulses show.
|
|
41
|
+
|
|
42
|
+
| Endpoint | `connect-src` | `img-src` (pulse images) |
|
|
43
|
+
| --- | --- | --- |
|
|
44
|
+
| Production (default) | `https://api.sideband.ai` | `https://images.sideband.ai` |
|
|
45
|
+
| Development (`syncEndpoint: 'dev'`) | `https://api.dev-sideband.ai` | `https://images-dev.sideband.ai` |
|
|
46
|
+
| A custom `baseUrl` | That URL's origin, and the final origin if it redirects | That environment's image host |
|
|
47
|
+
|
|
48
|
+
The SDK also needs these, if your policy restricts them:
|
|
49
|
+
|
|
50
|
+
- `style-src` must allow inline styles (`'unsafe-inline'`). The SDK adds its
|
|
51
|
+
styles in a `<style>` element inside its shadow root, and it does not accept a
|
|
52
|
+
nonce. Without it, pulses show unstyled. If your policy has `style-src-elem`,
|
|
53
|
+
that directive applies instead, so it needs `'unsafe-inline'` too.
|
|
54
|
+
- If that directive already has a nonce (`'nonce-…'`) or a hash (`'sha256-…'`),
|
|
55
|
+
the browser ignores `'unsafe-inline'` in it. The SDK's styles are then
|
|
56
|
+
blocked, and pulses show unstyled; answering still works. The SDK cannot use
|
|
57
|
+
your nonce today. Do not remove the nonce or hash from your policy for
|
|
58
|
+
Sideband; contact Sideband instead.
|
|
59
|
+
- `img-src` must allow `data:` and the image host above. The close button's
|
|
60
|
+
icon is a `data:` image. Without the image host, a pulse shows without its
|
|
61
|
+
image; it still works.
|
|
62
|
+
|
|
63
|
+
For production, a policy with only these Sideband parts looks like this:
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
script-src 'self';
|
|
67
|
+
connect-src 'self' https://api.sideband.ai;
|
|
68
|
+
img-src 'self' data: https://images.sideband.ai;
|
|
69
|
+
style-src 'self' 'unsafe-inline'
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
The SDK does not support Trusted Types (`require-trusted-types-for 'script'`).
|
|
73
|
+
It sets its icons with `innerHTML`, so the pulse sheet cannot open and `onError`
|
|
74
|
+
receives a `TrustedHTML` error. A site-wide `default` Trusted Types policy that
|
|
75
|
+
accepts any HTML makes it work, but removes that protection for your whole page.
|
|
76
|
+
|
|
77
|
+
A blocked send appears in the browser console as a Content Security Policy
|
|
78
|
+
error, and `onError` receives a network error. These rules, including the nonce,
|
|
79
|
+
hash and Trusted Types cases, were checked in Chrome against the built package
|
|
80
|
+
with `npm run test:csp` in the SDK repository.
|
|
81
|
+
|
|
82
|
+
## Consent
|
|
83
|
+
|
|
84
|
+
Your app decides when Sideband runs. If Sideband needs consent on your site,
|
|
85
|
+
call `Sideband.configure` only after the user gives it, and call
|
|
86
|
+
`Sideband.destroy()` when the user withdraws it. Which consent category applies
|
|
87
|
+
is your decision; this README does not give legal advice.
|
|
88
|
+
|
|
89
|
+
A user who declines sends no events and sees no pulses. Before `configure`, and
|
|
90
|
+
after `destroy`, calls such as `Sideband.track` throw, so route them through one
|
|
91
|
+
wrapper that checks consent first (see also
|
|
92
|
+
[Events before Sideband starts](#events-before-sideband-starts)):
|
|
93
|
+
|
|
94
|
+
```ts
|
|
95
|
+
import { Sideband } from '@sidebandai/sideband-web'
|
|
96
|
+
|
|
97
|
+
let started = false
|
|
98
|
+
|
|
99
|
+
export function startSideband() {
|
|
100
|
+
if (started) return
|
|
101
|
+
started = true
|
|
102
|
+
Sideband.configure({ apiKey: 'YOUR_API_KEY', appVersion: '1.0.0' })
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function stopSideband() {
|
|
106
|
+
if (!started) return
|
|
107
|
+
started = false
|
|
108
|
+
Sideband.destroy() // events not yet sent are discarded
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function track(eventName: string, metadata?: Record<string, string>) {
|
|
112
|
+
if (started) Sideband.track(eventName, metadata)
|
|
113
|
+
}
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
The SDK has no consent setting of its own.
|
|
117
|
+
|
|
118
|
+
## Server-rendered apps and React 18
|
|
119
|
+
|
|
120
|
+
Start Sideband in the browser only, once per page load. With React 18 and server
|
|
121
|
+
rendering, use this package (the React package needs React 19). Load it from an
|
|
122
|
+
effect, so the server never imports it, and guard the start at module level, so
|
|
123
|
+
StrictMode's second effect run does not start it again:
|
|
124
|
+
|
|
125
|
+
```tsx
|
|
126
|
+
import { useEffect } from 'react'
|
|
127
|
+
|
|
128
|
+
let starting: Promise<void> | null = null
|
|
129
|
+
|
|
130
|
+
function startSidebandOnce() {
|
|
131
|
+
starting ??= import('@sidebandai/sideband-web').then(({ Sideband }) => {
|
|
132
|
+
Sideband.configure({ apiKey: 'YOUR_API_KEY', appVersion: '1.0.0' })
|
|
133
|
+
})
|
|
134
|
+
return starting
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export function SidebandStarter() {
|
|
138
|
+
useEffect(() => {
|
|
139
|
+
void startSidebandOnce()
|
|
140
|
+
}, [])
|
|
141
|
+
return null
|
|
142
|
+
}
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Render `<SidebandStarter />` once, near the root. Do not call `Sideband.destroy()`
|
|
146
|
+
in the effect cleanup: StrictMode runs the cleanup once in development, and a
|
|
147
|
+
second `configure` would send a second `system_app_launch`. If you gate on
|
|
148
|
+
consent, call the starter only after consent is given.
|
|
149
|
+
|
|
150
|
+
## Events before Sideband starts
|
|
151
|
+
|
|
152
|
+
Your app can call `track` before Sideband is running: before consent, or while
|
|
153
|
+
`import()` is still loading the SDK. Until `configure` runs, `Sideband.track`,
|
|
154
|
+
`tagUser`, and `untagUser` throw. The SDK does not queue these calls, so your
|
|
155
|
+
wrapper decides what happens to them. There are two honest choices:
|
|
156
|
+
|
|
157
|
+
- **Drop them on purpose.** The consent wrapper above does this. An event from
|
|
158
|
+
a user who has not consented is never sent, now or later.
|
|
159
|
+
- **Hold a short list while the SDK loads, and send it after `configure`.**
|
|
160
|
+
Apply the current user ID first, so held events count for the signed-in
|
|
161
|
+
user. Cap the list. Hold only after your app has decided to start Sideband,
|
|
162
|
+
not before consent.
|
|
163
|
+
|
|
164
|
+
This wrapper does both. Calls before `startSideband()` are dropped; calls while
|
|
165
|
+
the SDK loads are held, up to 50. `stopSideband()` handles withdrawal, even
|
|
166
|
+
while the SDK is still loading:
|
|
167
|
+
|
|
168
|
+
```ts
|
|
169
|
+
type Sdk = typeof import('@sidebandai/sideband-web').Sideband
|
|
170
|
+
type Metadata = Record<string, string>
|
|
171
|
+
|
|
172
|
+
const MAX_HELD = 50
|
|
173
|
+
let sdk: Sdk | null = null
|
|
174
|
+
let loading: Promise<void> | null = null
|
|
175
|
+
let generation = 0 // bumped by every start and stop
|
|
176
|
+
let userId: string | null = null
|
|
177
|
+
let held: { name: string; metadata?: Metadata }[] = []
|
|
178
|
+
|
|
179
|
+
export function startSideband() {
|
|
180
|
+
if (loading) return loading
|
|
181
|
+
const current = ++generation
|
|
182
|
+
loading = import('@sidebandai/sideband-web').then(({ Sideband }) => {
|
|
183
|
+
if (current !== generation) return // stopped while loading
|
|
184
|
+
Sideband.configure({ apiKey: 'YOUR_API_KEY', appVersion: '1.0.0' })
|
|
185
|
+
// The SDK restores the last tagged ID from localStorage. Set the current
|
|
186
|
+
// one before sending held events.
|
|
187
|
+
if (userId !== null) Sideband.tagUser(userId)
|
|
188
|
+
else Sideband.untagUser()
|
|
189
|
+
for (const event of held) Sideband.track(event.name, event.metadata)
|
|
190
|
+
held = []
|
|
191
|
+
sdk = Sideband
|
|
192
|
+
}).catch((error: unknown) => {
|
|
193
|
+
if (current === generation) loading = null // the next start retries
|
|
194
|
+
throw error
|
|
195
|
+
})
|
|
196
|
+
return loading
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export function stopSideband() {
|
|
200
|
+
generation++
|
|
201
|
+
loading = null
|
|
202
|
+
held = []
|
|
203
|
+
sdk?.destroy() // events not yet sent are discarded
|
|
204
|
+
sdk = null
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export function identify(id: string | null) {
|
|
208
|
+
userId = id
|
|
209
|
+
if (!sdk) return
|
|
210
|
+
if (id !== null) sdk.tagUser(id)
|
|
211
|
+
else sdk.untagUser()
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export function track(name: string, metadata?: Metadata) {
|
|
215
|
+
if (sdk) sdk.track(name, metadata)
|
|
216
|
+
else if (loading && held.length < MAX_HELD) held.push({ name, metadata })
|
|
217
|
+
}
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
In the React 18 example, call `startSideband()` from the effect in place of
|
|
221
|
+
`startSidebandOnce()`; repeated calls share one start. Call `stopSideband()`
|
|
222
|
+
when the user withdraws consent, and `startSideband()` again if they give it
|
|
223
|
+
back. Withdrawal is a consent change, not effect cleanup, so the StrictMode
|
|
224
|
+
note above still applies.
|
|
225
|
+
|
|
226
|
+
If the import or `configure` fails, `startSideband()` rejects with that error,
|
|
227
|
+
so catch it, and the next `startSideband()` retries. Events held before the
|
|
228
|
+
failure are kept, still capped at 50, and sent after a later start succeeds.
|
|
229
|
+
Events tracked between the failure and the next start are dropped.
|
|
230
|
+
|
|
231
|
+
## Language
|
|
232
|
+
|
|
233
|
+
The SDK reports the browser's language (for example `de` from `de-AT`). The
|
|
234
|
+
server shows a pulse only when that language matches the pulse's base language
|
|
235
|
+
or one of its published translations. If nothing matches, the pulse is not
|
|
236
|
+
shown, even without a language rule in its targeting. There is no fallback
|
|
237
|
+
language today.
|
|
238
|
+
|
|
239
|
+
If your site has one UI language, you can report that language instead, so
|
|
240
|
+
pulses match the page rather than the browser:
|
|
241
|
+
|
|
242
|
+
```ts
|
|
243
|
+
Sideband.configure({
|
|
244
|
+
apiKey: 'YOUR_API_KEY',
|
|
245
|
+
appVersion: '1.0.0',
|
|
246
|
+
context: { language: 'en' },
|
|
247
|
+
})
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
If your site is translated, pass the page's current language the same way. Test
|
|
251
|
+
with a browser set to a language that differs from your site's language.
|
|
252
|
+
|
|
36
253
|
## Identify users
|
|
37
254
|
|
|
38
255
|
Tag the signed-in user wherever your app knows who they are: after sign-up and
|
|
@@ -91,6 +308,28 @@ When the page is hidden or unloads, the SDK tries to send queued events with
|
|
|
91
308
|
`keepalive`. This is best effort: a send already in progress can delay it. For an
|
|
92
309
|
event tracked just before your code navigates away, await `Sideband.flush()` first.
|
|
93
310
|
|
|
311
|
+
A pulse answer is sent when the user presses the final button (for example
|
|
312
|
+
Done), or closes the pulse, which sends the answers given so far. As in the iOS
|
|
313
|
+
and Android SDKs, nothing is sent while the thank-you screen is showing, so
|
|
314
|
+
answers are kept across a page load only after Done or a close; leaving the page
|
|
315
|
+
on the thank-you screen loses them. If the user leaves the page before the
|
|
316
|
+
server accepts the answer, the SDK tries again after the next page load in the
|
|
317
|
+
same tab. This is best effort.
|
|
318
|
+
The SDK keeps pending answers in the tab's `sessionStorage`, separately for each
|
|
319
|
+
API key and endpoint, and sends each answer only while the same user is tagged
|
|
320
|
+
(or the same `context.user_id` is configured). An answer is still lost when:
|
|
321
|
+
|
|
322
|
+
- storage is unavailable or full (`onError` receives a
|
|
323
|
+
`PendingInteractionStorageError` with `reason` `storage_unavailable` or
|
|
324
|
+
`storage_write_failed`);
|
|
325
|
+
- more than 10 answers are pending: the oldest are not kept (`reason`
|
|
326
|
+
`queue_full`);
|
|
327
|
+
- it is still unsent 24 hours after it was given;
|
|
328
|
+
- the server rejects it permanently, with a 4xx response other than 408, 425 or
|
|
329
|
+
429 (`onError` receives the error);
|
|
330
|
+
- the user closes the tab, or does not return to that tab with the same user
|
|
331
|
+
and configuration.
|
|
332
|
+
|
|
94
333
|
## Events the SDK sends itself
|
|
95
334
|
|
|
96
335
|
Do not track these yourself:
|
|
@@ -117,6 +356,14 @@ pulses. After each send, the server sets a minimum wait before the next
|
|
|
117
356
|
regular send, and the SDK honors it. A pulse therefore usually shows a few
|
|
118
357
|
seconds after its trigger event, not exactly one second after it.
|
|
119
358
|
|
|
359
|
+
Ordinary event batches wait for that interval, so a trigger tracked soon after
|
|
360
|
+
a send waits for the rest of it, including after a client-side route change.
|
|
361
|
+
Some sends do not wait, and queued events go with them: a new pulse answer, a pulse
|
|
362
|
+
impression, the page being hidden, and an explicit `flush()`. On a quiet page, a
|
|
363
|
+
new page load sends `system_app_launch` about one second after the SDK starts,
|
|
364
|
+
with the default `flushIntervalSeconds`. Tagging the user right after start
|
|
365
|
+
sends it sooner.
|
|
366
|
+
|
|
120
367
|
`SidebandWebConfig` in the package's type definitions lists the optional
|
|
121
368
|
settings, such as `shouldPresentPulse` to hold a Pulse back for a better
|
|
122
369
|
moment and `onError` for background errors. `Sideband.flush()` sends queued
|
|
@@ -125,22 +372,29 @@ events now and returns a promise.
|
|
|
125
372
|
## Automated test builds
|
|
126
373
|
|
|
127
374
|
Builds that use your Development channel's key also receive the pulses you
|
|
128
|
-
publish there.
|
|
129
|
-
|
|
130
|
-
|
|
375
|
+
publish there. Treat two kinds of automated run differently.
|
|
376
|
+
|
|
377
|
+
**Event-only automation.** In unattended UI tests, a pulse can cover the page
|
|
378
|
+
and break the next step. To keep sending events but hold pulses back in those
|
|
379
|
+
builds, return `'notNow'` from `shouldPresentPulse`:
|
|
131
380
|
|
|
132
381
|
```ts
|
|
133
382
|
Sideband.configure({
|
|
134
383
|
apiKey: 'YOUR_API_KEY',
|
|
135
384
|
appVersion: '1.0.0',
|
|
136
|
-
shouldPresentPulse: () => (
|
|
385
|
+
shouldPresentPulse: () => (holdPulses ? 'notNow' : 'showNow'),
|
|
137
386
|
})
|
|
138
387
|
```
|
|
139
388
|
|
|
140
|
-
`
|
|
389
|
+
`holdPulses` stands for an explicit setting your test runs turn on, such as a
|
|
141
390
|
build-time variable. The SDK reports each pulse held back this way as a "not
|
|
142
391
|
now" dismissal.
|
|
143
392
|
|
|
393
|
+
**A deliberate pulse test.** When a test is meant to show and answer a pulse,
|
|
394
|
+
turn that setting off for that run only. Use the same explicit setting; do not
|
|
395
|
+
detect automation from the browser (for example `navigator.webdriver`) and then
|
|
396
|
+
hide that signal to let a pulse through.
|
|
397
|
+
|
|
144
398
|
## Install Without a Bundler
|
|
145
399
|
|
|
146
400
|
Copy `node_modules/@sidebandai/sideband-web/dist/sideband.iife.js` to your
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EventMetadata, SidebandCoreConfig, SidebandRuntime, SimulatedPulseDefinition, TrackOptions } from '@sidebandai/sideband-core';
|
|
2
|
-
export { createSidebandClient, getDeviceId, getSessionId, SidebandApiError, SurveySessionStore, buildFabTitle, getChoiceValue, SyncEngine, } from '@sidebandai/sideband-core';
|
|
3
|
-
export type { AnsweredInteraction, ApiErrorDetail, ClientContext, CompletionActionStyle, CompletionActionType, CompletionIconType, CompletionType, DismissedInteraction, EventMetadata, EventRecord, Fab, FabOffset, FabPlacement, FabPoint, FabState, Interaction, Platform, PendingPulse, SyncEndpoint, Pulse, PulseAnswer, PulseCompletion, PulseCompletionAction, PulseQuestion, QuestionType, SentimentPresentation, SentimentPresentationOptions, BarPosition, BarBehavior, SimulatedPulseDefinition, SidebandClient, SidebandClientConfig, SidebandCoreConfig, SurveyAnswerDraft, SurveyAnswerMap, SurveyAnswerValue, SurveySessionState, SurveyStoreSnapshot, SurveyStoreUpdateReason, SyncEngineDeps, SyncEngineOptions, SyncErrorResponse, ServiceUnavailableError, SyncOptions, SyncRequest, SyncResponse, TrackedEvent, TrackOptions, Theme, ThemeColor, TimerStyle, SurveyPresentationDecision, SurveyPresentationKind, } from '@sidebandai/sideband-core';
|
|
2
|
+
export { createSidebandClient, getDeviceId, getSessionId, PendingInteractionStorageError, SidebandApiError, SurveySessionStore, buildFabTitle, getChoiceValue, SyncEngine, } from '@sidebandai/sideband-core';
|
|
3
|
+
export type { AnsweredInteraction, ApiErrorDetail, ClientContext, CompletionActionStyle, CompletionActionType, CompletionIconType, CompletionType, DismissedInteraction, EventMetadata, EventRecord, Fab, FabOffset, FabPlacement, FabPoint, FabState, Interaction, Platform, PendingInteractionStorageReason, PendingPulse, SyncEndpoint, Pulse, PulseAnswer, PulseCompletion, PulseCompletionAction, PulseQuestion, QuestionType, SentimentPresentation, SentimentPresentationOptions, BarPosition, BarBehavior, SimulatedPulseDefinition, SidebandClient, SidebandClientConfig, SidebandCoreConfig, SurveyAnswerDraft, SurveyAnswerMap, SurveyAnswerValue, SurveySessionState, SurveyStoreSnapshot, SurveyStoreUpdateReason, SyncEngineDeps, SyncEngineOptions, SyncErrorResponse, ServiceUnavailableError, SyncOptions, SyncRequest, SyncResponse, TrackedEvent, TrackOptions, Theme, ThemeColor, TimerStyle, SurveyPresentationDecision, SurveyPresentationKind, } from '@sidebandai/sideband-core';
|
|
4
4
|
export type SidebandWebConfig = SidebandCoreConfig & {
|
|
5
5
|
ui?: boolean;
|
|
6
6
|
};
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,wBAAwB,EACxB,YAAY,EACb,MAAM,2BAA2B,CAAA;AAIlC,OAAO,EACL,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,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