@alliance-droid/status-feedback-system 1.3.7 → 1.3.8
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.
|
@@ -6,14 +6,16 @@
|
|
|
6
6
|
board: FeedbackBoardState;
|
|
7
7
|
/** Available category options for the dropdown */
|
|
8
8
|
categories?: string[];
|
|
9
|
+
/** Pre-fill the email field (e.g. from the logged-in user's session) */
|
|
10
|
+
userEmail?: string;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
|
-
let { board, categories = [] }: Props = $props();
|
|
13
|
+
let { board, categories = [], userEmail }: Props = $props();
|
|
12
14
|
|
|
13
15
|
let title = $state('');
|
|
14
16
|
let message = $state('');
|
|
15
17
|
let category = $state('');
|
|
16
|
-
let email = $state('');
|
|
18
|
+
let email = $state(userEmail ?? '');
|
|
17
19
|
let submitting = $state(false);
|
|
18
20
|
let success = $state(false);
|
|
19
21
|
let error = $state('');
|
|
@@ -3,6 +3,8 @@ interface Props {
|
|
|
3
3
|
board: FeedbackBoardState;
|
|
4
4
|
/** Available category options for the dropdown */
|
|
5
5
|
categories?: string[];
|
|
6
|
+
/** Pre-fill the email field (e.g. from the logged-in user's session) */
|
|
7
|
+
userEmail?: string;
|
|
6
8
|
}
|
|
7
9
|
declare const FeedbackSubmitForm: import("svelte").Component<Props, {}, "">;
|
|
8
10
|
type FeedbackSubmitForm = ReturnType<typeof FeedbackSubmitForm>;
|
package/package.json
CHANGED