@meetelise/chat 1.49.0 → 1.50.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/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # MeetElise Webchat
2
2
 
3
+
3
4
  ### Installation
4
5
 
5
6
  To install MeetElise webchat on your site, add the following code:
@@ -50,6 +50,7 @@ export declare class TourScheduler extends LitElement {
50
50
  private canceledReschedule;
51
51
  leadSources: string[];
52
52
  orgLegalName: string;
53
+ country: string | null;
53
54
  currentLeadSource: string;
54
55
  featureFlagShowDropdown: string;
55
56
  compactDesign: boolean;
@@ -14,6 +14,7 @@ export declare class CallUsWindow extends LitElement {
14
14
  hasTextUsEnabled: string;
15
15
  currentLeadSource: string;
16
16
  orgLegalName: string;
17
+ country: string | null;
17
18
  private leadSourceClient;
18
19
  private leadSourceMultitouchClient;
19
20
  phoneNumberInputRef: Ref<HTMLInputElement>;
@@ -12,6 +12,7 @@ export declare class EmailUsWindow extends LitElement {
12
12
  orgSlug: string;
13
13
  buildingName: string;
14
14
  orgLegalName: string;
15
+ country: string | null;
15
16
  private leadSourceClient;
16
17
  private leadSourceMultitouchClient;
17
18
  featureFlagShowDropdown: string;
@@ -18,6 +18,7 @@ export declare class Launcher extends LitElement {
18
18
  buildingName: string;
19
19
  chatId: string;
20
20
  orgLegalName: string;
21
+ country: string | null;
21
22
  chatCallUsHeader: string;
22
23
  buildingId: number;
23
24
  orgId: number;
@@ -13,6 +13,7 @@ export declare class MEChat extends LitElement {
13
13
  static styles: import("lit").CSSResult;
14
14
  private buildingSlug;
15
15
  private orgSlug;
16
+ private centralConvo;
16
17
  launcherStyles: StyleInfo;
17
18
  mobileStyles: StyleInfo;
18
19
  isMinimized: boolean;
@@ -1,17 +1,21 @@
1
1
  import { TemplateResult } from "lit";
2
+ export declare const CANADA_PRIVACY_POLICY_URL = "https://eliseai.com/canada-policy";
3
+ export declare const isCanadianBuilding: (country: string | null | undefined) => boolean;
2
4
  export declare const CURRENT_CONSENT_ID = "currentConsentId";
3
- declare const formDisclaimer: ({ phoneNumberInput, emailInput, orgLegalName, orgSlug, clickingButtonText, }: {
5
+ declare const formDisclaimer: ({ phoneNumberInput, emailInput, orgLegalName, orgSlug, country, clickingButtonText, }: {
4
6
  buildingName: string;
5
7
  phoneNumberInput?: string | undefined;
6
8
  emailInput?: string | undefined;
7
9
  orgLegalName: string;
8
10
  orgSlug: string;
11
+ country?: string | null | undefined;
9
12
  clickingButtonText?: string | undefined;
10
13
  }) => TemplateResult;
11
14
  export declare const getConsentPreChatDisclaimer: (orgSlug: string | null, privacyPolicyUrl: string, consentKey: string, changeConsent: (hasConsent: boolean) => void) => TemplateResult;
12
- export declare const inChatThreadDisclaimer: ({ orgSlug, buildingState, type, customAdditionalDisclaimer, }: {
15
+ export declare const inChatThreadDisclaimer: ({ orgSlug, buildingState, buildingCountry, type, customAdditionalDisclaimer, }: {
13
16
  orgSlug: string;
14
17
  buildingState: string | null;
18
+ buildingCountry?: string | null | undefined;
15
19
  type: "healthcare" | "utilities" | "leasing";
16
20
  customAdditionalDisclaimer?: string | null | undefined;
17
21
  }) => TemplateResult;
@@ -118,6 +118,7 @@ export interface BuildingWebchatView {
118
118
  featureFlagWebchatReplaceAnyScheduleTourCtaWebsite: boolean;
119
119
  customAdditionalDisclaimer: string | null;
120
120
  isAip: boolean;
121
+ country: string | null;
121
122
  }
122
123
  /**
123
124
  * Load the publicly-available info for a building.
@@ -127,4 +128,13 @@ export interface BuildingWebchatView {
127
128
  * @returns The building's ID, name, theme, and agent.
128
129
  */
129
130
  export default function fetchBuildingWebchatView(orgSlug: string, buildingSlug: string): Promise<BuildingWebchatView>;
131
+ /**
132
+ * Load the org-anchored webchat config for centralized webchat, where the widget
133
+ * is scoped to the organization rather than a single building. The building/group
134
+ * slug on the page is used only for navigation-event tracking, not for config.
135
+ *
136
+ * @param orgSlug - The org slug, e.g. "big-prop-co"
137
+ * @returns The org-level webchat config, in the same shape as a building's.
138
+ */
139
+ export declare function fetchOrgCentralWebchatView(orgSlug: string): Promise<BuildingWebchatView>;
130
140
  export {};
@@ -94,6 +94,7 @@ export default class MEChat {
94
94
  export interface Options {
95
95
  building?: string;
96
96
  organization?: string;
97
+ centralConvo?: boolean;
97
98
  studio?: StudioWebchatOptions;
98
99
  avatarSrc?: string;
99
100
  mini?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetelise/chat",
3
- "version": "1.49.0",
3
+ "version": "1.50.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/MeetElise/chat-ui#readme",