@alliance-droid/status-feedback-system 1.0.1 → 1.1.0

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 CHANGED
@@ -195,6 +195,7 @@ Auto-captures: screenshots (via html2canvas), console errors, viewport size, cur
195
195
  apiUrl="https://status-admin.example.com"
196
196
  apiKey="sf_abc123..."
197
197
  boardUrl="/feedback"
198
+ userEmail={data.user?.email}
198
199
  />
199
200
  ```
200
201
 
@@ -204,6 +205,7 @@ Auto-captures: screenshots (via html2canvas), console errors, viewport size, cur
204
205
  | `apiKey` | `string` | required | Project API key |
205
206
  | `enabled` | `boolean` | auto-detect | Override environment detection |
206
207
  | `boardUrl` | `string` | — | URL for "View Open Issues" link. Hidden if omitted. |
208
+ | `userEmail` | `string` | — | Pre-fill email field (e.g. from logged-in user's session) |
207
209
  | `maxConsoleErrors` | `number` | `20` | Max console errors to capture |
208
210
  | `showOnboarding` | `boolean` | `true` | Show "Ctrl+right-click" toast on first visit |
209
211
 
@@ -22,6 +22,8 @@
22
22
  showOnboarding?: boolean;
23
23
  /** URL to the feedback board page. If omitted, "View Open Issues" is hidden from the context menu. */
24
24
  boardUrl?: string;
25
+ /** Pre-fill the email field (e.g. from the logged-in user's session) */
26
+ userEmail?: string;
25
27
  }
26
28
 
27
29
  let {
@@ -31,6 +33,7 @@
31
33
  maxConsoleErrors = 20,
32
34
  showOnboarding = true,
33
35
  boardUrl,
36
+ userEmail,
34
37
  }: Props = $props();
35
38
 
36
39
  let client = $derived(createStatusClient({ apiUrl, apiKey }));
@@ -211,7 +214,7 @@
211
214
  formType = type;
212
215
  formTitle = '';
213
216
  formMessage = '';
214
- formEmail = '';
217
+ formEmail = userEmail ?? '';
215
218
  submitResult = null;
216
219
  menuOpen = false;
217
220
  formOpen = true;
@@ -9,6 +9,8 @@ interface Props {
9
9
  showOnboarding?: boolean;
10
10
  /** URL to the feedback board page. If omitted, "View Open Issues" is hidden from the context menu. */
11
11
  boardUrl?: string;
12
+ /** Pre-fill the email field (e.g. from the logged-in user's session) */
13
+ userEmail?: string;
12
14
  }
13
15
  declare const DevFeedback: import("svelte").Component<Props, {}, "">;
14
16
  type DevFeedback = ReturnType<typeof DevFeedback>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alliance-droid/status-feedback-system",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "description": "Drop-in system status pages and user feedback forms for SvelteKit apps",
6
6
  "svelte": "./dist/index.js",