@product7/feedback-sdk 1.7.2 → 1.7.5

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.
@@ -7209,6 +7209,7 @@
7209
7209
  this._closeSurvey(false);
7210
7210
 
7211
7211
  const config = this._getSurveyConfig();
7212
+ if (!config) return;
7212
7213
  const isMultiPage = this._isMultiPageSurvey();
7213
7214
  const isLastPage = this._isLastPage();
7214
7215
  const showFeedbackInput = this._shouldShowFeedbackInput();
@@ -7373,7 +7374,7 @@
7373
7374
  },
7374
7375
  };
7375
7376
 
7376
- return configs[this.surveyOptions.surveyType] || configs.nps;
7377
+ return configs[this.surveyOptions.surveyType] || null;
7377
7378
  }
7378
7379
 
7379
7380
  _getNPSScale() {
@@ -7487,24 +7488,16 @@
7487
7488
  _getCurrentPageConfig() {
7488
7489
  const page = this._getCurrentPage();
7489
7490
  if (!page) {
7490
- return this._getFallbackSurveyConfig();
7491
+ return null;
7491
7492
  }
7492
7493
 
7493
7494
  return {
7494
- title: page.title || this.surveyOptions.title || 'Quick Feedback',
7495
- description: page.description || this.surveyOptions.description || '',
7495
+ title: page.title || '',
7496
+ description: page.description || '',
7496
7497
  html: this._renderSurveyPage(page),
7497
7498
  };
7498
7499
  }
7499
7500
 
7500
- _getFallbackSurveyConfig() {
7501
- return {
7502
- title: this.surveyOptions.title || 'Quick Feedback',
7503
- description: this.surveyOptions.description || '',
7504
- html: this._renderCustomQuestions(),
7505
- };
7506
- }
7507
-
7508
7501
  _renderSurveyPage(page) {
7509
7502
  switch (page.type) {
7510
7503
  case 'rating':
@@ -7516,7 +7509,7 @@
7516
7509
  case 'link':
7517
7510
  return this._renderLinkPage(page);
7518
7511
  default:
7519
- return this._renderTextPage(page);
7512
+ return '';
7520
7513
  }
7521
7514
  }
7522
7515
 
@@ -13123,7 +13116,9 @@
13123
13116
  SUBMIT & FEEDBACK
13124
13117
  ======================================== */
13125
13118
 
13126
- .feedback-survey-submit {
13119
+ .feedback-survey-submit,
13120
+ .feedback-survey-link-btn {
13121
+ display: block;
13127
13122
  width: 100%;
13128
13123
  padding: var(--spacing-3);
13129
13124
  background: var(--color-primary);
@@ -13134,12 +13129,17 @@
13134
13129
  font-weight: var(--font-weight-medium);
13135
13130
  cursor: pointer;
13136
13131
  font-family: inherit;
13132
+ text-align: center;
13133
+ text-decoration: none;
13137
13134
  transition: all var(--transition-base);
13138
13135
  }
13139
13136
 
13140
- .feedback-survey-submit:hover {
13137
+ .feedback-survey-submit:hover,
13138
+ .feedback-survey-link-btn:hover {
13141
13139
  background: var(--color-primary-hover);
13142
13140
  border-color: var(--color-primary-hover);
13141
+ color: var(--color-white);
13142
+ text-decoration: none;
13143
13143
  }
13144
13144
 
13145
13145
  .feedback-survey-error {