@alliance-droid/status-feedback-system 1.0.1 → 1.1.1
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
|
|
|
@@ -265,7 +267,3 @@ import type {
|
|
|
265
267
|
StatusData, IncidentData, UptimeData, BoardData, BoardItem,
|
|
266
268
|
} from '@alliance-droid/status-feedback-system';
|
|
267
269
|
```
|
|
268
|
-
|
|
269
|
-
## License
|
|
270
|
-
|
|
271
|
-
MIT © 2026 Alliance Technical Group
|
|
@@ -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;
|
|
@@ -332,7 +335,7 @@
|
|
|
332
335
|
<!-- Form modal -->
|
|
333
336
|
{#if formOpen}
|
|
334
337
|
<!-- svelte-ignore a11y_no_static_element_interactions — modal backdrop needs mousedown for click-outside-to-close -->
|
|
335
|
-
<div class="fixed inset-0 z-[99998] flex items-center justify-center bg-black/50
|
|
338
|
+
<div class="fixed inset-0 z-[99998] flex items-center justify-center bg-black/50" onmousedown={(e) => { if (e.target === e.currentTarget) formOpen = false; }}>
|
|
336
339
|
<!-- svelte-ignore a11y_no_static_element_interactions — prevents modal close when clicking inside form -->
|
|
337
340
|
<div class="w-full max-w-lg mx-4" onmousedown={(e) => e.stopPropagation()}>
|
|
338
341
|
<Card variant="elevated" padding="none">
|
|
@@ -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
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Alliance Technical Group
|
|
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.
|