@alfadocs/ui-kit 1.99.0 → 1.100.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.
- package/dist/_chunks/{patient-search-DJy0IZSx.js → patient-search-CxuqVUTB.js} +513 -500
- package/dist/_chunks/{reserved.agent-CB-92Vi9.js → reserved.agent-BxD0gnbt.js} +129 -129
- package/dist/agent-catalog.json +2 -2
- package/dist/components/booking/booking-types.d.ts +2 -1
- package/dist/components/booking/cascade.d.ts +3 -2
- package/dist/components/booking/details-form.d.ts +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/reserved.d.ts +3 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-search/patient-search.d.ts +7 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/agent-catalog.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"packageVersion": "1.
|
|
3
|
+
"packageVersion": "1.100.0",
|
|
4
4
|
"components": [
|
|
5
5
|
{
|
|
6
6
|
"kind": "component",
|
|
@@ -1512,7 +1512,7 @@
|
|
|
1512
1512
|
"root": {
|
|
1513
1513
|
"attr": "data-component",
|
|
1514
1514
|
"value": "booking",
|
|
1515
|
-
"description": "Marks the Booking root region. The host prop hideEmail (boolean, default false) hides the email field, skips its validation and omits email from submission. The host prop emailOptional (boolean, default false) keeps email visible and optional unless used for confirmation. Email is marked and validated as required when selected in the channel picker or singleConfirmationChannel radio, or when the effective confirmation channel is email. With a hidden picker, the form and success screen use the sole enabled channel, or email when multiple channels are enabled. This includes payment and blocked-payment flows, which omit stored selections from submission. Omitting confirmationChannels
|
|
1515
|
+
"description": "Marks the Booking root region. The host prop hideEmail (boolean, default false) hides the email field, skips its validation and omits email from submission. The host prop emailOptional (boolean, default false) keeps email visible and optional unless used for confirmation. Email is marked and validated as required when selected in the channel picker or singleConfirmationChannel radio, or when the effective confirmation channel is email. With a hidden picker, the form and success screen use the sole enabled channel, or email when multiple channels are enabled. This includes payment and blocked-payment flows, which omit stored selections from submission. Omitting confirmationChannels defaults to SMS, as the platform does. Selecting SMS without email makes the field optional again. The optional/required marker updates visually when the channel changes, with no announcement of that change. Validation updates immediately using the existing email error. With emailOptional, surrounding spaces are trimmed before validation, even when email is required for confirmation. Optional blank values are omitted from submission; filled values are sent trimmed. hideEmail takes precedence over emailOptional. Neither prop changes confirmation channels; pair with confirmationChannels [\"sms\"] for SMS-only confirmation with no channel picker. The optional codeStep prop adds SMS verification after submission and before any payment: the submitted form stays in place but locked (controls disabled, text still readable, not hidden), the code box opens below it, and a Change button, for the patient only (no agent action unlocks it), unlocks the form for a new booking request (the host keeps the earlier request until it expires; the kit cannot cancel it). With payment, a correct code opens the payment stage, and the step remains 7 until payment succeeds; without payment it remains 7 until verification succeeds. It then becomes 8. Patient contact details and verification codes are never exposed through this adapter."
|
|
1516
1516
|
},
|
|
1517
1517
|
"instanceId": {
|
|
1518
1518
|
"attr": "data-component-id",
|
|
@@ -430,7 +430,8 @@ export interface BookingProps extends Omit<ComponentPropsWithoutRef<'div'>, 'ari
|
|
|
430
430
|
/**
|
|
431
431
|
* Channels the practice has enabled. The picker renders one checkbox
|
|
432
432
|
* per channel; when length === 1, the picker is hidden and the single
|
|
433
|
-
* channel is implicit. Defaults to `['
|
|
433
|
+
* channel is implicit. Defaults to `['sms']` when omitted, as the
|
|
434
|
+
* platform confirms a booking request that names no channel by SMS.
|
|
434
435
|
*/
|
|
435
436
|
confirmationChannels?: ConfirmationChannel[];
|
|
436
437
|
/**
|
|
@@ -104,8 +104,9 @@ export declare function applyAutoSelects(value: BookingValue, inputs: CascadePol
|
|
|
104
104
|
/** Resolve the active operator id, treating the `'all'` sentinel as `undefined`. */
|
|
105
105
|
export declare function resolveOperatorId(value: BookingValue): string | undefined;
|
|
106
106
|
/**
|
|
107
|
-
* Resolve the effective list of enabled channels. Falls back to `['
|
|
108
|
-
* when the consumer omits the prop,
|
|
107
|
+
* Resolve the effective list of enabled channels. Falls back to `['sms']`
|
|
108
|
+
* when the consumer omits the prop, as the platform confirms a booking
|
|
109
|
+
* request that names no channel by SMS.
|
|
109
110
|
*/
|
|
110
111
|
export declare function resolveConfirmationChannels(enabled: ConfirmationChannel[] | undefined): ConfirmationChannel[];
|
|
111
112
|
/** Use the selection when present, otherwise the sole enabled channel or email.
|
|
@@ -47,7 +47,7 @@ export interface BookingDetailsFormProps {
|
|
|
47
47
|
defaultPhoneCountry?: string;
|
|
48
48
|
/**
|
|
49
49
|
* Channels the practice has enabled. When omitted, defaults to
|
|
50
|
-
* `['
|
|
50
|
+
* `['sms']` (picker hidden — single implicit channel). When the
|
|
51
51
|
* resolved list has length 1 the picker stays hidden.
|
|
52
52
|
*/
|
|
53
53
|
confirmationChannels?: ConfirmationChannel[];
|
|
@@ -21,7 +21,9 @@ export interface BookingReservedProps {
|
|
|
21
21
|
/**
|
|
22
22
|
* "Time reserved": shown after a correct SMS code or a verified payment when
|
|
23
23
|
* the host gave an address. Opens it after `delayMs`, or at once from the
|
|
24
|
-
* button.
|
|
24
|
+
* button. With reduced motion or the accessible theme it never opens by
|
|
25
|
+
* itself: 3 s is too short to reach "Stay" (WCAG 2.2.1), so only the button
|
|
26
|
+
* opens it.
|
|
25
27
|
*/
|
|
26
28
|
export declare function BookingReserved({ url: rawUrl, delayMs: rawDelayMs, onNavigate, date, time, details, shouldTakeFocus, }: BookingReservedProps): import("react/jsx-runtime").JSX.Element;
|
|
27
29
|
//# sourceMappingURL=reserved.d.ts.map
|
|
@@ -85,6 +85,13 @@ export interface PatientSearchProps extends Omit<ComponentPropsWithoutRef<'div'>
|
|
|
85
85
|
defaultRadiusKm?: number;
|
|
86
86
|
/** Reverse-geocode lat/lng → human label. Optional. */
|
|
87
87
|
reverseGeocode?: (lat: number, lng: number) => Promise<string>;
|
|
88
|
+
/**
|
|
89
|
+
* A short line under the WHERE input that says what the geolocate
|
|
90
|
+
* button does with the position, for example with a link to the privacy
|
|
91
|
+
* notice. Shown only when `reverseGeocode` is wired, so only next to the
|
|
92
|
+
* button. Optional.
|
|
93
|
+
*/
|
|
94
|
+
geoHint?: React.ReactNode;
|
|
88
95
|
discoveryCards?: DiscoveryCard[];
|
|
89
96
|
/**
|
|
90
97
|
* Heading level (`h2`, `h3` or `h4`) of the discovery section title.
|
package/dist/index.js
CHANGED
|
@@ -217,7 +217,7 @@ import { V as nf, v as pf } from "./_chunks/voice-control-panel-BGJjUwnY.js";
|
|
|
217
217
|
import { A as lf } from "./_chunks/anamnesis-card-BzuluoD1.js";
|
|
218
218
|
import { D as Af, F as ff, a as cf, M as Sf, b as gf, e as Cf, f as Tf, g as xf, c as uf, m as Pf, r as Ef, v as If } from "./_chunks/muscle-scheme-CznhrQlo.js";
|
|
219
219
|
import { A as _f, a as bf, b as Nf, c as Df, d as Of, e as Ff, C as Lf, f as hf, g as Mf, D as yf, h as kf, E as Bf, L as vf, O as Gf, P as Hf, i as Wf, j as wf, k as Uf, l as Vf, R as Kf, S as Yf, m as Xf, n as qf, o as zf, p as jf, q as Qf, r as Zf, s as Jf, t as $f, u as ac, v as ec, w as sc, x as rc, y as oc, z as tc, B as nc, F as ic } from "./_chunks/optical-prescription-BGVeDVSP.js";
|
|
220
|
-
import { B as mc, a as lc, C as dc, O as Ac, b as fc, c as cc } from "./_chunks/reserved.agent-
|
|
220
|
+
import { B as mc, a as lc, C as dc, O as Ac, b as fc, c as cc } from "./_chunks/reserved.agent-BxD0gnbt.js";
|
|
221
221
|
import { C as gc, c as Cc, r as Tc } from "./_chunks/calendar-DVe5eArk.js";
|
|
222
222
|
import { C as uc } from "./_chunks/calendar-event-card-DXAYWH6k.js";
|
|
223
223
|
import { R as Ec, a as Ic } from "./_chunks/resource-chip-DB5jDwUO.js";
|
|
@@ -227,7 +227,7 @@ import { C as Lc, c as hc } from "./_chunks/care-plan-header-BBh0X7EO.js";
|
|
|
227
227
|
import { O as yc, o as kc } from "./_chunks/operator-hero-BcuPTzS_.js";
|
|
228
228
|
import { P as vc, p as Gc } from "./_chunks/practice-profile-hero-B8vykoci.js";
|
|
229
229
|
import { P as Wc, p as wc } from "./_chunks/patient-details-DoIOWP6j.js";
|
|
230
|
-
import { P as Vc, p as Kc } from "./_chunks/patient-search-
|
|
230
|
+
import { P as Vc, p as Kc } from "./_chunks/patient-search-CxuqVUTB.js";
|
|
231
231
|
import { P as Xc, p as qc } from "./_chunks/patient-summary-card-CL04aq8h.js";
|
|
232
232
|
import { A as jc, a as Qc } from "./_chunks/anamnesis-summary-card-DdTRdNrQ.js";
|
|
233
233
|
import { B as Jc, C as $c, N as aS, P as eS, a as sS, T as rS, b as oS, g as tS, u as nS } from "./_chunks/balance-badge-cell-C-Rz616n.js";
|
package/package.json
CHANGED