@meetelise/chat 1.20.33 → 1.20.35

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.
@@ -20,7 +20,6 @@ import {
20
20
  OutlinedChatIcon,
21
21
  OutlinedEmailIcon,
22
22
  OutlinedPhoneIcon,
23
- OutlinedTextIcon,
24
23
  OutlinedTourIcon,
25
24
  } from "../svgIcons";
26
25
 
@@ -312,7 +311,7 @@ export class Launcher extends LitElement {
312
311
  html`
313
312
  <div class="vertical-pill-icon">${FilledChatIcon}</div>
314
313
  <div class="vertical-pill-title">
315
- <span class="vertical-pill-bold">Ask</span> a question
314
+ <span class="vertical-pill-bold">Chat</span> with us
316
315
  </div>
317
316
  `,
318
317
  this.onChatTapped
@@ -370,13 +369,6 @@ export class Launcher extends LitElement {
370
369
  true
371
370
  )
372
371
  : ""}
373
- ${this.hasTextUsEnabled && !this.isCallToActionWindowOpen()
374
- ? this.renderMiniOption(
375
- OutlinedTextIcon,
376
- this.onClickTextUsOption,
377
- true
378
- )
379
- : ""}
380
372
  `;
381
373
  };
382
374
 
@@ -310,7 +310,7 @@ export const launcherStyles = css`
310
310
  }
311
311
  .inner-pill-wrapper {
312
312
  background: #353535;
313
- border-width: 2px 0px 2px 2px;
313
+ border-width: 4px 0px 4px 4px;
314
314
  border-style: solid;
315
315
  border-color: #ffffff;
316
316
  box-shadow: 0px 34px 34px 14px rgba(0, 0, 0, 0.35);
@@ -326,10 +326,10 @@ export const launcherStyles = css`
326
326
  font-size: 15px;
327
327
  line-height: 18px;
328
328
 
329
- /* White/Dark */
330
-
331
329
  color: #ffffff;
332
- padding: 12px;
330
+ width: 164px;
331
+ height: 44px;
332
+ padding-left: 10px;
333
333
  }
334
334
  .inner-pill-wrapper:hover {
335
335
  cursor: pointer;
@@ -350,12 +350,8 @@ export const launcherStyles = css`
350
350
  }
351
351
  @media screen and (min-width: 1000px) {
352
352
  .inner-pill-wrapper {
353
- font-size: 24px;
354
- line-height: 28px;
355
- }
356
- .vertical-pill-icon {
357
- transform: scale(1.5);
358
- width: 42px;
353
+ height: 50px;
354
+ width: 164px;
359
355
  }
360
356
  }
361
357
  `;
@@ -387,13 +387,17 @@ export class MEChat extends LitElement {
387
387
 
388
388
  render(): TemplateResult {
389
389
  installLauncher();
390
+ const hideTopContactTab =
391
+ !this.hideLauncher ||
392
+ this.isLoading ||
393
+ this.buildingABTestType === "close";
390
394
  return html`
391
395
  <div>
392
396
  <div
393
397
  id="contactTabPopup"
394
398
  class=${classMap({
395
- ["showTab"]: this.hideLauncher,
396
- ["hideTab"]: !this.hideLauncher || this.isLoading,
399
+ ["showTab"]: !hideTopContactTab,
400
+ ["hideTab"]: hideTopContactTab,
397
401
  })}
398
402
  >
399
403
  <button class="actionTabBttn" @click=${this.handleContactClicked}>
