@meetelise/chat 1.25.1 → 1.25.2
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/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/index.js.html +1 -1
- package/package.json +1 -1
- package/.prettierignore +0 -2
- 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
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from "lit";
|
|
2
|
-
export declare class DetailsWindow extends LitElement {
|
|
3
|
-
static styles: import("lit").CSSResult;
|
|
4
|
-
height: string;
|
|
5
|
-
width: string;
|
|
6
|
-
useRoundedBorders: boolean;
|
|
7
|
-
headerText: string;
|
|
8
|
-
onCloseClick?: (e: MouseEvent) => void;
|
|
9
|
-
isMobileSized: boolean;
|
|
10
|
-
useGradientDesign: boolean;
|
|
11
|
-
firstUpdated(): Promise<void>;
|
|
12
|
-
render(): TemplateResult;
|
|
13
|
-
}
|
|
14
|
-
export declare const installDetailsWindow: () => void;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from "lit";
|
|
2
|
-
import { Ref } from "lit/directives/ref.js";
|
|
3
|
-
import "../me-select.ts";
|
|
4
|
-
import { MESelect } from "../me-select";
|
|
5
|
-
export declare class EmailUsWindow extends LitElement {
|
|
6
|
-
static styles: import("lit").CSSResult[];
|
|
7
|
-
leadSources: string[];
|
|
8
|
-
onCloseClicked?: (e: MouseEvent) => void;
|
|
9
|
-
chatId: string;
|
|
10
|
-
buildingId: number;
|
|
11
|
-
buildingSlug: string;
|
|
12
|
-
orgSlug: string;
|
|
13
|
-
buildingName: string;
|
|
14
|
-
orgLegalName: string;
|
|
15
|
-
private leadSourceClient;
|
|
16
|
-
featureFlagShowDropdown: string;
|
|
17
|
-
phoneNumberInputRef: Ref<HTMLInputElement>;
|
|
18
|
-
privatePolicyUrl: string;
|
|
19
|
-
termsOfServiceUrl: string;
|
|
20
|
-
firstName: string;
|
|
21
|
-
lastName: string;
|
|
22
|
-
email: string;
|
|
23
|
-
phoneNumber: string;
|
|
24
|
-
message: string;
|
|
25
|
-
selectedLeadSource: MESelect;
|
|
26
|
-
currentLeadSource: string;
|
|
27
|
-
hasNameError: boolean;
|
|
28
|
-
hasEmailError: boolean;
|
|
29
|
-
hasPhoneNumberError: boolean;
|
|
30
|
-
hasMessageError: boolean;
|
|
31
|
-
hasSubmittedForm: boolean;
|
|
32
|
-
windowHeight: number;
|
|
33
|
-
hasSubmissionError: boolean;
|
|
34
|
-
isSubmitting: boolean;
|
|
35
|
-
onChangeFirstName: (e: Event) => void;
|
|
36
|
-
onChangeLastName: (e: Event) => void;
|
|
37
|
-
onChangeEmail: (e: Event) => void;
|
|
38
|
-
onChangePhoneNumber: (e: Event) => void;
|
|
39
|
-
onChangeMessage: (e: Event) => void;
|
|
40
|
-
enforceFormat: (e: KeyboardEvent) => void;
|
|
41
|
-
validateFormFields: () => void;
|
|
42
|
-
onClick: () => Promise<void>;
|
|
43
|
-
getNumErrors: () => number;
|
|
44
|
-
render: () => TemplateResult;
|
|
45
|
-
}
|
|
46
|
-
export declare const installEmailUsWindow: () => void;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* For now, only handles the US phone number case.....
|
|
3
|
-
* Formats into phone number as you type
|
|
4
|
-
*/
|
|
5
|
-
export declare const formatToPhoneInput: (phoneNumber: string) => string;
|
|
6
|
-
/**
|
|
7
|
-
* Formats a phone number into a human-readable format.
|
|
8
|
-
*/
|
|
9
|
-
export declare const formatPhoneNumber: (phoneNumberString: string) => string;
|
|
10
|
-
export declare const isNumericInput: (event: KeyboardEvent) => boolean;
|
|
11
|
-
export declare const isPrintableCharacter: (event: KeyboardEvent) => boolean;
|
|
12
|
-
/** Returns true if any key is pressed whose only function when typing text would be as part of a keyboard shortcut.
|
|
13
|
-
* For example, `Shift` or `f` would not suffice, because these are used for typing text.
|
|
14
|
-
* But `Command` or `Control` would.
|
|
15
|
-
*/
|
|
16
|
-
export declare const shortcutKeyIsPressed: (event: KeyboardEvent) => boolean;
|
|
17
|
-
export declare const isModifierKey: (event: KeyboardEvent) => boolean;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from "lit";
|
|
2
|
-
import { BuildingWebchatView } from "../fetchBuildingWebchatView";
|
|
3
|
-
export declare class ChatAdditionalActions extends LitElement {
|
|
4
|
-
static styles: import("lit").CSSResult;
|
|
5
|
-
id: string;
|
|
6
|
-
showChatAdditionalActions: boolean;
|
|
7
|
-
buildingWebchatView: BuildingWebchatView | null;
|
|
8
|
-
primaryColor: string | null;
|
|
9
|
-
backgroundColor: string | null;
|
|
10
|
-
enabledChatWidgets: {
|
|
11
|
-
callDesktop: boolean;
|
|
12
|
-
chatDesktop: boolean;
|
|
13
|
-
emailDesktop: boolean;
|
|
14
|
-
textDesktop: boolean;
|
|
15
|
-
sstDesktop: boolean;
|
|
16
|
-
};
|
|
17
|
-
onClickMinimize: () => void;
|
|
18
|
-
onClickEmailOption: (e: MouseEvent) => void;
|
|
19
|
-
onClickPhoneOption: (e: MouseEvent) => void;
|
|
20
|
-
onClickSSTOption: (e: MouseEvent) => void;
|
|
21
|
-
onClose: (e: MouseEvent) => void;
|
|
22
|
-
render(): TemplateResult;
|
|
23
|
-
}
|
|
24
|
-
declare global {
|
|
25
|
-
interface HTMLElementTagNameMap {
|
|
26
|
-
"chat-additional-actions": ChatAdditionalActions;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from "lit";
|
|
2
|
-
import { Ref } from "lit/directives/ref.js";
|
|
3
|
-
import { Launcher } from "./launcher/Launcher";
|
|
4
|
-
import "./Scheduler/tour-scheduler";
|
|
5
|
-
import "./MEChat.css";
|
|
6
|
-
import "./actions/minimize-expand-button";
|
|
7
|
-
import "./launcher/mobile-launcher";
|
|
8
|
-
import "./pubnub-chat";
|
|
9
|
-
import "./simple-launcher/simple-launcher";
|
|
10
|
-
export declare class HealthChat extends LitElement {
|
|
11
|
-
static styles: import("lit").CSSResult;
|
|
12
|
-
private healthcareId;
|
|
13
|
-
private right;
|
|
14
|
-
private bottom;
|
|
15
|
-
private top;
|
|
16
|
-
private left;
|
|
17
|
-
private launcher;
|
|
18
|
-
private currentLeadSource;
|
|
19
|
-
private displayPubnubChat;
|
|
20
|
-
private myPubnub;
|
|
21
|
-
private requiresConsent;
|
|
22
|
-
private privacyPolicyUrl;
|
|
23
|
-
private isLoading;
|
|
24
|
-
launcherRef: Ref<Launcher>;
|
|
25
|
-
firstUpdated: () => Promise<void>;
|
|
26
|
-
private initializeChatVariables;
|
|
27
|
-
restartConversation(): Promise<void>;
|
|
28
|
-
/** Show the chat button on the screen if it was previously hidden. */
|
|
29
|
-
show(): void;
|
|
30
|
-
/** Hide the chat button from the screen (but don't remove from the DOM). */
|
|
31
|
-
hide(): void;
|
|
32
|
-
disconnectedCallback(): void;
|
|
33
|
-
private attachOnClickToLauncher;
|
|
34
|
-
render(): TemplateResult;
|
|
35
|
-
}
|
|
36
|
-
declare global {
|
|
37
|
-
interface HTMLElementTagNameMap {
|
|
38
|
-
"health-chat": HealthChat;
|
|
39
|
-
}
|
|
40
|
-
interface Window {
|
|
41
|
-
RCTPCampaign?: {
|
|
42
|
-
CampaignDetails: {
|
|
43
|
-
Source: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const healthChatStyles: import("lit").CSSResult;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from "lit";
|
|
2
|
-
import { Ref } from "lit/directives/ref.js";
|
|
3
|
-
import { EmailUsWindow } from "../actions/email-us-window";
|
|
4
|
-
import { StyleInfo } from "lit/directives/style-map.js";
|
|
5
|
-
import { TourScheduler } from "../Scheduler/tour-scheduler";
|
|
6
|
-
import { FeeCalculator } from "../FeeCalculator/fee-calculator";
|
|
7
|
-
import { LabeledOption } from "../../fetchBuildingInfo";
|
|
8
|
-
import "./mobile-launcher";
|
|
9
|
-
import "../actions/collapse-expand-button";
|
|
10
|
-
export declare class Launcher extends LitElement {
|
|
11
|
-
static styles: import("lit").CSSResult;
|
|
12
|
-
isMinimized: boolean;
|
|
13
|
-
mobileStyles: StyleInfo;
|
|
14
|
-
isFirstMount: boolean;
|
|
15
|
-
autoOpenChatWidget: boolean;
|
|
16
|
-
phoneNumber: string;
|
|
17
|
-
buildingName: string;
|
|
18
|
-
chatId: string;
|
|
19
|
-
orgLegalName: string;
|
|
20
|
-
chatCallUsHeader: string;
|
|
21
|
-
buildingId: number;
|
|
22
|
-
buildingSlug: string;
|
|
23
|
-
orgSlug: string;
|
|
24
|
-
sgtUrl: string;
|
|
25
|
-
selfGuidedTourEnabled: boolean;
|
|
26
|
-
selfGuidedToursTypeOffered: string;
|
|
27
|
-
designConcept: string;
|
|
28
|
-
featureFlagShowDropdown: string;
|
|
29
|
-
leadSources: string[];
|
|
30
|
-
currentLeadSource: string;
|
|
31
|
-
escortedToursLink: string;
|
|
32
|
-
virtualToursLink: string;
|
|
33
|
-
hasChatEnabledDesktop: boolean;
|
|
34
|
-
hasChatEnabledMobile: boolean;
|
|
35
|
-
hasEmailEnabledDesktop: boolean;
|
|
36
|
-
hasEmailEnabledMobile: boolean;
|
|
37
|
-
hasApplyNowEnabledDesktop: boolean;
|
|
38
|
-
hasApplyNowEnabledMobile: boolean;
|
|
39
|
-
applicationLink: string;
|
|
40
|
-
hasCallUsEnabledDesktop: boolean;
|
|
41
|
-
hasCallUsEnabledMobile: boolean;
|
|
42
|
-
hasTextUsEnabledDesktop: boolean;
|
|
43
|
-
hasTextUsEnabledMobile: boolean;
|
|
44
|
-
hasSSTEnabledDesktop: boolean;
|
|
45
|
-
hasSSTEnabledMobile: boolean;
|
|
46
|
-
tourTypeOptions: LabeledOption[];
|
|
47
|
-
hasDynamicSchedulingEnabled: boolean;
|
|
48
|
-
hasPricingCalculatorEnabledDesktop: boolean;
|
|
49
|
-
hasPricingCalculatorEnabledMobile: boolean;
|
|
50
|
-
onExitChat: () => void;
|
|
51
|
-
hasHideMobileFeatures: boolean;
|
|
52
|
-
private right;
|
|
53
|
-
private bottom;
|
|
54
|
-
private top;
|
|
55
|
-
private left;
|
|
56
|
-
showTourNextToChat: boolean;
|
|
57
|
-
onChatTapped: () => void;
|
|
58
|
-
onClickMinimize: (e: MouseEvent) => void;
|
|
59
|
-
onSstClose: () => void;
|
|
60
|
-
overrideRentgrata: boolean;
|
|
61
|
-
launcherStyles: StyleInfo;
|
|
62
|
-
primaryColor: string;
|
|
63
|
-
backgroundColor: string;
|
|
64
|
-
foregroundColorOnPrimaryBackgroundColor: string;
|
|
65
|
-
foregroundColorOnSecondaryBackgroundColor: string;
|
|
66
|
-
private leadSourceClient;
|
|
67
|
-
isEmailWindowOpen: boolean;
|
|
68
|
-
isCallUsWindowOpen: boolean;
|
|
69
|
-
isSSTWindowOpen: boolean;
|
|
70
|
-
isTextUsWindowOpen: boolean;
|
|
71
|
-
isCalculatorWindowOpen: boolean;
|
|
72
|
-
private isMobileFeaturesExpanded;
|
|
73
|
-
getNumCallToActions: () => number;
|
|
74
|
-
emailUsWindowRef: Ref<EmailUsWindow>;
|
|
75
|
-
tourSchedulerRef: Ref<TourScheduler>;
|
|
76
|
-
calculatorWindowRef: Ref<FeeCalculator>;
|
|
77
|
-
updated: () => Promise<void>;
|
|
78
|
-
attachOnClickToEmailUsWindow: () => void;
|
|
79
|
-
attachOnClickToSSTWindow: () => void;
|
|
80
|
-
attachOnClickToCalculatorWindow: () => void;
|
|
81
|
-
onClickEmailOption: (e: MouseEvent) => void;
|
|
82
|
-
onCloseEmailWindow: () => void;
|
|
83
|
-
onClickPhoneOption: (e: MouseEvent) => void;
|
|
84
|
-
onClickApplyNowOption: (e: MouseEvent) => void;
|
|
85
|
-
onClickPriceCalculatorOption: (e: MouseEvent) => void;
|
|
86
|
-
onClosePhoneWindow: () => void;
|
|
87
|
-
onClickSSTOption: (e: MouseEvent) => void;
|
|
88
|
-
onCloseSSTWindow: () => void;
|
|
89
|
-
onCloseCalculatorWindow: () => void;
|
|
90
|
-
onClickTextUsOption: (e: MouseEvent) => void;
|
|
91
|
-
isCallToActionWindowOpen: () => boolean;
|
|
92
|
-
toggleMobileFeatures: () => void;
|
|
93
|
-
renderActionPills: () => TemplateResult;
|
|
94
|
-
private emojiPillList;
|
|
95
|
-
private verticalPillList;
|
|
96
|
-
render(): TemplateResult;
|
|
97
|
-
}
|
|
98
|
-
export declare const installLauncher: () => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const launcherStyles: import("lit").CSSResult;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from "lit";
|
|
2
|
-
export declare class MobileLauncher extends LitElement {
|
|
3
|
-
static styles: import("lit").CSSResult[];
|
|
4
|
-
onClickMinimize: () => void;
|
|
5
|
-
onClickEmailOption: (e: MouseEvent) => void;
|
|
6
|
-
onClickPhoneOption: (e: MouseEvent) => void;
|
|
7
|
-
onClickSSTOption: (e: MouseEvent) => void;
|
|
8
|
-
onClickApplyNowOption: (e: MouseEvent) => void;
|
|
9
|
-
onClickPriceCalculatorOption: (e: MouseEvent) => void;
|
|
10
|
-
onChatTapped: (e: MouseEvent) => void;
|
|
11
|
-
hideChat: boolean;
|
|
12
|
-
isMobileDesign: boolean;
|
|
13
|
-
primaryColor: string;
|
|
14
|
-
backgroundColor: string;
|
|
15
|
-
hasChatEnabled: boolean;
|
|
16
|
-
hasEmailEnabled: boolean;
|
|
17
|
-
hasCallUsEnabled: boolean;
|
|
18
|
-
hasTextUsEnabled: boolean;
|
|
19
|
-
hasSSTEnabled: boolean;
|
|
20
|
-
hasApplyNowEnabled: boolean;
|
|
21
|
-
hasPricingCalculatorEnabled: boolean;
|
|
22
|
-
applicationLink: string;
|
|
23
|
-
overrideRentgrata: boolean;
|
|
24
|
-
private renderListElement;
|
|
25
|
-
render(): TemplateResult;
|
|
26
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const typeEmojiStyles: import("lit").CSSResult;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const typeMiniStyles: import("lit").CSSResult;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const typeMobileStyles: import("lit").CSSResult;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const leasingChatStyles: import("lit").CSSResult;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from "lit";
|
|
2
|
-
import { Ref } from "lit/directives/ref.js";
|
|
3
|
-
import { Launcher } from "./launcher/Launcher";
|
|
4
|
-
import "./Scheduler/tour-scheduler";
|
|
5
|
-
import "./MEChat.css";
|
|
6
|
-
import { StyleInfo } from "lit/directives/style-map";
|
|
7
|
-
import "./actions/minimize-expand-button";
|
|
8
|
-
import "./launcher/mobile-launcher";
|
|
9
|
-
import "./pubnub-chat";
|
|
10
|
-
import { WidgetType } from "../main/MEChat";
|
|
11
|
-
import "./chat-additional-actions";
|
|
12
|
-
export declare class MEChat extends LitElement {
|
|
13
|
-
static styles: import("lit").CSSResult;
|
|
14
|
-
private buildingSlug;
|
|
15
|
-
private orgSlug;
|
|
16
|
-
launcherStyles: StyleInfo;
|
|
17
|
-
mobileStyles: StyleInfo;
|
|
18
|
-
isMinimized: boolean;
|
|
19
|
-
private primaryColor;
|
|
20
|
-
private backgroundColor;
|
|
21
|
-
private foregroundColorOnPrimaryBackgroundColor;
|
|
22
|
-
private foregroundColorOnSecondaryBackgroundColor;
|
|
23
|
-
private chatId;
|
|
24
|
-
private analytics;
|
|
25
|
-
private launcher;
|
|
26
|
-
private buildingWebchatView;
|
|
27
|
-
private designConcept;
|
|
28
|
-
private leadSources;
|
|
29
|
-
private currentLeadSource;
|
|
30
|
-
private featureFlagShowDropdown;
|
|
31
|
-
private phoneNumberForSource;
|
|
32
|
-
private hasMounted;
|
|
33
|
-
private hideLauncher;
|
|
34
|
-
private isLoading;
|
|
35
|
-
private showTourNextToChat;
|
|
36
|
-
private displayPubnubChat;
|
|
37
|
-
private myPubnub;
|
|
38
|
-
private LeadSourceClient;
|
|
39
|
-
private sampleRateToUse;
|
|
40
|
-
private right;
|
|
41
|
-
private bottom;
|
|
42
|
-
private top;
|
|
43
|
-
private left;
|
|
44
|
-
overrideRentgrata: boolean;
|
|
45
|
-
widgetType: WidgetType;
|
|
46
|
-
onWidgetLoaded: () => void;
|
|
47
|
-
onSstClose: () => void;
|
|
48
|
-
private enabledChatWidgets;
|
|
49
|
-
private webchatConfigHasAutoOpenChat;
|
|
50
|
-
private requiresConsent;
|
|
51
|
-
private hideMobileFeatures;
|
|
52
|
-
private privacyPolicyUrl;
|
|
53
|
-
launcherRef: Ref<Launcher>;
|
|
54
|
-
firstUpdated: () => Promise<void>;
|
|
55
|
-
private setupWebchat;
|
|
56
|
-
setBuildingDerivedInfo: () => Promise<void>;
|
|
57
|
-
private initializeChatVariables;
|
|
58
|
-
private shouldAutoOpenChat;
|
|
59
|
-
private handleChatInitializeAnalytics;
|
|
60
|
-
restartConversation(): Promise<void>;
|
|
61
|
-
private updateAlreadyAutoOpenedTimestamp;
|
|
62
|
-
/** Show the chat button on the screen if it was previously hidden. */
|
|
63
|
-
show(): void;
|
|
64
|
-
/** Hide the chat button from the screen (but don't remove from the DOM). */
|
|
65
|
-
hide(): void;
|
|
66
|
-
handleContactClicked: (e: MouseEvent) => void;
|
|
67
|
-
handleTourClicked: (e: MouseEvent) => void;
|
|
68
|
-
handleContactTabClicked: (e: MouseEvent) => void;
|
|
69
|
-
adjustPositionChatAdditionalActions: () => void;
|
|
70
|
-
connectedCallback(): void;
|
|
71
|
-
handleKeydownTab: (e: KeyboardEvent) => void;
|
|
72
|
-
getDeepActiveElement(): Element | null;
|
|
73
|
-
updated(): void;
|
|
74
|
-
disconnectedCallback(): void;
|
|
75
|
-
onClickMinimize: (e: MouseEvent) => void;
|
|
76
|
-
private attachOnClickToLauncher;
|
|
77
|
-
onExitChat: () => void;
|
|
78
|
-
render(): TemplateResult;
|
|
79
|
-
}
|
|
80
|
-
declare global {
|
|
81
|
-
interface HTMLElementTagNameMap {
|
|
82
|
-
"me-chat": MEChat;
|
|
83
|
-
}
|
|
84
|
-
interface Window {
|
|
85
|
-
RCTPCampaign?: {
|
|
86
|
-
CampaignDetails: {
|
|
87
|
-
Source: string;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from "lit";
|
|
2
|
-
declare type MeSelectOption = {
|
|
3
|
-
label: string;
|
|
4
|
-
value: string;
|
|
5
|
-
};
|
|
6
|
-
export declare class MESelect extends LitElement {
|
|
7
|
-
options: MeSelectOption[];
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
value?: string;
|
|
10
|
-
private activeOption;
|
|
11
|
-
private isOpen?;
|
|
12
|
-
private activeOptionIndex;
|
|
13
|
-
meSelect: HTMLDivElement;
|
|
14
|
-
focus: () => void;
|
|
15
|
-
toggleSelect: () => void;
|
|
16
|
-
setSelectedOption: (option: MeSelectOption, closeSelect?: boolean) => void;
|
|
17
|
-
handleKeydown: (keyOrKeys: string | string[], callback: () => void) => (event: KeyboardEvent) => void;
|
|
18
|
-
private adjustScrollToActiveOption;
|
|
19
|
-
constructor();
|
|
20
|
-
static styles: import("lit").CSSResult[];
|
|
21
|
-
firstUpdated: () => void;
|
|
22
|
-
render(): TemplateResult;
|
|
23
|
-
}
|
|
24
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const pubnubChatStyles: import("lit").CSSResult;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from "lit";
|
|
2
|
-
import { Building } from "../fetchBuildingInfo";
|
|
3
|
-
import MyPubnub, { SimpleChatMessage } from "../MyPubnub";
|
|
4
|
-
import "./pubnub-message";
|
|
5
|
-
import "./pubnub-media";
|
|
6
|
-
import { WidgetType } from "../main/MEChat";
|
|
7
|
-
export declare class PubnubChat extends LitElement {
|
|
8
|
-
static styles: import("lit").CSSResult[];
|
|
9
|
-
private right;
|
|
10
|
-
private bottom;
|
|
11
|
-
private top;
|
|
12
|
-
private left;
|
|
13
|
-
onMount: () => void;
|
|
14
|
-
channel: string | undefined;
|
|
15
|
-
isHealthChat: boolean;
|
|
16
|
-
myPubnub: MyPubnub | undefined;
|
|
17
|
-
orgSlug: string | undefined;
|
|
18
|
-
buildingSlug: string | undefined;
|
|
19
|
-
widgetType: WidgetType;
|
|
20
|
-
building: Building | undefined;
|
|
21
|
-
primaryColor: string;
|
|
22
|
-
backgroundColor: string;
|
|
23
|
-
onClickExit: () => void;
|
|
24
|
-
requiresConsent: boolean;
|
|
25
|
-
messageInput: HTMLTextAreaElement;
|
|
26
|
-
messageBody: HTMLDivElement;
|
|
27
|
-
messages: SimpleChatMessage[];
|
|
28
|
-
isLoadingMessages: boolean;
|
|
29
|
-
hasReceivedConsent: boolean;
|
|
30
|
-
privacyPolicyUrl: string;
|
|
31
|
-
websitePreviewMapping: {
|
|
32
|
-
[messageId: string]: {
|
|
33
|
-
title: string | null;
|
|
34
|
-
description: string | null;
|
|
35
|
-
image: string | null;
|
|
36
|
-
favicon: string | null;
|
|
37
|
-
isLoading: boolean;
|
|
38
|
-
}[];
|
|
39
|
-
};
|
|
40
|
-
get consentKey(): string;
|
|
41
|
-
sendMessage: (message: string) => Promise<void>;
|
|
42
|
-
firstUpdated(): void;
|
|
43
|
-
scrollToChatBottom: () => void;
|
|
44
|
-
updated(): Promise<void>;
|
|
45
|
-
autoResizeMessageInput: () => void;
|
|
46
|
-
needsConsent: () => boolean;
|
|
47
|
-
render(): TemplateResult;
|
|
48
|
-
}
|
|
49
|
-
export declare const CURRENT_CONSENT_ID = "currentConsentId";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues, TemplateResult } from "lit";
|
|
2
|
-
import MyPubnub, { SimpleMediaChatMessage } from "../MyPubnub";
|
|
3
|
-
export declare class PubnubMedia extends LitElement {
|
|
4
|
-
static styles: import("lit").CSSResult[];
|
|
5
|
-
message: SimpleMediaChatMessage | undefined;
|
|
6
|
-
myPubnub: MyPubnub | undefined;
|
|
7
|
-
onMount: () => void;
|
|
8
|
-
updated(changedProperties: PropertyValues<this>): void;
|
|
9
|
-
showMediaAsCarousel: boolean;
|
|
10
|
-
activeIndex: number;
|
|
11
|
-
private prevImage;
|
|
12
|
-
private nextImage;
|
|
13
|
-
render(): TemplateResult;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const pubnubMessageStyles: import("lit").CSSResult;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues, TemplateResult } from "lit";
|
|
2
|
-
import MyPubnub, { SimpleTextChatMessage } from "../MyPubnub";
|
|
3
|
-
import "./mini-loader";
|
|
4
|
-
import { WidgetType } from "../main/MEChat";
|
|
5
|
-
interface WebsitePreview {
|
|
6
|
-
title: string | null;
|
|
7
|
-
description: string | null;
|
|
8
|
-
image: string | null;
|
|
9
|
-
favicon: string | null;
|
|
10
|
-
link: string;
|
|
11
|
-
}
|
|
12
|
-
interface ImageToDisplay {
|
|
13
|
-
redirectTo: string;
|
|
14
|
-
source: string;
|
|
15
|
-
}
|
|
16
|
-
export declare class PubnubMessage extends LitElement {
|
|
17
|
-
static styles: import("lit").CSSResult[];
|
|
18
|
-
buildingSlug: string | undefined;
|
|
19
|
-
message: SimpleTextChatMessage | undefined;
|
|
20
|
-
myPubnub: MyPubnub | undefined;
|
|
21
|
-
onMount: () => void;
|
|
22
|
-
loadingPreviews: boolean;
|
|
23
|
-
parsedMessage: TemplateResult | undefined;
|
|
24
|
-
websitePreviewInfo: WebsitePreview[];
|
|
25
|
-
imagesToDisplay: ImageToDisplay[];
|
|
26
|
-
imageUrlError: string[];
|
|
27
|
-
isLeadMessage: boolean;
|
|
28
|
-
widgetType: WidgetType;
|
|
29
|
-
isMessageStillStreamingChunks(): boolean;
|
|
30
|
-
updated(changedProperties: PropertyValues<this>): void;
|
|
31
|
-
private invalidMarkdownText;
|
|
32
|
-
private preserveHTMLTags;
|
|
33
|
-
private sanitizeMarkdownText;
|
|
34
|
-
private removeTrailingPunctuation;
|
|
35
|
-
private mapAndMarkHyperLinks;
|
|
36
|
-
private getLinkData;
|
|
37
|
-
render(): TemplateResult;
|
|
38
|
-
}
|
|
39
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const simpleLauncherStyles: import("lit").CSSResult;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { LitElement, TemplateResult } from "lit";
|
|
2
|
-
export declare class SimpleLauncher extends LitElement {
|
|
3
|
-
static styles: import("lit").CSSResult[];
|
|
4
|
-
private right;
|
|
5
|
-
private bottom;
|
|
6
|
-
private top;
|
|
7
|
-
private left;
|
|
8
|
-
isChatOpen: boolean;
|
|
9
|
-
onClickCloseChat: () => void;
|
|
10
|
-
onClickOpenChat: () => void;
|
|
11
|
-
render(): TemplateResult;
|
|
12
|
-
}
|