@meetelise/chat 1.51.15 → 1.53.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.
@@ -58,6 +58,7 @@ export declare class TourScheduler extends LitElement {
58
58
  leadSources: string[];
59
59
  orgLegalName: string;
60
60
  country: string | null;
61
+ buildingState: string | null;
61
62
  currentLeadSource: string;
62
63
  featureFlagShowDropdown: string;
63
64
  compactDesign: boolean;
@@ -15,6 +15,7 @@ export declare class CallUsWindow extends LitElement {
15
15
  currentLeadSource: string;
16
16
  orgLegalName: string;
17
17
  country: string | null;
18
+ buildingState: string | null;
18
19
  private leadSourceClient;
19
20
  private leadSourceMultitouchClient;
20
21
  phoneNumberInputRef: Ref<HTMLInputElement>;
@@ -14,6 +14,7 @@ export declare class EmailUsWindow extends LitElement {
14
14
  buildingName: string;
15
15
  orgLegalName: string;
16
16
  country: string | null;
17
+ buildingState: string | null;
17
18
  private leadSourceClient;
18
19
  private leadSourceMultitouchClient;
19
20
  featureFlagShowDropdown: string;
@@ -1,4 +1,4 @@
1
- import { LitElement, TemplateResult } from "lit";
1
+ import { LitElement, PropertyValues, TemplateResult } from "lit";
2
2
  import { Ref } from "lit/directives/ref.js";
3
3
  import { EmailUsWindow } from "../actions/email-us-window";
4
4
  import { StyleInfo } from "lit/directives/style-map.js";
@@ -13,12 +13,14 @@ export declare class Launcher extends LitElement {
13
13
  isMinimized: boolean;
14
14
  mobileStyles: StyleInfo;
15
15
  isFirstMount: boolean;
16
+ openSSTWindowOnLoad: boolean;
16
17
  autoOpenChatWidget: boolean;
17
18
  phoneNumber: string;
18
19
  buildingName: string;
19
20
  chatId: string;
20
21
  orgLegalName: string;
21
22
  country: string | null;
23
+ buildingState: string | null;
22
24
  chatCallUsHeader: string;
23
25
  buildingId: number;
24
26
  orgId: number;
@@ -90,6 +92,7 @@ export declare class Launcher extends LitElement {
90
92
  emailUsWindowRef: Ref<EmailUsWindow>;
91
93
  tourSchedulerRef: Ref<TourScheduler>;
92
94
  calculatorWindowRef: Ref<FeeCalculator>;
95
+ willUpdate(changedProperties: PropertyValues<this>): void;
93
96
  updated: () => Promise<void>;
94
97
  attachOnClickToEmailUsWindow: () => void;
95
98
  attachOnClickToSSTWindow: () => void;
@@ -37,6 +37,7 @@ export declare class MEChat extends LitElement {
37
37
  private hideLauncher;
38
38
  private isLoading;
39
39
  private showTourNextToChat;
40
+ private openTourSchedulerOnLoad;
40
41
  private displayPubnubChat;
41
42
  private myPubnub;
42
43
  private LeadSourceClient;
@@ -1,14 +1,18 @@
1
1
  import { TemplateResult } from "lit";
2
2
  export declare const CANADA_PRIVACY_POLICY_URL = "https://eliseai.com/canada-policy";
3
3
  export declare const isCanadianBuilding: (country: string | null | undefined) => boolean;
4
+ export declare const isQuebecBuilding: (state: string | null | undefined) => boolean;
5
+ declare type QuebecConsentForm = "emailUs" | "textUs" | "scheduleTour";
6
+ export declare const quebecConsentDisclaimer: (form: QuebecConsentForm, orgLegalName: string, hasPhoneNumber?: boolean) => TemplateResult;
4
7
  export declare const CURRENT_CONSENT_ID = "currentConsentId";
5
- declare const formDisclaimer: ({ phoneNumberInput, emailInput, orgLegalName, orgSlug, country, clickingButtonText, }: {
8
+ declare const formDisclaimer: ({ phoneNumberInput, emailInput, orgLegalName, orgSlug, country, buildingState, clickingButtonText, }: {
6
9
  buildingName: string;
7
10
  phoneNumberInput?: string | undefined;
8
11
  emailInput?: string | undefined;
9
12
  orgLegalName: string;
10
13
  orgSlug: string;
11
14
  country?: string | null | undefined;
15
+ buildingState?: string | null | undefined;
12
16
  clickingButtonText?: string | undefined;
13
17
  }) => TemplateResult;
14
18
  export declare const getConsentPreChatDisclaimer: (orgSlug: string | null, privacyPolicyUrl: string, consentKey: string, changeConsent: (hasConsent: boolean) => void, country?: string | null) => TemplateResult;
@@ -0,0 +1,17 @@
1
+ declare type GoogleReserveReferral = {
2
+ rwgToken: string;
3
+ buildingId: number;
4
+ expiresAt: number;
5
+ };
6
+ export declare const shouldOpenTourSchedulerFromUrl: () => boolean;
7
+ /**
8
+ * Remembers a click from a building's Google listing, which arrives with an
9
+ * `rwg_token` query param, so a booking within 30 days can be reported back.
10
+ */
11
+ export declare const storeGoogleReserveReferral: (buildingId: number) => void;
12
+ /**
13
+ * The visitor's click from a building's Google listing within the last 30 days,
14
+ * sent with a booking so the backend can report it to Google.
15
+ */
16
+ export declare const readGoogleReserveReferral: () => GoogleReserveReferral | null;
17
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetelise/chat",
3
- "version": "1.51.15",
3
+ "version": "1.53.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/MeetElise/chat-ui#readme",