@@ -21,38 +21,38 @@ export interface FeedbackGeneralConfiguration {
21
21
*
22
22
* @default true
23
23
*/
24
- showBranding ? : boolean ;
24
+ showBranding : boolean ;
25
25
26
26
/**
27
27
* Should the email field be required?
28
28
*/
29
- isEmailRequired ? : boolean ;
29
+ isEmailRequired : boolean ;
30
30
31
31
/**
32
32
* Should the email field be validated?
33
33
*/
34
- shouldValidateEmail ? : boolean ;
34
+ shouldValidateEmail : boolean ;
35
35
36
36
/**
37
37
* Should the name field be required?
38
38
*/
39
- isNameRequired ? : boolean ;
39
+ isNameRequired : boolean ;
40
40
41
41
/**
42
42
* Should the email input field be visible? Note: email will still be collected if set via `Sentry.setUser()`
43
43
*/
44
- showEmail ? : boolean ;
44
+ showEmail : boolean ;
45
45
46
46
/**
47
47
* Should the name input field be visible? Note: name will still be collected if set via `Sentry.setUser()`
48
48
*/
49
- showName ? : boolean ;
49
+ showName : boolean ;
50
50
51
51
/**
52
52
* This flag determines whether the "Add Screenshot" button is displayed
53
53
* @default false
54
54
*/
55
- enableScreenshot ? : boolean ;
55
+ enableScreenshot : boolean ;
56
56
57
57
/**
58
58
* Fill in email/name input fields with Sentry user context if it exists.
@@ -71,32 +71,32 @@ export interface FeedbackTextConfiguration {
71
71
/**
72
72
* The label for the Feedback form cancel button that closes dialog
73
73
*/
74
- cancelButtonLabel ? : string ;
74
+ cancelButtonLabel : string ;
75
75
76
76
/**
77
77
* The label for the Feedback form submit button that sends feedback
78
78
*/
79
- submitButtonLabel ? : string ;
79
+ submitButtonLabel : string ;
80
80
81
81
/**
82
82
* The title of the Feedback form
83
83
*/
84
- formTitle ? : string ;
84
+ formTitle : string ;
85
85
86
86
/**
87
87
* Label for the email input
88
88
*/
89
- emailLabel ? : string ;
89
+ emailLabel : string ;
90
90
91
91
/**
92
92
* Placeholder text for Feedback email input
93
93
*/
94
- emailPlaceholder ? : string ;
94
+ emailPlaceholder : string ;
95
95
96
96
/**
97
97
* Label for the message input
98
98
*/
99
- messageLabel ? : string ;
99
+ messageLabel : string ;
100
100
101
101
/**
102
102
* Placeholder text for Feedback message input
@@ -106,52 +106,52 @@ export interface FeedbackTextConfiguration {
106
106
/**
107
107
* Label for the name input
108
108
*/
109
- nameLabel ? : string ;
109
+ nameLabel : string ;
110
110
111
111
/**
112
112
* Message after feedback was sent successfully
113
113
*/
114
- successMessageText ? : string ;
114
+ successMessageText : string ;
115
115
116
116
/**
117
117
* Placeholder text for Feedback name input
118
118
*/
119
- namePlaceholder ? : string ;
119
+ namePlaceholder : string ;
120
120
121
121
/**
122
122
* Text which indicates that a field is required
123
123
*/
124
- isRequiredLabel ? : string ;
124
+ isRequiredLabel : string ;
125
125
126
126
/**
127
127
* The label for the button that adds a screenshot and renders the image editor
128
128
*/
129
- addScreenshotButtonLabel ? : string ;
129
+ addScreenshotButtonLabel : string ;
130
130
131
131
/**
132
132
* The label for the button that removes a screenshot and hides the image editor
133
133
*/
134
- removeScreenshotButtonLabel ? : string ;
134
+ removeScreenshotButtonLabel : string ;
135
135
136
136
/**
137
137
* The title of the error dialog
138
138
*/
139
- errorTitle ? : string ;
139
+ errorTitle : string ;
140
140
141
141
/**
142
142
* The error message when the form is invalid
143
143
*/
144
- formError ? : string ;
144
+ formError : string ;
145
145
146
146
/**
147
147
* The error message when the email is invalid
148
148
*/
149
- emailError ? : string ;
149
+ emailError : string ;
150
150
151
151
/**
152
152
* Message when there is a generic error
153
153
*/
154
- genericError ? : string ;
154
+ genericError : string ;
155
155
}
156
156
157
157
/**
@@ -161,34 +161,34 @@ export interface FeedbackCallbacks {
161
161
/**
162
162
* Callback when form is opened
163
163
*/
164
- onFormOpen ? : ( ) => void ;
164
+ onFormOpen : ( ) => void ;
165
165
166
166
/**
167
167
* Callback when form is closed and not submitted
168
168
*/
169
- onFormClose ? : ( ) => void ;
169
+ onFormClose : ( ) => void ;
170
170
171
171
/**
172
172
* Callback when a screenshot is added
173
173
*/
174
- onAddScreenshot ? : ( addScreenshot : ( uri : string ) => void ) => void ;
174
+ onAddScreenshot : ( addScreenshot : ( uri : string ) => void ) => void ;
175
175
176
176
/**
177
177
* Callback when feedback is successfully submitted
178
178
*
179
179
* After this you'll see a SuccessMessage on the screen for a moment.
180
180
*/
181
- onSubmitSuccess ? : ( data : FeedbackFormData ) => void ;
181
+ onSubmitSuccess : ( data : FeedbackFormData ) => void ;
182
182
183
183
/**
184
184
* Callback when feedback is unsuccessfully submitted
185
185
*/
186
- onSubmitError ? : ( error : Error ) => void ;
186
+ onSubmitError : ( error : Error ) => void ;
187
187
188
188
/**
189
189
* Callback when the feedback form is submitted successfully, and the SuccessMessage is complete, or dismissed
190
190
*/
191
- onFormSubmitted ? : ( ) => void ;
191
+ onFormSubmitted : ( ) => void ;
192
192
}
193
193
194
194
/**
0 commit comments