@alfadocs/ui-kit 1.49.0 → 1.49.2
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/{booking-BF9pVa2n.js → booking-Cdzd8kyY.js} +1515 -1400
- package/dist/_chunks/{calendar-workspace-C_eXL1by.js → calendar-workspace-iwyXajja.js} +1982 -1977
- package/dist/agent-catalog.json +1 -1
- package/dist/components/booking/booking-types.d.ts +36 -0
- package/dist/components/booking/booking.d.ts +1 -1
- package/dist/components/booking/details-form.d.ts +8 -2
- package/dist/components/booking/index.d.ts +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/linkify.d.ts +11 -0
- package/dist/index.js +2 -2
- package/dist/patterns/calendar/index.js +1 -1
- package/package.json +1 -1
package/dist/agent-catalog.json
CHANGED
|
@@ -85,6 +85,30 @@ export interface BookingService {
|
|
|
85
85
|
*/
|
|
86
86
|
criticalInformationToAccept?: string;
|
|
87
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* The practice's own privacy notice or terms checkbox, shown on the
|
|
90
|
+
* details step after the AlfaDocs privacy and terms boxes. Mirrors the
|
|
91
|
+
* practice API's `practiceConsent: { label, url, required }` (HTP-6560),
|
|
92
|
+
* which is `null` when the practice has not set one.
|
|
93
|
+
*/
|
|
94
|
+
export interface BookingPracticeConsent {
|
|
95
|
+
/**
|
|
96
|
+
* Practice-authored checkbox text. Rendered as plain text, never as
|
|
97
|
+
* HTML. A blank label shows nothing, as if `practiceConsent` were unset.
|
|
98
|
+
*/
|
|
99
|
+
label: string;
|
|
100
|
+
/**
|
|
101
|
+
* The practice's notice or terms page. When it is an `http(s)` URL the
|
|
102
|
+
* label links to it in a new tab; any other value leaves the label as
|
|
103
|
+
* plain text.
|
|
104
|
+
*/
|
|
105
|
+
url?: string | null;
|
|
106
|
+
/**
|
|
107
|
+
* `true`: the box carries the required asterisk and submit stays
|
|
108
|
+
* disabled until it is ticked. `false`: the box is optional.
|
|
109
|
+
*/
|
|
110
|
+
required: boolean;
|
|
111
|
+
}
|
|
88
112
|
export interface BookingOperator {
|
|
89
113
|
id: string;
|
|
90
114
|
name: string;
|
|
@@ -116,6 +140,12 @@ export interface BookingDetails {
|
|
|
116
140
|
* only when the service carries that text; omitted otherwise.
|
|
117
141
|
*/
|
|
118
142
|
criticalInformationAccepted?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
* The patient's answer to the practice's own checkbox (`practiceConsent`
|
|
145
|
+
* on `BookingProps`). Present in the submit payload, `true` or `false`,
|
|
146
|
+
* whenever that checkbox is shown; omitted when the practice has none.
|
|
147
|
+
*/
|
|
148
|
+
practiceConsentAccepted?: boolean;
|
|
119
149
|
/** Included only when the patient accepts this service's payment quote. */
|
|
120
150
|
paymentAccepted?: boolean;
|
|
121
151
|
codiceFiscale?: string;
|
|
@@ -228,6 +258,12 @@ export interface BookingProps extends Omit<ComponentPropsWithoutRef<'div'>, 'ari
|
|
|
228
258
|
showReturningPatientFlag?: boolean;
|
|
229
259
|
privacyPolicyUrl?: string;
|
|
230
260
|
termsUrl?: string;
|
|
261
|
+
/**
|
|
262
|
+
* The practice's own privacy notice or terms checkbox, after the AlfaDocs
|
|
263
|
+
* ones. Omit it, or pass `null` as the practice API does, to show nothing.
|
|
264
|
+
* The answer arrives as `details.practiceConsentAccepted`.
|
|
265
|
+
*/
|
|
266
|
+
practiceConsent?: BookingPracticeConsent | null;
|
|
231
267
|
paymentTermsUrl?: string;
|
|
232
268
|
/** Publish paid only after the server verifies payment AND saves the appointment. */
|
|
233
269
|
paymentState?: BookingPaymentState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BookingProps } from './booking-types';
|
|
2
|
-
export type { BookingPaymentSession, BookingPaymentState, BookingPaymentRenderContext, BookingSubmitResult, BookingServicePayment, BookingResolvedPayment, BookingDetails, BookingHandle, BookingOperator, BookingProps, BookingService, BookingSlot, BookingSpecialty, BookingSubmitPayload, BookingValidationResult, BookingValidator, BookingValue, BookingVariant, ConfirmationChannel, InsuranceType, } from './booking-types';
|
|
2
|
+
export type { BookingPaymentSession, BookingPaymentState, BookingPaymentRenderContext, BookingSubmitResult, BookingServicePayment, BookingResolvedPayment, BookingDetails, BookingHandle, BookingOperator, BookingPracticeConsent, BookingProps, BookingService, BookingSlot, BookingSpecialty, BookingSubmitPayload, BookingValidationResult, BookingValidator, BookingValue, BookingVariant, ConfirmationChannel, InsuranceType, } from './booking-types';
|
|
3
3
|
export { CONFIRMATION_CHANNEL_ORDER } from './booking-types';
|
|
4
4
|
export { OPERATORS_ALL } from './cascade';
|
|
5
5
|
export declare const Booking: import("react").ForwardRefExoticComponent<BookingProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from 'react';
|
|
2
|
-
import type { BookingDetails, BookingResolvedPayment, BookingValidator, ConfirmationChannel } from './booking-types';
|
|
2
|
+
import type { BookingDetails, BookingPracticeConsent, BookingResolvedPayment, BookingValidator, ConfirmationChannel } from './booking-types';
|
|
3
3
|
export interface BookingDetailsFormProps {
|
|
4
4
|
value: Partial<BookingDetails>;
|
|
5
5
|
onChange: (next: Partial<BookingDetails>) => void;
|
|
@@ -13,6 +13,11 @@ export interface BookingDetailsFormProps {
|
|
|
13
13
|
showReturningPatientFlag?: boolean;
|
|
14
14
|
privacyPolicyUrl?: string;
|
|
15
15
|
termsUrl?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The practice's own privacy notice or terms checkbox, rendered after the
|
|
18
|
+
* AlfaDocs ones. `null`, `undefined` or a blank label render nothing.
|
|
19
|
+
*/
|
|
20
|
+
practiceConsent?: BookingPracticeConsent | null;
|
|
16
21
|
payment?: BookingResolvedPayment;
|
|
17
22
|
paymentTermsUrl?: string;
|
|
18
23
|
/** Prevent submit when the selected service's payment cannot be resolved. */
|
|
@@ -21,7 +26,8 @@ export interface BookingDetailsFormProps {
|
|
|
21
26
|
* The selected service's `criticalInformationToAccept`. When set (and not
|
|
22
27
|
* blank), a "Before you book" block renders above the consents and the
|
|
23
28
|
* patient must tick its checkbox before submit enables. Rendered as
|
|
24
|
-
* plain text — never parsed as HTML
|
|
29
|
+
* plain text — never parsed as HTML — except that `http(s)` URLs in it
|
|
30
|
+
* become links.
|
|
25
31
|
*/
|
|
26
32
|
criticalInformationToAccept?: string;
|
|
27
33
|
validateCodiceFiscale?: BookingValidator;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Booking } from './booking';
|
|
2
|
-
export type { BookingPaymentSession, BookingPaymentState, BookingPaymentRenderContext, BookingSubmitResult, BookingServicePayment, BookingResolvedPayment, BookingProps, BookingHandle, BookingVariant, BookingValue, BookingService, BookingSpecialty, BookingSlot, BookingOperator, BookingDetails, BookingSubmitPayload, BookingValidator, BookingValidationResult, ConfirmationChannel, InsuranceType, } from './booking';
|
|
2
|
+
export type { BookingPaymentSession, BookingPaymentState, BookingPaymentRenderContext, BookingSubmitResult, BookingServicePayment, BookingResolvedPayment, BookingProps, BookingHandle, BookingVariant, BookingValue, BookingService, BookingSpecialty, BookingSlot, BookingOperator, BookingPracticeConsent, BookingDetails, BookingSubmitPayload, BookingValidator, BookingValidationResult, ConfirmationChannel, InsuranceType, } from './booking';
|
|
3
3
|
export { CONFIRMATION_CHANNEL_ORDER, OPERATORS_ALL } from './booking';
|
|
4
4
|
export { bookingAgent } from './booking.agent';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type LinkifySegment = {
|
|
2
|
+
kind: 'text';
|
|
3
|
+
text: string;
|
|
4
|
+
} | {
|
|
5
|
+
kind: 'link';
|
|
6
|
+
text: string;
|
|
7
|
+
href: string;
|
|
8
|
+
};
|
|
9
|
+
/** Splits `text` into literal text and http(s) link segments, in order. */
|
|
10
|
+
export declare function linkifyText(text: string): LinkifySegment[];
|
|
11
|
+
//# sourceMappingURL=linkify.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -203,7 +203,7 @@ import { T as fA } from "./_chunks/typing-indicator-DHeVN4ob.js";
|
|
|
203
203
|
import { A as SA } from "./_chunks/anamnesis-card-D8Si-2GV.js";
|
|
204
204
|
import { D as TA, F as xA, a as uA, M as PA, b as IA, e as EA, f as RA, g as _A, c as NA, m as bA, r as DA, v as OA } from "./_chunks/muscle-scheme-Co0NIgbU.js";
|
|
205
205
|
import { A as FA, a as LA, b as MA, c as yA, d as kA, e as BA, C as vA, f as GA, g as HA, D as wA, h as WA, E as UA, L as VA, O as KA, P as YA, i as XA, j as qA, k as zA, l as jA, R as QA, S as ZA, m as JA, n as $A, o as ac, p as ec, q as sc, r as rc, s as oc, t as tc, u as nc, v as ic, w as pc, x as mc, y as lc, z as dc, B as Ac, F as cc } from "./_chunks/optical-prescription-DUufWXfZ.js";
|
|
206
|
-
import { B as gc, C as Sc, O as Cc, b as Tc } from "./_chunks/booking-
|
|
206
|
+
import { B as gc, C as Sc, O as Cc, b as Tc } from "./_chunks/booking-Cdzd8kyY.js";
|
|
207
207
|
import { C as uc, c as Pc, r as Ic } from "./_chunks/calendar-Bt44KMNO.js";
|
|
208
208
|
import { C as Rc } from "./_chunks/calendar-event-card-BUbKBPv_.js";
|
|
209
209
|
import { R as Nc } from "./_chunks/resource-chip-DYTG0IQQ.js";
|
|
@@ -247,7 +247,7 @@ import { A as YC, a as XC, i as qC, u as zC } from "./_chunks/appointment-workfl
|
|
|
247
247
|
import { C as QC, W as ZC, a as JC, b as $C, c as aT, i as eT, l as sT, m as rT, r as oT, w as tT, d as nT, e as iT, f as pT } from "./_chunks/workflow-map-qGkQTNvS.js";
|
|
248
248
|
import { A as lT, a as dT, b as AT, c as cT } from "./_chunks/alia-sidebar-Dx-oeOV2.js";
|
|
249
249
|
import { A as gT, a as ST, L as CT, P as TT, S as xT, T as uT, b as PT, c as IT, d as ET, e as RT, f as _T, g as NT, h as bT, i as DT, j as OT, k as hT, l as FT, m as LT, n as MT, o as yT, p as kT, r as BT, q as vT, s as GT, t as HT, u as wT } from "./_chunks/anamnesis-summary-rows-CZirLRuv.js";
|
|
250
|
-
import { C as UT, a as VT, b as KT, c as YT, D as XT, d as qT, S as zT, V as jT, W as QT, e as ZT, i as JT, m as $T, r as ax, u as ex, f as sx, g as rx } from "./_chunks/calendar-workspace-
|
|
250
|
+
import { C as UT, a as VT, b as KT, c as YT, D as XT, d as qT, S as zT, V as jT, W as QT, e as ZT, i as JT, m as $T, r as ax, u as ex, f as sx, g as rx } from "./_chunks/calendar-workspace-iwyXajja.js";
|
|
251
251
|
import { A as tx, a as nx, b as ix, H as px, c as mx, u as lx } from "./_chunks/help-me-write-templates-DQtT1qs_.js";
|
|
252
252
|
import { C as Ax, M as cx, P as fx } from "./_chunks/marketplace-app-shell-1uKqs4gD.js";
|
|
253
253
|
import { P as Sx } from "./_chunks/payment-automation-upsell-ugi4np1l.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as s, a as r, b as E, c as P, D as S, d as o, S as C, V as t, W as d, e as A, i, m as n, r as D, u as W, f as _, g as c } from "../../_chunks/calendar-workspace-
|
|
1
|
+
import { C as s, a as r, b as E, c as P, D as S, d as o, S as C, V as t, W as d, e as A, i, m as n, r as D, u as W, f as _, g as c } from "../../_chunks/calendar-workspace-iwyXajja.js";
|
|
2
2
|
export {
|
|
3
3
|
s as CALENDAR_PREFERENCE_KEYS,
|
|
4
4
|
r as CalendarDataProvider,
|
package/package.json
CHANGED