@meetelise/chat 1.22.25 → 1.22.27

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetelise/chat",
3
- "version": "1.22.25",
3
+ "version": "1.22.27",
4
4
  "description": "",
5
5
  "main": "public/dist/index.js",
6
6
  "type": "module",
@@ -104,6 +104,21 @@
104
104
  </style>
105
105
  </head>
106
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>
107
122
  <!-- <script>
108
123
  <!-- Before closing body tag -->
109
124
  <!-- (function (d, s, id, k, r) {
@@ -158,6 +173,9 @@
158
173
  MEChat.start({
159
174
  organization: "test-company",
160
175
  building: "3fc93384-91f5-11ed-98a3-43f5a2f42588",
176
+
177
+ // organization: "c259a157-cff3-470a-9ded-f6c5c8d917b8",
178
+ // building: "22ea2d7e-5df4-11ee-a665-63eeb20a5762",
161
179
  // onSstClose: () => {
162
180
  // const meetEliseChats = document.getElementsByTagName("me-chat");
163
181
  // if (!meetEliseChats || meetEliseChats.length === 0) {