@fogg/bug-reporter 1.0.0 → 1.0.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 +30 -0
- package/dist/index.cjs +552 -205
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +420 -93
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-6TCI6T2U.cjs +0 -45
- package/dist/chunk-6TCI6T2U.cjs.map +0 -1
- package/dist/chunk-S2YRP4GT.js +0 -22
- package/dist/chunk-S2YRP4GT.js.map +0 -1
- package/dist/recording-ML63ZQ6A.cjs +0 -120
- package/dist/recording-ML63ZQ6A.cjs.map +0 -1
- package/dist/recording-YSR6IORT.js +0 -118
- package/dist/recording-YSR6IORT.js.map +0 -1
- package/dist/screenshot-F4W72WRK.js +0 -176
- package/dist/screenshot-F4W72WRK.js.map +0 -1
- package/dist/screenshot-FRAZAS6B.cjs +0 -178
- package/dist/screenshot-FRAZAS6B.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -50,6 +50,36 @@ Enable these flags in config to attach logs and request traces to each report:
|
|
|
50
50
|
/>
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
+
## S3 Storage Example
|
|
54
|
+
|
|
55
|
+
Use this when your backend returns presigned upload URLs.
|
|
56
|
+
|
|
57
|
+
```tsx
|
|
58
|
+
import { BugReporter } from "@fogg/bug-reporter";
|
|
59
|
+
import "@fogg/bug-reporter/styles.css";
|
|
60
|
+
|
|
61
|
+
export function App() {
|
|
62
|
+
return (
|
|
63
|
+
<BugReporter
|
|
64
|
+
config={{
|
|
65
|
+
apiEndpoint: "https://api.example.com/bug-reports",
|
|
66
|
+
projectId: "web-app",
|
|
67
|
+
environment: "production",
|
|
68
|
+
storage: {
|
|
69
|
+
mode: "s3-presigned",
|
|
70
|
+
s3: {
|
|
71
|
+
presignEndpoint: "https://api.example.com/bug-assets/presign",
|
|
72
|
+
publicBaseUrl: "https://cdn.example.com"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}}
|
|
76
|
+
/>
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
See `docs/backend-s3.md` for the backend request/response contract.
|
|
82
|
+
|
|
53
83
|
## Docs
|
|
54
84
|
|
|
55
85
|
- `docs/quickstart.md`
|