@meetelise/chat 1.42.2 → 1.42.3
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/MyPubnub.d.ts +3 -1
- package/dist/src/WebComponent/LeadSourceMultitouchClient.d.ts +36 -0
- package/dist/src/WebComponent/Scheduler/tour-scheduler.d.ts +1 -0
- package/dist/src/WebComponent/actions/call-us-window.d.ts +1 -0
- package/dist/src/WebComponent/actions/email-us-window.d.ts +1 -0
- package/dist/src/WebComponent/launcher/Launcher.d.ts +1 -0
- package/dist/src/WebComponent/me-chat.d.ts +1 -0
- package/package.json +1 -1
- package/public/dist/index.js +276 -272
- package/src/MyPubnub.ts +12 -1
- package/src/WebComponent/LeadSourceMultitouchClient.ts +222 -0
- package/src/WebComponent/Scheduler/tour-scheduler.ts +17 -1
- package/src/WebComponent/actions/call-us-window.ts +20 -3
- package/src/WebComponent/actions/email-us-window.ts +24 -3
- package/src/WebComponent/health-chat.ts +1 -0
- package/src/WebComponent/launcher/Launcher.ts +7 -0
- package/src/WebComponent/me-chat.ts +25 -6
- package/src/WebComponent/utilities-chat.ts +1 -0
package/dist/src/MyPubnub.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { ChatStorageKey } from "./handleChatId";
|
|
|
3
3
|
import LeadSourceClient from "./WebComponent/LeadSourceClient";
|
|
4
4
|
import { WidgetType } from "./main/MEChat";
|
|
5
5
|
import { BuildingWebchatView } from "./fetchBuildingWebchatView";
|
|
6
|
+
import { LeadSourceMultitouchClient } from "./WebComponent/LeadSourceMultitouchClient";
|
|
6
7
|
interface TokenResponse {
|
|
7
8
|
auth: {
|
|
8
9
|
result: {
|
|
@@ -67,6 +68,7 @@ export declare enum SimpleMessageTypes {
|
|
|
67
68
|
declare class MyPubnub {
|
|
68
69
|
private apiHost;
|
|
69
70
|
private leadSourceClient;
|
|
71
|
+
private leadSourceMultitouchClient;
|
|
70
72
|
private buildingWebchatView;
|
|
71
73
|
private buildingSlug;
|
|
72
74
|
private orgSlug;
|
|
@@ -88,7 +90,7 @@ declare class MyPubnub {
|
|
|
88
90
|
isLoadingMessages: boolean;
|
|
89
91
|
isFirstChatMessageSent: boolean;
|
|
90
92
|
private streamingMessageTimeout;
|
|
91
|
-
constructor(buildingSlug: string, buildingDetails: BuildingWebchatView | null, orgSlug: string, leadSource: string | null | undefined, leadUserId: string, leadSourceClient?: LeadSourceClient | null, widgetType?: WidgetType);
|
|
93
|
+
constructor(buildingSlug: string, buildingDetails: BuildingWebchatView | null, orgSlug: string, leadSource: string | null | undefined, leadUserId: string, leadSourceMultitouchClient: LeadSourceMultitouchClient | null, leadSourceClient?: LeadSourceClient | null, widgetType?: WidgetType);
|
|
92
94
|
private checkAndHandleDelayStreamingMessages;
|
|
93
95
|
checkAndHandleGTMForLeadEmail: (messageEvent: Pubnub.MessageEvent) => void;
|
|
94
96
|
addChatListener(listener: (response: {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
interface LeadSourceParameters {
|
|
2
|
+
websiteOrigin: string | null;
|
|
3
|
+
websiteSearch: string | null;
|
|
4
|
+
queryParameters: {
|
|
5
|
+
[queryKey: string]: string;
|
|
6
|
+
} | null;
|
|
7
|
+
referrer: string | null;
|
|
8
|
+
parsedUtmSource: string | null;
|
|
9
|
+
campaignSources: string[] | null;
|
|
10
|
+
}
|
|
11
|
+
export interface LeadSourceSubmittedListItem {
|
|
12
|
+
timestampInitiallyLogged: string;
|
|
13
|
+
leadSourceValue: string | null;
|
|
14
|
+
type: "default" | "touchpoint" | "user-selected";
|
|
15
|
+
}
|
|
16
|
+
export interface LeadSourceValueWithTimestamp extends LeadSourceSubmittedListItem {
|
|
17
|
+
parameters: LeadSourceParameters | null;
|
|
18
|
+
}
|
|
19
|
+
export declare class LeadSourceMultitouchClient {
|
|
20
|
+
constructor(orgSlug: string, buildingSlug: string);
|
|
21
|
+
orgSlug: string;
|
|
22
|
+
buildingSlug: string;
|
|
23
|
+
private persistLeadSourceTTLDays;
|
|
24
|
+
private maxSourcesNonPropertyWebsiteCount;
|
|
25
|
+
private _generateLeadSourceLocalStorageKey;
|
|
26
|
+
private _generateNewExpirationTimestamp;
|
|
27
|
+
private _generateLeadSourceParameters;
|
|
28
|
+
addSafeLeadSourceTouchpoint: (leadSourceValue: string) => void;
|
|
29
|
+
getSafeLeadSourceTouchpointsWithDefault: ({ includedUserSelectedLeadSource, }: {
|
|
30
|
+
includedUserSelectedLeadSource: string | null;
|
|
31
|
+
}) => LeadSourceSubmittedListItem[];
|
|
32
|
+
private getLocalStorageMultitouchValue;
|
|
33
|
+
private isExpiredTimestamp;
|
|
34
|
+
resetLeadSourceTouchpoints: () => boolean;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -21,6 +21,7 @@ export declare class TourScheduler extends LitElement {
|
|
|
21
21
|
orgSlug: string;
|
|
22
22
|
hasDynamicSchedulingEnabled: boolean;
|
|
23
23
|
private leadSourceClient;
|
|
24
|
+
private leadSourceMultitouchClient;
|
|
24
25
|
buildingName: string;
|
|
25
26
|
onCloseClicked?: (e: MouseEvent) => void;
|
|
26
27
|
private tourType;
|
|
@@ -15,6 +15,7 @@ export declare class CallUsWindow extends LitElement {
|
|
|
15
15
|
currentLeadSource: string;
|
|
16
16
|
orgLegalName: string;
|
|
17
17
|
private leadSourceClient;
|
|
18
|
+
private leadSourceMultitouchClient;
|
|
18
19
|
phoneNumberInputRef: Ref<HTMLInputElement>;
|
|
19
20
|
hasSubmittedForm: boolean;
|
|
20
21
|
hasPhoneNumberError: boolean;
|
|
@@ -13,6 +13,7 @@ export declare class EmailUsWindow extends LitElement {
|
|
|
13
13
|
buildingName: string;
|
|
14
14
|
orgLegalName: string;
|
|
15
15
|
private leadSourceClient;
|
|
16
|
+
private leadSourceMultitouchClient;
|
|
16
17
|
featureFlagShowDropdown: string;
|
|
17
18
|
phoneNumberInputRef: Ref<HTMLInputElement>;
|
|
18
19
|
privatePolicyUrl: string;
|
|
@@ -66,6 +66,7 @@ export declare class Launcher extends LitElement {
|
|
|
66
66
|
foregroundColorOnPrimaryBackgroundColor: string;
|
|
67
67
|
foregroundColorOnSecondaryBackgroundColor: string;
|
|
68
68
|
private leadSourceClient;
|
|
69
|
+
private leadSourceMultitouchClient;
|
|
69
70
|
isEmailWindowOpen: boolean;
|
|
70
71
|
isCallUsWindowOpen: boolean;
|
|
71
72
|
isSSTWindowOpen: boolean;
|