import { Primitive } from '../misc'; import { FeedbackFormData } from './form'; import { FeedbackTheme } from './theme'; /** * General feedback configuration */ export interface FeedbackGeneralConfiguration { /** * id to use for the main widget container (this will host the shadow DOM) */ id: string; /** * Show the Sentry branding */ showBranding: boolean; /** * Auto-inject default Feedback actor button to the DOM when integration is * added. */ autoInject: boolean; /** * Should the email field be required? */ isEmailRequired: boolean; /** * Should the name field be required? */ isNameRequired: boolean; /** * Should the email input field be visible? Note: email will still be collected if set via `Sentry.setUser()` */ showEmail: boolean; /** * Should the name input field be visible? Note: name will still be collected if set via `Sentry.setUser()` */ showName: boolean; /** * Should the screen shots field be included? * Screen shots cannot be marked as required */ enableScreenshot: boolean; /** * Fill in email/name input fields with Sentry user context if it exists. * The value of the email/name keys represent the properties of your user context. */ useSentryUser: { email: string; name: string; }; /** * Set an object that will be merged sent as tags data with the event. */ tags?: { [key: string]: Primitive; }; /** * Set a nonce to be passed to the injected