@meetelise/chat 1.72.0 → 1.73.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.
@@ -9,6 +9,7 @@ import { TourAvailabilityResponse, TourAvailabilityResponseRankOrderedSupportedT
9
9
  import { MESelect } from "../me-select";
10
10
  import { LabeledOption } from "../../fetchBuildingInfo";
11
11
  import { LayoutOption } from "../../fetchBuildingWebchatView";
12
+ import { FloorplanOption } from "../../fetchFloorplanOptions";
12
13
  import type { BrokerReferral } from "../brokerReferral";
13
14
  export declare class TourScheduler extends LitElement {
14
15
  connectedCallback(): void;
@@ -86,11 +87,15 @@ export declare class TourScheduler extends LitElement {
86
87
  emailInput: HTMLInputElement;
87
88
  selectedLeadSource: MESelect;
88
89
  selectedLayoutEl?: MESelect;
90
+ selectedFloorplanEl?: MESelect;
89
91
  selectedUnitEl?: MESelect;
90
92
  firstNameInputValue: string;
91
93
  lastNameInputValue: string;
92
94
  leadSourceInputValue: string;
93
95
  selectedLayoutValue: string;
96
+ /** Filled when the building is on the WEBCHAT_FLOORPLAN_PREFERENCE switch; the floor plan dropdown then replaces the bedroom one. */
97
+ floorplanOptions: FloorplanOption[];
98
+ selectedFloorplanName: string;
94
99
  selectedUnitValue: string;
95
100
  private units;
96
101
  private allowOccupiedUnitTours;
@@ -169,6 +174,8 @@ export declare class TourScheduler extends LitElement {
169
174
  * picked before the broker switch was turned on isn't sent.
170
175
  */
171
176
  showLeadSourceSelect(): boolean;
177
+ /** Sets the canonical layout ("studio", "1br", ...) picked from the bedroom or floor plan dropdown. */
178
+ private selectLayout;
172
179
  userInfoAndLayoutMenu(): TemplateResult;
173
180
  confirmationMessage(): TemplateResult;
174
181
  /** The broker isn't the one touring: the client gets the confirmation email. */
@@ -0,0 +1,10 @@
1
+ export declare type FloorplanOption = {
2
+ name: string;
3
+ bedrooms: number | null;
4
+ };
5
+ /**
6
+ * The building's unit-editor floor plans that have an active unit. Empty when the building is off the
7
+ * WEBCHAT_FLOORPLAN_PREFERENCE switch, or when they can't be read.
8
+ */
9
+ declare const fetchFloorplanOptions: (buildingSlug: string) => Promise<FloorplanOption[]>;
10
+ export default fetchFloorplanOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetelise/chat",
3
- "version": "1.72.0",
3
+ "version": "1.73.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/MeetElise/chat-ui#readme",