@sidebandai/sideband-react 0.0.0-stage → 1.4.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/LICENSE +21 -0
- package/README.md +40 -2
- package/dist/SurveyRenderer-DeiwF3pw.js +1270 -0
- package/dist/client/create-sideband-client.d.ts +2 -0
- package/dist/client/create-sideband-client.d.ts.map +1 -0
- package/dist/components/SurveyFab.d.ts +11 -0
- package/dist/components/SurveyFab.d.ts.map +1 -0
- package/dist/components/SurveyProgress.d.ts +6 -0
- package/dist/components/SurveyProgress.d.ts.map +1 -0
- package/dist/components/SurveyQuestionView.d.ts +11 -0
- package/dist/components/SurveyQuestionView.d.ts.map +1 -0
- package/dist/components/SurveyRenderer.d.ts +7 -0
- package/dist/components/SurveyRenderer.d.ts.map +1 -0
- package/dist/components/SurveySheet.d.ts +10 -0
- package/dist/components/SurveySheet.d.ts.map +1 -0
- package/dist/components/SurveySnackbar.d.ts +9 -0
- package/dist/components/SurveySnackbar.d.ts.map +1 -0
- package/dist/components/SurveyThankYou.d.ts +9 -0
- package/dist/components/SurveyThankYou.d.ts.map +1 -0
- package/dist/context/SidebandProvider.d.ts +8 -0
- package/dist/context/SidebandProvider.d.ts.map +1 -0
- package/dist/context/sideband-context.d.ts +18 -0
- package/dist/context/sideband-context.d.ts.map +1 -0
- package/dist/hooks/useSideband.d.ts +2 -0
- package/dist/hooks/useSideband.d.ts.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +183 -0
- package/dist/preview.d.ts +21 -0
- package/dist/preview.d.ts.map +1 -0
- package/dist/preview.js +50 -0
- package/dist/style.css +2 -0
- package/dist/style.css.d.ts +2 -0
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +46 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 SidebandAI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Sideband React SDK
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Sideband adds in-app Pulse prompts and event tracking to React apps.
|
|
4
|
+
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
- React 19 and React DOM 19
|
|
8
|
+
- A Sideband API key
|
|
9
|
+
- Your application's version
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install @sidebandai/sideband-react react@^19 react-dom@^19
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Configure
|
|
18
|
+
|
|
19
|
+
Import the stylesheet once and wrap your application content in
|
|
20
|
+
`SidebandProvider`. Pass your API key and application version through its
|
|
21
|
+
`config` prop:
|
|
22
|
+
|
|
23
|
+
```tsx
|
|
24
|
+
import { SidebandProvider } from '@sidebandai/sideband-react'
|
|
25
|
+
import '@sidebandai/sideband-react/style.css'
|
|
26
|
+
|
|
27
|
+
function App() {
|
|
28
|
+
return (
|
|
29
|
+
<SidebandProvider config={{ apiKey: 'YOUR_API_KEY', appVersion: '1.0.0' }}>
|
|
30
|
+
<AppContent />
|
|
31
|
+
</SidebandProvider>
|
|
32
|
+
)
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
`AppContent` represents your existing application content. Replace `1.0.0` with
|
|
37
|
+
your application's version, not the SDK version. `appVersion` must be a
|
|
38
|
+
non-empty string of at most 64 characters.
|
|
39
|
+
|
|
40
|
+
The provider presents available Pulses automatically. In server-rendered apps,
|
|
41
|
+
place it within a client component.
|