@meetelise/chat 1.21.2 → 1.21.4

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/README.md CHANGED
@@ -58,3 +58,25 @@ While an example with a `<button>` tag would be
58
58
  ```html
59
59
  <button onclick="window.eliseAi.onOpenSst()">Open SST</button>
60
60
  ```
61
+
62
+ ### Rentgrata Integration
63
+
64
+ Assuming you've followed [these instructions](https://widget.rentgrata.com/) to install Rengrata on your site, you can add the `overrideRentgrata` option to your snippet to
65
+
66
+ 1. Hide the rentgrata widget call to actions
67
+ 2. Open the 'contact a resident' window via EliseAI's widget.
68
+
69
+ Example usage:
70
+
71
+ ```html
72
+ <script type="module">
73
+ import Chat from "https://cdn.skypack.dev/@meetelise/chat";
74
+ Chat.start({
75
+ organization: "{your org here}",
76
+ building: "{your building here}",
77
+ overrideRentgrata: true,
78
+ });
79
+ </script>
80
+ ```
81
+
82
+ Please note this does _not_ remove rentgrata functionality. This feature combines the rentgrata widget with the EliseAI widget
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetelise/chat",
3
- "version": "1.21.2",
3
+ "version": "1.21.4",
4
4
  "description": "",
5
5
  "main": "public/dist/index.js",
6
6
  "type": "module",
@@ -104,6 +104,27 @@
104
104
  </style>
105
105
  </head>
106
106
  <body>
107
+ <script>
108
+ <!-- Before closing body tag -->
109
+ (function (d, s, id, k, r) {
110
+ var js,
111
+ hjs = d.getElementsByTagName(s)[0];
112
+ if (d.getElementById(id)) return;
113
+ js = d.createElement(s);
114
+ js.id = id;
115
+ js.async = true;
116
+ js.src = "https://widget.rentgrata.com/rentgrata.js";
117
+ js.addEventListener("load", function () {
118
+ window.rentgrata.Widget.render({ widget_key: k, render_as: r });
119
+ });
120
+ hjs.parentNode.insertBefore(js, hjs);
121
+ })(
122
+ document,
123
+ "script",
124
+ "rentgrata-sdk",
125
+ "4115dda5-05ed-4ff0-be4f-0aa572204b29"
126
+ );
127
+ </script>
107
128
  <!-- Google Tag Manager (noscript) -->
108
129
  <noscript
109
130
  ><iframe
@@ -134,8 +155,9 @@
134
155
  // organization: "avb",
135
156
  // building: "ava-somerville-2",
136
157
 
137
- organization: "elise-ai",
138
- building: "930196d8-3527-11ee-a65a-b70940a36fe6",
158
+ organization: "test-company",
159
+ building: "e2e-test-yardi-building",
160
+ overrideRentgrata: true,
139
161
  // onWidgetLoaded: onWidgetLoaded,
140
162
 
141
163
  // MEChat.healthcareStart({