@meetelise/chat 1.12.11 → 1.12.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetelise/chat",
3
- "version": "1.12.11",
3
+ "version": "1.12.12",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "public/dist/index.js",
@@ -1985,4 +1985,4 @@ var e={8005:function(e,t,i){var n,r=this&&this.__extends||(n=function(e,t){retur
1985
1985
  width: 100%;
1986
1986
  height: 100px;
1987
1987
  }
1988
- `,Cn.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})})),Nn([oe({type:String})],Cn.prototype,"buildingSlug",void 0),Nn([oe({type:String})],Cn.prototype,"orgSlug",void 0),Nn([oe({type:String})],Cn.prototype,"themeId",void 0),Nn([oe({attribute:!1})],Cn.prototype,"avatarSrc",void 0),Nn([oe({type:Boolean})],Cn.prototype,"useMiniWidget",void 0),Nn([ae()],Cn.prototype,"popup",void 0),Nn([ae()],Cn.prototype,"theme",void 0),Nn([ae()],Cn.prototype,"chatId",void 0),Nn([ae()],Cn.prototype,"analytics",void 0),Nn([ae()],Cn.prototype,"isMobile",void 0),Nn([ae()],Cn.prototype,"launcher",void 0),Nn([ae()],Cn.prototype,"building",void 0),Nn([ae()],Cn.prototype,"hasMounted",void 0),Nn([ae()],Cn.prototype,"hideLauncher",void 0),Cn=Rn=Nn([ne("me-chat")],Cn);class An{static start(e){En();const t=document.createElement("me-chat");t.setAttribute("orgSlug",e.organization),t.setAttribute("buildingSlug",e.building),e.themeId&&t.setAttribute("themeId",e.themeId),e.avatarSrc&&t.setAttribute("avatarSrc",e.avatarSrc),void 0!==e.mini&&(t.useMiniWidget=e.mini),document.body.appendChild(t),An.meChat=t}static async restartConversation(){this.meChat&&await this.meChat.restartConversation()}}An.meChat=null;const En=()=>{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)}})();var r=n.Z;export{r as default};
1988
+ `,Cn.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})})),Nn([oe({type:String})],Cn.prototype,"buildingSlug",void 0),Nn([oe({type:String})],Cn.prototype,"orgSlug",void 0),Nn([oe({type:String})],Cn.prototype,"themeId",void 0),Nn([oe({attribute:!1})],Cn.prototype,"avatarSrc",void 0),Nn([oe({type:Boolean})],Cn.prototype,"useMiniWidget",void 0),Nn([ae()],Cn.prototype,"popup",void 0),Nn([ae()],Cn.prototype,"theme",void 0),Nn([ae()],Cn.prototype,"chatId",void 0),Nn([ae()],Cn.prototype,"analytics",void 0),Nn([ae()],Cn.prototype,"isMobile",void 0),Nn([ae()],Cn.prototype,"launcher",void 0),Nn([ae()],Cn.prototype,"building",void 0),Nn([ae()],Cn.prototype,"hasMounted",void 0),Nn([ae()],Cn.prototype,"hideLauncher",void 0),Cn=Rn=Nn([ne("me-chat")],Cn);class An{static start(e){En();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),document.body.appendChild(t),An.meChat=t}static async restartConversation(){this.meChat&&await this.meChat.restartConversation()}}An.meChat=null;const En=()=>{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)}})();var r=n.Z;export{r as default};
package/src/MEChat.ts CHANGED
@@ -22,6 +22,7 @@ export default class MEChat {
22
22
  const meChat = document.createElement("me-chat");
23
23
  meChat.setAttribute("orgSlug", opts.organization);
24
24
  meChat.setAttribute("buildingSlug", opts.building);
25
+ meChat.setAttribute("class", "meetelise-chat");
25
26
  if (opts.themeId) {
26
27
  meChat.setAttribute("themeId", opts.themeId);
27
28
  }