@meetelise/chat 1.51.2 → 1.51.4

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.
Files changed (38) hide show
  1. package/dist/src/analytics.d.ts +2 -1
  2. package/package.json +1 -1
  3. package/public/dist/index.js +46 -20
  4. package/src/MyPubnub.ts +6 -0
  5. package/src/WebComponent/FeeCalculator/fee-calculator.ts +1 -0
  6. package/src/WebComponent/Scheduler/tour-scheduler.ts +8 -0
  7. package/src/WebComponent/actions/call-us-window.ts +2 -0
  8. package/src/WebComponent/actions/details-window.ts +2 -0
  9. package/src/WebComponent/actions/email-us-window.ts +2 -0
  10. package/src/WebComponent/icons/ApplyOutlineIcon.ts +1 -1
  11. package/src/WebComponent/icons/BookTourOutlineIcon.ts +1 -1
  12. package/src/WebComponent/icons/CalculatorOutlineIcon.ts +2 -0
  13. package/src/WebComponent/icons/ChatOutlineIcon.ts +1 -1
  14. package/src/WebComponent/icons/ChevronLeftIcon.ts +1 -1
  15. package/src/WebComponent/icons/ChevronRightIcon.ts +1 -1
  16. package/src/WebComponent/icons/ContactResidentIcon.ts +1 -1
  17. package/src/WebComponent/icons/DollarOutlineIcon.ts +1 -1
  18. package/src/WebComponent/icons/EmailOutlineIcon.ts +1 -1
  19. package/src/WebComponent/icons/HeyThereEmojiIcon.ts +1 -1
  20. package/src/WebComponent/icons/PhoneOutlineIcon.ts +1 -1
  21. package/src/WebComponent/icons/SendMessageIcon.ts +2 -2
  22. package/src/WebComponent/icons/TourSelfGuidedIcon.ts +2 -0
  23. package/src/WebComponent/icons/TourVirtuallyIcon.ts +2 -0
  24. package/src/WebComponent/icons/TourWithAgentIcon.ts +2 -0
  25. package/src/WebComponent/icons/XOutlineIcon.ts +1 -1
  26. package/src/WebComponent/me-select.ts +2 -0
  27. package/src/WebComponent/simple-launcher/simple-launcher.ts +4 -0
  28. package/src/analytics.ts +4 -1
  29. package/src/fetchBuildingUnitsSummary.ts +1 -0
  30. package/src/getBuildingPhoneNumber.ts +1 -0
  31. package/src/insertDNIIntoWebsite.ts +1 -0
  32. package/src/services/fees/calculateQuote.ts +1 -0
  33. package/src/services/fees/downloadQuotePdf.ts +1 -0
  34. package/src/services/fees/fetchBuildingFees.ts +1 -0
  35. package/src/services/fees/fetchBuildingFeesV2.ts +1 -0
  36. package/src/services/fees/fetchBuildingFloorplans.ts +1 -0
  37. package/src/services/fees/fetchBuildingUnits.ts +1 -0
  38. package/src/svgIcons.ts +2 -2
package/src/MyPubnub.ts CHANGED
@@ -241,6 +241,7 @@ class MyPubnub {
241
241
  logType: LogType.error,
242
242
  buildingSlug: this.buildingSlug,
243
243
  orgSlug: this.orgSlug,
244
+ error,
244
245
  });
245
246
  }
246
247
  return null;
@@ -369,6 +370,7 @@ class MyPubnub {
369
370
  logType: LogType.error,
370
371
  buildingSlug: this.buildingSlug,
371
372
  orgSlug: this.orgSlug,
373
+ error,
372
374
  });
373
375
  }
374
376
  }
@@ -388,6 +390,7 @@ class MyPubnub {
388
390
  logType: LogType.error,
389
391
  buildingSlug: this.buildingSlug,
390
392
  orgSlug: this.orgSlug,
393
+ error,
391
394
  });
392
395
  }
393
396
  }
@@ -424,6 +427,7 @@ class MyPubnub {
424
427
  logType: LogType.error,
425
428
  buildingSlug: this.buildingSlug,
426
429
  orgSlug: this.orgSlug,
430
+ error: retryError,
427
431
  });
428
432
  }
429
433
  }
@@ -555,6 +559,7 @@ class MyPubnub {
555
559
  logType: LogType.warn,
556
560
  buildingSlug: this.buildingSlug,
557
561
  orgSlug: this.orgSlug,
562
+ error,
558
563
  });
