@meetelise/chat 1.19.0 → 1.19.1
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 +1 -1
- package/public/dist/index.js +1 -1
- package/src/MEChat.ts +7 -0
- package/src/WebComponent/me-chat.ts +1 -1
package/package.json
CHANGED
package/public/dist/index.js
CHANGED
|
@@ -2117,4 +2117,4 @@ var e={8005:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){retur
|
|
|
2117
2117
|
width: 100%;
|
|
2118
2118
|
height: 100px;
|
|
2119
2119
|
}
|
|
2120
|
-
`,yi.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})})),gi([oe({type:String})],yi.prototype,"buildingSlug",void 0),gi([oe({type:String})],yi.prototype,"orgSlug",void 0),gi([oe({type:String})],yi.prototype,"themeId",void 0),gi([oe({attribute:!1})],yi.prototype,"avatarSrc",void 0),gi([oe({type:Boolean})],yi.prototype,"useMiniWidget",void 0),gi([oe({type:Object})],yi.prototype,"launcherStyles",void 0),gi([ae()],yi.prototype,"popup",void 0),gi([ae()],yi.prototype,"theme",void 0),gi([ae()],yi.prototype,"chatId",void 0),gi([ae()],yi.prototype,"analytics",void 0),gi([ae()],yi.prototype,"isMobile",void 0),gi([ae()],yi.prototype,"launcher",void 0),gi([ae()],yi.prototype,"building",void 0),gi([ae()],yi.prototype,"hasMounted",void 0),gi([ae()],yi.prototype,"hideLauncher",void 0),yi=vi=gi([ie("me-chat")],yi);class wi{static start(e){bi(),Si();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),wi.meChat=t}static async restartConversation(){this.meChat&&await this.meChat.restartConversation()}}wi.meChat=null;const bi=()=>{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)},Si=()=>{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};
|
|
2120
|
+
`,yi.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})})),gi([oe({type:String})],yi.prototype,"buildingSlug",void 0),gi([oe({type:String})],yi.prototype,"orgSlug",void 0),gi([oe({type:String})],yi.prototype,"themeId",void 0),gi([oe({attribute:!1})],yi.prototype,"avatarSrc",void 0),gi([oe({type:Boolean})],yi.prototype,"useMiniWidget",void 0),gi([oe({type:Object})],yi.prototype,"launcherStyles",void 0),gi([ae()],yi.prototype,"popup",void 0),gi([ae()],yi.prototype,"theme",void 0),gi([ae()],yi.prototype,"chatId",void 0),gi([ae()],yi.prototype,"analytics",void 0),gi([ae()],yi.prototype,"isMobile",void 0),gi([ae()],yi.prototype,"launcher",void 0),gi([ae()],yi.prototype,"building",void 0),gi([ae()],yi.prototype,"hasMounted",void 0),gi([ae()],yi.prototype,"hideLauncher",void 0),yi=vi=gi([ie("me-chat")],yi);class wi{static start(e){bi(),Si();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),wi.meChat=t}static async restartConversation(){this.meChat&&await this.meChat.restartConversation()}static async remove(){this.meChat&&await this.meChat.remove()}}wi.meChat=null;const bi=()=>{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)},Si=()=>{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};
|
package/src/MEChat.ts
CHANGED
|
@@ -229,7 +229,7 @@ export class MEChat extends LitElement {
|
|
|
229
229
|
* Chat will be unusable after this. If you just need to hide the
|
|
230
230
|
* chat button, use {@link MEChat#hide} instead.
|
|
231
231
|
*/
|
|
232
|
-
remove(): void {
|
|
232
|
+
public remove(): void {
|
|
233
233
|
this.popup?.destroy();
|
|
234
234
|
}
|
|
235
235
|
|