@@ -21,38 +21,38 @@ export interface FeedbackGeneralConfiguration {
2121 *
2222 * @default true
2323 */
24- showBranding ? : boolean ;
24+ showBranding : boolean ;
2525
2626 /**
2727 * Should the email field be required?
2828 */
29- isEmailRequired ? : boolean ;
29+ isEmailRequired : boolean ;
3030
3131 /**
3232 * Should the email field be validated?
3333 */
34- shouldValidateEmail ? : boolean ;
34+ shouldValidateEmail : boolean ;
3535
3636 /**
3737 * Should the name field be required?
3838 */
39- isNameRequired ? : boolean ;
39+ isNameRequired : boolean ;
4040
4141 /**
4242 * Should the email input field be visible? Note: email will still be collected if set via `Sentry.setUser()`
4343 */
44- showEmail ? : boolean ;
44+ showEmail : boolean ;
4545
4646 /**
4747 * Should the name input field be visible? Note: name will still be collected if set via `Sentry.setUser()`
4848 */
49- showName ? : boolean ;
49+ showName : boolean ;
5050
5151 /**
5252 * This flag determines whether the "Add Screenshot" button is displayed
5353 * @default false
5454 */
55- enableScreenshot ? : boolean ;
55+ enableScreenshot : boolean ;
5656
5757 /**
5858 * Fill in email/name input fields with Sentry user context if it exists.
@@ -71,32 +71,32 @@ export interface FeedbackTextConfiguration {
7171 /**
7272 * The label for the Feedback form cancel button that closes dialog
7373 */
74- cancelButtonLabel ? : string ;
74+ cancelButtonLabel : string ;
7575
7676 /**
7777 * The label for the Feedback form submit button that sends feedback
7878 */
79- submitButtonLabel ? : string ;
79+ submitButtonLabel : string ;
8080
8181 /**
8282 * The title of the Feedback form
8383 */
84- formTitle ? : string ;
84+ formTitle : string ;
8585
8686 /**
8787 * Label for the email input
8888 */
89- emailLabel ? : string ;
89+ emailLabel : string ;
9090
9191 /**
9292 * Placeholder text for Feedback email input
9393 */
94- emailPlaceholder ? : string ;
94+ emailPlaceholder : string ;
9595
9696 /**
9797 * Label for the message input
9898 */
99- messageLabel ? : string ;
99+ messageLabel : string ;
100100
101101 /**
102102 * Placeholder text for Feedback message input
@@ -106,52 +106,52 @@ export interface FeedbackTextConfiguration {
106106 /**
107107 * Label for the name input
108108 */
109- nameLabel ? : string ;
109+ nameLabel : string ;
110110
111111 /**
112112 * Message after feedback was sent successfully
113113 */
114- successMessageText ? : string ;
114+ successMessageText : string ;
115115
116116 /**
117117 * Placeholder text for Feedback name input
118118 */
119- namePlaceholder ? : string ;
119+ namePlaceholder : string ;
120120
121121 /**
122122 * Text which indicates that a field is required
123123 */
124- isRequiredLabel ? : string ;
124+ isRequiredLabel : string ;
125125
126126 /**
127127 * The label for the button that adds a screenshot and renders the image editor
128128 */
129- addScreenshotButtonLabel ? : string ;
129+ addScreenshotButtonLabel : string ;
130130
131131 /**
132132 * The label for the button that removes a screenshot and hides the image editor
133133 */
134- removeScreenshotButtonLabel ? : string ;
134+ removeScreenshotButtonLabel : string ;
135135
136136 /**
137137 * The title of the error dialog
138138 */
139- errorTitle ? : string ;
139+ errorTitle : string ;
140140
141141 /**
142142 * The error message when the form is invalid
143143 */
144- formError ? : string ;
144+ formError : string ;
145145
146146 /**
147147 * The error message when the email is invalid
148148 */
149- emailError ? : string ;
149+ emailError : string ;
150150
151151 /**
152152 * Message when there is a generic error
153153 */
154- genericError ? : string ;
154+ genericError : string ;
155155}
156156
157157/**
@@ -161,34 +161,34 @@ export interface FeedbackCallbacks {
161161 /**
162162 * Callback when form is opened
163163 */
164- onFormOpen ? : ( ) => void ;
164+ onFormOpen : ( ) => void ;
165165
166166 /**
167167 * Callback when form is closed and not submitted
168168 */
169- onFormClose ? : ( ) => void ;
169+ onFormClose : ( ) => void ;
170170
171171 /**
172172 * Callback when a screenshot is added
173173 */
174- onAddScreenshot ? : ( addScreenshot : ( uri : string ) => void ) => void ;
174+ onAddScreenshot : ( addScreenshot : ( uri : string ) => void ) => void ;
175175
176176 /**
177177 * Callback when feedback is successfully submitted
178178 *
179179 * After this you'll see a SuccessMessage on the screen for a moment.
180180 */
181- onSubmitSuccess ? : ( data : FeedbackFormData ) => void ;
181+ onSubmitSuccess : ( data : FeedbackFormData ) => void ;
182182
183183 /**
184184 * Callback when feedback is unsuccessfully submitted
185185 */
186- onSubmitError ? : ( error : Error ) => void ;
186+ onSubmitError : ( error : Error ) => void ;
187187
188188 /**
189189 * Callback when the feedback form is submitted successfully, and the SuccessMessage is complete, or dismissed
190190 */
191- onFormSubmitted ? : ( ) => void ;
191+ onFormSubmitted : ( ) => void ;
192192}
193193
194194/**
0 commit comments