@limekex/bugreport-widget-react 0.2.0 → 0.2.2
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 +22 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -50,6 +50,18 @@ function App() {
|
|
|
50
50
|
/>
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
+
### With Authentication Required
|
|
54
|
+
|
|
55
|
+
```tsx
|
|
56
|
+
<BugReporter
|
|
57
|
+
apiBaseUrl="https://gitreport.betait.no"
|
|
58
|
+
environment="staging"
|
|
59
|
+
requireAuth={true} // Users must log in before reporting bugs
|
|
60
|
+
/>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
When `requireAuth` is enabled, users will see a login/register modal before they can submit bug reports.
|
|
64
|
+
|
|
53
65
|
### With Theme Customization
|
|
54
66
|
|
|
55
67
|
```tsx
|
|
@@ -89,6 +101,16 @@ All props from the vanilla SDK are supported:
|
|
|
89
101
|
| `currentUser` | `object` | ❌ | Currently authenticated user |
|
|
90
102
|
| `getTraceContext` | `function` | ❌ | Function returning trace context (OpenTelemetry, Sentry) |
|
|
91
103
|
| `theme` | `object` | ❌ | Theme customization options |
|
|
104
|
+
| `requireAuth` | `boolean` | ❌ | Require testers to log in before submitting (default: `false`) |
|
|
105
|
+
|
|
106
|
+
## Features (v0.2.0+)
|
|
107
|
+
|
|
108
|
+
- ✅ **Authentication Modal** — Built-in login/register UI
|
|
109
|
+
- ✅ **Screenshot Annotation** — Draw arrows, shapes, and add text to screenshots
|
|
110
|
+
- ✅ **Console Error Capture** — Automatically captures recent console errors
|
|
111
|
+
- ✅ **Network Request Tracking** — Logs failed network requests
|
|
112
|
+
- ✅ **SSR Support** — Safe for Next.js, Remix, and other SSR frameworks
|
|
113
|
+
- ✅ **Bot Protection** — Honeypot and timing checks
|
|
92
114
|
|
|
93
115
|
## SSR Support
|
|
94
116
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limekex/bugreport-widget-react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "React wrapper for the BugReport Widget SDK",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@limekex/bugreport-widget-sdk": "^0.2.
|
|
43
|
+
"@limekex/bugreport-widget-sdk": "^0.2.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/react": "^18.2.0",
|