@alfadocs/ui-kit 0.33.7 → 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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "0.33.7",
3
+ "packageVersion": "0.33.9",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -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
@@ -1,4 +1,4 @@
1
- import { B as A, C as R, O as a, b as s } from "../../_chunks/booking-h_kBZM6M.js";
1
+ import { B as A, C as R, O as a, b as s } from "../../_chunks/booking-CbdbYvWp.js";
2
2
  export {
3
3
  A as Booking,
4
4
  R as CONFIRMATION_CHANNEL_ORDER,
@@ -1,4 +1,4 @@
1
- import { P as t, p as a } from "../../_chunks/practice-results-DYxwvaX8.js";
1
+ import { P as t, p as a } from "../../_chunks/practice-results-BFM_lyUs.js";
2
2
  export {
3
3
  t as PracticeResults,
4
4
  a as practiceResultsAgent
package/dist/index.js CHANGED
@@ -126,12 +126,12 @@ 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-h_kBZM6M.js";
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";
133
133
  import { C as Yn, a as jn, b as zn, c as qn } from "./_chunks/contact-profile-card-BA6fgS45.js";
134
- import { P as Jn, p as Xn } from "./_chunks/practice-results-DYxwvaX8.js";
134
+ import { P as Jn, p as Xn } from "./_chunks/practice-results-BFM_lyUs.js";
135
135
  import { P as $n, f as ap, p as ep, a as rp, s as op, b as tp, c as sp } from "./_chunks/payment-form-D5rgnZu7.js";
136
136
  import { P as np, p as pp } from "./_chunks/pdf-viewer-DvtEHcEP.js";
137
137
  import { R as lp, r as fp } from "./_chunks/reviews-panel-Dow8Dzoa.js";