11import  {  getCurrentHub  }  from  '@sentry/core' ; 
22import  type  {  Integration  }  from  '@sentry/types' ; 
33import  {  isNodeEnv ,  logger  }  from  '@sentry/utils' ; 
4- import  {  ACTOR_LABEL ,  CANCEL_BUTTON_LABEL ,  DEFAULT_THEME ,  EMAIL_LABEL ,  EMAIL_PLACEHOLDER ,  FORM_TITLE ,  MESSAGE_LABEL ,  MESSAGE_PLACEHOLDER ,  NAME_LABEL ,  NAME_PLACEHOLDER ,  SUBMIT_BUTTON_LABEL ,  SUCCESS_MESSAGE_TEXT  }  from  './constants' ; 
54
5+ import  { 
6+   ACTOR_LABEL , 
7+   CANCEL_BUTTON_LABEL , 
8+   DEFAULT_THEME , 
9+   EMAIL_LABEL , 
10+   EMAIL_PLACEHOLDER , 
11+   FORM_TITLE , 
12+   MESSAGE_LABEL , 
13+   MESSAGE_PLACEHOLDER , 
14+   NAME_LABEL , 
15+   NAME_PLACEHOLDER , 
16+   SUBMIT_BUTTON_LABEL , 
17+   SUCCESS_MESSAGE_TEXT , 
18+ }  from  './constants' ; 
619import  type  {  FeedbackConfigurationWithDefaults ,  FeedbackFormData ,  FeedbackTheme  }  from  './types' ; 
720import  {  handleFeedbackSubmit  }  from  './util/handleFeedbackSubmit' ; 
821import  {  Actor  }  from  './widget/Actor' ; 
@@ -30,7 +43,7 @@ interface FeedbackConfiguration extends Partial<Omit<FeedbackConfigurationWithDe
3043  theme ?: { 
3144    dark ?: Partial < FeedbackTheme > ; 
3245    light ?: Partial < FeedbackTheme > ; 
33-   } 
46+   } ; 
3447} 
3548
3649/** 
@@ -78,7 +91,7 @@ export class Feedback implements Integration {
7891  /** 
7992   * Tracks if dialog has ever been opened at least one time 
8093   */ 
81-   private  hasDialogEverOpened : boolean ; 
94+   private  _hasDialogEverOpened : boolean ; 
8295
8396  public  constructor ( { 
8497    id =  'sentry-feedback' , 
@@ -113,15 +126,15 @@ export class Feedback implements Integration {
113126    onDialogOpen, 
114127    onSubmitError, 
115128    onSubmitSuccess, 
116-   } : FeedbackConfiguration    =  { } )  { 
129+   } : FeedbackConfiguration  =  { } )  { 
117130    // Initializations 
118131    this . name  =  Feedback . id ; 
119132    this . _actor  =  null ; 
120133    this . _dialog  =  null ; 
121134    this . _host  =  null ; 
122135    this . _shadow  =  null ; 
123136    this . _isDialogOpen  =  false ; 
124-     this . hasDialogEverOpened  =  false ; 
137+     this . _hasDialogEverOpened  =  false ; 
125138
126139    this . options  =  { 
127140      id, 
@@ -252,7 +265,7 @@ export class Feedback implements Integration {
252265      } 
253266
254267      // Lazy-load until dialog is opened and only inject styles once 
255-       if  ( ! this . hasDialogEverOpened )  { 
268+       if  ( ! this . _hasDialogEverOpened )  { 
256269        this . _shadow . appendChild ( createDialogStyles ( document ) ) ; 
257270      } 
258271
@@ -279,7 +292,7 @@ export class Feedback implements Integration {
279292      // Hides the default actor whenever dialog is opened 
280293      this . _actor  &&  this . _actor . hide ( ) ; 
281294
282-       this . hasDialogEverOpened  =  true ; 
295+       this . _hasDialogEverOpened  =  true ; 
283296      if  ( this . options . onDialogOpen )  { 
284297        this . options . onDialogOpen ( ) ; 
285298      } 
0 commit comments