@meetelise/chat 1.51.11 → 1.51.12

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.
@@ -4,6 +4,7 @@ import { customElement, property, query, state } from "lit/decorators.js";
4
4
  import "../actions/international-phone-input";
5
5
  import type { InternationalPhoneChangeDetail } from "../actions/international-phone-input";
6
6
  import "./tour-type-option.ts";
7
+ import { unselectedTourTypeForegroundColor } from "./tour-type-option";
7
8
  import "./date-picker.ts";
8
9
  import "./time-picker.ts";
9
10
  import "../me-select.ts";
@@ -43,7 +44,7 @@ import {
43
44
  import { pushGtmEvent } from "../../gtm";
44
45
  import formDisclaimer from "../../disclaimers";
45
46
  import { tourSchedulerStyles } from "./tourSchedulerStyles";
46
- import { defaultPrimaryColor, defaultBackgroundColor } from "../../themes";
47
+ import { defaultPrimaryColor } from "../../themes";
47
48
  import { LogType, sendLoggingEvent } from "../../analytics";
48
49
  import LeadSourceClient, {
49
50
  getDefaultLeadSourceAttribution,
@@ -206,15 +207,9 @@ export class TourScheduler extends LitElement {
206
207
  @property({ attribute: true })
207
208
  primaryColor: string = defaultPrimaryColor;
208
209
 
209
- @property({ attribute: true })
210
- backgroundColor: string = defaultBackgroundColor;
211
-
212
210
  @property({ attribute: true })
213
211
  foregroundColorOnPrimaryBackgroundColor = "white";
214
212
 
215
- @property({ attribute: true })
216
- foregroundColorOnSecondaryBackgroundColor = "black";
217
-
218
213
  @query(".nameContainer#firstName input")
219
214
  firstNameInput!: HTMLInputElement;
220
215
  @query(".nameContainer#lastName input")
@@ -870,7 +865,8 @@ export class TourScheduler extends LitElement {
870
865
  heading="Take a tour"
871
866
  subtitle="on your own"
872
867
  .primaryColor=${this.primaryColor}
873
- .backgroundColor=${this.backgroundColor}
868
+ .foregroundColorOnPrimaryBackgroundColor=${this
869
+ .foregroundColorOnPrimaryBackgroundColor}
874
870
  @click="${async () => {
875
871
  this.tourType = TourType.Self;
876
872
  pushGtmEvent("tourTypeSelected", {
@@ -905,7 +901,7 @@ export class TourScheduler extends LitElement {
905
901
  ${TourSelfGuidedIcon(
906
902
  this.tourType === TourType.Self
907
903
  ? this.foregroundColorOnPrimaryBackgroundColor
908
- : this.foregroundColorOnSecondaryBackgroundColor
904
+ : unselectedTourTypeForegroundColor
909
905
  )}
910
906
  </tour-type-option>`
911
907
  : ""}
@@ -914,11 +910,8 @@ export class TourScheduler extends LitElement {
914
910
  heading="Guided tour"
915
911
  subtitle="with an agent"
916
912
  .primaryColor=${this.primaryColor}
917
- .backgroundColor=${this.backgroundColor}
918
913
  .foregroundColorOnPrimaryBackgroundColor=${this
919
914
  .foregroundColorOnPrimaryBackgroundColor}
920
- .foregroundColorOnSecondaryBackgroundColor=${this
921
- .foregroundColorOnSecondaryBackgroundColor}
922
915
  @click="${async () => {
923
916
  this.tourType = TourType.Guided;
924
917
  pushGtmEvent("tourTypeSelected", {
@@ -954,7 +947,7 @@ export class TourScheduler extends LitElement {
954
947
  ${TourWithAgentIcon(
955
948
  this.tourType === TourType.Guided
956
949
  ? this.foregroundColorOnPrimaryBackgroundColor
957
- : this.foregroundColorOnSecondaryBackgroundColor
950
+ : unselectedTourTypeForegroundColor
958
951
  )}
959
952
  </tour-type-option>`
960
953
  : ""}
@@ -963,7 +956,8 @@ export class TourScheduler extends LitElement {
963
956
  heading="Virtual tour"
964
957
  subtitle="over video"
965
958
  .primaryColor=${this.primaryColor}
966
- .backgroundColor=${this.backgroundColor}
959
+ .foregroundColorOnPrimaryBackgroundColor=${this
960
+ .foregroundColorOnPrimaryBackgroundColor}
967
961
  @click="${async () => {
968
962
  this.tourType = TourType.Virtual;
969
963
  pushGtmEvent("tourTypeSelected", {
@@ -998,7 +992,7 @@ export class TourScheduler extends LitElement {
998
992
  ${TourVirtuallyIcon(
999
993
  this.tourType === TourType.Virtual
1000
994
  ? this.foregroundColorOnPrimaryBackgroundColor
1001
- : this.foregroundColorOnSecondaryBackgroundColor
995
+ : unselectedTourTypeForegroundColor
1002
996
  )}
1003
997
  </tour-type-option>`
1004
998
  : ""}
@@ -1,7 +1,9 @@
1
1
  import { css, html, LitElement, TemplateResult } from "lit";
2
2
  import { customElement, property } from "lit/decorators.js";
3
3
  import { styleMap } from "lit/directives/style-map.js";
4
- import { defaultPrimaryColor, defaultBackgroundColor } from "../../themes";
4
+ import { defaultPrimaryColor } from "../../themes";
5
+
6
+ export const unselectedTourTypeForegroundColor = "#202020";
5
7
 
6
8
  @customElement("tour-type-option")
7
9
  export class TourTypeOption extends LitElement {
@@ -17,15 +19,9 @@ export class TourTypeOption extends LitElement {
17
19
  @property({ attribute: true })
18
20
  primaryColor: string = defaultPrimaryColor;
19
21
 
20
- @property({ attribute: true })
21
- backgroundColor: string = defaultBackgroundColor;
22
-
23
22
  @property({ attribute: true })
24
23
  foregroundColorOnPrimaryBackgroundColor = "white";
25
24
 
26
- @property({ attribute: true })
27
- foregroundColorOnSecondaryBackgroundColor = "black";
28
-
29
25
  static styles = [
30
26
  css`
31
27
  .tour-type-option {
@@ -103,7 +99,7 @@ export class TourTypeOption extends LitElement {
103
99
  style=${styleMap({
104
100
  color: this.selected
105
101
  ? this.foregroundColorOnPrimaryBackgroundColor
106
- : this.foregroundColorOnSecondaryBackgroundColor,
102
+ : undefined,
107
103
  })}
108
104
  >
109
105
  <span class="heading">${this.heading}</span>
@@ -69,6 +69,9 @@ export class MinimizeExpandButton extends LitElement {
69
69
  @property({ attribute: true })
70
70
  primaryColor: string = defaultPrimaryColor;
71
71
 
72
+ @property({ attribute: true })
73
+ foregroundColorOnPrimaryBackgroundColor = "white";
74
+
72
75
  @property({ attribute: true })
73
76
  toExpand = false;
74
77
 
@@ -86,8 +89,14 @@ export class MinimizeExpandButton extends LitElement {
86
89
  })}
87
90
  >
88
91
  ${this.toExpand
89
- ? html`<div class="chevron-up">${ChevronRightIcon("white")}</div>`
90
- : html` <div class="x-icon">${XOutlineIcon("white")}</div>`}
92
+ ? html`<div class="chevron-up">
93
+ ${ChevronRightIcon(
94
+ this.foregroundColorOnPrimaryBackgroundColor
95
+ )}
96
+ </div>`
97
+ : html` <div class="x-icon">
98
+ ${XOutlineIcon(this.foregroundColorOnPrimaryBackgroundColor)}
99
+ </div>`}
91
100
  </div>
92
101
  </button>
93
102
  `;
@@ -118,9 +118,9 @@ export class ChatAdditionalActions extends LitElement {
118
118
  .primaryColor=${primaryColorValue}
119
119
  .backgroundColor=${backgroundColorValue}
120
120
  .foregroundColorOnPrimaryBackgroundColor=${this
121
- .foregroundColorOnPrimaryBackgroundColor}
121
+ .foregroundColorOnPrimaryBackgroundColor ?? "white"}
122
122
  .foregroundColorOnSecondaryBackgroundColor=${this
123
- .foregroundColorOnSecondaryBackgroundColor}
123
+ .foregroundColorOnSecondaryBackgroundColor ?? "black"}
124
124
  .hideChat=${true}
125
125
  .hasCallUsEnabled=${this.enabledChatWidgets.callDesktop}
126
126
  .hasChatEnabled=${this.enabledChatWidgets.chatDesktop}
@@ -130,7 +130,8 @@ export class ChatAdditionalActions extends LitElement {
130
130
  ></mobile-launcher>
131
131
  <minimize-expand-button
132
132
  .primaryColor=${primaryColorValue}
133
- .backgroundColor=${backgroundColorValue}
133
+ .foregroundColorOnPrimaryBackgroundColor=${this
134
+ .foregroundColorOnPrimaryBackgroundColor ?? "white"}
134
135
  .onClick=${this.onClose}
135
136
  ></minimize-expand-button>
136
137
  </div>
@@ -477,6 +477,8 @@ export class Launcher extends LitElement {
477
477
  : this.hasHideMobileFeatures && !this.isMobileFeaturesExpanded
478
478
  ? false
479
479
  : this.hasPricingCalculatorEnabledMobile}
480
+ .foregroundColorOnPrimaryBackgroundColor=${this
481
+ .foregroundColorOnPrimaryBackgroundColor}
480
482
  .foregroundColorOnSecondaryBackgroundColor=${this
481
483
  .foregroundColorOnSecondaryBackgroundColor}
482
484
  ></mobile-launcher>`;
@@ -703,18 +705,31 @@ export class Launcher extends LitElement {
703
705
  ${this.hasChatEnabledDesktop
704
706
  ? html`<minimize-expand-button
705
707
  .primaryColor=${this.primaryColor}
708
+ .foregroundColorOnPrimaryBackgroundColor=${this
709
+ .foregroundColorOnPrimaryBackgroundColor}
706
710
  .onClick=${this.onClickMinimize}
707
711
  ></minimize-expand-button>`
708
712
  : ""}
709
713
  </div>
710
714
 
711
715
  <div class="type-hey__top-section">
712
- <div class="type-hey__ai-topic">
716
+ <div
717
+ class="type-hey__ai-topic"
718
+ style=${styleMap({
719
+ color: this.foregroundColorOnPrimaryBackgroundColor,
720
+ })}
721
+ >
713
722
  <p>AI Assistant</p>
714
723
  <div class="type-hey__ai-topic-notch"></div>
715
724
  </div>
716
725
  <div class="type-hey__greeting">
717
- <h1>Hey there!</h1>
726
+ <h1
727
+ style=${styleMap({
728
+ color: this.foregroundColorOnPrimaryBackgroundColor,
729
+ })}
730
+ >
731
+ Hey there!
732
+ </h1>
718
733
  <div>${HeyThereEmoji()}</div>
719
734
  </div>
720
735
  ${this.hasChatEnabledDesktop
@@ -773,9 +788,15 @@ export class Launcher extends LitElement {
773
788
  >
774
789
  <div class="type-hey__pill-left">
775
790
  <div class="type-hey__icon">
776
- ${ContactResidentIcon("black")}
791
+ ${ContactResidentIcon(
792
+ this.foregroundColorOnSecondaryBackgroundColor
793
+ )}
777
794
  </div>
778
- <div>
795
+ <div
796
+ style=${styleMap({
797
+ color: this.foregroundColorOnSecondaryBackgroundColor,
798
+ })}
799
+ >
779
800
  <span class="title-bold">Contact</span> a resident
780
801
  </div>
781
802
  </div>
@@ -1121,13 +1142,20 @@ export class Launcher extends LitElement {
1121
1142
  this.foregroundColorOnSecondaryBackgroundColor
1122
1143
  )}
1123
1144
  </div>
1124
- <div class="vertical-pill-title">
1145
+ <div
1146
+ class="vertical-pill-title"
1147
+ style=${styleMap({
1148
+ color: this.foregroundColorOnSecondaryBackgroundColor,
1149
+ })}
1150
+ >
1125
1151
  <span class="vertical-pill-bold">Contact</span> a
1126
1152
  resident
1127
1153
  </div>
1128
1154
  </div>
1129
1155
  <div class="chevron-right">
1130
- ${ChevronRightIcon("black")}
1156
+ ${ChevronRightIcon(
1157
+ this.foregroundColorOnSecondaryBackgroundColor
1158
+ )}
1131
1159
  </div>
1132
1160
  </button>
1133
1161
  </li>`
@@ -1337,8 +1365,6 @@ export class Launcher extends LitElement {
1337
1365
  .primaryColor=${this.primaryColor}
1338
1366
  .foregroundColorOnPrimaryBackgroundColor=${this
1339
1367
  .foregroundColorOnPrimaryBackgroundColor}
1340
- .foregroundColorOnSecondaryBackgroundColor=${this
1341
- .foregroundColorOnSecondaryBackgroundColor}
1342
1368
  .compactDesign=${this.showTourNextToChat
1343
1369
  ? this.showTourNextToChat
1344
1370
  : ""}
@@ -83,6 +83,9 @@ export class MobileLauncher extends LitElement {
83
83
  @property({ attribute: true })
84
84
  overrideRentgrata = false;
85
85
 
86
+ @property({ attribute: true })
87
+ foregroundColorOnPrimaryBackgroundColor = "white";
88
+
86
89
  @property({ attribute: true })
87
90
  foregroundColorOnSecondaryBackgroundColor = "black";
88
91
 
@@ -161,6 +164,8 @@ export class MobileLauncher extends LitElement {
161
164
  <minimize-expand-button
162
165
  .onClick=${this.onClickMinimize}
163
166
  .primaryColor=${this.primaryColor}
167
+ .foregroundColorOnPrimaryBackgroundColor=${this
168
+ .foregroundColorOnPrimaryBackgroundColor}
164
169
  .toExpand=${true}
165
170
  ></minimize-expand-button>
166
171
  </li>
@@ -92,7 +92,6 @@ export const typeEmojiStyles = css`
92
92
 
93
93
  margin: auto;
94
94
  margin-top: 26px;
95
- color: #ffffff;
96
95
  position: relative;
97
96
  }
98
97
  .type-hey__ai-topic p {
@@ -133,8 +132,6 @@ export const typeEmojiStyles = css`
133
132
  font-size: 20px;
134
133
  line-height: 22px;
135
134
  margin: 0;
136
-
137
- color: #ffffff;
138
135
  }
139
136
 
140
137
  #type-hey__ask-prompt {