@meetelise/chat 1.72.0 → 1.74.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;
@@ -62,6 +63,10 @@ export declare class TourScheduler extends LitElement {
62
63
  private shouldAllowScheduleLoading;
63
64
  private promptForReschedule;
64
65
  private canceledReschedule;
66
+ /** The existing tour's community, from the "already has a tour" 409. */
67
+ private existingTourBuildingName?;
68
+ /** The existing tour's readable time, in its own UTC offset, from the same 409. */
69
+ private existingTourStartTime?;
65
70
  isBrokerReferral: boolean;
66
71
  brokerFirstName: string;
67
72
  brokerLastName: string;
@@ -86,11 +91,15 @@ export declare class TourScheduler extends LitElement {
86
91
  emailInput: HTMLInputElement;
87
92
  selectedLeadSource: MESelect;
88
93
  selectedLayoutEl?: MESelect;
94
+ selectedFloorplanEl?: MESelect;
89
95
  selectedUnitEl?: MESelect;
90
96
  firstNameInputValue: string;
91
97
  lastNameInputValue: string;
92
98
  leadSourceInputValue: string;
93
99
  selectedLayoutValue: string;
100
+ /** Filled when the building is on the WEBCHAT_FLOORPLAN_PREFERENCE switch; the floor plan dropdown then replaces the bedroom one. */
101
+ floorplanOptions: FloorplanOption[];
102
+ selectedFloorplanName: string;
94
103
  selectedUnitValue: string;
95
104
  private units;
96
105
  private allowOccupiedUnitTours;
@@ -169,8 +178,12 @@ export declare class TourScheduler extends LitElement {
169
178
  * picked before the broker switch was turned on isn't sent.
170
179
  */
171
180
  showLeadSourceSelect(): boolean;
181
+ /** Sets the canonical layout ("studio", "1br", ...) picked from the bedroom or floor plan dropdown. */
182
+ private selectLayout;
172
183
  userInfoAndLayoutMenu(): TemplateResult;
173
184
  confirmationMessage(): TemplateResult;
185
+ /** Names the existing tour's community and time when the 409 sent both. */
186
+ rescheduleExplanation(): TemplateResult;
174
187
  /** The broker isn't the one touring: the client gets the confirmation email. */
175
188
  private referralConfirmation;
176
189
  loadingIcon(size?: number): TemplateResult;
@@ -45,6 +45,12 @@ export declare class CommunityPicker extends LitElement {
45
45
  private filterLabel;
46
46
  /** Each filter's controls, in the panel its chip opens. */
47
47
  private renderFilterPanel;
48
+ /**
49
+ * A move-in date or budget, once set, closes its panel and so removes the
50
+ * input that had focus. Focus goes back to the chip, as on Escape, rather
51
+ * than out of the dialog, unless the prospect already moved it elsewhere.
52
+ */
53
+ private closeCommittedFilter;
48
54
  private renderFilters;
49
55
  private renderCard;
50
56
  private renderList;
@@ -9,8 +9,8 @@ export interface ContactValues {
9
9
  phone: string;
10
10
  phoneE164: string | null;
11
11
  phoneCountry: string | null;
12
- /** The building's layout option value picked, or null. */
13
- layout: number | null;
12
+ /** The building's layout option values picked, in the options' order. */
13
+ layouts: number[];
14
14
  moveIn: string;
15
15
  notes: string;
16
16
  /** Picked in "How did you hear about us?", when that is shown. */
@@ -19,7 +19,7 @@ export interface ContactValues {
19
19
  export declare const EMPTY_CONTACT: ContactValues;
20
20
  /**
21
21
  * Today's scheduler's rules: a first or last name, a valid email and phone,
22
- * and a bedroom preference only where the building requires one.
22
+ * and at least one bedroom preference only where the building requires one.
23
23
  */
24
24
  export declare const contactIsValid: (values: ContactValues, bedroomsRequired: boolean) => boolean;
25
25
  /**
@@ -39,6 +39,11 @@ export declare class ContactForm extends LitElement {
39
39
  private phoneHasBlurred;
40
40
  private setValues;
41
41
  private inputClasses;
42
+ /**
43
+ * The bedroom preferences as the filters' chips: each tap picks or clears
44
+ * one, as the Bedrooms filter does.
45
+ */
46
+ private renderLayouts;
42
47
  render(): TemplateResult;
43
48
  static styles: import("lit").CSSResult[];
44
49
  }
@@ -2,7 +2,9 @@ import { LitElement, TemplateResult } from "lit";
2
2
  /**
3
3
  * A trigger and the small panel it opens, for the v2 scheduler's secondary
4
4
  * choices. The panel floats under the trigger with `me-select`'s list surface
5
- * and closes, as that list does, on a click outside it, or on Escape. With
5
+ * and closes, as that list does, on a click outside it, or on Escape, and
6
+ * when focus moves out of it, so a later Escape closes the scheduler only
7
+ * once no panel is open. With
6
8
  * `inline` (phones) it opens in place instead, after its siblings in the
7
9
  * parent's flex row, as the filter row always did there.
8
10
  *
@@ -18,6 +20,12 @@ export declare class SchedulerPopover extends LitElement {
18
20
  private requestClose;
19
21
  /** As `me-select`: a click anywhere outside, trigger included, closes it. */
20
22
  private onDocumentClick;
23
+ /**
24
+ * Tabbing on to another control. Not when focus goes nowhere (a click on
25
+ * the panel's own text), nor inline, where closing would move what is
26
+ * being tapped.
27
+ */
28
+ private onFocusout;
21
29
  private onKeydown;
22
30
  render(): TemplateResult;
23
31
  static styles: import("lit").CSSResult;
@@ -176,11 +176,8 @@ export declare class TourSchedulerV2 extends LitElement {
176
176
  * building's layouts.
177
177
  */
178
178
  private get bedroomOptions();
179
- /**
180
- * The form's bedroom preference, from the shared bedrooms: the one offered
181
- * option they name, or none when they name no offered option or several.
182
- */
183
- private get preferredLayout();
179
+ /** The form's bedroom preferences: every offered option the shared bedrooms name. */
180
+ private get preferredLayouts();
184
181
  /** The form's values, with bedrooms and move-in from the shared preferences. */
185
182
  private get formValues();
186
183
  private onContactChange;
@@ -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.74.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/MeetElise/chat-ui#readme",