@meetelise/chat 1.20.177 → 1.20.179
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/demo/index.html +45 -42
- package/public/demo/secret.html +63 -0
- package/public/dist/index.js +159 -159
- package/src/WebComponent/LeadSourceClient.ts +176 -0
- package/src/WebComponent/me-chat.ts +70 -59
- package/src/handleChatId.ts +2 -5
- package/src/utils.ts +10 -0
- package/src/fetchCurrentParsedLeadSource.ts +0 -24
package/package.json
CHANGED
package/public/demo/index.html
CHANGED
|
@@ -117,62 +117,62 @@
|
|
|
117
117
|
<!-- Webpack dev server will serve the bundle, index.js, at the path '/' -->
|
|
118
118
|
<script type="module" async>
|
|
119
119
|
import MEChat from "/index.js";
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
MEChat.start({
|
|
121
|
+
// 123 Main Street
|
|
122
|
+
// organization: "test-company",
|
|
123
|
+
// building: "e2e-test-yardi-building",
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
125
|
+
// organization: "edward-rose",
|
|
126
|
+
// building: "rivers-edge-apartments",
|
|
127
|
+
// // mobileStyles: {
|
|
128
|
+
// // bottom: "100px",
|
|
129
|
+
// // },
|
|
130
130
|
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
// // organization: "mill-creek",
|
|
132
|
+
// // building: "5ec32c42-2548-11ec-b813-e361780537f5",
|
|
133
133
|
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
// // organization: "d1a1060d-3844-48d4-a454-1ba26292bc69",
|
|
135
|
+
// // building: "25feb690-c76f-11ed-83b9-a7aa9698a486",
|
|
136
136
|
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
// // organization: "TT",
|
|
138
|
+
// // building: "ffc97070-5c73-11ed-8507-77860136d3bf",
|
|
139
139
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
// // AMLI
|
|
141
|
+
// organization: "amli",
|
|
142
|
+
// building: "6e43581c-c4a4-11ec-a62b-9311f60f23f8",
|
|
143
143
|
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
// // organization: "d1a1060d-3844-48d4-a454-1ba26292bc69",
|
|
145
|
+
// // building: "25fead9e-c76f-11ed-83b2-7b1e7b442e9f",
|
|
146
146
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
// // Taylor Street Apartments
|
|
148
|
+
// // organization: "test-company",
|
|
149
|
+
// // building: "e2e-test-yardi-building",
|
|
150
150
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
151
|
+
// // The Qual People
|
|
152
|
+
// // organization: "Pacific Urban Residential",
|
|
153
|
+
// // building: "1ac49f90-6150-11ed-b327-1b3f05e7b9db",
|
|
154
154
|
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
// // organization: "Pacific Urban Residential",
|
|
156
|
+
// // building: "1ac49f90-6150-11ed-b327-1b3f05e7b9db",
|
|
157
157
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
// // Cambridge House
|
|
159
|
+
organization: "elise-ai",
|
|
160
|
+
building: "the-cambridge-house-3",
|
|
161
161
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
// // Artistry on 10th
|
|
163
|
+
// // organization: "lindy",
|
|
164
|
+
// // building: "c4cfc3ec-c4da-11ec-bda4-43aed00ca1b2",
|
|
165
165
|
|
|
166
|
-
|
|
166
|
+
// // brandColor: "#a44ef5",
|
|
167
167
|
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
// // organization: "Pacific Urban Residential",
|
|
169
|
+
// // building: "1ac49f90-6150-11ed-b327-1b3f05e7b9db",
|
|
170
170
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
id: "6a9e65e5-9699-4c96-af75-1741d0df79aa",
|
|
171
|
+
// // organization: "sparrow",
|
|
172
|
+
// // building: "8e87ae6e-eae8-11ed-aae8-fb82f4692a79",
|
|
173
|
+
// });
|
|
174
|
+
// MEChat.healthcareStart({
|
|
175
|
+
// id: "6a9e65e5-9699-4c96-af75-1741d0df79aa",
|
|
176
176
|
});
|
|
177
177
|
</script>
|
|
178
178
|
<main>
|
|
@@ -184,6 +184,9 @@
|
|
|
184
184
|
<button id="reset" type="button">Restart conversation</button>
|
|
185
185
|
<button id="navigate" type="button">navigate</button>
|
|
186
186
|
<button id="unnavigate" type="button">unnavigate</button>
|
|
187
|
+
<a href="/secret.html">
|
|
188
|
+
<button id="navigate" type="button">Show me a secret!</button>
|
|
189
|
+
</a>
|
|
187
190
|
<form id="theme">
|
|
188
191
|
<label htmlFor="chatTitle">Title</label>
|
|
189
192
|
<input type="text" id="chatTitle" name="chatTitle" />
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en-GB">
|
|
3
|
+
<head>
|
|
4
|
+
<!-- Google Tag Manager -->
|
|
5
|
+
<script>
|
|
6
|
+
(function (w, d, s, l, i) {
|
|
7
|
+
w[l] = w[l] || [];
|
|
8
|
+
w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
|
|
9
|
+
var f = d.getElementsByTagName(s)[0],
|
|
10
|
+
j = d.createElement(s),
|
|
11
|
+
dl = l != "dataLayer" ? "&l=" + l : "";
|
|
12
|
+
j.async = true;
|
|
13
|
+
j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;
|
|
14
|
+
f.parentNode.insertBefore(j, f);
|
|
15
|
+
})(window, document, "script", "dataLayer", "GTM-PDVW5Q8");
|
|
16
|
+
</script>
|
|
17
|
+
<!-- End Google Tag Manager -->
|
|
18
|
+
<meta charset="utf-8" />
|
|
19
|
+
<meta
|
|
20
|
+
name="viewport"
|
|
21
|
+
content="width=device-width, initial-scale=1 user-scalable=1"
|
|
22
|
+
/>
|
|
23
|
+
<title>Chat Dev Page</title>
|
|
24
|
+
<style>
|
|
25
|
+
body {
|
|
26
|
+
background: url("https://assets.dnainfo.com/photo/2016/9/1473799613-272887/original.jpg");
|
|
27
|
+
background-size: cover;
|
|
28
|
+
font-family: sans-serif;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
align-items: center;
|
|
32
|
+
letter-spacing: 4px;
|
|
33
|
+
}
|
|
34
|
+
</style>
|
|
35
|
+
</head>
|
|
36
|
+
<body>
|
|
37
|
+
<noscript
|
|
38
|
+
><iframe
|
|
39
|
+
src="https://www.googletagmanager.com/ns.html?id=GTM-PDVW5Q8"
|
|
40
|
+
height="0"
|
|
41
|
+
width="0"
|
|
42
|
+
style="display: none; visibility: hidden"
|
|
43
|
+
></iframe
|
|
44
|
+
></noscript>
|
|
45
|
+
<script type="module" async>
|
|
46
|
+
import MEChat from "/index.js";
|
|
47
|
+
MEChat.start({
|
|
48
|
+
organization: "elise-ai",
|
|
49
|
+
building: "the-cambridge-house-3",
|
|
50
|
+
});
|
|
51
|
+
</script>
|
|
52
|
+
<main>
|
|
53
|
+
<h1>Secret Page</h1>
|
|
54
|
+
<p>
|
|
55
|
+
This is an example page for serving the chat widget locally. Source of
|
|
56
|
+
truth
|
|
57
|
+
</p>
|
|
58
|
+
<a href="/">
|
|
59
|
+
<button id="navigate" type="button">Take me home</button>
|
|
60
|
+
</a>
|
|
61
|
+
</main>
|
|
62
|
+
</body>
|
|
63
|
+
</html>
|