@meetelise/chat 1.20.183 → 1.20.185
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 +42 -42
- package/public/dist/index.js +48 -44
- package/src/WebComponent/health-chat.ts +1 -1
- package/src/WebComponent/healthchat-styles.ts +6 -6
- package/src/WebComponent/leasing-chat-styles.ts +0 -1
- package/src/WebComponent/pubnub-chat.ts +13 -1
- package/src/svgIcons.ts +6 -0
|
@@ -200,7 +200,7 @@ export class HealthChat extends LitElement {
|
|
|
200
200
|
|
|
201
201
|
if (this.isLoading) return html``;
|
|
202
202
|
return html`
|
|
203
|
-
|
|
203
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
204
204
|
<div id="aria-describe-info" style="display: none;">
|
|
205
205
|
EliseAI widget that allows you to chat with a virtual assistant, book
|
|
206
206
|
a tour, contact the leasing office, and more.
|
|
@@ -74,7 +74,7 @@ export const healthChatStyles = css`
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
#healthcare-footer {
|
|
77
|
-
height: 60px;
|
|
77
|
+
min-height: 60px;
|
|
78
78
|
width: 100%;
|
|
79
79
|
background: white;
|
|
80
80
|
z-index: 100001;
|
|
@@ -89,9 +89,8 @@ export const healthChatStyles = css`
|
|
|
89
89
|
}
|
|
90
90
|
#healthcare-inner-footer > #message-input {
|
|
91
91
|
width: 100%;
|
|
92
|
-
max-height:
|
|
93
|
-
|
|
94
|
-
resize: none;
|
|
92
|
+
max-height: 100px;
|
|
93
|
+
overflowy: auto;
|
|
95
94
|
|
|
96
95
|
font-family: inherit;
|
|
97
96
|
box-sizing: border-box;
|
|
@@ -100,8 +99,6 @@ export const healthChatStyles = css`
|
|
|
100
99
|
color: black;
|
|
101
100
|
background: none;
|
|
102
101
|
|
|
103
|
-
height: 24px;
|
|
104
|
-
font-size: 12px;
|
|
105
102
|
padding-right: 6px; /* width of the scrollbar */
|
|
106
103
|
box-sizing: border-box;
|
|
107
104
|
z-index: 1000000000000000000000000001;
|
|
@@ -116,4 +113,7 @@ export const healthChatStyles = css`
|
|
|
116
113
|
border: none;
|
|
117
114
|
cursor: pointer;
|
|
118
115
|
}
|
|
116
|
+
.health-bttn-allow-access {
|
|
117
|
+
padding-right: 28px;
|
|
118
|
+
}
|
|
119
119
|
`;
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
CheckboxEmpty,
|
|
9
9
|
HeyThereEmoji,
|
|
10
10
|
SendMessageIconBlack,
|
|
11
|
+
SendMessageIconBlackLarge,
|
|
11
12
|
SendMessageIconWhite,
|
|
12
13
|
XBlackOutlineIcon,
|
|
13
14
|
} from "../svgIcons";
|
|
@@ -125,6 +126,14 @@ export class PubnubChat extends LitElement {
|
|
|
125
126
|
|
|
126
127
|
async updated(): Promise<void> {
|
|
127
128
|
this.scrollToChatBottom();
|
|
129
|
+
try {
|
|
130
|
+
const modal = document.getElementById("#healthchat-container");
|
|
131
|
+
if (!modal) return;
|
|
132
|
+
modal.focus();
|
|
133
|
+
} catch (e) {
|
|
134
|
+
// eslint-disable-next-line no-console
|
|
135
|
+
console.error(e);
|
|
136
|
+
}
|
|
128
137
|
}
|
|
129
138
|
|
|
130
139
|
autoResizeMessageInput = (): void => {
|
|
@@ -300,9 +309,12 @@ export class PubnubChat extends LitElement {
|
|
|
300
309
|
></textarea>
|
|
301
310
|
<button
|
|
302
311
|
id="healthcare-send-message-bttn"
|
|
312
|
+
class=${classMap({
|
|
313
|
+
["health-bttn-allow-access"]: isMobile(),
|
|
314
|
+
})}
|
|
303
315
|
@click=${() => this.sendMessage(this.messageInput.value)}
|
|
304
316
|
>
|
|
305
|
-
${SendMessageIconBlack}
|
|
317
|
+
${isMobile() ? SendMessageIconBlackLarge : SendMessageIconBlack}
|
|
306
318
|
</button>
|
|
307
319
|
</div>
|
|
308
320
|
</div>
|
package/src/svgIcons.ts
CHANGED
|
@@ -59,6 +59,12 @@ export const SendMessageIconBlack = svg`
|
|
|
59
59
|
</svg>
|
|
60
60
|
`;
|
|
61
61
|
|
|
62
|
+
export const SendMessageIconBlackLarge = svg`
|
|
63
|
+
<svg width="32" height="32" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
64
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M20 5C20 2.23858 17.7614 0 15 0H5C2.23858 0 0 2.23858 0 5V15C0 17.7614 2.23858 20 5 20H15C17.7614 20 20 17.7614 20 15V5ZM12.1893 9.25L10.4697 7.53033C10.1768 7.23744 10.1768 6.76256 10.4697 6.46967C10.7626 6.17678 11.2374 6.17678 11.5303 6.46967L13.8232 8.76256C14.5066 9.44598 14.5066 10.554 13.8232 11.2374L11.5303 13.5303C11.2374 13.8232 10.7626 13.8232 10.4697 13.5303C10.1768 13.2374 10.1768 12.7626 10.4697 12.4697L12.1893 10.75L6 10.75C5.58579 10.75 5.25 10.4142 5.25 10C5.25 9.58579 5.58579 9.25 6 9.25L12.1893 9.25Z" fill="black"/>
|
|
65
|
+
</svg>
|
|
66
|
+
`;
|
|
67
|
+
|
|
62
68
|
export const HeyThereEmoji = svg`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="25" height="25" viewBox="0 0 25 25" fill="none">
|
|
63
69
|
<rect x="0.5" y="0.5" width="24" height="24" fill="url(#pattern0)"/>
|
|
64
70
|
<defs>
|