@product7/feedback-sdk 1.7.8 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@product7/feedback-sdk",
3
- "version": "1.7.8",
3
+ "version": "1.7.9",
4
4
  "description": "JavaScript SDK for integrating Product7 feedback widgets into any website",
5
5
  "main": "dist/feedback-sdk.js",
6
6
  "module": "src/index.js",
@@ -410,10 +410,12 @@ export class FeedbackSDK {
410
410
  return 'nps';
411
411
  }
412
412
 
413
+ const lowLabel = (ratingConfig.low_label || '').toLowerCase();
413
414
  if (
414
- surveyType === 'emoji' ||
415
+ surveyType === 'ces' ||
415
416
  title.includes('effort') ||
416
- title.includes('easy')
417
+ title.includes('easy') ||
418
+ lowLabel.includes('difficult')
417
419
  ) {
418
420
  return 'ces';
419
421
  }