@meetelise/chat 1.51.15 → 1.52.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.
@@ -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,6 +13,7 @@ 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;
@@ -90,6 +91,7 @@ export declare class Launcher extends LitElement {
90
91
  emailUsWindowRef: Ref<EmailUsWindow>;
91
92
  tourSchedulerRef: Ref<TourScheduler>;
92
93
  calculatorWindowRef: Ref<FeeCalculator>;
94
+ willUpdate(changedProperties: PropertyValues<this>): void;
93
95
  updated: () => Promise<void>;
94
96
  attachOnClickToEmailUsWindow: () => void;
95
97
  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;
@@ -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.52.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/MeetElise/chat-ui#readme",