@meetelise/chat 1.57.0 → 1.58.1
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/me-chat.d.ts +11 -0
- package/dist/src/main/MEChat.d.ts +12 -1
- package/package.json +1 -1
- package/public/dist/index.js +40 -45
- package/src/WebComponent/leasing-chat-styles.ts +1 -2
- package/src/WebComponent/me-chat.ts +25 -4
- package/src/WebComponent/pubnub-chat.ts +14 -16
- package/src/assistantName.test.ts +152 -0
- package/src/main/MEChat.ts +75 -1
- package/src/orgLevelNavigation.test.ts +114 -1
|
@@ -20,6 +20,11 @@ export declare class MEChat extends LitElement {
|
|
|
20
20
|
* org-anchored; its id is sent with visitor messages as `declaredBuildingId`.
|
|
21
21
|
*/
|
|
22
22
|
private declaredBuildingSlug;
|
|
23
|
+
/**
|
|
24
|
+
* Org-level webchat on a host that knows the page's building by id (Elise
|
|
25
|
+
* Studio), set with `setDeclaredBuildingId`. Undefined until the host sets it.
|
|
26
|
+
*/
|
|
27
|
+
private hostDeclaredBuildingId;
|
|
23
28
|
/**
|
|
24
29
|
* Org-level webchat (`centralConvo` started without a building). Stays true
|
|
25
30
|
* after the widget adopts the org's triage general building from
|
|
@@ -93,6 +98,12 @@ export declare class MEChat extends LitElement {
|
|
|
93
98
|
* its building's number (the org's triage line).
|
|
94
99
|
*/
|
|
95
100
|
private withOrgLevelContactOptions;
|
|
101
|
+
/**
|
|
102
|
+
* Org-level webchat: the page's building, sent with later visitor messages as
|
|
103
|
+
* `declaredBuildingId`. For hosts that move between pages without restarting
|
|
104
|
+
* the widget; it doesn't change config or the conversation.
|
|
105
|
+
*/
|
|
106
|
+
setDeclaredBuildingId(id: number | null): void;
|
|
96
107
|
/** The numeric id of the snippet's building in org-level webchat, if it names one. */
|
|
97
108
|
private fetchDeclaredBuildingId;
|
|
98
109
|
private shouldAutoOpenChat;
|
|
@@ -27,7 +27,7 @@ export interface HealthcareOptions extends PositioningOptions {
|
|
|
27
27
|
id: string;
|
|
28
28
|
}
|
|
29
29
|
export declare type StudioWebchatMode = "host_managed_context";
|
|
30
|
-
export declare type StudioWebchatSessionScopeType = "building" | "building_group" | "site";
|
|
30
|
+
export declare type StudioWebchatSessionScopeType = "building" | "building_group" | "site" | "org";
|
|
31
31
|
export interface StudioWebchatSessionScope {
|
|
32
32
|
type: StudioWebchatSessionScopeType;
|
|
33
33
|
key: string;
|
|
@@ -45,6 +45,11 @@ export interface StudioWebchatContext {
|
|
|
45
45
|
building?: string | null;
|
|
46
46
|
buildingGroupId?: string | number | null;
|
|
47
47
|
sessionScope?: StudioWebchatSessionScope;
|
|
48
|
+
/**
|
|
49
|
+
* Org scope only: the page's building, sent with visitor messages as
|
|
50
|
+
* `declaredBuildingId`. Null on pages with no single building.
|
|
51
|
+
*/
|
|
52
|
+
declaredBuildingId?: number | null;
|
|
48
53
|
path?: string;
|
|
49
54
|
pageId?: string;
|
|
50
55
|
}
|
|
@@ -86,6 +91,12 @@ export default class MEChat {
|
|
|
86
91
|
static removeWidget(): Promise<void>;
|
|
87
92
|
static handleStudioContext(opts: Options): void;
|
|
88
93
|
static updateStudioContext(context: StudioWebchatContext): void;
|
|
94
|
+
/**
|
|
95
|
+
* Org-level webchat on a Studio site: one org-anchored widget for the whole
|
|
96
|
+
* site, started as the org-level pixel starts it. Route changes only move the
|
|
97
|
+
* page's declared building, so the conversation carries across pages.
|
|
98
|
+
*/
|
|
99
|
+
static updateStudioOrgContext(context: StudioWebchatContext, opts: Options, updateToken: number): void;
|
|
89
100
|
static clearStudioContext(_context?: StudioWebchatClearContext): void;
|
|
90
101
|
static handleBuildingslug(meChat: MEChatLitElement, orgSlug?: string, buildingSlug?: string, originalOpts?: Options): Promise<void>;
|
|
91
102
|
static handleSingleFamilyUrl(): Promise<void>;
|