@product7/product7-js 0.5.0 → 0.5.1
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/product7-js.js
CHANGED
|
@@ -6221,6 +6221,12 @@
|
|
|
6221
6221
|
}
|
|
6222
6222
|
|
|
6223
6223
|
.feedback-survey-page-choice-btn.selected::after {
|
|
6224
|
+
content: '✓';
|
|
6225
|
+
color: #ffffff;
|
|
6226
|
+
font-size: 11px;
|
|
6227
|
+
font-weight: 700;
|
|
6228
|
+
line-height: 18px;
|
|
6229
|
+
text-align: center;
|
|
6224
6230
|
border-color: var(--color-primary);
|
|
6225
6231
|
background-color: var(--color-primary);
|
|
6226
6232
|
}
|
|
@@ -13622,7 +13628,17 @@
|
|
|
13622
13628
|
_showThankYouScreen(onAfterClose) {
|
|
13623
13629
|
if (!this.surveyElement) return;
|
|
13624
13630
|
|
|
13625
|
-
const
|
|
13631
|
+
const pages = this.surveyOptions.pages || [];
|
|
13632
|
+
const currentPage =
|
|
13633
|
+
pages[this.surveyState.currentPageIndex] ||
|
|
13634
|
+
pages[pages.length - 1] ||
|
|
13635
|
+
null;
|
|
13636
|
+
const pageConfig = currentPage?.thankYouConfig || null;
|
|
13637
|
+
const surveyConfig = this.surveyOptions.thankYouConfig || null;
|
|
13638
|
+
const config =
|
|
13639
|
+
(pageConfig?.title ? pageConfig : null) ||
|
|
13640
|
+
(surveyConfig?.title ? surveyConfig : null) ||
|
|
13641
|
+
{};
|
|
13626
13642
|
const title = config.title || 'Thanks for your feedback!';
|
|
13627
13643
|
const buttonText = config.button_text || null;
|
|
13628
13644
|
const buttonUrl = config.button_url || '#';
|
|
@@ -14305,6 +14321,7 @@
|
|
|
14305
14321
|
page.multipleChoiceConfig || page.multiple_choice_config || null,
|
|
14306
14322
|
linkConfig: page.linkConfig || page.link_config || null,
|
|
14307
14323
|
afterThisPage: page.afterThisPage || page.after_this_page || null,
|
|
14324
|
+
thankYouConfig: page.thankYouConfig || page.thank_you_config || null,
|
|
14308
14325
|
}))
|
|
14309
14326
|
.sort((a, b) => a.position - b.position);
|
|
14310
14327
|
}
|