pr360-questionnaire 2.3.1 → 2.3.3
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.
|
@@ -17453,8 +17453,8 @@ meter::-webkit-meter-optimum-value {
|
|
|
17453
17453
|
<vimeo-video controls src=${this.currentStep.url} class="questionnaire--video"></vimeo-video>
|
|
17454
17454
|
${this.canSelfBook ? x`
|
|
17455
17455
|
<div data-test-id="questionnaire-info"><h4>Thank you for completing the assessment. Based on your results ${this.siteSource || "we"} would like to help you set up an initial call with a professional.</h4></div>
|
|
17456
|
+
<a class="button button--primary u-push-top" href=${this.currentStep.bookingUrl} target="_blank">Book Appointment</a>
|
|
17456
17457
|
<div data-test-id="site-phone-number"><h4>Or if you'd like to speak with ${this.siteSource || "us"}, </br> please feel free to</h4><a href="tel:${this.phoneNumber}"><h1>Call ${this.siteSource || "Us"}</h1></a></div>
|
|
17457
|
-
<a class="button button--primary" href=${this.bookingUrl} target="_blank">Book Appointment</a>
|
|
17458
17458
|
` : x`
|
|
17459
17459
|
<div data-test-id="questionnaire-info"><h4>Thank you for completing the assessment. ${this.siteSource || "We"} will be calling you within 24 hours with more information.</h4></div>
|
|
17460
17460
|
<div data-test-id="site-phone-number"><h4>If you'd like to speak with ${this.siteSource || "us"} sooner, </br> please feel free to</h4><a href="tel:${this.phoneNumber}"><h1>Call ${this.siteSource || "Us"}</h1></a></div>
|
|
@@ -32223,10 +32223,10 @@ ${inspect(response)}
|
|
|
32223
32223
|
id: "video_123",
|
|
32224
32224
|
type: "Video",
|
|
32225
32225
|
text: "Based on your assessment, you are likely still losing too much blood.",
|
|
32226
|
-
url: "https://vimeo.com/123456"
|
|
32226
|
+
url: "https://vimeo.com/123456",
|
|
32227
|
+
bookingUrl: "https://booking.example.com/appointment?prospect_id=abc123"
|
|
32227
32228
|
};
|
|
32228
32229
|
questionnaireElement.canSelfBook = true;
|
|
32229
|
-
questionnaireElement.bookingUrl = "https://booking.example.com/appointment?prospect_id=abc123";
|
|
32230
32230
|
questionnaireElement.phoneNumber = "555-123-4567";
|
|
32231
32231
|
questionnaireElement.links = {
|
|
32232
32232
|
contact_info_image: "/images/contact.jpg"
|
package/dist/index.js
CHANGED
|
@@ -7642,8 +7642,8 @@ meter::-webkit-meter-optimum-value {
|
|
|
7642
7642
|
<vimeo-video controls src=${this.currentStep.url} class="questionnaire--video"></vimeo-video>
|
|
7643
7643
|
${this.canSelfBook ? x`
|
|
7644
7644
|
<div data-test-id="questionnaire-info"><h4>Thank you for completing the assessment. Based on your results ${this.siteSource || "we"} would like to help you set up an initial call with a professional.</h4></div>
|
|
7645
|
+
<a class="button button--primary u-push-top" href=${this.currentStep.bookingUrl} target="_blank">Book Appointment</a>
|
|
7645
7646
|
<div data-test-id="site-phone-number"><h4>Or if you'd like to speak with ${this.siteSource || "us"}, </br> please feel free to</h4><a href="tel:${this.phoneNumber}"><h1>Call ${this.siteSource || "Us"}</h1></a></div>
|
|
7646
|
-
<a class="button button--primary" href=${this.bookingUrl} target="_blank">Book Appointment</a>
|
|
7647
7647
|
` : x`
|
|
7648
7648
|
<div data-test-id="questionnaire-info"><h4>Thank you for completing the assessment. ${this.siteSource || "We"} will be calling you within 24 hours with more information.</h4></div>
|
|
7649
7649
|
<div data-test-id="site-phone-number"><h4>If you'd like to speak with ${this.siteSource || "us"} sooner, </br> please feel free to</h4><a href="tel:${this.phoneNumber}"><h1>Call ${this.siteSource || "Us"}</h1></a></div>
|
package/js/questionnaire.ts
CHANGED
|
@@ -21,6 +21,7 @@ export type Video = {
|
|
|
21
21
|
type: "Video";
|
|
22
22
|
url: string;
|
|
23
23
|
text: string;
|
|
24
|
+
bookingUrl?: string;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
export type ContactInfo = {
|
|
@@ -243,8 +244,8 @@ export class QuestionnaireElement extends LitElement {
|
|
|
243
244
|
${this.canSelfBook ?
|
|
244
245
|
html`
|
|
245
246
|
<div data-test-id="questionnaire-info"><h4>Thank you for completing the assessment. Based on your results ${this.siteSource || 'we'} would like to help you set up an initial call with a professional.</h4></div>
|
|
247
|
+
<a class="button button--primary u-push-top" href=${(this.currentStep as Video).bookingUrl} target="_blank">Book Appointment</a>
|
|
246
248
|
<div data-test-id="site-phone-number"><h4>Or if you'd like to speak with ${this.siteSource || 'us'}, </br> please feel free to</h4><a href="tel:${this.phoneNumber}"><h1>Call ${this.siteSource || 'Us'}</h1></a></div>
|
|
247
|
-
<a class="button button--primary" href=${this.bookingUrl} target="_blank">Book Appointment</a>
|
|
248
249
|
` :
|
|
249
250
|
html`
|
|
250
251
|
<div data-test-id="questionnaire-info"><h4>Thank you for completing the assessment. ${this.siteSource || 'We'} will be calling you within 24 hours with more information.</h4></div>
|
package/package.json
CHANGED
|
@@ -137,10 +137,10 @@ describe('questionnaire test', async () => {
|
|
|
137
137
|
id: "video_123",
|
|
138
138
|
type: "Video",
|
|
139
139
|
text: "Based on your assessment, you are likely still losing too much blood.",
|
|
140
|
-
url: "https://vimeo.com/123456"
|
|
140
|
+
url: "https://vimeo.com/123456",
|
|
141
|
+
bookingUrl: "https://booking.example.com/appointment?prospect_id=abc123"
|
|
141
142
|
};
|
|
142
143
|
questionnaireElement.canSelfBook = true;
|
|
143
|
-
questionnaireElement.bookingUrl = "https://booking.example.com/appointment?prospect_id=abc123";
|
|
144
144
|
questionnaireElement.phoneNumber = "555-123-4567";
|
|
145
145
|
questionnaireElement.links = {
|
|
146
146
|
contact_info_image: '/images/contact.jpg'
|