@meetelise/chat 1.25.1 → 1.25.3
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/.prettierignore +0 -2
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -79
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -111
- package/coverage/lcov-report/index.js.html +0 -17093
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -170
- package/coverage/lcov.info +0 -9986
- package/dist/src/MyPubnub.d.ts +0 -116
- package/dist/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section-styles.d.ts +0 -2
- package/dist/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section.d.ts +0 -20
- package/dist/src/WebComponent/FeeCalculator/components/fee-item/fee-item-styles.d.ts +0 -2
- package/dist/src/WebComponent/FeeCalculator/components/fee-item/fee-item.d.ts +0 -14
- package/dist/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector-styles.d.ts +0 -2
- package/dist/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector.d.ts +0 -17
- package/dist/src/WebComponent/FeeCalculator/components/index.d.ts +0 -3
- package/dist/src/WebComponent/FeeCalculator/components/promo-card/promo-card-styles.d.ts +0 -2
- package/dist/src/WebComponent/FeeCalculator/components/promo-card/promo-card.d.ts +0 -13
- package/dist/src/WebComponent/FeeCalculator/fee-calculator-styles.d.ts +0 -1
- package/dist/src/WebComponent/FeeCalculator/fee-calculator.d.ts +0 -31
- package/dist/src/WebComponent/FeeCalculator/index.d.ts +0 -2
- package/dist/src/WebComponent/FeeCalculator/model/building-fee.d.ts +0 -75
- package/dist/src/WebComponent/FeeCalculator/model/transaction-category.d.ts +0 -23
- package/dist/src/WebComponent/LeadSourceClient.d.ts +0 -46
- package/dist/src/WebComponent/OfficeHours.d.ts +0 -21
- package/dist/src/WebComponent/Scheduler/date-picker.d.ts +0 -28
- package/dist/src/WebComponent/Scheduler/time-picker.d.ts +0 -14
- package/dist/src/WebComponent/Scheduler/tour-scheduler.d.ts +0 -99
- package/dist/src/WebComponent/Scheduler/tour-type-option.d.ts +0 -13
- package/dist/src/WebComponent/Scheduler/tourSchedulerStyles.d.ts +0 -1
- package/dist/src/WebComponent/actions/InputStyles.d.ts +0 -1
- package/dist/src/WebComponent/actions/action-confirm-button.d.ts +0 -13
- package/dist/src/WebComponent/actions/call-us-window.d.ts +0 -37
- package/dist/src/WebComponent/actions/collapse-expand-button.d.ts +0 -8
- package/dist/src/WebComponent/actions/details-window.d.ts +0 -14
- package/dist/src/WebComponent/actions/email-us-window.d.ts +0 -46
- package/dist/src/WebComponent/actions/formatPhoneNumber.d.ts +0 -17
- package/dist/src/WebComponent/actions/minimize-expand-button.d.ts +0 -8
- package/dist/src/WebComponent/chat-additional-actions.d.ts +0 -28
- package/dist/src/WebComponent/health-chat.d.ts +0 -47
- package/dist/src/WebComponent/healthchat-styles.d.ts +0 -1
- package/dist/src/WebComponent/icons/ApplyOutlineIcon.d.ts +0 -2
- package/dist/src/WebComponent/icons/BookTourOutlineIcon.d.ts +0 -2
- package/dist/src/WebComponent/icons/CalculatorOutlineIcon.d.ts +0 -2
- package/dist/src/WebComponent/icons/ChatOutlineIcon.d.ts +0 -2
- package/dist/src/WebComponent/icons/ChevronLeftIcon.d.ts +0 -2
- package/dist/src/WebComponent/icons/ChevronRightIcon.d.ts +0 -2
- package/dist/src/WebComponent/icons/ContactResidentIcon.d.ts +0 -2
- package/dist/src/WebComponent/icons/DollarOutlineIcon.d.ts +0 -3
- package/dist/src/WebComponent/icons/EmailOutlineIcon.d.ts +0 -2
- package/dist/src/WebComponent/icons/HeyThereEmojiIcon.d.ts +0 -2
- package/dist/src/WebComponent/icons/PhoneOutlineIcon.d.ts +0 -2
- package/dist/src/WebComponent/icons/SendMessageIcon.d.ts +0 -3
- package/dist/src/WebComponent/icons/TourSelfGuidedIcon.d.ts +0 -2
- package/dist/src/WebComponent/icons/TourVirtuallyIcon.d.ts +0 -2
- package/dist/src/WebComponent/icons/TourWithAgentIcon.d.ts +0 -2
- package/dist/src/WebComponent/icons/XOutlineIcon.d.ts +0 -2
- package/dist/src/WebComponent/index.d.ts +0 -2
- package/dist/src/WebComponent/launcher/Launcher.d.ts +0 -98
- package/dist/src/WebComponent/launcher/launcherStyles.d.ts +0 -1
- package/dist/src/WebComponent/launcher/mobile-launcher.d.ts +0 -26
- package/dist/src/WebComponent/launcher/typeEmojiStyles.d.ts +0 -1
- package/dist/src/WebComponent/launcher/typeMiniStyles.d.ts +0 -1
- package/dist/src/WebComponent/launcher/typeMobileStyles.d.ts +0 -1
- package/dist/src/WebComponent/leasing-chat-styles.d.ts +0 -1
- package/dist/src/WebComponent/me-chat.d.ts +0 -91
- package/dist/src/WebComponent/me-select.d.ts +0 -24
- package/dist/src/WebComponent/mini-loader.d.ts +0 -5
- package/dist/src/WebComponent/pubnub-chat-styles.d.ts +0 -1
- package/dist/src/WebComponent/pubnub-chat.d.ts +0 -49
- package/dist/src/WebComponent/pubnub-media.d.ts +0 -14
- package/dist/src/WebComponent/pubnub-message-styles.d.ts +0 -1
- package/dist/src/WebComponent/pubnub-message.d.ts +0 -39
- package/dist/src/WebComponent/simple-launcher/simple-launcher-styles.d.ts +0 -1
- package/dist/src/WebComponent/simple-launcher/simple-launcher.d.ts +0 -12
- package/dist/src/WebComponent/utilities-chat.d.ts +0 -47
- package/dist/src/WebComponent/utilities-styles.d.ts +0 -1
- package/dist/src/WebComponent/utils.d.ts +0 -31
- package/dist/src/analytics.d.ts +0 -64
- package/dist/src/disclaimers.d.ts +0 -8
- package/dist/src/fetchBuildingABTestType.d.ts +0 -8
- package/dist/src/fetchBuildingInfo.d.ts +0 -57
- package/dist/src/fetchBuildingWebchatView.d.ts +0 -122
- package/dist/src/fetchFeatureFlag.d.ts +0 -14
- package/dist/src/fetchLeadSources.d.ts +0 -4
- package/dist/src/fetchPhoneNumberFromSource.d.ts +0 -6
- package/dist/src/getAvailabilities.d.ts +0 -44
- package/dist/src/getBuildingPhoneNumber.d.ts +0 -1
- package/dist/src/getShouldAllowScheduling.d.ts +0 -1
- package/dist/src/getShouldShowWebchat.d.ts +0 -3
- package/dist/src/getTimezoneString.d.ts +0 -1
- package/dist/src/globals.d.ts +0 -1
- package/dist/src/gtm.d.ts +0 -6
- package/dist/src/handleChatId.d.ts +0 -11
- package/dist/src/insertDNIIntoWebsite.d.ts +0 -5
- package/dist/src/insertLeadSourceIntoSchedulerLinks.d.ts +0 -4
- package/dist/src/main/MEChat.d.ts +0 -74
- package/dist/src/main/utils.d.ts +0 -2
- package/dist/src/postLeadSources.d.ts +0 -3
- package/dist/src/rentgrata.d.ts +0 -4
- package/dist/src/replaceSelectButtonsWithNewLink.d.ts +0 -5
- package/dist/src/services/fees/fetchBuildingFees.d.ts +0 -3
- package/dist/src/svgIcons.d.ts +0 -5
- package/dist/src/themes.d.ts +0 -5
- package/dist/src/types/rest-sdk.types.d.ts +0 -11
- package/dist/src/types/webchat-no-show-reason.d.ts +0 -1
- package/dist/src/utils.d.ts +0 -13
- package/public/demo/index.html +0 -347
- package/public/demo/secret.html +0 -63
- package/src/MyPubnub.ts +0 -792
- package/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section-styles.ts +0 -86
- package/src/WebComponent/FeeCalculator/components/collapsible-fee-section/collapsible-fee-section.ts +0 -94
- package/src/WebComponent/FeeCalculator/components/fee-item/fee-item-styles.ts +0 -47
- package/src/WebComponent/FeeCalculator/components/fee-item/fee-item.ts +0 -50
- package/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector-styles.ts +0 -46
- package/src/WebComponent/FeeCalculator/components/floor-plan-selector/floor-plan-selector.ts +0 -70
- package/src/WebComponent/FeeCalculator/components/index.ts +0 -3
- package/src/WebComponent/FeeCalculator/components/promo-card/promo-card-styles.ts +0 -39
- package/src/WebComponent/FeeCalculator/components/promo-card/promo-card.ts +0 -39
- package/src/WebComponent/FeeCalculator/fee-calculator-styles.ts +0 -280
- package/src/WebComponent/FeeCalculator/fee-calculator.ts +0 -256
- package/src/WebComponent/FeeCalculator/index.ts +0 -4
- package/src/WebComponent/FeeCalculator/model/building-fee.ts +0 -83
- package/src/WebComponent/FeeCalculator/model/transaction-category.ts +0 -23
- package/src/WebComponent/LeadSourceClient.ts +0 -332
- package/src/WebComponent/MEChat.css +0 -5
- package/src/WebComponent/OfficeHours.ts +0 -73
- package/src/WebComponent/Scheduler/date-picker.ts +0 -405
- package/src/WebComponent/Scheduler/time-picker.ts +0 -190
- package/src/WebComponent/Scheduler/tour-scheduler.ts +0 -1352
- package/src/WebComponent/Scheduler/tour-type-option.ts +0 -112
- package/src/WebComponent/Scheduler/tourSchedulerStyles.ts +0 -418
- package/src/WebComponent/actions/InputStyles.ts +0 -57
- package/src/WebComponent/actions/action-confirm-button.ts +0 -125
- package/src/WebComponent/actions/call-us-window.ts +0 -445
- package/src/WebComponent/actions/collapse-expand-button.ts +0 -65
- package/src/WebComponent/actions/details-window.ts +0 -150
- package/src/WebComponent/actions/email-us-window.ts +0 -555
- package/src/WebComponent/actions/formatPhoneNumber.ts +0 -72
- package/src/WebComponent/actions/minimize-expand-button.ts +0 -93
- package/src/WebComponent/chat-additional-actions.ts +0 -135
- package/src/WebComponent/health-chat.ts +0 -270
- package/src/WebComponent/healthchat-styles.ts +0 -119
- package/src/WebComponent/icons/ApplyOutlineIcon.ts +0 -22
- package/src/WebComponent/icons/BookTourOutlineIcon.ts +0 -13
- package/src/WebComponent/icons/CalculatorOutlineIcon.ts +0 -22
- package/src/WebComponent/icons/ChatOutlineIcon.ts +0 -10
- package/src/WebComponent/icons/ChevronLeftIcon.ts +0 -7
- package/src/WebComponent/icons/ChevronRightIcon.ts +0 -7
- package/src/WebComponent/icons/ContactResidentIcon.ts +0 -9
- package/src/WebComponent/icons/DollarOutlineIcon.ts +0 -18
- package/src/WebComponent/icons/EmailOutlineIcon.ts +0 -7
- package/src/WebComponent/icons/HeyThereEmojiIcon.ts +0 -12
- package/src/WebComponent/icons/PhoneOutlineIcon.ts +0 -7
- package/src/WebComponent/icons/SendMessageIcon.ts +0 -17
- package/src/WebComponent/icons/TourSelfGuidedIcon.ts +0 -17
- package/src/WebComponent/icons/TourVirtuallyIcon.ts +0 -17
- package/src/WebComponent/icons/TourWithAgentIcon.ts +0 -17
- package/src/WebComponent/icons/XOutlineIcon.ts +0 -8
- package/src/WebComponent/index.ts +0 -2
- package/src/WebComponent/launcher/Launcher.ts +0 -1193
- package/src/WebComponent/launcher/launcherStyles.ts +0 -500
- package/src/WebComponent/launcher/mobile-launcher.ts +0 -159
- package/src/WebComponent/launcher/typeEmojiStyles.ts +0 -161
- package/src/WebComponent/launcher/typeMiniStyles.ts +0 -60
- package/src/WebComponent/launcher/typeMobileStyles.ts +0 -50
- package/src/WebComponent/leasing-chat-styles.ts +0 -114
- package/src/WebComponent/me-chat.ts +0 -1257
- package/src/WebComponent/me-select.ts +0 -322
- package/src/WebComponent/mini-loader.ts +0 -28
- package/src/WebComponent/pubnub-chat-styles.ts +0 -204
- package/src/WebComponent/pubnub-chat.ts +0 -928
- package/src/WebComponent/pubnub-media.ts +0 -208
- package/src/WebComponent/pubnub-message-styles.ts +0 -54
- package/src/WebComponent/pubnub-message.ts +0 -431
- package/src/WebComponent/simple-launcher/simple-launcher-styles.ts +0 -34
- package/src/WebComponent/simple-launcher/simple-launcher.ts +0 -100
- package/src/WebComponent/utilities-chat.ts +0 -270
- package/src/WebComponent/utilities-styles.ts +0 -110
- package/src/WebComponent/utils.ts +0 -82
- package/src/analytics.ts +0 -217
- package/src/assetUrls.ts +0 -6
- package/src/disclaimers.ts +0 -58
- package/src/fetchBuildingABTestType.ts +0 -21
- package/src/fetchBuildingInfo.ts +0 -87
- package/src/fetchBuildingWebchatView.ts +0 -154
- package/src/fetchFeatureFlag.ts +0 -250
- package/src/fetchLeadSources.ts +0 -98
- package/src/fetchPhoneNumberFromSource.ts +0 -31
- package/src/fetchWebchatPreferences.ts +0 -54
- package/src/getAvailabilities.ts +0 -174
- package/src/getBuildingPhoneNumber.ts +0 -26
- package/src/getShouldAllowScheduling.ts +0 -16
- package/src/getShouldShowWebchat.ts +0 -114
- package/src/getTimezoneString.ts +0 -39
- package/src/globals.ts +0 -1
- package/src/gtm.ts +0 -17
- package/src/handleChatId.ts +0 -101
- package/src/insertDNIIntoWebsite.ts +0 -146
- package/src/insertLeadSourceIntoSchedulerLinks.ts +0 -71
- package/src/main/MEChat.test.ts +0 -110
- package/src/main/MEChat.ts +0 -404
- package/src/main/utils.ts +0 -70
- package/src/postLeadSources.ts +0 -44
- package/src/rentgrata.ts +0 -74
- package/src/replaceSelectButtonsWithNewLink.ts +0 -68
- package/src/services/fees/fetchBuildingFees.ts +0 -28
- package/src/svgIcons.ts +0 -14
- package/src/themes.ts +0 -65
- package/src/types/rest-sdk.types.ts +0 -13
- package/src/types/webchat-no-show-reason.ts +0 -6
- package/src/utils.ts +0 -121
- package/tsconfig.json +0 -84
package/public/demo/index.html
DELETED
|
@@ -1,347 +0,0 @@
|
|
|
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
|
-
/* Uncomment this to check if changing the root font size interferes with any of our widget's styles */
|
|
26
|
-
/* html {
|
|
27
|
-
font-size: 62.5%;
|
|
28
|
-
} */
|
|
29
|
-
body {
|
|
30
|
-
/* Complex background image so we can evaluate transparency and blur effects */
|
|
31
|
-
background: url("https://assets.dnainfo.com/photo/2016/9/1473799613-272887/original.jpg");
|
|
32
|
-
background-size: cover;
|
|
33
|
-
font-family: sans-serif;
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-direction: column;
|
|
36
|
-
align-items: center;
|
|
37
|
-
/* to test that our web component doesn't inherit styles from the main page */
|
|
38
|
-
letter-spacing: 4px;
|
|
39
|
-
}
|
|
40
|
-
main {
|
|
41
|
-
margin: 3rem 1rem;
|
|
42
|
-
padding: 0.5rem 1.5rem;
|
|
43
|
-
border-radius: 0.5rem;
|
|
44
|
-
max-width: 600px;
|
|
45
|
-
background-color: #fff;
|
|
46
|
-
}
|
|
47
|
-
form#theme {
|
|
48
|
-
display: flex;
|
|
49
|
-
flex-direction: column;
|
|
50
|
-
}
|
|
51
|
-
button {
|
|
52
|
-
padding: 0.5rem 1rem;
|
|
53
|
-
border-radius: 0.25rem;
|
|
54
|
-
border: 1px solid #aaa;
|
|
55
|
-
background-color: #eee;
|
|
56
|
-
margin-bottom: 1rem;
|
|
57
|
-
}
|
|
58
|
-
input {
|
|
59
|
-
margin-bottom: 0.5rem;
|
|
60
|
-
font-size: 1rem;
|
|
61
|
-
}
|
|
62
|
-
button:hover {
|
|
63
|
-
background-color: #ddd;
|
|
64
|
-
}
|
|
65
|
-
button:active {
|
|
66
|
-
background-color: #bbb;
|
|
67
|
-
}
|
|
68
|
-
#bottomBanner {
|
|
69
|
-
position: fixed;
|
|
70
|
-
bottom: 0;
|
|
71
|
-
left: 0;
|
|
72
|
-
width: 100%;
|
|
73
|
-
height: 20vh;
|
|
74
|
-
background-color: lightpink;
|
|
75
|
-
text-align: center;
|
|
76
|
-
}
|
|
77
|
-
#bannerText {
|
|
78
|
-
margin-top: 5em;
|
|
79
|
-
}
|
|
80
|
-
#bannerCloseButton {
|
|
81
|
-
position: absolute;
|
|
82
|
-
top: 1rem;
|
|
83
|
-
left: 1rem;
|
|
84
|
-
cursor: pointer;
|
|
85
|
-
}
|
|
86
|
-
#bannerCloseButton:hover::after {
|
|
87
|
-
content: "";
|
|
88
|
-
position: absolute;
|
|
89
|
-
top: 50%;
|
|
90
|
-
left: 50%;
|
|
91
|
-
transform: translate(-50%, -50%);
|
|
92
|
-
background-color: lightgray;
|
|
93
|
-
height: 100%;
|
|
94
|
-
aspect-ratio: 1 / 1;
|
|
95
|
-
border-radius: 50%;
|
|
96
|
-
z-index: -1;
|
|
97
|
-
user-select: none;
|
|
98
|
-
}
|
|
99
|
-
/* Test CSS isolation: this padding will make the launcher look terrible unless it has taken defensive measures against host page styles */
|
|
100
|
-
/* (exclusions: mock cookie banner, Guru browser extension element, TalkJS container. Padding them causes scrollbars or movement.) */
|
|
101
|
-
div:not(#bottomBanner, .ghq-ext-app, div[id^="__talkjs_popup_container"]) {
|
|
102
|
-
padding: 10px;
|
|
103
|
-
}
|
|
104
|
-
</style>
|
|
105
|
-
</head>
|
|
106
|
-
<body>
|
|
107
|
-
<script>
|
|
108
|
-
document.addEventListener("keydown", (e) => {
|
|
109
|
-
if (e.target.tagName.toLowerCase() === "me-chat") {
|
|
110
|
-
e.preventDefault();
|
|
111
|
-
console.log(
|
|
112
|
-
"🚫\n" +
|
|
113
|
-
"Hijacking your keyboard.\n" +
|
|
114
|
-
"Sure would be annoying if some websites used libraries which inserted document-level key listeners which prevent typing in webchat.\n" +
|
|
115
|
-
"Glad that's not a thing and never will be.\n" +
|
|
116
|
-
"Anyway, if you're seeing this message you've messed up our focus trap and should fix it. Thanks.\n" +
|
|
117
|
-
"🚫\n"
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
</script>
|
|
122
|
-
<!-- <script>
|
|
123
|
-
<!-- Before closing body tag -->
|
|
124
|
-
<!-- (function (d, s, id, k, r) {
|
|
125
|
-
var js,
|
|
126
|
-
hjs = d.getElementsByTagName(s)[0];
|
|
127
|
-
if (d.getElementById(id)) return;
|
|
128
|
-
js = d.createElement(s);
|
|
129
|
-
js.id = id;
|
|
130
|
-
js.async = true;
|
|
131
|
-
js.src = "https://widget.rentgrata.com/rentgrata.js";
|
|
132
|
-
js.addEventListener("load", function () {
|
|
133
|
-
window.rentgrata.Widget.render({ widget_key: k, render_as: r });
|
|
134
|
-
});
|
|
135
|
-
hjs.parentNode.insertBefore(js, hjs);
|
|
136
|
-
})(
|
|
137
|
-
document,
|
|
138
|
-
"script",
|
|
139
|
-
"rentgrata-sdk",
|
|
140
|
-
"4115dda5-05ed-4ff0-be4f-0aa572204b29"
|
|
141
|
-
); -->
|
|
142
|
-
<!-- </script> -->
|
|
143
|
-
<!-- Google Tag Manager (noscript) -->
|
|
144
|
-
<noscript
|
|
145
|
-
><iframe
|
|
146
|
-
src="https://www.googletagmanager.com/ns.html?id=GTM-PDVW5Q8"
|
|
147
|
-
height="0"
|
|
148
|
-
width="0"
|
|
149
|
-
style="display: none; visibility: hidden"
|
|
150
|
-
></iframe
|
|
151
|
-
></noscript>
|
|
152
|
-
<!-- End Google Tag Manager (noscript) -->
|
|
153
|
-
<!-- Webpack dev server will serve the bundle, index.js, at the path '/' -->
|
|
154
|
-
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/axe-core/4.3.5/axe.min.js"></script> -->
|
|
155
|
-
|
|
156
|
-
<script type="module" async>
|
|
157
|
-
import MEChat from "/index.js";
|
|
158
|
-
// MEChat.healthcareStart({
|
|
159
|
-
// id: "6a9e65e5-9699-4c96-af75-1741d0df79aa",
|
|
160
|
-
|
|
161
|
-
const buttonOfInterest = document.querySelector("#reset");
|
|
162
|
-
if (buttonOfInterest) {
|
|
163
|
-
buttonOfInterest.setAttribute("style", "visibility: hidden;");
|
|
164
|
-
}
|
|
165
|
-
const onWidgetLoaded = () => {
|
|
166
|
-
const meetEliseChats = document.getElementsByTagName("me-chat");
|
|
167
|
-
if (!meetEliseChats || meetEliseChats.length === 0) {
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
const meetEliseChat = meetEliseChats[0];
|
|
171
|
-
meetEliseChat.setAttribute("style", "visibility: hidden;");
|
|
172
|
-
console.log(`Chat widget loaded`);
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
MEChat.start({
|
|
176
|
-
// organization: "a55b5275-cfe6-44a3-ac17-b10f6fe85cce",
|
|
177
|
-
// building: "ce4ab608-2e7c-11ef-910a-873d6fb25892",
|
|
178
|
-
|
|
179
|
-
// organization: "Pacific Urban Residential",
|
|
180
|
-
// building: "c06117dc-7a80-11ed-bc9a-c3e28c7281ff",
|
|
181
|
-
|
|
182
|
-
// organization: "conam",
|
|
183
|
-
// building: "b912c9ee-61f8-11ed-bbed-07208d4c2146",
|
|
184
|
-
|
|
185
|
-
// organization: "e357e665-8152-494b-8059-5243cf7c4d7b",
|
|
186
|
-
// building: "c4d23fee-17c3-11ef-a8f9-2793b21baae2",
|
|
187
|
-
|
|
188
|
-
// organization: "lincoln",
|
|
189
|
-
// building: "8c47ac2a-0485-11ed-ad73-e74957fe3493",
|
|
190
|
-
|
|
191
|
-
// organization: "c259a157-cff3-470a-9ded-f6c5c8d917b8",
|
|
192
|
-
// building: "2c75381a-2286-11ee-a434-7bc2192a0c0e",
|
|
193
|
-
|
|
194
|
-
// organization: "ff17ce03-4528-4d75-b603-1f188e44559c",
|
|
195
|
-
// building: '03d354cc-9626-11ef-80ab-bf00a330bb81'
|
|
196
|
-
|
|
197
|
-
// organization: "conam",
|
|
198
|
-
// building: "b912c9ee-61f8-11ed-bbed-07208d4c2146"
|
|
199
|
-
// organization: "radco",
|
|
200
|
-
// building: "7eba79d2-22f5-11ed-9af3-4b3e8b1acfb4",
|
|
201
|
-
|
|
202
|
-
// organization: "c259a157-cff3-470a-9ded-f6c5c8d917b8",
|
|
203
|
-
// building: "22ea2d7e-5df4-11ee-a665-63eeb20a5762",
|
|
204
|
-
// onSstClose: () => {
|
|
205
|
-
// const meetEliseChats = document.getElementsByTagName("me-chat");
|
|
206
|
-
// if (!meetEliseChats || meetEliseChats.length === 0) {
|
|
207
|
-
// return;
|
|
208
|
-
// }
|
|
209
|
-
// const meetEliseChat = meetEliseChats[0];
|
|
210
|
-
// meetEliseChat.setAttribute("style", "display: none;");
|
|
211
|
-
// },
|
|
212
|
-
// onWidgetLoaded: onWidgetLoaded,
|
|
213
|
-
|
|
214
|
-
// organization: "4c78cac8-017a-4497-8b71-3df15779a83c",
|
|
215
|
-
|
|
216
|
-
// building: "43e3b1bc-d1b2-11ee-acb9-d77ba815aaac",
|
|
217
|
-
|
|
218
|
-
// organization: "cardinal-group",
|
|
219
|
-
// widgetType: "utilities",
|
|
220
|
-
|
|
221
|
-
organization: "test-company",
|
|
222
|
-
building: "e2e-test-yardi-building",
|
|
223
|
-
// overrideRentgrata: true,
|
|
224
|
-
// onWidgetLoaded: onWidgetLoaded,
|
|
225
|
-
|
|
226
|
-
// MEChat.healthcareStart({
|
|
227
|
-
// id: "6a9e65e5-9699-4c96-af75-1741d0df79aa",
|
|
228
|
-
// organization: "a5591ba9-5bd4-4369-b040-20606d73ecab",
|
|
229
|
-
// building: "94f2f06a-489d-11ef-abd9-8b55d643aa92",
|
|
230
|
-
});
|
|
231
|
-
|
|
232
|
-
// MEChat.healthcareStart({
|
|
233
|
-
// id: "6a9e65e5-9699-4c96-af75-1741d0df79aa",
|
|
234
|
-
// });
|
|
235
|
-
</script>
|
|
236
|
-
<main>
|
|
237
|
-
<h1>Example Page</h1>
|
|
238
|
-
<!-- Application Link Replacement test -->
|
|
239
|
-
<a
|
|
240
|
-
data-selenium-id="Select_39589705"
|
|
241
|
-
target="_blank"
|
|
242
|
-
type="button"
|
|
243
|
-
class="btn btn-primary"
|
|
244
|
-
id="0821"
|
|
245
|
-
onclick="applyGAClick('The Retreat', '1 Bed(s)', '550', '925.00', '925.00', '0821' )"
|
|
246
|
-
href="https://thehavenatgreenhill.securecafe.com/onlineleasing/the-haven-at-greenhill/oleapplication.aspx?stepname=RentalOptions&myOlePropertyId=1703930&FloorPlanID=4950826&UnitID=39589705&MoveInDate=2/26/2025&PropLeadSource_1703930=portal&_yTrackUser=MzMwMDQ3OTk1NyMxODc1MzQ0NjU5-tMDKfBdLjnk%253d&_yTrackVisit=NTQ1MzYxNjE4NiMxODc0OTEyMDQ3-u%252fWdWHRQGZo%253d&_yTrackReqDT=56582120252602"
|
|
247
|
-
>Select <span class="sr-only">for Apartment 0821</span></a
|
|
248
|
-
>
|
|
249
|
-
<p>
|
|
250
|
-
This is an example page for serving the chat widget locally. Source of
|
|
251
|
-
truth
|
|
252
|
-
</p>
|
|
253
|
-
<button id="reset" type="button">Restart conversation</button>
|
|
254
|
-
<button id="navigate" type="button">navigate</button>
|
|
255
|
-
<button id="unnavigate" type="button">unnavigate</button>
|
|
256
|
-
<a href="/secret.html">
|
|
257
|
-
<button id="navigate" type="button">Show me a secret!</button>
|
|
258
|
-
</a>
|
|
259
|
-
<a
|
|
260
|
-
target="_self"
|
|
261
|
-
href="#leaseleads-tour-open"
|
|
262
|
-
data-ll-event="ll_web_tour"
|
|
263
|
-
data-ll-event-label="Schedule Tour Menu Item"
|
|
264
|
-
><span>Schedule a tour radco stuff</span></a
|
|
265
|
-
>
|
|
266
|
-
<button onclick="window.eliseAi.onOpenChat()">
|
|
267
|
-
Open chat without widget
|
|
268
|
-
</button>
|
|
269
|
-
<a
|
|
270
|
-
href="tel:4075192080"
|
|
271
|
-
id="appended-phone-phone-number-27490085"
|
|
272
|
-
title="Property Phone Number"
|
|
273
|
-
class="
|
|
274
|
-
appended-phone
|
|
275
|
-
phone-number-27490085
|
|
276
|
-
number
|
|
277
|
-
h-c-ret
|
|
278
|
-
v-c-ret
|
|
279
|
-
h-card
|
|
280
|
-
vcard
|
|
281
|
-
phone-widget-number
|
|
282
|
-
"
|
|
283
|
-
>
|
|
284
|
-
<span class="p-tel tel" style="visibility: visible">407-519-2080</span>
|
|
285
|
-
</a>
|
|
286
|
-
<div>
|
|
287
|
-
<a
|
|
288
|
-
href="javascript:void(0);"
|
|
289
|
-
onclick="window.eliseAi.onOpenSST(() => {
|
|
290
|
-
const meetEliseChats = document.getElementsByTagName('me-chat');
|
|
291
|
-
if (!meetEliseChats || meetEliseChats.length === 0) {
|
|
292
|
-
return;
|
|
293
|
-
}
|
|
294
|
-
const meetEliseChat = meetEliseChats[0];
|
|
295
|
-
meetEliseChat.setAttribute('style', '');
|
|
296
|
-
})"
|
|
297
|
-
>Open SST without using widget</a
|
|
298
|
-
>
|
|
299
|
-
</div>
|
|
300
|
-
<form id="theme">
|
|
301
|
-
<label htmlFor="chatTitle">Title</label>
|
|
302
|
-
<input type="text" id="chatTitle" name="chatTitle" />
|
|
303
|
-
<label htmlFor="chatSubtitle">Subtitle</label>
|
|
304
|
-
<input type="text" id="chatSubtitle" name="chatSubtitle" />
|
|
305
|
-
<label htmlFor="bannerColor">Banner Color</label>
|
|
306
|
-
<input type="text" id="bannerColor" name="bannerColor" />
|
|
307
|
-
<label htmlFor="bannerTextColor">Banner Text Color</label>
|
|
308
|
-
<input type="text" id="bannerTextColor" name="bannerTextColor" />
|
|
309
|
-
<label htmlFor="launchButtonColor">Launch Button Color</label>
|
|
310
|
-
<input type="text" id="launchButtonColor" name="launchButtonColor" />
|
|
311
|
-
<label htmlFor="launchButtonIconColor">Launch Button Icon Color</label>
|
|
312
|
-
<input
|
|
313
|
-
type="text"
|
|
314
|
-
id="launchButtonIconColor"
|
|
315
|
-
name="launchButtonIconColor"
|
|
316
|
-
/>
|
|
317
|
-
</form>
|
|
318
|
-
<div id="bottomBanner">
|
|
319
|
-
<p id="bannerText">
|
|
320
|
-
Hi, I'm a banner that appears at the bottom of the screen! I eat chat
|
|
321
|
-
widgets for breakfast and I'll eat yours if you aren't careful!
|
|
322
|
-
</p>
|
|
323
|
-
<div
|
|
324
|
-
id="bannerCloseButton"
|
|
325
|
-
onclick="document.querySelector('#bottomBanner')?.remove()"
|
|
326
|
-
>
|
|
327
|
-
✕
|
|
328
|
-
</div>
|
|
329
|
-
</div>
|
|
330
|
-
</main>
|
|
331
|
-
<script>
|
|
332
|
-
const navigateButton = document.getElementById("navigate");
|
|
333
|
-
navigateButton.addEventListener("click", () => {
|
|
334
|
-
if (window.location.href.includes("/new-url")) {
|
|
335
|
-
window.history.replaceState({}, "old title", "");
|
|
336
|
-
return;
|
|
337
|
-
}
|
|
338
|
-
window.history.replaceState({}, "New title", "/new-url");
|
|
339
|
-
});
|
|
340
|
-
|
|
341
|
-
const unnavigateButton = document.getElementById("unnavigate");
|
|
342
|
-
unnavigateButton.addEventListener("click", () => {
|
|
343
|
-
window.history.replaceState({}, "old title", "/");
|
|
344
|
-
});
|
|
345
|
-
</script>
|
|
346
|
-
</body>
|
|
347
|
-
</html>
|
package/public/demo/secret.html
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
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>
|