@meetelise/chat 1.20.106 → 1.20.107
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
package/public/demo/index.html
CHANGED
|
@@ -122,6 +122,9 @@
|
|
|
122
122
|
organization: "test-company",
|
|
123
123
|
building: "3fc93384-91f5-11ed-98a3-43f5a2f42588",
|
|
124
124
|
|
|
125
|
+
// organization: "d1a1060d-3844-48d4-a454-1ba26292bc69",
|
|
126
|
+
// building: "25feb690-c76f-11ed-83b9-a7aa9698a486",
|
|
127
|
+
|
|
125
128
|
// Taylor Street Apartments
|
|
126
129
|
// organization: "test-company",
|
|
127
130
|
// building: "e2e-test-yardi-building",
|
package/public/dist/index.js
CHANGED
|
@@ -3242,7 +3242,7 @@ otherwise there's some empty space at the bottom of the button, which interferes
|
|
|
3242
3242
|
class="displayed-message-image"
|
|
3243
3243
|
src=${e.source}
|
|
3244
3244
|
alt="displayed message image"
|
|
3245
|
-
/></a>`))}`,Promise.all(r).then((e=>{this.websitePreviewInfo=e}))}mapAndMarkHyperLinks(e){const t=Array.from(e.matchAll(/<https?:\/\/[
|
|
3245
|
+
/></a>`))}`,Promise.all(r).then((e=>{this.websitePreviewInfo=e}))}mapAndMarkHyperLinks(e){const t=Array.from(e.matchAll(/<https?:\/\/[^|]+\|[^>]+>/g)),n=[];return t.forEach((t=>{try{const i=t[0].split("|")[0].replace("<",""),r=t[0].split("|")[1].replace(">","");if(i&&r){const o=di();n.push({link:i,hyperlink:r,mark:t[0],id:o}),e=e.replace(t[0],o)}}catch(e){}})),{hyperlinks:n,markedText:e}}async getLinkData(e){var n,i,r,o,a,s;try{const u=(await t().get(e)).data,l=(new DOMParser).parseFromString(u,"text/html");return l?{title:null!==(i=null===(n=l.querySelector("title"))||void 0===n?void 0:n.textContent)&&void 0!==i?i:null,description:(null===(r=l.querySelector('meta[name="description"]'))||void 0===r?void 0:r.getAttribute("content"))||null,image:(null===(o=l.querySelector('meta[property="og:image"]'))||void 0===o?void 0:o.getAttribute("content"))||null,favicon:(null===(a=l.querySelector('link[rel="shortcut icon"]'))||void 0===a?void 0:a.getAttribute("href"))||(null===(s=l.querySelector('link[rel="icon"]'))||void 0===s?void 0:s.getAttribute("href"))||null,link:e}:{title:null,description:null,image:null,favicon:null,link:e}}catch(t){return console.error("Error fetching website details:",t),{title:null,description:null,image:null,favicon:null,link:e}}}updated(){this.onMount()}render(){return this.message?B`<div class="message-inner-body">
|
|
3246
3246
|
<p class="message-text">${this.parsedMessage}</p>
|
|
3247
3247
|
${this.websitePreviewInfo.length>0&&this.websitePreviewInfo.some((e=>e.title&&(e.image||e.favicon)))?B`<br />`:""}
|
|
3248
3248
|
${this.websitePreviewInfo.map((e=>{var t;if(e.title&&(e.image||e.favicon))return B` <a
|
|
@@ -104,7 +104,7 @@ export class PubnubMessage extends LitElement {
|
|
|
104
104
|
}[];
|
|
105
105
|
markedText: string;
|
|
106
106
|
} {
|
|
107
|
-
const matches = Array.from(text.matchAll(/<https?:\/\/[
|
|
107
|
+
const matches = Array.from(text.matchAll(/<https?:\/\/[^|]+\|[^>]+>/g));
|
|
108
108
|
const listHyperlinks: {
|
|
109
109
|
link: string;
|
|
110
110
|
hyperlink: string;
|