@@ -450,7 +454,9 @@ export class MEChat extends LitElement {
450
454
  ?hasEmailEnabled=${!this.building?.chatWidgets
451
455
  ? true
452
456
  : this.building?.chatWidgets.includes("EMAIL")}
453
- ?hasTextUsEnabled=${!this.building?.chatWidgets ? true : true}
457
+ ?hasTextUsEnabled=${!this.building?.chatWidgets
458
+ ? true
459
+ : this.building?.chatWidgets.includes("SMS")}
454
460
  ?hasSSTEnabled=${!this.building?.chatWidgets
455
461
  ? true
456
462
  : this.building?.chatWidgets.includes("SST")}
package/src/svgIcons.ts CHANGED
@@ -18,15 +18,7 @@ export const FilledEmailIcon = svg`<svg width="20" height="16" viewBox="0 0 20 1
18
18
  </svg>
19
19
  `;
20
20
 
21
- export const FilledChatIcon = svg`<svg width="22" height="20" viewBox="0 0 22 20" fill="none" xmlns="http://www.w3.org/2000/svg">
22
- <path d="M12.0024 5.43884H2.49877C1.11874 5.43884 0 6.55758 0 7.93761V17.4413C0 18.8213 1.11874 19.94 2.49877 19.94H12.0024C13.3824 19.94 14.5012 18.8213 14.5012 17.4413V7.93761C14.5012 6.55758 13.3824 5.43884 12.0024 5.43884Z" fill="#B6C2FE"/>
23
- <path d="M19.2489 0H9.74523C8.3652 0 7.24646 1.11874 7.24646 2.49877V12.0024C7.24646 13.3824 8.3652 14.5011 9.74523 14.5011H19.2489C20.6289 14.5011 21.7477 13.3824 21.7477 12.0024V2.49877C21.7477 1.11874 20.6289 0 19.2489 0Z" fill="#B6C2FE"/>
24
- <path d="M15.6255 2.72363H6.12193C4.7419 2.72363 3.62317 3.84237 3.62317 5.2224V14.726C3.62317 16.106 4.7419 17.2248 6.12193 17.2248H15.6255C17.0056 17.2248 18.1243 16.106 18.1243 14.726V5.2224C18.1243 3.84237 17.0056 2.72363 15.6255 2.72363Z" fill="white" stroke="#404040" stroke-miterlimit="10"/>
25
- <path d="M9.94854 12.1785V13.6327H11.4027V12.1785H9.94854ZM8.17957 8.4072L9.60608 8.69294C9.64657 8.4904 9.74373 8.30352 9.88627 8.15404C10.0288 8.00457 10.2109 7.89864 10.4113 7.84859C10.6117 7.79854 10.8221 7.80642 11.0182 7.87132C11.2143 7.93622 11.3879 8.05547 11.5189 8.21519C11.6499 8.3749 11.7328 8.56853 11.758 8.77353C11.7832 8.97853 11.7497 9.18648 11.6614 9.37318C11.573 9.55987 11.4335 9.71765 11.259 9.82814C11.0845 9.93863 10.8822 9.99729 10.6756 9.99731H9.94854V11.4515H10.6756C11.1575 11.4513 11.6294 11.3143 12.0365 11.0565C12.4436 10.7986 12.7691 10.4305 12.9752 9.99489C13.1812 9.55929 13.2594 9.07413 13.2005 8.59586C13.1417 8.11758 12.9482 7.66585 12.6427 7.29321C12.3371 6.92057 11.9321 6.64235 11.4746 6.49089C11.0172 6.33944 10.5261 6.32099 10.0586 6.43769C9.59102 6.55438 9.16623 6.80143 8.83359 7.15009C8.50095 7.49875 8.27415 7.93469 8.17957 8.4072Z" fill="#404040"/>
26
- </svg>
27
- `;
28
-
29
- export const FilledPhoneIcon = svg`<svg width="23" height="18" viewBox="0 0 23 18" fill="none" xmlns="http://www.w3.org/2000/svg">
21
+ export const FilledChatIcon = svg`<svg width="23" height="18" viewBox="0 0 23 18" fill="none" xmlns="http://www.w3.org/2000/svg">
30
22
  <path d="M7.32634 4.79272H19.2517C20.5911 4.79272 21.6723 5.87391 21.6723 7.2133V16.71H7.32634C5.98695 16.71 4.90576 15.6288 4.90576 14.2895V7.2133C4.90576 5.87391 5.98695 4.79272 7.32634 4.79272Z" fill="#404040" stroke="#B6C2FE" stroke-miterlimit="10"/>
31
23
  <path d="M0.403442 11.9657V3.22745C0.403442 1.67021 1.67021 0.403442 3.22745 0.403442H14.5235C16.0807 0.403442 17.3475 1.67021 17.3475 3.22745V9.14172C17.3475 10.699 16.0807 11.9657 14.5235 11.9657H0.403442Z" fill="white"/>
32
24
  <path d="M14.5235 0.806859C15.8628 0.806859 16.944 1.88805 16.944 3.22744V9.14171C16.944 10.4811 15.8628 11.5623 14.5235 11.5623H0.806859V3.22744C0.806859 1.88805 1.88805 0.806859 3.22744 0.806859H14.5235ZM14.5235 0H3.22744C1.44428 0 0 1.44428 0 3.22744V12.3691H14.5235C16.3066 12.3691 17.7509 10.9249 17.7509 9.14171V3.22744C17.7509 1.44428 16.3066 0 14.5235 0Z" fill="white"/>
@@ -36,6 +28,15 @@ export const FilledPhoneIcon = svg`<svg width="23" height="18" viewBox="0 0 23 1
36
28
  </svg>
37
29
  `;
38
30
 
31
+ export const FilledPhoneIcon = svg`<svg width="16" height="24" viewBox="0 0 16 24" fill="none" xmlns="http://www.w3.org/2000/svg">
32
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M5 0H2C0.895431 0 0 0.89543 0 2V22C0 23.1046 0.895431 24 2 24H14C15.1046 24 16 23.1046 16 22V2C16 0.895431 15.1046 0 14 0H11C11 0.552285 10.5523 1 10 1H6C5.44772 1 5 0.552285 5 0Z" fill="white"/>
33
+ <rect x="2" y="3" width="12" height="16" rx="1" fill="#B6C2FE"/>
34
+ <rect x="3" y="13" width="7" height="3" rx="1" fill="#353535"/>
35
+ <rect x="7" y="22" width="2" height="1" rx="0.5" fill="#353535"/>
36
+ </svg>
37
+
38
+ `;
39
+
39
40
  export const ChevronIcon = svg`<svg width="5" height="8" viewBox="0 0 5 8" fill="none" xmlns="http://www.w3.org/2000/svg">
40
41
  <path d="M1 7L4 4L1 1" stroke="white" stroke-linecap="round" stroke-linejoin="round"/>
41
42
  </svg>