@alfadocs/ui-kit 1.74.0 → 1.75.1

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.
Files changed (33) hide show
  1. package/dist/_chunks/booking-D2r19Lia.js +3901 -0
  2. package/dist/_chunks/{calendar-appointment-editor-dialog-CctI6mpd.js → calendar-appointment-editor-dialog-B4My4eiB.js} +2 -2
  3. package/dist/_chunks/{header-settings-DBlTL6Qj.js → header-settings-Coh1r41O.js} +148 -154
  4. package/dist/_chunks/{locale-picker-KT-Vz3bx.js → locale-picker-DzdGDSBI.js} +311 -282
  5. package/dist/_chunks/{marketplace-app-shell-B0ix9yNI.js → marketplace-app-shell-Ck5NVJcO.js} +2 -2
  6. package/dist/_chunks/{patient-details-Dgd_tocD.js → patient-details-B-I9Xkh9.js} +2 -2
  7. package/dist/_chunks/{patient-field-row-BFVlJnS9.js → patient-field-row-Bn0z6lAZ.js} +2 -2
  8. package/dist/_chunks/{patient-summary-card-BTKvFUmh.js → patient-summary-card-bhDo0gVX.js} +2 -2
  9. package/dist/_chunks/{phone-input-EwVuqFik.js → phone-input-C3NrD-nl.js} +78 -73
  10. package/dist/_chunks/{registration-form-B6qqeXP1.js → registration-form-DeK2QiJu.js} +2 -2
  11. package/dist/_chunks/{send-registration-link-form-pO2bGjGa.js → send-registration-link-form-__DWY62q.js} +2 -2
  12. package/dist/_chunks/{use-appointment-details-read-BFslxbRr.js → use-appointment-details-read-lFUL4kkd.js} +2 -2
  13. package/dist/agent-catalog.json +4 -4
  14. package/dist/agent-i18n/en.json +2 -2
  15. package/dist/components/appointment-details-panel/index.js +1 -1
  16. package/dist/components/booking/booking-types.d.ts +9 -1
  17. package/dist/components/booking/details-form.d.ts +2 -0
  18. package/dist/components/booking/index.js +1 -1
  19. package/dist/components/header-settings/header-settings.d.ts +6 -0
  20. package/dist/components/header-settings/index.js +1 -1
  21. package/dist/components/locale-picker/index.js +1 -1
  22. package/dist/components/locale-picker/locale-picker.d.ts +16 -4
  23. package/dist/components/patient-details/index.js +1 -1
  24. package/dist/components/patient-summary-card/index.js +1 -1
  25. package/dist/components/phone-input/index.js +1 -1
  26. package/dist/index.js +9 -9
  27. package/dist/patterns/calendar/index.js +1 -1
  28. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  29. package/dist/patterns/registration-form/index.js +1 -1
  30. package/dist/patterns/send-registration-link-form/index.js +1 -1
  31. package/dist/tokens.css +1 -1
  32. package/package.json +1 -1
  33. package/dist/_chunks/booking-sq9sa29d.js +0 -3889
@@ -6,17 +6,23 @@ export declare const LOCALE_STORAGE_KEY = "alfadocs-ui.locale";
6
6
  * Sentinel value (and Combobox-row key) for "follow the browser /
7
7
  * OS locale". Mirrors the ThemeToggle's `'system'` preference: the
8
8
  * picker doesn't store a concrete locale code; the runtime resolves
9
- * to `navigator.language` on each mount.
9
+ * to `navigator.language` once per app lifecycle, or when selected.
10
10
  */
11
11
  export declare const LOCALE_SYSTEM_DEFAULT: "system";
12
12
  export type LocalePreference = Locale | typeof LOCALE_SYSTEM_DEFAULT;
13
+ /** @internal Simulate a fresh app lifecycle after test components unmount. */
14
+ export declare function __resetLocalePreferenceForTests(): void;
15
+ /** Shared persistence for picker selections and HeaderSettings agent actions. */
16
+ export declare function persistLocalePreference(next: LocalePreference): void;
13
17
  /**
14
- * Applies the stored locale, or else the browser's, once per app lifecycle.
18
+ * Applies storage, optionally HTML lang, then the browser, once per app lifecycle.
15
19
  * Every locale surface calls it on mount (the picker, and HeaderSettings,
16
20
  * whose search list only mounts when its flyout opens), so the page starts
17
21
  * in the right language and direction whichever one the host renders.
22
+ * The first caller whose mount effect runs decides the option for all surfaces.
23
+ * Pass the same option everywhere; later mounts or prop changes do not re-detect.
18
24
  */
