@product7/feedback-sdk 1.7.0 → 1.7.2
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
package/src/core/FeedbackSDK.js
CHANGED
|
@@ -387,6 +387,7 @@ export class FeedbackSDK {
|
|
|
387
387
|
type: page.type || 'rating',
|
|
388
388
|
title: page.title || '',
|
|
389
389
|
description: page.description || '',
|
|
390
|
+
placeholder: page.placeholder || '',
|
|
390
391
|
required: page.required !== false,
|
|
391
392
|
position: page.position ?? index,
|
|
392
393
|
ratingConfig: page.ratingConfig || page.rating_config || null,
|
|
@@ -141,7 +141,7 @@ export class SurveyWidget extends BaseWidget {
|
|
|
141
141
|
<button class="feedback-survey-close"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><rect width="256" height="256" fill="none"/><line x1="200" y1="56" x2="56" y2="200" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><line x1="200" y1="200" x2="56" y2="56" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/></svg></button>
|
|
142
142
|
${showTitle ? `<h3 class="feedback-survey-title">${config.title}</h3>` : ''}
|
|
143
143
|
${showDescription ? `<p class="feedback-survey-description">${config.description}</p>` : ''}
|
|
144
|
-
${isMultiPage ? `<div class="feedback-survey-progress">${pageProgress}</div>` : ''}
|
|
144
|
+
${isMultiPage && this.surveyOptions.pages.length > 1 ? `<div class="feedback-survey-progress">${pageProgress}</div>` : ''}
|
|
145
145
|
<div class="feedback-survey-content">${config.html}</div>
|
|
146
146
|
${
|
|
147
147
|
showFeedbackInput
|
|
@@ -350,6 +350,10 @@ export class SurveyWidget extends BaseWidget {
|
|
|
350
350
|
|
|
351
351
|
_shouldShowActions() {
|
|
352
352
|
if (this._isMultiPageSurvey()) {
|
|
353
|
+
const page = this._getCurrentPage();
|
|
354
|
+
if (page && page.type === 'link') {
|
|
355
|
+
return false;
|
|
356
|
+
}
|
|
353
357
|
return true;
|
|
354
358
|
}
|
|
355
359
|
if (typeof this.surveyOptions.showSubmitButton === 'boolean') {
|