@meetelise/chat 1.20.6 → 1.20.7

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.20.6",
3
+ "version": "1.20.7",
4
4
  "description": "",
5
5
  "main": "public/dist/index.js",
6
6
  "type": "module",
@@ -2182,4 +2182,4 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
2182
2182
  width: 100%;
2183
2183
  height: 100px;
2184
2184
  }
2185
- `,Pi.session=Oe.ready.then((()=>{const e=new Oe.User({id:"anonymous",name:"Me",email:null,role:"Default"});return new Oe.Session({appId:"ogKIvCor",me:e})})),Mi([oe({type:String})],Pi.prototype,"buildingSlug",void 0),Mi([oe({type:String})],Pi.prototype,"orgSlug",void 0),Mi([oe({type:String})],Pi.prototype,"themeId",void 0),Mi([oe({attribute:!1})],Pi.prototype,"avatarSrc",void 0),Mi([oe({type:Boolean})],Pi.prototype,"useMiniWidget",void 0),Mi([oe({type:Object})],Pi.prototype,"launcherStyles",void 0),Mi([ae()],Pi.prototype,"popup",void 0),Mi([ae()],Pi.prototype,"theme",void 0),Mi([ae()],Pi.prototype,"chatId",void 0),Mi([ae()],Pi.prototype,"analytics",void 0),Mi([ae()],Pi.prototype,"isMobile",void 0),Mi([ae()],Pi.prototype,"launcher",void 0),Mi([ae()],Pi.prototype,"building",void 0),Mi([ae()],Pi.prototype,"hasMounted",void 0),Mi([ae()],Pi.prototype,"hideLauncher",void 0),Pi=Fi=Mi([ie("me-chat")],Pi);class Di{static start(e){qi(),Ui();const t=document.createElement("me-chat");t.setAttribute("orgSlug",e.organization),t.setAttribute("buildingSlug",e.building),t.setAttribute("class","meetelise-chat"),e.themeId&&t.setAttribute("themeId",e.themeId),e.avatarSrc&&t.setAttribute("avatarSrc",e.avatarSrc),void 0!==e.mini&&(t.useMiniWidget=e.mini),e.launcherStyles&&(t.launcherStyles=e.launcherStyles),document.body.appendChild(t),Di.meChat=t}static async restartConversation(){this.meChat&&await this.meChat.restartConversation()}static async remove(){this.meChat&&(await this.meChat.remove(),document.body.removeChild(this.meChat),Di.meChat=null)}}Di.meChat=null;const qi=()=>{const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("href","https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;900&display=swap"),document.head.appendChild(e)},Ui=()=>{const e=document.createElement("meta");e.setAttribute("name","viewport"),e.setAttribute("content","width=device-width, initial-scale=1, maximum-scale=1"),document.head.appendChild(e)}})();var r=i.Z;export{r as default};
2185
+ `,Pi.session=Oe.ready.then((()=>{const e=new Oe.User({id:"anonymous",name:"Me",email:null,role:"Default"});return new Oe.Session({appId:"ogKIvCor",me:e})})),Mi([oe({type:String})],Pi.prototype,"buildingSlug",void 0),Mi([oe({type:String})],Pi.prototype,"orgSlug",void 0),Mi([oe({type:String})],Pi.prototype,"themeId",void 0),Mi([oe({attribute:!1})],Pi.prototype,"avatarSrc",void 0),Mi([oe({type:Boolean})],Pi.prototype,"useMiniWidget",void 0),Mi([oe({type:Object})],Pi.prototype,"launcherStyles",void 0),Mi([ae()],Pi.prototype,"popup",void 0),Mi([ae()],Pi.prototype,"theme",void 0),Mi([ae()],Pi.prototype,"chatId",void 0),Mi([ae()],Pi.prototype,"analytics",void 0),Mi([ae()],Pi.prototype,"isMobile",void 0),Mi([ae()],Pi.prototype,"launcher",void 0),Mi([ae()],Pi.prototype,"building",void 0),Mi([ae()],Pi.prototype,"hasMounted",void 0),Mi([ae()],Pi.prototype,"hideLauncher",void 0),Pi=Fi=Mi([ie("me-chat")],Pi);class Di{static start(e){qi(),Ui();const t=document.createElement("me-chat");t.setAttribute("orgSlug",e.organization),t.setAttribute("buildingSlug",e.building),t.setAttribute("class","meetelise-chat"),e.themeId&&t.setAttribute("themeId",e.themeId),e.avatarSrc&&t.setAttribute("avatarSrc",e.avatarSrc),void 0!==e.mini&&(t.useMiniWidget=e.mini),e.launcherStyles&&(t.launcherStyles=e.launcherStyles),document.body.appendChild(t),Di.meChat=t}static async restartConversation(){this.meChat&&await this.meChat.restartConversation()}static async remove(){this.meChat&&(await this.meChat.remove(),document.body.removeChild(this.meChat),Di.meChat=null)}}Di.meChat=null;const qi=()=>{const e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("href","https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;900&display=swap"),document.head.appendChild(e)},Ui=()=>{const e=document.createElement("meta");e.setAttribute("name","viewport"),e.setAttribute("content","width=device-width, initial-scale=1, maximum-scale=2"),document.head.appendChild(e)}})();var r=i.Z;export{r as default};
package/src/MEChat.ts CHANGED
@@ -84,7 +84,7 @@ const installTalkjsMobileStyleFix = () => {
84
84
  metaTag.setAttribute("name", "viewport");
85
85
  metaTag.setAttribute(
86
86
  "content",
87
- "width=device-width, initial-scale=1, maximum-scale=1"
87
+ "width=device-width, initial-scale=1, maximum-scale=2"
88
88
  );
89
89
  document.head.appendChild(metaTag);
90
90
  };