@meetelise/chat 1.77.1 → 1.77.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.
|
@@ -210,7 +210,7 @@ export declare class TourSchedulerV2 extends LitElement {
|
|
|
210
210
|
private renderAddStop;
|
|
211
211
|
private renderEditor;
|
|
212
212
|
private renderContactForm;
|
|
213
|
-
/** The consent text and the submit button, under the form or the itinerary. */
|
|
213
|
+
/** The consent text, any booking error and the submit button, under the form or the itinerary. */
|
|
214
214
|
private renderFooter;
|
|
215
215
|
private renderSchedule;
|
|
216
216
|
/** Today's reschedule prompt, with the server's reason. */
|
package/package.json
CHANGED
package/public/dist/index.js
CHANGED
|
@@ -6998,12 +6998,12 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
6998
6998
|
id="tour-scheduler-footer"
|
|
6999
6999
|
class=${xe({itinerary:this.extending})}
|
|
7000
7000
|
>
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
</
|
|
7001
|
+
${this.extending?"":H`<div class="explanation consent">
|
|
7002
|
+
We'll send a confirmation and any follow-ups to your email address,
|
|
7003
|
+
please reply to the email to make any appointment changes.
|
|
7004
|
+
${this.disclaimer()}
|
|
7005
|
+
</div>`}
|
|
7006
|
+
${this.bookingError?H`<p class="error-message" role="alert">${this.bookingError}</p>`:""}
|
|
7007
7007
|
<action-confirm-button
|
|
7008
7008
|
id="schedule-bttn"
|
|
7009
7009
|
.onClick=${()=>this.submit()}
|
|
@@ -7045,7 +7045,7 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7045
7045
|
</p>
|
|
7046
7046
|
</div>`)}
|
|
7047
7047
|
<div id="tour-scheduler-footer" class="itinerary">
|
|
7048
|
-
|
|
7048
|
+
${this.extending?"":H`<div class="explanation consent">${this.disclaimer()}</div>`}
|
|
7049
7049
|
<div class="reschedule-buttons-wrapper">
|
|
7050
7050
|
<action-confirm-button
|
|
7051
7051
|
id="cancel-reschedule-bttn"
|
|
@@ -7306,6 +7306,15 @@ xmlns="http://www.w3.org/2000/svg"
|
|
|
7306
7306
|
text-align: center;
|
|
7307
7307
|
}
|
|
7308
7308
|
|
|
7309
|
+
/* The footer's gap spaces it. */
|
|
7310
|
+
#tour-scheduler-footer > .error-message {
|
|
7311
|
+
margin: 0;
|
|
7312
|
+
}
|
|
7313
|
+
|
|
7314
|
+
#tour-scheduler-footer.itinerary > .error-message {
|
|
7315
|
+
text-align: center;
|
|
7316
|
+
}
|
|
7317
|
+
|
|
7309
7318
|
.consent {
|
|
7310
7319
|
font-size: 10px;
|
|
7311
7320
|
line-height: 14px;
|
|
@@ -1236,20 +1236,25 @@ export class TourSchedulerV2 extends LitElement {
|
|
|
1236
1236
|
></contact-form>`;
|
|
1237
1237
|
}
|
|
1238
1238
|
|
|
1239
|
-
/** The consent text and the submit button, under the form or the itinerary. */
|
|
1239
|
+
/** The consent text, any booking error and the submit button, under the form or the itinerary. */
|
|
1240
1240
|
private renderFooter(): TemplateResult {
|
|
1241
1241
|
return html`<div
|
|
1242
1242
|
id="tour-scheduler-footer"
|
|
1243
1243
|
class=${classMap({ itinerary: this.extending })}
|
|
1244
1244
|
>
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1245
|
+
${this.extending
|
|
1246
|
+
? // Adding stops sends no contact details: it books into the first
|
|
1247
|
+
// booking's conversation, whose form showed the consent. So, as in
|
|
1248
|
+
// the design, the itinerary has only its button.
|
|
1249
|
+
""
|
|
1250
|
+
: html`<div class="explanation consent">
|
|
1251
|
+
We'll send a confirmation and any follow-ups to your email address,
|
|
1252
|
+
please reply to the email to make any appointment changes.
|
|
1253
|
+
${this.disclaimer()}
|
|
1254
|
+
</div>`}
|
|
1255
|
+
${this.bookingError
|
|
1256
|
+
? html`<p class="error-message" role="alert">${this.bookingError}</p>`
|
|
1257
|
+
: ""}
|
|
1253
1258
|
<action-confirm-button
|
|
1254
1259
|
id="schedule-bttn"
|
|
1255
1260
|
.onClick=${() => this.submit()}
|
|
@@ -1318,7 +1323,9 @@ export class TourSchedulerV2 extends LitElement {
|
|
|
1318
1323
|
</p>
|
|
1319
1324
|
</div>`)}
|
|
1320
1325
|
<div id="tour-scheduler-footer" class="itinerary">
|
|
1321
|
-
|
|
1326
|
+
${this.extending
|
|
1327
|
+
? ""
|
|
1328
|
+
: html`<div class="explanation consent">${this.disclaimer()}</div>`}
|
|
1322
1329
|
<div class="reschedule-buttons-wrapper">
|
|
1323
1330
|
<action-confirm-button
|
|
1324
1331
|
id="cancel-reschedule-bttn"
|
|
@@ -1629,6 +1636,15 @@ export class TourSchedulerV2 extends LitElement {
|
|
|
1629
1636
|
text-align: center;
|
|
1630
1637
|
}
|
|
1631
1638
|
|
|
1639
|
+
/* The footer's gap spaces it. */
|
|
1640
|
+
#tour-scheduler-footer > .error-message {
|
|
1641
|
+
margin: 0;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
#tour-scheduler-footer.itinerary > .error-message {
|
|
1645
|
+
text-align: center;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1632
1648
|
.consent {
|
|
1633
1649
|
font-size: 10px;
|
|
1634
1650
|
line-height: 14px;
|
|
@@ -454,9 +454,15 @@ it("books a tour with the prospect's details, attribution and conversation, and
|
|
|
454
454
|
it("extends a booking without asking for contact details again, sending the booked tour as an existing stop and only the new community as a new one", async () => {
|
|
455
455
|
const { bookings, communityQueries } = fakeBackend();
|
|
456
456
|
const scheduler = mount();
|
|
457
|
+
const footerText = () =>
|
|
458
|
+
inScheduler(scheduler, "#tour-scheduler-footer")?.textContent ?? "";
|
|
457
459
|
|
|
460
|
+
await waitFor(() => inScheduler(scheduler, "contact-form"));
|
|
461
|
+
expect(footerText()).to.include("you consent to");
|
|
458
462
|
await bookAndAddLinden(scheduler);
|
|
459
463
|
expect(inScheduler(scheduler, "contact-form")).to.equal(null);
|
|
464
|
+
// The first booking's form showed the consent; adding a stop asks for nothing new.
|
|
465
|
+
expect(footerText()).not.to.include("consent");
|
|
460
466
|
await submitWhenReady(scheduler);
|
|
461
467
|
await waitFor(() => bookings.length === 2);
|
|
462
468
|
|