@meetelise/chat 1.74.0 → 1.75.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.
@@ -8,6 +8,7 @@ export interface ConfirmedStop {
8
8
  /** The server's prospect-facing reason, for a failed stop. */
9
9
  error: string | null;
10
10
  distanceFromPrevMi: number | null;
11
+ travelMinutesFromPrev: number | null;
11
12
  }
12
13
  /**
13
14
  * The Central Agent design's "Your Tour Is Booked" header, then an itinerary's
@@ -22,6 +23,7 @@ export declare class BookingConfirmation extends LitElement {
22
23
  private heading;
23
24
  /** Where, how and when, as one line: the stops list shows each stop's own time. */
24
25
  private summary;
26
+ private renderLeg;
25
27
  private renderStops;
26
28
  render(): TemplateResult;
27
29
  static styles: import("lit").CSSResult[];
@@ -60,7 +60,10 @@ export declare class ItineraryEditor extends LitElement {
60
60
  private endDrag;
61
61
  private renderCommunity;
62
62
  private renderTourTypes;
63
+ /** Today's date picker over `dates`, reporting a picked day other than `date`. */
63
64
  private renderDatePicker;
65
+ /** One stop's own day: moving it there makes it a separate tour. */
66
+ private renderStopDatePicker;
64
67
  private renderTimePicker;
65
68
  private renderLinkPrompt;
66
69
  private renderSingleDateAndTime;
@@ -10,6 +10,8 @@ export interface ItineraryChoice {
10
10
  firstStart: string | null;
11
11
  /** ISO starts picked for later new stops, by building id. */
12
12
  laterStarts: Record<number, string>;
13
+ /** "YYYY-MM-DD" days new stops moved to on their own, away from `date`, by building id. */
14
+ stopDates: Record<number, string>;
13
15
  /** Booked events this itinerary extends, in order; the last one is fixed first. */
14
16
  existingEventIds: number[];
15
17
  }
@@ -65,6 +65,8 @@ export declare class TourSchedulerV2 extends LitElement {
65
65
  private date;
66
66
  private firstStart;
67
67
  private laterStarts;
68
+ /** Stops the prospect moved to their own day, away from `date`. */
69
+ private stopDates;
68
70
  private plan;
69
71
  private planLoading;
70
72
  private planError;
@@ -130,6 +132,8 @@ export declare class TourSchedulerV2 extends LitElement {
130
132
  private get activeLinkType();
131
133
  private onTourType;
132
134
  private onDate;
135
+ private stopDatesWithout;
136
+ private onStopDate;
133
137
  private onStopTime;
134
138
  private onReorder;
135
139
  private onRemove;
@@ -85,6 +85,8 @@ export interface PlanRequest {
85
85
  start_time: string | null;
86
86
  /** Times picked for later stops, by building id; empty when none are picked. */
87
87
  stop_starts: Record<string, string>;
88
+ /** A stop's own day when it isn't `date`, by building id; empty when none is moved. */
89
+ stop_dates: Record<string, string>;
88
90
  fixed_first: {
89
91
  calendar_event_id: number;
90
92
  } | null;
@@ -95,7 +97,17 @@ export interface PlanStop {
95
97
  end: string;
96
98
  timezone: string;
97
99
  distance_from_prev_mi: number | null;
100
+ /**
101
+ * Whole minutes to drive here from the stop before, already left free in the
102
+ * times. Missing from a server that predates the field.
103
+ */
104
+ travel_minutes_from_prev?: number | null;
98
105
  alternatives: string[];
106
+ /**
107
+ * The days this stop could move to on its own, within the next 30. Empty once
108
+ * a stop is booked, and missing from a server that predates the field.
109
+ */
110
+ dates?: string[];
99
111
  fixed: boolean;
100
112
  }
101
113
  export interface PlanResponse {
@@ -18,6 +18,8 @@ export declare const formatShortDate: (date: string) => string;
18
18
  export declare const formatMonthDay: (date: string) => string;
19
19
  /** "2026-10-15" -> "Thu, Oct 15, 2026" */
20
20
  export declare const formatLongDate: (date: string) => string;
21
+ /** "1.8 mi · 12 min drive" between two stops, or "" when neither is known. */
22
+ export declare const formatLeg: (distanceMi: number | null, travelMinutes: number | null | undefined) => string;
21
23
  /** A Date as the "YYYY-MM-DD" the API uses. */
22
24
  export declare const toIsoDate: (date: Date) => string;
23
25
  /** The Central Agent design's names for each tour type, with today's icons. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetelise/chat",
3
- "version": "1.74.0",
3
+ "version": "1.75.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/MeetElise/chat-ui#readme",