559
564
  }
560
565
  }
@@ -578,6 +583,7 @@ class MyPubnub {
578
583
  logType: LogType.error,
579
584
  buildingSlug: this.buildingSlug,
580
585
  orgSlug: this.orgSlug,
586
+ error,
581
587
  });
582
588
  }
583
589
  }
@@ -198,6 +198,7 @@ export class FeeCalculator extends LitElement {
198
198
  buildingSlug: this.buildingSlug,
199
199
  logTitle: "[ERROR_CALCULATING_QUOTE]",
200
200
  logData: { error },
201
+ error,
201
202
  });
202
203
  }
203
204
  } finally {
@@ -352,6 +352,7 @@ export class TourScheduler extends LitElement {
352
352
  logType: LogType.error,
353
353
  buildingSlug: this.buildingSlug,
354
354
  orgSlug: this.orgSlug,
355
+ error: e,
355
356
  });
356
357
  }
357
358
  };
@@ -483,6 +484,7 @@ export class TourScheduler extends LitElement {
483
484
  logType: LogType.error,
484
485
  buildingSlug: this.buildingSlug,
485
486
  orgSlug: this.orgSlug,
487
+ error: e,
486
488
  });
487
489
  }
488
490
  };
@@ -1161,6 +1163,8 @@ export class TourScheduler extends LitElement {
1161
1163
  aria-label="Close scheduler"
1162
1164
  >
1163
1165
  <svg
1166
+ aria-hidden="true"
1167
+ focusable="false"
1164
1168
  width="19"
1165
1169
  height="19"
1166
1170
  viewBox="0 0 19 19"
@@ -1393,6 +1397,8 @@ export class TourScheduler extends LitElement {
1393
1397
  return html`
1394
1398
  <div id="confirmationMessage">
1395
1399
  <svg
1400
+ aria-hidden="true"
1401
+ focusable="false"
1396
1402
  width="20"
1397
1403
  height="20"
1398
1404
  viewBox="0 0 20 20"
@@ -1447,6 +1453,8 @@ export class TourScheduler extends LitElement {
1447
1453
 
1448
1454
  loadingIcon(size = 21): TemplateResult {
1449
1455
  return html` <svg
1456
+ aria-hidden="true"
1457
+ focusable="false"
1450
1458
  id="loadingIcon"
1451
1459
  width=${size}
1452
1460
  height=${size}
@@ -392,6 +392,8 @@ export class CallUsWindow extends LitElement {
392
392
  <div id="text-us-container-focus" class="text-us-wrapper">
393
393
  <div class="text-us-window__vertical-spacer"></div>
394
394
  <svg
395
+ aria-hidden="true"
396
+ focusable="false"
395
397
  width="20"
396
398
  height="20"
397
399
  viewBox="0 0 20 20"
@@ -129,6 +129,8 @@ export class DetailsWindow extends LitElement {
129
129
  aria-label="Close"
130
130
  >
131
131
  <svg
132
+ aria-hidden="true"
133
+ focusable="false"
132
134
  width="19"
133
135
  height="19"
134
136
  viewBox="0 0 19 19"
@@ -332,6 +332,8 @@ export class EmailUsWindow extends LitElement {
332
332
  <div class="email-us__vertical-spacer"></div>
333
333
  <div class="email-us__center_icon">
334
334
  <svg
335
+ aria-hidden="true"
336
+ focusable="false"
335
337
  width="22"
336
338
  height="18"
337
339
  viewBox="0 0 22 18"
@@ -2,7 +2,7 @@ import { svg, SVGTemplateResult } from "lit";
2
2
 
3
3
  export const ApplyOutlineIcon = (
4
4
  color = "white"
5
- ): SVGTemplateResult => svg`<svg width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ ): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" width="16" height="14" viewBox="0 0 16 14" fill="none" xmlns="http://www.w3.org/2000/svg">
6
6
  <g clip-path="url(#clip0_18382_27345)">
7
7
  <g clip-path="url(#clip1_18382_27345)">
8
8
  <path d="M9.91666 0.625V3.45833C9.91666 3.6462 9.99128 3.82636 10.1241 3.9592C10.257 4.09204 10.4371 4.16667 10.625 4.16667H13.4583" stroke="${color}" stroke-linecap="round" stroke-linejoin="round"/>
@@ -2,7 +2,7 @@ import { svg, SVGTemplateResult } from "lit";
2
2
 
3
3
  export const BookTourOutlineIcon = (
4
4
  color = "black"
5
- ): SVGTemplateResult => svg`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="18" viewBox="0 0 16 18" fill="none">
5
+ ): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="18" viewBox="0 0 16 18" fill="none">
6
6
  <path d="M15.6825 6.11855H0.00653076C0.0588276 4.00052 1.79117 2.30087 3.92226 2.30087H4.41255V3.6083C4.41255 3.88285 4.63481 4.09858 4.90283 4.09858C5.17085 4.09858 5.39311 3.88285 5.39311 3.6083V2.30087H10.2959V3.6083C10.2959 3.88285 10.5182 4.09858 10.7862 4.09858C11.0542 4.09858 11.2765 3.88285 11.2765 3.6083V2.30087H11.7668C13.8979 2.30087 15.6302 4.00052 15.6825 6.11855Z" fill="${color}"/>
7
7
  <path d="M15.0641 7.39731V14.0677C15.0641 15.8922 13.5861 17.365 11.7668 17.365H3.92227C2.10298 17.365 0.625 15.8922 0.625 14.0677V7.39731H15.0641Z" fill="transparent" stroke="${color}" stroke-width="1.25"/>
8
8
  <path d="M4.90283 1V2.30742" stroke="${color}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
@@ -6,6 +6,8 @@ export const CalculatorOutlineIcon = (
6
6
  shiftX = -2
7
7
  ): SVGTemplateResult => svg`
8
8
  <svg
9
+ aria-hidden="true"
10
+ focusable="false"
9
11
  width="${size}"
10
12
  height="${size}"
11
13
  viewBox="0 0 20 20"
@@ -1,7 +1,7 @@
1
1
  import { svg, SVGTemplateResult } from "lit";
2
2
 
3
3
  export const ChatOutlineIcon = (color = "white"): SVGTemplateResult => svg`
4
- <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
4
+ <svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
5
5
  <path
6
6
  fill-rule="evenodd"
7
7
  clip-rule="evenodd"
@@ -2,6 +2,6 @@ import { svg, SVGTemplateResult } from "lit";
2
2
 
3
3
  export const ChevronLeftIcon = (
4
4
  color = "white"
5
- ): SVGTemplateResult => svg`<svg xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
5
+ ): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
6
6
  <path d="M3.68188 7L0.681885 4L3.68188 1" stroke="${color}" stroke-linecap="round" stroke-linejoin="round"/>
7
7
  </svg>`;
@@ -2,6 +2,6 @@ import { svg, SVGTemplateResult } from "lit";
2
2
 
3
3
  export const ChevronRightIcon = (
4
4
  color = "white"
5
- ): SVGTemplateResult => svg`<svg xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
5
+ ): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="5" height="8" viewBox="0 0 5 8" fill="none">
6
6
  <path d="M1.31812 7L4.31812 4L1.31811 1" stroke="${color}" stroke-linecap="round" stroke-linejoin="round"/>
7
7
  </svg>`;
@@ -2,7 +2,7 @@ import { svg, SVGTemplateResult } from "lit";
2
2
 
3
3
  export const ContactResidentIcon = (
4
4
  color = "black"
5
- ): SVGTemplateResult => svg`<svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
5
+ ): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
6
6
  <path d="M6 6C7.65685 6 9 4.65685 9 3C9 1.34315 7.65685 0 6 0C4.34315 0 3 1.34315 3 3C3 4.65685 4.34315 6 6 6ZM8 3C8 4.10457 7.10457 5 6 5C4.89543 5 4 4.10457 4 3C4 1.89543 4.89543 1 6 1C7.10457 1 8 1.89543 8 3Z" fill="${color}"/>
7
7
  <path d="M12 11C12 12 11 12 11 12H1C1 12 0 12 0 11C0 10 1 7 6 7C11 7 12 10 12 11ZM11 10.9965C10.9986 10.7497 10.8462 10.0104 10.1679 9.33211C9.51563 8.67985 8.2891 8 5.99999 8C3.71088 8 2.48435 8.67985 1.8321 9.33211C1.15375 10.0104 1.00142 10.7497 1 10.9965H11Z" fill="${color}"/>
8
8
  </svg>
@@ -9,7 +9,7 @@ const DollarOutlineIcon = ({
9
9
  color = "#347FF7",
10
10
  size = 24,
11
11
  }: DollarOutlineIconProps = {}): SVGTemplateResult => svg`
12
- <svg width="${size}" height="${size}" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
12
+ <svg aria-hidden="true" focusable="false" width="${size}" height="${size}" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
13
13
  <g id="Frame" clip-path="url(#clip0_18718_332018)">
14
14
  <path id="Vector" d="M3 12.5C3 13.6819 3.23279 14.8522 3.68508 15.9442C4.13738 17.0361 4.80031 18.0282 5.63604 18.864C6.47177 19.6997 7.46392 20.3626 8.55585 20.8149C9.64778 21.2672 10.8181 21.5 12 21.5C13.1819 21.5 14.3522 21.2672 15.4442 20.8149C16.5361 20.3626 17.5282 19.6997 18.364 18.864C19.1997 18.0282 19.8626 17.0361 20.3149 15.9442C20.7672 14.8522 21 13.6819 21 12.5C21 11.3181 20.7672 10.1478 20.3149 9.05585C19.8626 7.96392 19.1997 6.97177 18.364 6.13604C17.5282 5.30031 16.5361 4.63738 15.4442 4.18508C14.3522 3.73279 13.1819 3.5 12 3.5C10.8181 3.5 9.64778 3.73279 8.55585 4.18508C7.46392 4.63738 6.47177 5.30031 5.63604 6.13604C4.80031 6.97177 4.13738 7.96392 3.68508 9.05585C3.23279 10.1478 3 11.3181 3 12.5Z" stroke="${color}" stroke-linecap="round" stroke-linejoin="round"/>
15
15
  <path id="Vector_2" d="M14.8 9.50016C14.6188 9.18592 14.3557 8.92686 14.0386 8.75071C13.7215 8.57456 13.3625 8.48795 13 8.50016H11C10.4696 8.50016 9.96086 8.71087 9.58579 9.08594C9.21071 9.46102 9 9.96972 9 10.5002C9 11.0306 9.21071 11.5393 9.58579 11.9144C9.96086 12.2894 10.4696 12.5002 11 12.5002H13C13.5304 12.5002 14.0391 12.7109 14.4142 13.0859C14.7893 13.461 15 13.9697 15 14.5002C15 15.0306 14.7893 15.5393 14.4142 15.9144C14.0391 16.2894 13.5304 16.5002 13 16.5002H11C10.6375 16.5124 10.2785 16.4258 9.96142 16.2496C9.64435 16.0735 9.38115 15.8144 9.2 15.5002" stroke="${color}" stroke-linecap="round" stroke-linejoin="round"/>
@@ -2,6 +2,6 @@ import { svg, SVGTemplateResult } from "lit";
2
2
 
3
3
  export const EmailOutlineIcon = (
4
4
  color = "white"
5
- ): SVGTemplateResult => svg`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="14" viewBox="0 0 16 14" fill="none">
5
+ ): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="14" viewBox="0 0 16 14" fill="none">
6
6
  <path fill-rule="evenodd" clip-rule="evenodd" d="M6.46964 0.488343H9.53036C10.898 0.488331 11.9813 0.488321 12.829 0.602304C13.7015 0.719609 14.4077 0.966767 14.9647 1.52369C15.5216 2.08061 15.7687 2.78681 15.886 3.65932C16 4.50711 16 5.59038 16 6.95802V7.04198C16 8.40962 16 9.49289 15.886 10.3407C15.7687 11.2132 15.5216 11.9194 14.9647 12.4763C14.4077 13.0332 13.7015 13.2804 12.829 13.3977C11.9813 13.5117 10.898 13.5117 9.53035 13.5117H6.46965C5.10201 13.5117 4.01875 13.5117 3.17096 13.3977C2.29846 13.2804 1.59227 13.0332 1.03534 12.4763C0.478423 11.9194 0.231266 11.2132 0.113961 10.3407C-2.09587e-05 9.49289 -1.15596e-05 8.40962 2.39342e-07 7.04198V6.95801C-1.15596e-05 5.59037 -2.09587e-05 4.50711 0.113961 3.65932C0.231266 2.78681 0.478423 2.08061 1.03534 1.52369C1.59227 0.966767 2.29846 0.719609 3.17096 0.602304C4.01875 0.488321 5.10201 0.488331 6.46964 0.488343ZM3.3197 1.70863C2.57098 1.8093 2.13962 1.99807 1.82467 2.31302C1.50973 2.62797 1.32095 3.05934 1.22029 3.80806C1.11746 4.57283 1.11628 5.58096 1.11628 7C1.11628 8.41903 1.11746 9.42716 1.22029 10.1919C1.32095 10.9407 1.50973 11.372 1.82467 11.687C2.13962 12.0019 2.57098 12.1907 3.3197 12.2914C4.08447 12.3942 5.0926 12.3954 6.51163 12.3954H9.48837C10.9074 12.3954 11.9155 12.3942 12.6803 12.2914C13.429 12.1907 13.8604 12.0019 14.1753 11.687C14.4903 11.372 14.6791 10.9407 14.7797 10.1919C14.8825 9.42716 14.8837 8.41903 14.8837 7C14.8837 5.58096 14.8825 4.57283 14.7797 3.80806C14.6791 3.05934 14.4903 2.62797 14.1753 2.31302C13.8604 1.99807 13.429 1.8093 12.6803 1.70863C11.9155 1.60581 10.9074 1.60463 9.48837 1.60463H6.51163C5.0926 1.60463 4.08448 1.60581 3.3197 1.70863ZM3.10611 3.66593C3.30345 3.42912 3.65539 3.39713 3.8922 3.59446L5.49882 4.93332C6.19311 5.5119 6.67515 5.9123 7.08211 6.17404C7.47605 6.42741 7.7432 6.51246 8 6.51246C8.2568 6.51246 8.52395 6.42741 8.91789 6.17404C9.32485 5.9123 9.80689 5.5119 10.5012 4.93332L12.1078 3.59446C12.3446 3.39713 12.6966 3.42912 12.8939 3.66593C13.0912 3.90273 13.0592 4.25468 12.8224 4.45202L11.1878 5.81419C10.5282 6.36389 9.99359 6.80943 9.52173 7.11291C9.0302 7.42904 8.5515 7.62875 8 7.62875C7.4485 7.62875 6.9698 7.42904 6.47827 7.11291C6.00641 6.80943 5.47179 6.36389 4.81218 5.81419L3.17757 4.45202C2.94077 4.25468 2.90877 3.90273 3.10611 3.66593Z" fill="${color}"/>
7
7
  </svg>`;
@@ -1,7 +1,7 @@
1
1
  import { svg, SVGTemplateResult } from "lit";
2
2
 
3
3
  export const HeyThereEmoji =
4
- (): SVGTemplateResult => svg`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="25" height="25" viewBox="0 0 25 25" fill="none">
4
+ (): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="25" height="25" viewBox="0 0 25 25" fill="none">
5
5
  <rect x="0.5" y="0.5" width="24" height="24" fill="url(#pattern0)"/>
6
6
  <defs>
7
7
  <pattern id="pattern0" patternContentUnits="objectBoundingBox" width="1" height="1">
@@ -2,6 +2,6 @@ import { svg, SVGTemplateResult } from "lit";
2
2
 
3
3
  export const PhoneOutlineIcon = (
4
4
  color = "white"
5
- ): SVGTemplateResult => svg`<svg xmlns="http://www.w3.org/2000/svg" width="14" height="17" viewBox="0 0 14 17" fill="none">
5
+ ): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="14" height="17" viewBox="0 0 14 17" fill="none">
6
6
  <path fill-rule="evenodd" clip-rule="evenodd" d="M6.95487 2.54301e-07H7.04513C8.51534 -1.22821e-05 9.67985 -2.22686e-05 10.5912 0.121084C11.5292 0.24572 12.2883 0.508324 12.887 1.10005C13.4857 1.69178 13.7514 2.44211 13.8775 3.36914C14 4.26992 14 5.42089 14 6.874V10.126C14 11.5791 14 12.7301 13.8775 13.6309C13.7514 14.5579 13.4857 15.3082 12.887 15.8999C12.2883 16.4917 11.5292 16.7543 10.5912 16.8789C9.67985 17 8.51534 17 7.04513 17H6.95487C5.48466 17 4.32015 17 3.40878 16.8789C2.47084 16.7543 1.71169 16.4917 1.11299 15.8999C0.514304 15.3082 0.248611 14.5579 0.122508 13.6309C-2.25306e-05 12.7301 -1.24266e-05 11.5791 2.57292e-07 10.126V6.87399C-1.24266e-05 5.42088 -2.25306e-05 4.26992 0.122508 3.36914C0.248611 2.44211 0.514304 1.69178 1.11299 1.10005C1.71169 0.508324 2.47084 0.24572 3.40878 0.121084C4.32015 -2.22686e-05 5.48466 -1.22821e-05 6.95487 2.54301e-07ZM2.85118 1.44157C2.45996 1.55714 2.18378 1.71904 1.96152 1.93871C1.62295 2.27335 1.42002 2.73167 1.31181 3.52718C1.20127 4.33975 1.2 5.41089 1.2 6.9186V10.0814C1.2 11.5891 1.20127 12.6602 1.31181 13.4728C1.42002 14.2683 1.62295 14.7267 1.96152 15.0613C2.30009 15.3959 2.76381 15.5965 3.56868 15.7034C4.39081 15.8127 5.47454 15.814 7 15.814C8.52546 15.814 9.60919 15.8127 10.4313 15.7034C11.2362 15.5965 11.6999 15.3959 12.0385 15.0613C12.377 14.7267 12.58 14.2683 12.6882 13.4728C12.7987 12.6602 12.8 11.5891 12.8 10.0814V6.9186C12.8 5.41089 12.7987 4.33975 12.6882 3.52718C12.58 2.73167 12.377 2.27335 12.0385 1.93871C11.8162 1.71905 11.54 1.55714 11.1488 1.44157C10.6194 2.22728 10.2493 2.77349 9.69896 3.1115C9.58916 3.17894 9.47507 3.23928 9.3574 3.29217C8.76366 3.55903 8.09363 3.55868 7.12834 3.55818C7.08613 3.55816 7.04336 3.55814 7 3.55814C6.95664 3.55814 6.91387 3.55816 6.87166 3.55818C5.90637 3.55868 5.23634 3.55903 4.6426 3.29217C4.52493 3.23928 4.41084 3.17894 4.30104 3.1115C3.75069 2.77349 3.38057 2.22729 2.85118 1.44157ZM4.16103 1.2383C4.51629 1.74715 4.70232 1.96157 4.9344 2.10411C5.00028 2.14457 5.06873 2.18078 5.13933 2.21251C5.46646 2.35954 5.85406 2.37209 7 2.37209C8.14594 2.37209 8.53354 2.35954 8.86066 2.21251C8.93127 2.18078 8.99972 2.14457 9.0656 2.10411C9.29768 1.96157 9.48371 1.74715 9.83897 1.2383C9.10278 1.18681 8.18457 1.18605 7 1.18605C5.81543 1.18605 4.89722 1.18681 4.16103 1.2383ZM4 14.0349C4 13.7074 4.26863 13.4419 4.6 13.4419H9.4C9.73137 13.4419 10 13.7074 10 14.0349C10 14.3624 9.73137 14.6279 9.4 14.6279H4.6C4.26863 14.6279 4 14.3624 4 14.0349Z" fill="${color}"/>
7
7
  </svg>`;
@@ -1,7 +1,7 @@
1
1
  import { svg, SVGTemplateResult } from "lit";
2
2
 
3
3
  export const SendMessageLargeIcon = (color = "black"): SVGTemplateResult => svg`
4
- <svg width="32" height="32" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
4
+ <svg aria-hidden="true" focusable="false" width="32" height="32" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
5
5
  <path fill-rule="evenodd" clip-rule="evenodd" d="M15 0C17.7614 0 20 2.23858 20 5V15C20 17.7614 17.7614 20 15 20H5C2.23858 20 0 17.7614 0 15V5C0 2.23858 2.23858 0 5 0H15ZM18 5C18 3.34315 16.6569 2 15 2H5C3.34315 2 2 3.34315 2 5V15C2 16.6569 3.34315 18 5 18H15C16.6569 18 18 16.6569 18 15V5Z" fill="${color}"/>
6
6
  <path d="M12.1893 9.25L10.4697 7.53033C10.1768 7.23744 10.1768 6.76256 10.4697 6.46967C10.7626 6.17678 11.2374 6.17678 11.5303 6.46967L13.8232 8.76256C14.5066 9.44598 14.5066 10.554 13.8232 11.2374L11.5303 13.5303C11.2374 13.8232 10.7626 13.8232 10.4697 13.5303C10.1768 13.2374 10.1768 12.7626 10.4697 12.4697L12.1893 10.75L6 10.75C5.58579 10.75 5.25 10.4142 5.25 10C5.25 9.58579 5.58579 9.25 6 9.25L12.1893 9.25Z" fill="${color}"/>
7
7
  </svg>
@@ -10,7 +10,7 @@ export const SendMessageLargeIcon = (color = "black"): SVGTemplateResult => svg`
10
10
  export const SendMessageMediumIcon = (
11
11
  color = "black"
12
12
  ): SVGTemplateResult => svg`
13
- <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
13
+ <svg aria-hidden="true" focusable="false" width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
14
14
  <path fill-rule="evenodd" clip-rule="evenodd" d="M15 0C17.7614 0 20 2.23858 20 5V15C20 17.7614 17.7614 20 15 20H5C2.23858 20 0 17.7614 0 15V5C0 2.23858 2.23858 0 5 0H15ZM18 5C18 3.34315 16.6569 2 15 2H5C3.34315 2 2 3.34315 2 5V15C2 16.6569 3.34315 18 5 18H15C16.6569 18 18 16.6569 18 15V5Z" fill="${color}"/>
15
15
  <path d="M12.1893 9.25L10.4697 7.53033C10.1768 7.23744 10.1768 6.76256 10.4697 6.46967C10.7626 6.17678 11.2374 6.17678 11.5303 6.46967L13.8232 8.76256C14.5066 9.44598 14.5066 10.554 13.8232 11.2374L11.5303 13.5303C11.2374 13.8232 10.7626 13.8232 10.4697 13.5303C10.1768 13.2374 10.1768 12.7626 10.4697 12.4697L12.1893 10.75L6 10.75C5.58579 10.75 5.25 10.4142 5.25 10C5.25 9.58579 5.58579 9.25 6 9.25L12.1893 9.25Z" fill="${color}"/>
16
16
  </svg>
@@ -3,6 +3,8 @@ import { svg, SVGTemplateResult } from "lit";
3
3
  export const TourSelfGuidedIcon = (
4
4
  color = "black"
5
5
  ): SVGTemplateResult => svg`<svg
6
+ aria-hidden="true"
7
+ focusable="false"
6
8
  slot="icon"
7
9
  width="28"
8
10
  height="31"
@@ -3,6 +3,8 @@ import { svg, SVGTemplateResult } from "lit";
3
3
  export const TourVirtuallyIcon = (
4
4
  color = "black"
5
5
  ): SVGTemplateResult => svg`<svg
6
+ aria-hidden="true"
7
+ focusable="false"
6
8
  slot="icon"
7
9
  width="26"
8
10
  height="25"
@@ -3,6 +3,8 @@ import { svg, SVGTemplateResult } from "lit";
3
3
  export const TourWithAgentIcon = (
4
4
  color = "black"
5
5
  ): SVGTemplateResult => svg`<svg
6
+ aria-hidden="true"
7
+ focusable="false"
6
8
  slot="icon"
7
9
  width="31"
8
10
  height="31"
@@ -2,7 +2,7 @@ import { svg, SVGTemplateResult } from "lit";
2
2
 
3
3
  export const XOutlineIcon = (
4
4
  color = "black"
5
- ): SVGTemplateResult => svg`<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15" fill="none">
5
+ ): SVGTemplateResult => svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15" fill="none">
6
6
  <line x1="1.70782" y1="13.2254" x2="13.2376" y2="1.69554" stroke="${color}" stroke-width="2.13401"/>
7
7
  <path d="M2.00929 1.99996L13.3328 13.3421" stroke="${color}" stroke-width="2.13401"/>
8
8
  </svg>`;
@@ -342,6 +342,8 @@ export class MESelect extends LitElement {
342
342
  />
343
343
 
344
344
  <svg
345
+ aria-hidden="true"
346
+ focusable="false"
345
347
  width="10"
346
348
  height="6"
347
349
  viewBox="0 0 10 6"
@@ -55,6 +55,8 @@ export class SimpleLauncher extends LitElement {
55
55
  aria-label="Close chat"
56
56
  >
57
57
  <svg
58
+ aria-hidden="true"
59
+ focusable="false"
58
60
  width="16"
59
61
  height="10"
60
62
  viewBox="0 0 16 10"
@@ -89,6 +91,8 @@ export class SimpleLauncher extends LitElement {
89
91
  aria-label="Open chat"
90
92
  >
91
93
  <svg
94
+ aria-hidden="true"
95
+ focusable="false"
92
96
  width="24"
93
97
  height="24"
94
98
  viewBox="0 0 24 24"
package/src/analytics.ts CHANGED
@@ -1,4 +1,4 @@
1
- import axios from "axios";
1
+ import axios, { AxiosError } from "axios";
2
2
  import { getCookieValue } from "./utils";
3
3
 
4
4
  declare global {
@@ -154,13 +154,16 @@ export const sendLoggingEvent = async ({
154
154
  orgSlug,
155
155
  logTitle,
156
156
  logData,
157
+ error,
157
158
  }: {
158
159
  logType?: LogType;
159
160
  buildingSlug?: string;
160
161
  orgSlug?: string;
161
162
  logTitle: string;
162
163
  logData: Record<string, unknown> | null;
164
+ error?: unknown;
163
165
  }): Promise<void> => {
166
+ if (error instanceof AxiosError && error.response?.status === 403) return;
164
167
  const host = "https://app.meetelise.com";
165
168
  await axios.post(
166
169
  `${host}/platformApi/webchat/logging`,
@@ -29,6 +29,7 @@ const fetchBuildingUnitsSummary = async ({
29
29
  buildingSlug,
30
30
  logTitle: "[ERROR_GETTING_UNITS_SUMMARY]",
31
31
  logData: { error },
32
+ error,
32
33
  });
33
34
  }
34
35
  return [];
@@ -18,6 +18,7 @@ export const getBuildingPhoneNumber = async (
18
18
  buildingSlug,
19
19
  logTitle: "[ERROR_GETTING_PHONE_NUMBERS]",
20
20
  logData: { error },
21
+ error,
21
22
  });
22
23
 
23
24
  return null;
@@ -233,6 +233,7 @@ export const insertDNIIntoWebsite = (
233
233
  logType: LogType.error,
234
234
  buildingSlug,
235
235
  orgSlug,
236
+ error: e,
236
237
  });
237
238
  return 0;
238
239
  }
@@ -71,6 +71,7 @@ export const calculateQuote = async (
71
71
  buildingSlug,
72
72
  logTitle: "[ERROR_CALCULATING_QUOTE]",
73
73
  logData: { error },
74
+ error,
74
75
  });
75
76
  }
76
77
  }
@@ -62,6 +62,7 @@ export const downloadQuotePdf = async ({
62
62
  buildingSlug,
63
63
  logTitle: "[ERROR_DOWNLOADING_QUOTE_PDF]",
64
64
  logData: { error },
65
+ error,
65
66
  });
66
67
  }
67
68
  };
@@ -35,6 +35,7 @@ const fetchBuildingFees = async (
35
35
  buildingSlug,
36
36
  logTitle: "[ERROR_GETTING_FEES]",
37
37
  logData: { error },
38
+ error,
38
39
  });
39
40
  }
40
41
 
@@ -44,6 +44,7 @@ const fetchBuildingFeesV2 = async (
44
44
  buildingSlug,
45
45
  logTitle: "[ERROR_GETTING_FEES]",
46
46
  logData: { error },
47
+ error,
47
48
  });
48
49
  }
49
50
 
@@ -65,6 +65,7 @@ const fetchBuildingFloorplans = async ({
65
65
  error,
66
66
  params: { numBedrooms, moveInDateEarliest, moveInDateLatest },
67
67
  },
68
+ error,
68
69
  });
69
70
  }
70
71
 
@@ -71,6 +71,7 @@ const fetchBuildingUnits = async ({
71
71
  error,
72
72
  params: { numBedrooms, moveInDateString, leaseTerm },
73
73
  },
74
+ error,
74
75
  });
75
76
  }
76
77
 
package/src/svgIcons.ts CHANGED
@@ -4,11 +4,11 @@ import { svg } from "lit";
4
4
  * TODO(erol): PLEASE MOVE INTO EACH OWN ICON FILE UNDER /ICONS
5
5
  */
6
6
 
7
- export const CheckboxEmpty = svg`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
7
+ export const CheckboxEmpty = svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
8
8
  <rect x="1" y="1" width="22" height="22" stroke="black" stroke-width="2" rx="2"/>
9
9
  </svg>
10
10
  `;
11
- export const CheckboxChecked = svg`<svg xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none">
11
+ export const CheckboxChecked = svg`<svg aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg" width="16" height="17" viewBox="0 0 16 17" fill="none">
12
12
  <rect y="0.09375" width="16" height="16" rx="2" fill="#4719CD"/>
13
13
  <path d="M12 5.09375L6.5 10.5938L4 8.09375" stroke="white" stroke-linecap="round" stroke-linejoin="round"/>
14
14
  </svg>`;