@meetelise/chat 1.59.3 → 1.60.0
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/dist/src/WebComponent/Scheduler/tour-scheduler.d.ts +6 -0
- package/dist/src/WebComponent/actions/email-us-window.d.ts +6 -0
- package/dist/src/WebComponent/pubnub-chat.d.ts +19 -0
- package/dist/src/hostPageModal.d.ts +12 -0
- package/package.json +1 -1
- package/public/dist/index.js +238 -183
- package/src/WebComponent/Scheduler/tour-scheduler.ts +17 -5
- package/src/WebComponent/actions/email-us-window.ts +17 -5
- package/src/WebComponent/healthchat-styles.ts +15 -3
- package/src/WebComponent/leasing-chat-styles.ts +21 -3
- package/src/WebComponent/pubnub-chat-styles.ts +8 -0
- package/src/WebComponent/pubnub-chat.ts +163 -34
- package/src/WebComponent/utilities-styles.ts +15 -3
- package/src/brokerReferralSubmission.test.ts +66 -0
- package/src/chatKeyboard.test.ts +311 -0
- package/src/hostPageModal.ts +95 -0
|
@@ -159,6 +159,12 @@ export declare class TourScheduler extends LitElement {
|
|
|
159
159
|
})[];
|
|
160
160
|
renderBrokerToggle: () => TemplateResult;
|
|
161
161
|
renderBrokerSection(): TemplateResult;
|
|
162
|
+
/**
|
|
163
|
+
* Whether to ask "How did you hear about us?". Not on a broker referral: the broker's client gets the building's
|
|
164
|
+
* broker source. Not rendered, the select isn't read on submit either (selectedLeadSource queries it), so a source
|
|
165
|
+
* picked before the broker switch was turned on isn't sent.
|
|
166
|
+
*/
|
|
167
|
+
showLeadSourceSelect(): boolean;
|
|
162
168
|
userInfoAndLayoutMenu(): TemplateResult;
|
|
163
169
|
confirmationMessage(): TemplateResult;
|
|
164
170
|
/** The broker isn't the one touring: the client gets the confirmation email. */
|
|
@@ -81,6 +81,12 @@ export declare class EmailUsWindow extends LitElement {
|
|
|
81
81
|
validateFormFields: () => void;
|
|
82
82
|
onClick: () => Promise<void>;
|
|
83
83
|
getNumErrors: () => number;
|
|
84
|
+
/**
|
|
85
|
+
* Whether to ask "How did you hear about us?". Not on a broker referral: the broker's client gets the building's
|
|
86
|
+
* broker source. Not rendered, the select isn't read on submit either (selectedLeadSource queries it), so a source
|
|
87
|
+
* picked before the broker switch was turned on isn't sent.
|
|
88
|
+
*/
|
|
89
|
+
showLeadSourceSelect(): boolean;
|
|
84
90
|
renderBrokerToggle: () => TemplateResult;
|
|
85
91
|
renderBrokerSection: () => TemplateResult;
|
|
86
92
|
render: () => TemplateResult;
|
|
@@ -37,6 +37,13 @@ export declare class PubnubChat extends LitElement {
|
|
|
37
37
|
private _replyAnnouncement;
|
|
38
38
|
private announcedReplyKeys;
|
|
39
39
|
private hasReplySnapshot;
|
|
40
|
+
/** True from Send until the reply paint settles, so focus can be repaired. */
|
|
41
|
+
private holdMessageFieldFocus;
|
|
42
|
+
/** True until initializePubnub and publish settle. Streaming is still false then. */
|
|
43
|
+
private sendInFlight;
|
|
44
|
+
private releaseFocusHoldQueued;
|
|
45
|
+
/** Widget element whose siblings were hidden for the phone dialog. */
|
|
46
|
+
private hostPageLock;
|
|
40
47
|
privacyPolicyUrl: string;
|
|
41
48
|
websitePreviewMapping: {
|
|
42
49
|
[messageId: string]: {
|
|
@@ -58,8 +65,20 @@ export declare class PubnubChat extends LitElement {
|
|
|
58
65
|
private syncReplyAnnouncement;
|
|
59
66
|
private renderReplyAnnouncer;
|
|
60
67
|
updated(): Promise<void>;
|
|
68
|
+
/** Phone layout only. Desktop must leave the host page alone. */
|
|
69
|
+
private syncHostPage;
|
|
70
|
+
private releaseHostPage;
|
|
71
|
+
/**
|
|
72
|
+
* If Send or a dropped focus (document / body) is active during a send,
|
|
73
|
+
* put the caret back in the field. A control the user moved to inside
|
|
74
|
+
* the dialog, or a desktop page control they clicked, is left alone.
|
|
75
|
+
*/
|
|
76
|
+
private restoreMessageFieldFocus;
|
|
77
|
+
private scheduleFocusHoldRelease;
|
|
61
78
|
autoResizeMessageInput: () => void;
|
|
62
79
|
needsConsent: () => boolean;
|
|
80
|
+
/** Visible caption for the message field. Stays on screen while typing. */
|
|
81
|
+
private renderMessageFieldLabel;
|
|
63
82
|
/** Caret in the message field when the composer is on screen. */
|
|
64
83
|
focusMessageField(): boolean;
|
|
65
84
|
/** Tab cycles inside the fullscreen mobile dialog. Desktop stays non-modal. */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The phone layout is a fullscreen dialog. aria-modal alone does not stop
|
|
3
|
+
* iOS VoiceOver from reaching the host page, so siblings of the widget are
|
|
4
|
+
* marked inert and aria-hidden while that layout is open.
|
|
5
|
+
* Desktop chat stays non-modal and must not touch the host page.
|
|
6
|
+
*/
|
|
7
|
+
/** Light-DOM widget element. Its siblings are the host page. */
|
|
8
|
+
export declare const widgetLightHost: (start: Element) => Element | null;
|
|
9
|
+
/** Hide every element sibling of the widget. Safe to call again on send. */
|
|
10
|
+
export declare const hideHostSiblings: (host: Element) => void;
|
|
11
|
+
/** Put host siblings back the way they were when the dialog opened. */
|
|
12
|
+
export declare const restoreHostSiblings: (host: Element) => void;
|