@product7/feedback-sdk 1.7.2 → 1.7.4
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.
package/dist/feedback-sdk.js
CHANGED
|
@@ -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] ||
|
|
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
|
|
7491
|
+
return null;
|
|
7491
7492
|
}
|
|
7492
7493
|
|
|
7493
7494
|
return {
|
|
7494
|
-
title: page.title ||
|
|
7495
|
-
description: page.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
|
|
7512
|
+
return '';
|
|
7520
7513
|
}
|
|
7521
7514
|
}
|
|
7522
7515
|
|