@alfadocs/ui-kit 0.33.8 → 0.33.9
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.
package/dist/agent-catalog.json
CHANGED
|
@@ -135,6 +135,22 @@ export interface BookingProps extends Omit<ComponentPropsWithoutRef<'div'>, 'ari
|
|
|
135
135
|
value: BookingValue;
|
|
136
136
|
onChange: (next: BookingValue) => void;
|
|
137
137
|
onSubmit: (payload: BookingSubmitPayload) => void | Promise<void>;
|
|
138
|
+
/**
|
|
139
|
+
* Calendar/date-strip shimmer — set true while `availableDates` is being
|
|
140
|
+
* fetched. When omitted, the kit falls back to `loadingSlots` for the
|
|
141
|
+
* calendar shimmer (the long-standing behaviour). Split from
|
|
142
|
+
* `loadingSlots` in 0.33.9 so consumers using a two-query pattern
|
|
143
|
+
* ("which days have availability" + per-day slot fetch) can shimmer
|
|
144
|
+
* the calendar independently of the slot list — without this split a
|
|
145
|
+
* per-day slot fetch re-shimmers the whole calendar on every date click.
|
|
146
|
+
*/
|
|
147
|
+
loadingDates?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Slot-list shimmer — set true while `availableSlots[value.date]` is
|
|
150
|
+
* being fetched. Drives the `<GroupedTimeSlots>` and the calendar-
|
|
151
|
+
* variant time-slot list. When `loadingDates` is omitted, this flag
|
|
152
|
+
* also drives the calendar shimmer (backward-compat fallback).
|
|
153
|
+
*/
|
|
138
154
|
loadingSlots?: boolean;
|
|
139
155
|
submitting?: boolean;
|
|
140
156
|
/**
|
|
@@ -153,6 +169,16 @@ export interface BookingProps extends Omit<ComponentPropsWithoutRef<'div'>, 'ari
|
|
|
153
169
|
* don't need to do that themselves.
|
|
154
170
|
*/
|
|
155
171
|
onStepChange?: (step: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8) => void;
|
|
172
|
+
/**
|
|
173
|
+
* Fires when the patient picks a date in the calendar — sugar for
|
|
174
|
+
* consumers using a two-query pattern who need to kick off the
|
|
175
|
+
* per-day slot fetch on date click. Consumers can already detect
|
|
176
|
+
* a date change by diffing `value.date` inside `onChange`; this
|
|
177
|
+
* callback just spares them that diff. Fires AFTER the kit has
|
|
178
|
+
* applied the date change through `onChange` — `value.date` will
|
|
179
|
+
* reflect the new ISO when this fires.
|
|
180
|
+
*/
|
|
181
|
+
onDateSelect?: (iso: string) => void;
|
|
156
182
|
/**
|
|
157
183
|
* Surface a submit-failure message inside the form (Alert variant=destructive
|
|
158
184
|
* above the submit button). The consumer owns the state — set it after an
|
package/dist/index.js
CHANGED
|
@@ -126,7 +126,7 @@ import { S as Tn, a as bn } from "./_chunks/suggestion-chip-C4kxWUIs.js";
|
|
|
126
126
|
import { s as Rn } from "./_chunks/suggestion-chip.agent-6sNWFj7m.js";
|
|
127
127
|
import { T as hn, t as Fn } from "./_chunks/transcript-panel-DyhTpAP7.js";
|
|
128
128
|
import { T as Ln } from "./_chunks/typing-indicator-DHeVN4ob.js";
|
|
129
|
-
import { B as kn, C as On, O as _n, b as yn } from "./_chunks/booking-
|
|
129
|
+
import { B as kn, C as On, O as _n, b as yn } from "./_chunks/booking-CbdbYvWp.js";
|
|
130
130
|
import { C as Mn, c as Dn, r as wn } from "./_chunks/calendar-YHFknAGv.js";
|
|
131
131
|
import { O as vn, o as Hn } from "./_chunks/operator-hero-7LiiP7zi.js";
|
|
132
132
|
import { P as Gn, p as Un } from "./_chunks/patient-search-CBq62kmL.js";
|
package/package.json
CHANGED