@product7/feedback-sdk 1.7.7 → 1.7.9
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
|
@@ -7354,11 +7354,11 @@
|
|
|
7354
7354
|
title: this.surveyOptions.title || '',
|
|
7355
7355
|
description: cesPrompt,
|
|
7356
7356
|
html: `
|
|
7357
|
-
<div class="feedback-survey-ces">
|
|
7357
|
+
<div class="feedback-survey-ces-list">
|
|
7358
7358
|
${['Very Difficult', 'Difficult', 'Neutral', 'Easy', 'Very Easy']
|
|
7359
7359
|
.map(
|
|
7360
7360
|
(label, i) => `
|
|
7361
|
-
<button class="feedback-survey-ces-btn" data-score="${i + 1}">${label}</button>
|
|
7361
|
+
<button class="feedback-survey-ces-btn feedback-survey-ces-list-btn" data-score="${i + 1}">${label}</button>
|
|
7362
7362
|
`
|
|
7363
7363
|
)
|
|
7364
7364
|
.join('')}
|
|
@@ -8898,10 +8898,12 @@
|
|
|
8898
8898
|
return 'nps';
|
|
8899
8899
|
}
|
|
8900
8900
|
|
|
8901
|
+
const lowLabel = (ratingConfig.low_label || '').toLowerCase();
|
|
8901
8902
|
if (
|
|
8902
|
-
surveyType === '
|
|
8903
|
+
surveyType === 'ces' ||
|
|
8903
8904
|
title.includes('effort') ||
|
|
8904
|
-
title.includes('easy')
|
|
8905
|
+
title.includes('easy') ||
|
|
8906
|
+
lowLabel.includes('difficult')
|
|
8905
8907
|
) {
|
|
8906
8908
|
return 'ces';
|
|
8907
8909
|
}
|