@meetelise/chat 1.12.3 → 1.12.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetelise/chat",
3
- "version": "1.12.3",
3
+ "version": "1.12.4",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "public/dist/index.js",
@@ -17,6 +17,8 @@
17
17
  display: flex;
18
18
  flex-direction: column;
19
19
  align-items: center;
20
+ /* to test that our web component doesn't inherit styles from the main page */
21
+ letter-spacing: 4px;
20
22
  }
21
23
  main {
22
24
  margin: 3rem 1rem;
@@ -1732,7 +1732,7 @@ var e={8005:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){retur
1732
1732
  .call-us-window__open-times {
1733
1733
  text-transform: lowercase;
1734
1734
  }
1735
- `],on([oe({attribute:!1})],an.prototype,"onCloseClicked",void 0),on([oe()],an.prototype,"phoneNumber",void 0),on([oe({attribute:!1})],an.prototype,"buildingId",void 0),on([oe({attribute:!1})],an.prototype,"officeHoursTextInfo",void 0),an=on([ne("call-us-window")],an);const sn={};var un=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let ln=class extends te{constructor(){super(...arguments),this.isMobile=!1,this.isFirstMount=!1,this.backgroundColor="rgba(255, 255, 255, 0.75)",this.textColor="#202020",this.isMini=!0,this.phoneNumber="",this.buildingId=0,this.hasEmailEnabled=!0,this.hasSSTEnabled=!0,this.hasTextUsEnabled=!1,this.layoutOptions=[],this.tourTypeOptions=[],this.onChatTapped=()=>{},this.isEmailWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isSSTWindowOpen=!1,this.isTextUsWindowOpen=!1,this.getNumCallToActions=()=>[this.hasEmailEnabled,!!this.phoneNumber,this.hasSSTEnabled,this.hasTextUsEnabled].filter((e=>e)).length,this.emailUsWindowRef=Se(),this.textUsWindowRef=Se(),this.tourSchedulerRef=Se(),this.updated=async()=>{if(this.attachOnClickToEmailUsWindow(),this.attachOnClickToTextUsWindow(),this.buildingId){const e=await(async e=>{if(sn[e])return sn[e];const t=`http://ivr.internal-meetelise.com/sms_management_numbers/webchat/building/${e}/numbers`,i=await li().get(t);return sn[e]=i.data,i.data})(this.buildingId);this.hasTextUsEnabled=e.length>0&&4895!==this.buildingId}this.attachOnClickToSSTWindow()},this.attachOnClickToEmailUsWindow=()=>{const e=this.emailUsWindowRef.value;e&&(e.onCloseClicked=this.onCloseEmailWindow)},this.attachOnClickToTextUsWindow=()=>{const e=this.textUsWindowRef.value;e&&(e.onCloseClicked=this.onCloseTextUsWindow)},this.attachOnClickToSSTWindow=()=>{const e=this.tourSchedulerRef.value;e&&(e.onCloseClicked=this.onCloseSSTWindow)},this.onClickEmailOption=e=>{e.preventDefault(),e.stopPropagation(),this.isEmailWindowOpen=!0},this.onCloseEmailWindow=()=>{this.isEmailWindowOpen=!1},this.renderEmailOption=()=>{const e=this.getNumCallToActions()>2?"Email":"Email us";return D`
1735
+ `],on([oe({attribute:!1})],an.prototype,"onCloseClicked",void 0),on([oe()],an.prototype,"phoneNumber",void 0),on([oe({attribute:!1})],an.prototype,"buildingId",void 0),on([oe({attribute:!1})],an.prototype,"officeHoursTextInfo",void 0),an=on([ne("call-us-window")],an);const sn={};var un=function(e,t,i,n){var r,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,n);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,i,a):r(t,i))||a);return o>3&&a&&Object.defineProperty(t,i,a),a};let ln=class extends te{constructor(){super(...arguments),this.isMobile=!1,this.isFirstMount=!1,this.backgroundColor="rgba(255, 255, 255, 0.75)",this.textColor="#202020",this.isMini=!0,this.phoneNumber="",this.buildingId=0,this.hasEmailEnabled=!0,this.hasSSTEnabled=!0,this.hasTextUsEnabled=!1,this.layoutOptions=[],this.tourTypeOptions=[],this.onChatTapped=()=>{},this.isEmailWindowOpen=!1,this.isCallUsWindowOpen=!1,this.isSSTWindowOpen=!1,this.isTextUsWindowOpen=!1,this.getNumCallToActions=()=>[this.hasEmailEnabled,!!this.phoneNumber,this.hasSSTEnabled,this.hasTextUsEnabled].filter((e=>e)).length,this.emailUsWindowRef=Se(),this.textUsWindowRef=Se(),this.tourSchedulerRef=Se(),this.updated=async()=>{if(this.attachOnClickToEmailUsWindow(),this.attachOnClickToTextUsWindow(),this.attachOnClickToSSTWindow(),this.buildingId){const e=await(async e=>{if(sn[e])return sn[e];const t=`http://ivr.internal-meetelise.com/sms_management_numbers/webchat/building/${e}/numbers`,i=await li().get(t);return sn[e]=i.data,i.data})(this.buildingId);this.hasTextUsEnabled=e.length>0&&4895!==this.buildingId}},this.attachOnClickToEmailUsWindow=()=>{const e=this.emailUsWindowRef.value;e&&(e.onCloseClicked=this.onCloseEmailWindow)},this.attachOnClickToTextUsWindow=()=>{const e=this.textUsWindowRef.value;e&&(e.onCloseClicked=this.onCloseTextUsWindow)},this.attachOnClickToSSTWindow=()=>{const e=this.tourSchedulerRef.value;e&&(e.onCloseClicked=this.onCloseSSTWindow)},this.onClickEmailOption=e=>{e.preventDefault(),e.stopPropagation(),this.isEmailWindowOpen=!0},this.onCloseEmailWindow=()=>{this.isEmailWindowOpen=!1},this.renderEmailOption=()=>{const e=this.getNumCallToActions()>2?"Email":"Email us";return D`
1736
1736
  <div
1737
1737
  @click=${this.onClickEmailOption}
1738
1738
  class="in-house-launcher__call-to-action-option"
@@ -1965,6 +1965,10 @@ var e={8005:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){retur
1965
1965
  </in-house-launcher>
1966
1966
  </div>
1967
1967
  `}};Rn.styles=a`
1968
+ :host {
1969
+ all: initial;
1970
+ }
1971
+
1968
1972
  #__talkjs_launcher:not(.shouldBeVisible) {
1969
1973
  display: none;
1970
1974
  }
@@ -76,6 +76,7 @@ export class InHouseLauncher extends LitElement {
76
76
  updated = async (): Promise<void> => {
77
77
  this.attachOnClickToEmailUsWindow();
78
78
  this.attachOnClickToTextUsWindow();
79
+ this.attachOnClickToSSTWindow();
79
80
  if (this.buildingId) {
80
81
  const registeredPhoneNumbers = await getRegisteredPhoneNumbers(
81
82
  this.buildingId
@@ -83,7 +84,6 @@ export class InHouseLauncher extends LitElement {
83
84
  this.hasTextUsEnabled =
84
85
  registeredPhoneNumbers.length > 0 && this.buildingId !== 4895;
85
86
  }
86
- this.attachOnClickToSSTWindow();
87
87
  };
88
88
 
89
89
  attachOnClickToEmailUsWindow = (): void => {
@@ -27,6 +27,10 @@ export interface Options {
27
27
  @customElement("me-chat")
28
28
  export class MEChat extends LitElement {
29
29
  static styles = css`
30
+ :host {
31
+ all: initial;
32
+ }
33
+
30
34
  #__talkjs_launcher:not(.shouldBeVisible) {
31
35
  display: none;
32
36
  }