19
- export declare function useInitialLocale(): void;
25
+ export declare function useInitialLocale(initialLocaleFromHtmlLang?: boolean): void;
20
26
  declare const wrapperVariants: (props?: ({
21
27
  variant?: "icon" | "compact" | null | undefined;
22
28
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -34,6 +40,12 @@ export interface LocalePickerProps extends Omit<HTMLAttributes<HTMLDivElement>,
34
40
  disabled?: boolean;
35
41
  /** Mark as busy (kept open / focusable but read-only). */
36
42
  loading?: boolean;
43
+ /**
44
+ * With no saved choice, start from the page's HTML lang before falling back
45
+ * to the browser. Defaults to false. The first locale surface's mount effect
46
+ * decides for the app lifecycle; pass the same option to HeaderSettings.
47
+ */
48
+ initialLocaleFromHtmlLang?: boolean;
37
49
  /**
38
50
  * Side the search popover opens onto, relative to the trigger.
39
51
  * Defaults to `bottom` (standard dropdown). Use `end` (inline-end —
@@ -57,7 +69,7 @@ export interface LocalePickerHandle {
57
69
  getLocale: () => string;
58
70
  /**
59
71
  * True when the resolved locale came from `navigator.language` rather
60
- * than an explicit user choice. Read-back for `set_locale`: the
72
+ * than HTML or an explicit user choice. Read-back for `set_locale`: the
61
73
  * resolved tag alone cannot tell "the user chose English" from
62
74
  * "we are following the browser, which happens to be English".
63
75
  */
@@ -1,4 +1,4 @@
1
- import { P as e, p as i } from "../../_chunks/patient-details-Dgd_tocD.js";
1
+ import { P as e, p as i } from "../../_chunks/patient-details-B-I9Xkh9.js";
2
2
  export {
3
3
  e as PatientDetails,
4
4
  i as patientDetailsAgent
@@ -1,4 +1,4 @@
1
- import { P as t, p as m } from "../../_chunks/patient-summary-card-BTKvFUmh.js";
1
+ import { P as t, p as m } from "../../_chunks/patient-summary-card-bhDo0gVX.js";
2
2
  export {
3
3
  t as PatientSummaryCard,
4
4
  m as patientSummaryCardAgent
@@ -1,4 +1,4 @@
1
- import { P as n, c as p, p as t, a as e } from "../../_chunks/phone-input-EwVuqFik.js";
1
+ import { P as n, c as p, p as t, a as e } from "../../_chunks/phone-input-C3NrD-nl.js";
2
2
  export {
3
3
  n as PhoneInput,
4
4
  p as countryTriggerVariants,
package/dist/index.js CHANGED
@@ -57,7 +57,7 @@ import { N as Ns, u as bs } from "./_chunks/number-input-CVwI1ltI.js";
57
57
  import { O as Os } from "./_chunks/otp-input-CGMu30_e.js";
58
58
  import { P as Ls } from "./_chunks/password-input-BokZ_rnT.js";
59
59
  import { u as Ms } from "./_chunks/use-password-requirements-C8DdwPEy.js";
60
- import { P as ks, c as Bs, p as Gs, a as vs } from "./_chunks/phone-input-EwVuqFik.js";
60
+ import { P as ks, c as Bs, p as Gs, a as vs } from "./_chunks/phone-input-C3NrD-nl.js";
61
61
  import { R as Ws, r as ws } from "./_chunks/recaptcha-widget-CsvwlYTE.js";
62
62
  import { R as Vs } from "./_chunks/radio-BZQs6_36.js";
63
63
  import { R as Ys } from "./_chunks/radio-group-ChIKyeSJ.js";
@@ -150,7 +150,7 @@ import { A as Sm } from "./_chunks/appointment-card-5JMWi9_f.js";
150
150
  import { A as Cm, a as xm, b as Tm } from "./_chunks/appointment-tray-Dwc8MSIQ.js";
151
151
  import { A as Pm } from "./_chunks/appointment-peek-39BwVMUf.js";
152
152
  import { a as Im } from "./_chunks/appointment-peek.agent-C539tNFM.js";
153
- import { A as _m, a as Nm, p as bm, u as Dm } from "./_chunks/use-appointment-details-read-BFslxbRr.js";
153
+ import { A as _m, a as Nm, p as bm, u as Dm } from "./_chunks/use-appointment-details-read-lFUL4kkd.js";
154
154
  import { A as Fm, a as Lm } from "./_chunks/appointment-timeline-1-Za2miy.js";
155
155
  import { D as Mm, d as ym } from "./_chunks/dialog-C7RWaH08.js";
156
156
  import { D as Bm, d as Gm } from "./_chunks/dropdown-menu-D1we7oAY.js";
@@ -217,7 +217,7 @@ import { V as rf, v as of } from "./_chunks/voice-control-panel-DQJwe6_Q.js";
217
217
  import { A as nf } from "./_chunks/anamnesis-card-BcadMmEM.js";
218
218
  import { D as mf, F as lf, a as df, M as Af, b as ff, e as cf, f as Sf, g as gf, c as Cf, m as xf, r as Tf, v as uf } from "./_chunks/muscle-scheme-C66WlCxG.js";
219
219
  import { A as Ef, a as If, b as Rf, c as _f, d as Nf, e as bf, C as Df, f as Of, g as Ff, D as Lf, h as hf, E as Mf, L as yf, O as kf, P as Bf, i as Gf, j as vf, k as Hf, l as Wf, R as wf, S as Uf, m as Vf, n as Kf, o as Yf, p as Xf, q as qf, r as zf, s as jf, t as Qf, u as Zf, v as Jf, w as $f, x as ac, y as ec, z as sc, B as rc, F as oc } from "./_chunks/optical-prescription-CMM1Y6Xg.js";
220
- import { B as nc, C as ic, O as pc, b as mc } from "./_chunks/booking-sq9sa29d.js";
220
+ import { B as nc, C as ic, O as pc, b as mc } from "./_chunks/booking-D2r19Lia.js";
221
221
  import { C as dc, c as Ac, r as fc } from "./_chunks/calendar-ClB-jWH1.js";
222
222
  import { C as Sc } from "./_chunks/calendar-event-card-DXAYWH6k.js";
223
223
  import { R as Cc, a as xc } from "./_chunks/resource-chip-DB5jDwUO.js";
@@ -226,9 +226,9 @@ import { C as Ic, c as Rc } from "./_chunks/care-plan-entry-card-4VaY2c96.js";
226
226
  import { C as Nc, c as bc } from "./_chunks/care-plan-header-BzsAg6oY.js";
227
227
  import { O as Oc, o as Fc } from "./_chunks/operator-hero-6aAIQaFZ.js";
228
228
  import { P as hc, p as Mc } from "./_chunks/practice-profile-hero-qfrsFQI_.js";
229
- import { P as kc, p as Bc } from "./_chunks/patient-details-Dgd_tocD.js";
229
+ import { P as kc, p as Bc } from "./_chunks/patient-details-B-I9Xkh9.js";
230
230
  import { P as vc, p as Hc } from "./_chunks/patient-search-DuBdxv1w.js";
231
- import { P as wc, p as Uc } from "./_chunks/patient-summary-card-BTKvFUmh.js";
231
+ import { P as wc, p as Uc } from "./_chunks/patient-summary-card-bhDo0gVX.js";
232
232
  import { A as Kc, a as Yc } from "./_chunks/anamnesis-summary-card-DQ3iE1gD.js";
233
233
  import { B as qc, C as zc, N as jc, P as Qc, a as Zc, T as Jc, b as $c, g as aS, u as eS } from "./_chunks/balance-badge-cell-B49xgL6H.js";
234
234
  import { B as rS, M as oS, P as tS, a as nS, b as iS, c as pS, d as mS, S as lS, e as dS, f as AS, g as fS, h as cS, p as SS, i as gS, j as CS, k as xS, s as TS, t as uS, l as PS } from "./_chunks/periodontal-chart-_y4Ck7_P.js";
@@ -262,16 +262,16 @@ import { C as wx, W as Ux, a as Vx, b as Kx, c as Yx, i as Xx, l as qx, m as zx,
262
262
  import { AliaAsteroidIcon as eT } from "./alia-asteroid-icon/index.js";
263
263
  import { A as rT, a as oT, b as tT, c as nT } from "./_chunks/alia-sidebar-CsTRAxC8.js";
264
264
  import { A as pT, a as mT, L as lT, P as dT, S as AT, T as fT, b as cT, c as ST, d as gT, e as CT, f as xT, g as TT, h as uT, i as PT, j as ET, k as IT, l as RT, m as _T, n as NT, o as bT, p as DT, r as OT, q as FT, s as LT, t as hT, u as MT } from "./_chunks/anamnesis-summary-rows-vNDyE5HW.js";
265
- import { A as kT, C as BT, a as GT, b as vT, c as HT, D as WT, d as wT, S as UT, V as VT, W as KT, e as YT, i as XT, m as qT, r as zT, u as jT, f as QT, g as ZT } from "./_chunks/calendar-appointment-editor-dialog-CctI6mpd.js";
265
+ import { A as kT, C as BT, a as GT, b as vT, c as HT, D as WT, d as wT, S as UT, V as VT, W as KT, e as YT, i as XT, m as qT, r as zT, u as jT, f as QT, g as ZT } from "./_chunks/calendar-appointment-editor-dialog-B4My4eiB.js";
266
266
  import { E as $T, a as au, b as eu, e as su, r as ru } from "./_chunks/error-page-Bhai-spN.js";
267
267
  import { E as tu } from "./_chunks/error-page-illustration-BdJLuMdV.js";
268
268
  import { F as iu, a as pu } from "./_chunks/forgot-password-form-BSOZVrZG.js";
269
269
  import { A as lu, a as du, H as Au, b as fu, u as cu } from "./_chunks/help-me-write-templates-Ds1FY-WY.js";
270
270
  import { L as gu, a as Cu, b as xu } from "./_chunks/login-dev-card-DRxTPkE9.js";
271
- import { C as uu, M as Pu, P as Eu } from "./_chunks/marketplace-app-shell-B0ix9yNI.js";
271
+ import { C as uu, M as Pu, P as Eu } from "./_chunks/marketplace-app-shell-Ck5NVJcO.js";
272
272
  import { P as Ru } from "./_chunks/payment-automation-upsell-AQpHOS1X.js";
273
- import { R as Nu, a as bu } from "./_chunks/registration-form-B6qqeXP1.js";
274
- import { S as Ou, a as Fu } from "./_chunks/send-registration-link-form-pO2bGjGa.js";
273
+ import { R as Nu, a as bu } from "./_chunks/registration-form-DeK2QiJu.js";
274
+ import { S as Ou, a as Fu } from "./_chunks/send-registration-link-form-__DWY62q.js";
275
275
  import { S as hu } from "./_chunks/signature-request-ldmXj2X6.js";
276
276
  import { S as yu, a as ku } from "./_chunks/signed-out-frame-G-3ATOdu.js";
277
277
  import { W as Gu, a as vu } from "./_chunks/workflow-webhook-action-BvVPZVpG.js";
@@ -1,4 +1,4 @@
1
- import { A as s, C as r, a as o, b as t, c as E, D as P, d as S, S as i, V as A, W as C, e as d, i as n, m as D, r as l, u as p, f as W, g as _ } from "../../_chunks/calendar-appointment-editor-dialog-CctI6mpd.js";
1
+ import { A as s, C as r, a as o, b as t, c as E, D as P, d as S, S as i, V as A, W as C, e as d, i as n, m as D, r as l, u as p, f as W, g as _ } from "../../_chunks/calendar-appointment-editor-dialog-B4My4eiB.js";
2
2
  export {
3
3
  s as AppointmentEditorDialog,
4
4
  r as CALENDAR_PREFERENCE_KEYS,
@@ -1,4 +1,4 @@
1
- import { C as l, M as o } from "../../_chunks/marketplace-app-shell-B0ix9yNI.js";
1
+ import { C as l, M as o } from "../../_chunks/marketplace-app-shell-Ck5NVJcO.js";
2
2
  export {
3
3
  l as ConnectWithAlfadocs,
4
4
  o as MarketplaceAppShell
@@ -1,4 +1,4 @@
1
- import { R as o, a as r } from "../../_chunks/registration-form-B6qqeXP1.js";
1
+ import { R as o, a as r } from "../../_chunks/registration-form-DeK2QiJu.js";
2
2
  export {
3
3
  o as REGISTRATION_FORM_FIELDS,
4
4
  r as RegistrationForm
@@ -1,4 +1,4 @@
1
- import { S as o, a as r } from "../../_chunks/send-registration-link-form-pO2bGjGa.js";
1
+ import { S as o, a as r } from "../../_chunks/send-registration-link-form-__DWY62q.js";
2
2
  export {
3
3
  o as SEND_REGISTRATION_LINK_FIELDS,
4
4
  r as SendRegistrationLinkForm