@meetelise/chat 1.43.33 → 1.43.35
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 +7 -0
- package/dist/src/protected-phone-numbers.d.ts +18 -0
- package/package.json +2 -2
- package/public/dist/index.js +34 -34
- package/src/MyPubnub.ts +47 -0
- package/src/WebComponent/me-chat.ts +23 -2
- package/src/insertDNIIntoWebsite.ts +191 -126
- package/src/protected-phone-numbers.ts +114 -0
package/dist/src/MyPubnub.d.ts
CHANGED
|
@@ -79,6 +79,7 @@ declare class MyPubnub {
|
|
|
79
79
|
leadUserId: string;
|
|
80
80
|
channel: string;
|
|
81
81
|
leadSource: string | null;
|
|
82
|
+
private sessionToken;
|
|
82
83
|
isCurrentlyStreamingMessage: boolean;
|
|
83
84
|
chatListener: ((res: {
|
|
84
85
|
messages: SimpleChatMessage[];
|
|
@@ -91,6 +92,12 @@ declare class MyPubnub {
|
|
|
91
92
|
isFirstChatMessageSent: boolean;
|
|
92
93
|
private streamingMessageTimeout;
|
|
93
94
|
constructor(buildingSlug: string, buildingDetails: BuildingWebchatView | null, orgSlug: string, leadSource: string | null | undefined, leadUserId: string, leadSourceMultitouchClient: LeadSourceMultitouchClient | null, leadSourceClient?: LeadSourceClient | null, widgetType?: WidgetType);
|
|
95
|
+
initSession(buildingSlug: string, orgSlug: string): Promise<{
|
|
96
|
+
session_token: string;
|
|
97
|
+
lead_id: string;
|
|
98
|
+
channel: string;
|
|
99
|
+
expires_in_seconds: number;
|
|
100
|
+
} | null>;
|
|
94
101
|
private checkAndHandleDelayStreamingMessages;
|
|
95
102
|
checkAndHandleGTMForLeadEmail: (messageEvent: Pubnub.MessageEvent) => void;
|
|
96
103
|
addChatListener(listener: (response: {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Phone numbers that must never be replaced with DNI numbers.
|
|
3
|
+
*
|
|
4
|
+
* National emergency/crisis hotlines:
|
|
5
|
+
* - https://telehealth.hhs.gov/patients/additional-resources/emergency-numbers
|
|
6
|
+
* - https://nfound.org/resources/
|
|
7
|
+
* - https://connect.usa.gov/four-important-phone-numbers-you-should-save
|
|
8
|
+
*
|
|
9
|
+
* HUD (Housing and Urban Development):
|
|
10
|
+
* - https://www.hud.gov/contactus
|
|
11
|
+
* - https://www.hud.gov/contactus/fairhousing
|
|
12
|
+
* - https://www.hud.gov/contactus/multifamily-housing-complaint
|
|
13
|
+
* - https://www.hudoig.gov/hotline
|
|
14
|
+
*
|
|
15
|
+
* NJ state helplines & hotlines:
|
|
16
|
+
* - https://www.nj.gov/humanservices/dds/home/helplinesindex.html
|
|
17
|
+
*/
|
|
18
|
+
export declare const PROTECTED_NUMBERS: Set<string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meetelise/chat",
|
|
3
|
-
"version": "1.43.
|
|
3
|
+
"version": "1.43.35",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/MeetElise/chat-ui#readme",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"typescript-plugin-css-modules": "^5.0.0",
|
|
87
87
|
"webpack": "^5.65.0",
|
|
88
88
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
89
|
-
"webpack-cli": "^
|
|
89
|
+
"webpack-cli": "^5.1.4",
|
|
90
90
|
"webpack-dev-server": "^5.0.0"
|
|
91
91
|
}
|
|
92
92
|
}
|