@mediquo/elements 0.5.0 → 0.5.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/README.md +3 -1
- package/dist/chunks/api-chat-client-1Vz6ZOwp.js +1 -0
- package/dist/chunks/{apple-pay-outcomes-CjCnBYOD.js → apple-pay-outcomes-0ozxSHyb.js} +1 -1
- package/dist/chunks/appointment-card-skeleton-1c7552Ln.d.ts +398 -0
- package/dist/chunks/appointment-card-skeleton-hglMW7x6.js +1 -0
- package/dist/chunks/{documentation-view-fFbvjJqx.js → documentation-view-geQU8ttU.js} +1 -1
- package/dist/chunks/get-patient-documents-query-DIQH-TMM.js +1 -0
- package/dist/chunks/{index-CLdWVaEs.js → index-BBUiLb3Y.js} +1 -1
- package/dist/chunks/index-BJYWtEmT.js +1 -0
- package/dist/chunks/{index-Xcn-xs13.js → index-Bx8TWBsk.js} +1 -1
- package/dist/chunks/{price-BmA2Dl9f.js → price-DIhNpS8n.js} +1 -1
- package/dist/chunks/{refund-cancel-policy-D_tUYPyv.js → refund-cancel-policy-BQDnePq9.js} +1 -1
- package/dist/chunks/{schemas.d-BEA8Pl6w.d.ts → schemas.d-5CaMrfOq.d.ts} +6 -0
- package/dist/chunks/telemetry-client-BLJVs9me.js +1 -0
- package/dist/env.js +1 -1
- package/dist/events.d.ts +56 -1
- package/dist/events.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/mq-apple-pay-checkout.js +1 -1
- package/dist/mq-appointment-checkout.d.ts +1 -1
- package/dist/mq-appointment-checkout.js +1 -1
- package/dist/mq-appointment-documentation.js +1 -1
- package/dist/mq-chat-room.js +1 -1
- package/dist/mq-checkout.js +1 -1
- package/dist/mq-dashboard.d.ts +224 -0
- package/dist/mq-dashboard.js +1 -0
- package/dist/mq-documents.js +1 -1
- package/dist/mq-google-pay-checkout.js +1 -1
- package/dist/mq-immediate-videocall-checkout.js +1 -1
- package/dist/mq-my-appointments.d.ts +9 -391
- package/dist/mq-my-appointments.js +1 -1
- package/dist/mq-payment-poller.d.ts +61 -0
- package/dist/mq-payment-poller.js +1 -0
- package/dist/mq-professional-presence-sync.js +1 -1
- package/dist/mq-schedule-success.js +2 -2
- package/dist/mq-schedule.d.ts +8 -2
- package/dist/mq-schedule.js +1 -1
- package/dist/mq-support-chat.d.ts +1 -1
- package/dist/mq-support-chat.js +1 -1
- package/dist/mq-terms-and-conditions.js +1 -1
- package/dist/mq-unread-count-sync.js +1 -1
- package/dist/mq-videocall.js +1 -1
- package/dist/react/mq-apple-pay-checkout.d.ts +24 -7
- package/dist/react/mq-apple-pay-checkout.js +1 -1
- package/dist/react/mq-appointment-checkout.d.ts +21 -6
- package/dist/react/mq-appointment-checkout.js +1 -1
- package/dist/react/mq-appointment-documentation.d.ts +17 -6
- package/dist/react/mq-appointment-documentation.js +1 -1
- package/dist/react/mq-chat-room.d.ts +30 -7
- package/dist/react/mq-chat-room.js +1 -1
- package/dist/react/mq-checkout.d.ts +22 -8
- package/dist/react/mq-checkout.js +1 -1
- package/dist/react/mq-dashboard.d.ts +57 -0
- package/dist/react/mq-dashboard.js +2 -0
- package/dist/react/mq-documents.d.ts +16 -2
- package/dist/react/mq-documents.js +1 -1
- package/dist/react/mq-google-pay-checkout.d.ts +29 -7
- package/dist/react/mq-google-pay-checkout.js +1 -1
- package/dist/react/mq-immediate-videocall-checkout.d.ts +15 -5
- package/dist/react/mq-immediate-videocall-checkout.js +1 -1
- package/dist/react/mq-my-appointments.d.ts +26 -6
- package/dist/react/mq-my-appointments.js +1 -1
- package/dist/react/mq-payment-poller.d.ts +33 -0
- package/dist/react/mq-payment-poller.js +2 -0
- package/dist/react/mq-professional-presence-sync.d.ts +8 -2
- package/dist/react/mq-professional-presence-sync.js +1 -1
- package/dist/react/mq-query-client-provider.d.ts +9 -2
- package/dist/react/mq-schedule-success.d.ts +30 -7
- package/dist/react/mq-schedule-success.js +1 -1
- package/dist/react/mq-schedule.d.ts +47 -8
- package/dist/react/mq-schedule.js +1 -1
- package/dist/react/mq-session-provider.d.ts +11 -2
- package/dist/react/mq-socket-provider.d.ts +13 -2
- package/dist/react/mq-support-chat.d.ts +31 -2
- package/dist/react/mq-support-chat.js +1 -1
- package/dist/react/mq-terms-and-conditions.d.ts +21 -5
- package/dist/react/mq-terms-and-conditions.js +1 -1
- package/dist/react/mq-theme-provider.d.ts +13 -2
- package/dist/react/mq-toast-container.d.ts +10 -2
- package/dist/react/mq-unread-count-sync.d.ts +8 -2
- package/dist/react/mq-unread-count-sync.js +1 -1
- package/dist/react/mq-videocall.d.ts +30 -12
- package/dist/react/mq-videocall.js +1 -1
- package/package.json +9 -1
- package/dist/chunks/api-chat-client-CqMn2JEn.js +0 -1
- package/dist/chunks/telemetry-client-Ca71sobH.js +0 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Env } from '../env.js';
|
|
3
|
+
import { MqDashboard as MqDashboard$1 } from '../mq-dashboard.js';
|
|
4
|
+
import { MqAppointmentBookEvent, MqViewAppointmentsEvent, MqAppointmentJoinVideocallEvent, MqAppointmentRescheduleEvent, MqAppointmentViewDocumentationEvent, MqViewDocumentsEvent } from '../events.js';
|
|
5
|
+
import 'lit-html';
|
|
6
|
+
import 'lit';
|
|
7
|
+
import '../chunks/schemas.d-5LR6aN9I.js';
|
|
8
|
+
import 'zod';
|
|
9
|
+
import '../chunks/mq-layout-D8Mak16a.js';
|
|
10
|
+
import '../ui/mq-skeleton.js';
|
|
11
|
+
import '../ui/mq-avatar.js';
|
|
12
|
+
import '../ui/mq-button.js';
|
|
13
|
+
import '../chunks/index-DNUbmrQl.js';
|
|
14
|
+
import '../ui/mq-card.js';
|
|
15
|
+
import '../chunks/appointment-card-skeleton-1c7552Ln.js';
|
|
16
|
+
import '../chunks/appointment-details-DpzdYLjq.js';
|
|
17
|
+
import '../chunks/appointment.model.d-Dy50gMPg.js';
|
|
18
|
+
import '../chunks/professional-overview-mO3tuMuH.js';
|
|
19
|
+
import '../ui/mq-text-button.js';
|
|
20
|
+
import '../chunks/mq-chat-room-DuG4RuIp.js';
|
|
21
|
+
import '@tanstack/query-core';
|
|
22
|
+
import '../ui/mq-floating-bubble.js';
|
|
23
|
+
import '../chunks/price.d-CwLosdAN.js';
|
|
24
|
+
import '../ui/mq-dialog.js';
|
|
25
|
+
import '../ui/mq-unread-badge.js';
|
|
26
|
+
|
|
27
|
+
interface MqDashboardProps {
|
|
28
|
+
/** Mediquo API key. Required. */
|
|
29
|
+
apiKey: string;
|
|
30
|
+
/** Already-exchanged patient access token. Required. */
|
|
31
|
+
token: string;
|
|
32
|
+
/** Locale, e.g. `"es_ES"`. Defaults to the host/build locale. */
|
|
33
|
+
locale?: string;
|
|
34
|
+
/** Environment override (`"development" | "production"`). */
|
|
35
|
+
env?: Env;
|
|
36
|
+
/** Show the mediquo branding footer. Defaults to `true`. */
|
|
37
|
+
showMediquoBranding?: boolean;
|
|
38
|
+
/** The user asked to book a new appointment. */
|
|
39
|
+
onAppointmentBook?: (event: MqAppointmentBookEvent) => void;
|
|
40
|
+
/** The user asked to open the appointments list. */
|
|
41
|
+
onViewAppointments?: (event: MqViewAppointmentsEvent) => void;
|
|
42
|
+
/** The user asked to join an appointment's videocall. */
|
|
43
|
+
onAppointmentJoinVideocall?: (event: MqAppointmentJoinVideocallEvent) => void;
|
|
44
|
+
/** The user asked to reschedule an appointment. */
|
|
45
|
+
onAppointmentReschedule?: (event: MqAppointmentRescheduleEvent) => void;
|
|
46
|
+
/** The user asked to open an appointment's documentation. */
|
|
47
|
+
onAppointmentViewDocumentation?: (event: MqAppointmentViewDocumentationEvent) => void;
|
|
48
|
+
/** The user asked to open the full documents list. */
|
|
49
|
+
onViewDocuments?: (event: MqViewDocumentsEvent) => void;
|
|
50
|
+
className?: string;
|
|
51
|
+
style?: React.CSSProperties;
|
|
52
|
+
id?: string;
|
|
53
|
+
}
|
|
54
|
+
declare const MqDashboard: React.ForwardRefExoticComponent<MqDashboardProps & React.RefAttributes<MqDashboard$1>>;
|
|
55
|
+
|
|
56
|
+
export { MqDashboard };
|
|
57
|
+
export type { MqDashboardProps };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{o}from"../chunks/create-component-BB-6Gu6l.js";import*as i from"react";import{MqDashboard as s}from"../mq-dashboard.js";import"../i18n.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/chunk-4FFT6DC2-CVWibomC.js";import"../chunks/external-CJj32K_p.js";import"../chunks/custom-element-DA9Fxvxd.js";import"../chunks/consume-CovVqBjI.js";import"../chunks/context-consumer-ESdICVAb.js";import"../chunks/context-request-event-Dfydf1ub.js";import"../chunks/localized-decorator-BlOuLhym.js";import"../chunks/query-controller-BlO1Ax65.js";import"../chunks/chunk-RCFIJTXZ-C6Ir0-sM.js";import"../chunks/create-context-DqP79qjF.js";import"../chunks/query-Cjvi4_dT.js";import"../chunks/chunk-S5RWG6G2-DPesx3Od.js";import"../chunks/get-organization-setup-query-BMbuRi6v.js";import"../chunks/telemetry-client-BLJVs9me.js";import"../chunks/parseISO-Dj3qSTG8.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/property-scuRaFcM.js";import"../env.js";import"../chunks/api-chat-client-1Vz6ZOwp.js";import"../chunks/format-CRFiCNHw.js";import"../chunks/isBefore-CPpTogxo.js";import"../chunks/mq-layout-CGcdxGMQ.js";import"../ui/mq-skeleton.js";import"../chunks/style-map-CIdqdn7C.js";import"../chunks/directive-2EDmOukv.js";import"../chunks/chunk-YMQSBQHL-De_r7BNk.js";import"../chunks/state-LQivXIgA.js";import"../chunks/index-BJYWtEmT.js";import"../ui/icons/message-square-icon.js";import"../ui/icons/types.js";import"../ui/mq-avatar.js";import"../chunks/class-map-Co76I6aw.js";import"../ui/mq-button.js";import"../events.js";import"../chunks/i18n-formats-DYS91YEa.js";import"../chunks/get-patient-documents-query-DIQH-TMM.js";import"../chunks/index-Bx8TWBsk.js";import"../ui/icons/download-icon.js";import"../ui/mq-card.js";import"../chunks/appointment-card-skeleton-hglMW7x6.js";import"../chunks/refund-cancel-policy-BQDnePq9.js";import"../chunks/chunk-GZF3YFSX-DM-GTqxg.js";import"../chunks/price-DIhNpS8n.js";import"../ui/icons/briefcase-icon.js";import"../ui/icons/calendar-icon.js";import"../ui/icons/clock-icon.js";import"../ui/icons/message-bubble-icon.js";import"../ui/icons/phone-icon.js";import"../chunks/professional-overview-CfjgnTw4.js";import"../ui/icons/chevron-down-icon.js";import"../chunks/if-defined-BYeVdwgd.js";import"../ui/mq-text-button.js";import"../mq-chat-room.js";import"../chunks/provide-D2fnEhT2.js";import"../chunks/context-provider--AKuwfs9.js";import"../theme.js";import"../ui/icons/x-icon.js";import"../ui/icons/chevron-left-icon.js";import"../chunks/query-CeeutdfT.js";import"../ui/icons/check-double-icon.js";import"../ui/icons/check-icon.js";import"../chunks/chunk-YTQUGGS3-DmCGIoFy.js";import"../chunks/mutation-controller-CR2qcqhH.js";import"../ui/mq-floating-bubble.js";import"../ui/mq-dialog.js";import"../ui/icons/video-icon.js";import"../ui/mq-unread-badge.js";import"../ui/mq-toast.js";const t=o({react:i,tagName:"mq-dashboard",elementClass:s,events:{onAppointmentBook:"mq-appointment-book",onViewAppointments:"mq-view-appointments",onAppointmentJoinVideocall:"mq-appointment-join-videocall",onAppointmentReschedule:"mq-appointment-reschedule",onAppointmentViewDocumentation:"mq-appointment-view-documentation",onViewDocuments:"mq-view-documents"}});export{t as MqDashboard};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { MqDocuments as MqDocuments$1 } from '../mq-documents.js';
|
|
3
3
|
import 'lit-html';
|
|
4
4
|
import 'lit';
|
|
@@ -8,6 +8,20 @@ import '../ui/mq-button.js';
|
|
|
8
8
|
import 'zod';
|
|
9
9
|
import '../ui/mq-skeleton.js';
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
interface MqDocumentsProps {
|
|
12
|
+
/** Mediquo API key. Required when used standalone. */
|
|
13
|
+
apiKey?: MqDocuments$1["apiKey"];
|
|
14
|
+
/** Already-exchanged access token. Required when used standalone. */
|
|
15
|
+
token?: MqDocuments$1["token"];
|
|
16
|
+
/** Locale, e.g. `"es_ES"`. Defaults to the host/build locale. */
|
|
17
|
+
locale?: MqDocuments$1["locale"];
|
|
18
|
+
/** Environment override (`"development" | "production"`). */
|
|
19
|
+
env?: MqDocuments$1["env"];
|
|
20
|
+
className?: string;
|
|
21
|
+
style?: React.CSSProperties;
|
|
22
|
+
id?: string;
|
|
23
|
+
}
|
|
24
|
+
declare const MqDocuments: React.ForwardRefExoticComponent<MqDocumentsProps & React.RefAttributes<MqDocuments$1>>;
|
|
12
25
|
|
|
13
26
|
export { MqDocuments };
|
|
27
|
+
export type { MqDocumentsProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{o as s}from"../chunks/create-component-BB-6Gu6l.js";import*as t from"react";import{MqDocuments as o}from"../mq-documents.js";import"../i18n.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/chunk-4FFT6DC2-CVWibomC.js";import"../chunks/external-CJj32K_p.js";import"../chunks/custom-element-DA9Fxvxd.js";import"../chunks/localized-decorator-BlOuLhym.js";import"../chunks/query-controller-BlO1Ax65.js";import"../chunks/chunk-RCFIJTXZ-C6Ir0-sM.js";import"../chunks/create-context-DqP79qjF.js";import"../chunks/context-consumer-ESdICVAb.js";import"../chunks/context-request-event-Dfydf1ub.js";import"../chunks/query-Cjvi4_dT.js";import"../chunks/i18n-formats-DYS91YEa.js";import"../chunks/get-patient-profile-query-B0tUDJmT.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/property-scuRaFcM.js";import"../chunks/state-LQivXIgA.js";import"../env.js";import"../chunks/api-chat-client-
|
|
2
|
+
import{o as s}from"../chunks/create-component-BB-6Gu6l.js";import*as t from"react";import{MqDocuments as o}from"../mq-documents.js";import"../i18n.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/chunk-4FFT6DC2-CVWibomC.js";import"../chunks/external-CJj32K_p.js";import"../chunks/custom-element-DA9Fxvxd.js";import"../chunks/localized-decorator-BlOuLhym.js";import"../chunks/query-controller-BlO1Ax65.js";import"../chunks/chunk-RCFIJTXZ-C6Ir0-sM.js";import"../chunks/create-context-DqP79qjF.js";import"../chunks/context-consumer-ESdICVAb.js";import"../chunks/context-request-event-Dfydf1ub.js";import"../chunks/query-Cjvi4_dT.js";import"../chunks/i18n-formats-DYS91YEa.js";import"../chunks/get-patient-documents-query-DIQH-TMM.js";import"../chunks/get-patient-profile-query-B0tUDJmT.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/property-scuRaFcM.js";import"../chunks/state-LQivXIgA.js";import"../env.js";import"../chunks/api-chat-client-1Vz6ZOwp.js";import"../chunks/parseISO-Dj3qSTG8.js";import"../chunks/format-CRFiCNHw.js";import"../chunks/isBefore-CPpTogxo.js";import"../ui/icons/chevron-left-icon.js";import"../chunks/if-defined-BYeVdwgd.js";import"../ui/icons/types.js";import"../ui/icons/chevron-right-icon.js";import"../chunks/index-Bx8TWBsk.js";import"../ui/icons/download-icon.js";import"../ui/mq-button.js";import"../chunks/class-map-Co76I6aw.js";import"../chunks/directive-2EDmOukv.js";import"../events.js";import"../ui/mq-skeleton.js";import"../chunks/style-map-CIdqdn7C.js";const r=s({react:t,tagName:"mq-documents",elementClass:o});export{r as MqDocuments};
|
|
@@ -1,15 +1,37 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { EventName } from '@lit/react';
|
|
1
|
+
import * as React from 'react';
|
|
3
2
|
import { MqGooglePayCheckout as MqGooglePayCheckout$1, GooglePayCheckoutSuccessEvent, GooglePayCheckoutDeniedEvent, GooglePayCheckoutErrorEvent } from '../mq-google-pay-checkout.js';
|
|
4
3
|
import 'lit';
|
|
5
4
|
import '../env.js';
|
|
6
5
|
import '../i18n.js';
|
|
7
6
|
import 'zod';
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
interface MqGooglePayCheckoutProps {
|
|
9
|
+
apiKey: MqGooglePayCheckout$1["apiKey"];
|
|
10
|
+
token: MqGooglePayCheckout$1["token"];
|
|
11
|
+
locale: MqGooglePayCheckout$1["locale"];
|
|
12
|
+
merchantId: MqGooglePayCheckout$1["merchantId"];
|
|
13
|
+
gatewayMerchantId: MqGooglePayCheckout$1["gatewayMerchantId"];
|
|
14
|
+
merchantName: MqGooglePayCheckout$1["merchantName"];
|
|
15
|
+
sessionId: MqGooglePayCheckout$1["sessionId"];
|
|
16
|
+
amount: MqGooglePayCheckout$1["amount"];
|
|
17
|
+
currency: MqGooglePayCheckout$1["currency"];
|
|
18
|
+
country: MqGooglePayCheckout$1["country"];
|
|
19
|
+
label: MqGooglePayCheckout$1["label"];
|
|
20
|
+
env?: MqGooglePayCheckout$1["env"];
|
|
21
|
+
/** Google Pay gateway environment (`test` or `production`), independent of `env`. */
|
|
22
|
+
gatewayEnvironment?: MqGooglePayCheckout$1["gatewayEnvironment"];
|
|
23
|
+
/** Payment authorized. */
|
|
24
|
+
onPaymentSuccess?: (event: GooglePayCheckoutSuccessEvent) => void;
|
|
25
|
+
/** Payment rejected by the backend. */
|
|
26
|
+
onPaymentDenied?: (event: GooglePayCheckoutDeniedEvent) => void;
|
|
27
|
+
/** Auth, unsupported device or authorization failure. */
|
|
28
|
+
onPaymentError?: (event: GooglePayCheckoutErrorEvent) => void;
|
|
29
|
+
className?: string;
|
|
30
|
+
style?: React.CSSProperties;
|
|
31
|
+
id?: string;
|
|
32
|
+
children?: React.ReactNode;
|
|
33
|
+
}
|
|
34
|
+
declare const MqGooglePayCheckout: React.ForwardRefExoticComponent<MqGooglePayCheckoutProps & React.RefAttributes<MqGooglePayCheckout$1>>;
|
|
14
35
|
|
|
15
36
|
export { MqGooglePayCheckout };
|
|
37
|
+
export type { MqGooglePayCheckoutProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{o as t}from"../chunks/create-component-BB-6Gu6l.js";import*as e from"react";import{MqGooglePayCheckout as o}from"../mq-google-pay-checkout.js";import"../chunks/custom-element-DA9Fxvxd.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/localized-decorator-BlOuLhym.js";import"../chunks/login-token-task-BI-L2zSV.js";import"../chunks/task-Bj8p7kJX.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/chunk-4FFT6DC2-CVWibomC.js";import"../chunks/property-scuRaFcM.js";import"../chunks/state-LQivXIgA.js";import"../env.js";import"../i18n.js";import"../chunks/external-CJj32K_p.js";import"../chunks/api-chat-client-
|
|
2
|
+
import{o as t}from"../chunks/create-component-BB-6Gu6l.js";import*as e from"react";import{MqGooglePayCheckout as o}from"../mq-google-pay-checkout.js";import"../chunks/custom-element-DA9Fxvxd.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/localized-decorator-BlOuLhym.js";import"../chunks/login-token-task-BI-L2zSV.js";import"../chunks/task-Bj8p7kJX.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/chunk-4FFT6DC2-CVWibomC.js";import"../chunks/property-scuRaFcM.js";import"../chunks/state-LQivXIgA.js";import"../env.js";import"../i18n.js";import"../chunks/external-CJj32K_p.js";import"../chunks/api-chat-client-1Vz6ZOwp.js";import"../chunks/parseISO-Dj3qSTG8.js";import"../chunks/format-CRFiCNHw.js";import"../chunks/isBefore-CPpTogxo.js";import"../chunks/apple-pay-outcomes-0ozxSHyb.js";const s=t({react:e,tagName:"mq-google-pay-checkout",elementClass:o,events:{onPaymentSuccess:"payment-success",onPaymentDenied:"payment-denied",onPaymentError:"payment-error"}});export{s as MqGooglePayCheckout};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { EventName } from '@lit/react';
|
|
1
|
+
import * as React from 'react';
|
|
3
2
|
import { MqImmediateVideocallCheckout as MqImmediateVideocallCheckout$1, ImmediateVideocallPaidEvent } from '../mq-immediate-videocall-checkout.js';
|
|
4
3
|
import 'lit-html';
|
|
5
4
|
import 'lit';
|
|
@@ -9,8 +8,19 @@ import 'zod';
|
|
|
9
8
|
import '../mq-checkout.js';
|
|
10
9
|
import '../ui/mq-skeleton.js';
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
interface MqImmediateVideocallCheckoutProps {
|
|
12
|
+
apiKey: MqImmediateVideocallCheckout$1["apiKey"];
|
|
13
|
+
token: MqImmediateVideocallCheckout$1["token"];
|
|
14
|
+
locale: MqImmediateVideocallCheckout$1["locale"];
|
|
15
|
+
videoCallScheduleId: MqImmediateVideocallCheckout$1["videoCallScheduleId"];
|
|
16
|
+
env?: MqImmediateVideocallCheckout$1["env"];
|
|
17
|
+
/** Payment confirmed. */
|
|
18
|
+
onPaymentSuccess?: (event: ImmediateVideocallPaidEvent) => void;
|
|
19
|
+
className?: string;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
id?: string;
|
|
22
|
+
}
|
|
23
|
+
declare const MqImmediateVideocallCheckout: React.ForwardRefExoticComponent<MqImmediateVideocallCheckoutProps & React.RefAttributes<MqImmediateVideocallCheckout$1>>;
|
|
15
24
|
|
|
16
25
|
export { MqImmediateVideocallCheckout };
|
|
26
|
+
export type { MqImmediateVideocallCheckoutProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{o as t}from"../chunks/create-component-BB-6Gu6l.js";import*as s from"react";import{MqImmediateVideocallCheckout as e}from"../mq-immediate-videocall-checkout.js";import"../chunks/custom-element-DA9Fxvxd.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/property-scuRaFcM.js";import"../chunks/if-defined-BYeVdwgd.js";import"../chunks/api-chat-client-
|
|
2
|
+
import{o as t}from"../chunks/create-component-BB-6Gu6l.js";import*as s from"react";import{MqImmediateVideocallCheckout as e}from"../mq-immediate-videocall-checkout.js";import"../chunks/custom-element-DA9Fxvxd.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/property-scuRaFcM.js";import"../chunks/if-defined-BYeVdwgd.js";import"../chunks/api-chat-client-1Vz6ZOwp.js";import"../chunks/external-CJj32K_p.js";import"../chunks/parseISO-Dj3qSTG8.js";import"../chunks/format-CRFiCNHw.js";import"../chunks/isBefore-CPpTogxo.js";import"../env.js";import"../mq-checkout.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/localized-decorator-BlOuLhym.js";import"../chunks/task-Bj8p7kJX.js";import"../chunks/login-token-task-BI-L2zSV.js";import"../chunks/chunk-4FFT6DC2-CVWibomC.js";import"../chunks/state-LQivXIgA.js";import"../theme.js";import"../i18n.js";import"../ui/mq-skeleton.js";import"../chunks/style-map-CIdqdn7C.js";import"../chunks/directive-2EDmOukv.js";const m=t({react:s,tagName:"mq-immediate-videocall-checkout",elementClass:e,events:{onPaymentSuccess:"payment-success"}});export{m as MqImmediateVideocallCheckout};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { EventName } from '@lit/react';
|
|
1
|
+
import * as React from 'react';
|
|
3
2
|
import '../chunks/appointment-details-DpzdYLjq.js';
|
|
4
3
|
import { MqMyAppointments as MqMyAppointments$1, MqMyAppointmentsSelectEvent, RequestAppointmentEvent } from '../mq-my-appointments.js';
|
|
5
4
|
import '../chunks/professional-overview-mO3tuMuH.js';
|
|
5
|
+
import { MqHomeEvent, MqAppointmentBookEvent, MqAppointmentJoinVideocallEvent, MqAppointmentRescheduleEvent, MqAppointmentViewDocumentationEvent } from '../events.js';
|
|
6
6
|
import 'lit-html';
|
|
7
7
|
import 'lit';
|
|
8
8
|
import '../chunks/appointment.model.d-Dy50gMPg.js';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '../chunks/schemas.d-5LR6aN9I.js';
|
|
11
11
|
import '../ui/mq-tabs.js';
|
|
12
|
+
import '../chunks/appointment-card-skeleton-1c7552Ln.js';
|
|
12
13
|
import '../ui/mq-card.js';
|
|
13
14
|
import '../chunks/mq-chat-room-DuG4RuIp.js';
|
|
14
15
|
import '../ui/mq-avatar.js';
|
|
@@ -22,9 +23,28 @@ import '../ui/mq-unread-badge.js';
|
|
|
22
23
|
import '../ui/back-link.js';
|
|
23
24
|
import '../ui/mq-text-button.js';
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
interface MqMyAppointmentsProps {
|
|
27
|
+
/** Selected tab (`"next" | "history"`). Defaults to `"next"`. */
|
|
28
|
+
tab?: MqMyAppointments$1["tab"];
|
|
29
|
+
/** The user selected a different tab. */
|
|
30
|
+
onTabChange?: (event: MqMyAppointmentsSelectEvent) => void;
|
|
31
|
+
/** The user asked to request a new appointment. */
|
|
32
|
+
onRequestAppointment?: (event: RequestAppointmentEvent) => void;
|
|
33
|
+
/** The user asked to return to the home screen. */
|
|
34
|
+
onHome?: (event: MqHomeEvent) => void;
|
|
35
|
+
/** The user asked to book a new appointment (repeat). */
|
|
36
|
+
onAppointmentBook?: (event: MqAppointmentBookEvent) => void;
|
|
37
|
+
/** The user asked to join an appointment's videocall. */
|
|
38
|
+
onAppointmentJoinVideocall?: (event: MqAppointmentJoinVideocallEvent) => void;
|
|
39
|
+
/** The user asked to reschedule an appointment. */
|
|
40
|
+
onAppointmentReschedule?: (event: MqAppointmentRescheduleEvent) => void;
|
|
41
|
+
/** The user asked to open an appointment's documentation. */
|
|
42
|
+
onAppointmentViewDocumentation?: (event: MqAppointmentViewDocumentationEvent) => void;
|
|
43
|
+
className?: string;
|
|
44
|
+
style?: React.CSSProperties;
|
|
45
|
+
id?: string;
|
|
46
|
+
}
|
|
47
|
+
declare const MqMyAppointments: React.ForwardRefExoticComponent<MqMyAppointmentsProps & React.RefAttributes<MqMyAppointments$1>>;
|
|
29
48
|
|
|
30
49
|
export { MqMyAppointments };
|
|
50
|
+
export type { MqMyAppointmentsProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{o
|
|
2
|
+
import{o}from"../chunks/create-component-BB-6Gu6l.js";import*as t from"react";import"../chunks/price-DIhNpS8n.js";import{MqMyAppointments as i}from"../mq-my-appointments.js";import"../chunks/professional-overview-CfjgnTw4.js";import"../chunks/custom-element-DA9Fxvxd.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/localized-decorator-BlOuLhym.js";import"../chunks/api-chat-client-1Vz6ZOwp.js";import"../chunks/external-CJj32K_p.js";import"../chunks/parseISO-Dj3qSTG8.js";import"../chunks/format-CRFiCNHw.js";import"../chunks/isBefore-CPpTogxo.js";import"../env.js";import"../chunks/telemetry-client-BLJVs9me.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/property-scuRaFcM.js";import"../chunks/class-map-Co76I6aw.js";import"../chunks/directive-2EDmOukv.js";import"../i18n.js";import"../chunks/chunk-4FFT6DC2-CVWibomC.js";import"../ui/icons/briefcase-icon.js";import"../ui/icons/types.js";import"../ui/icons/calendar-icon.js";import"../ui/icons/clock-icon.js";import"../ui/icons/message-bubble-icon.js";import"../ui/icons/phone-icon.js";import"../chunks/consume-CovVqBjI.js";import"../chunks/context-consumer-ESdICVAb.js";import"../chunks/context-request-event-Dfydf1ub.js";import"../chunks/chunk-S5RWG6G2-DPesx3Od.js";import"../chunks/create-context-DqP79qjF.js";import"../events.js";import"../ui/mq-tabs.js";import"../chunks/appointment-card-skeleton-hglMW7x6.js";import"../chunks/query-controller-BlO1Ax65.js";import"../chunks/chunk-RCFIJTXZ-C6Ir0-sM.js";import"../chunks/query-Cjvi4_dT.js";import"../chunks/get-organization-setup-query-BMbuRi6v.js";import"../chunks/i18n-formats-DYS91YEa.js";import"../chunks/refund-cancel-policy-BQDnePq9.js";import"../chunks/chunk-GZF3YFSX-DM-GTqxg.js";import"../chunks/state-LQivXIgA.js";import"../ui/mq-card.js";import"../mq-chat-room.js";import"../chunks/provide-D2fnEhT2.js";import"../chunks/context-provider--AKuwfs9.js";import"../theme.js";import"../ui/icons/x-icon.js";import"../ui/mq-avatar.js";import"../ui/mq-button.js";import"../ui/mq-skeleton.js";import"../chunks/style-map-CIdqdn7C.js";import"../chunks/chunk-YMQSBQHL-De_r7BNk.js";import"../chunks/if-defined-BYeVdwgd.js";import"../ui/icons/chevron-left-icon.js";import"../chunks/query-CeeutdfT.js";import"../ui/icons/check-double-icon.js";import"../ui/icons/check-icon.js";import"../chunks/chunk-YTQUGGS3-DmCGIoFy.js";import"../chunks/mutation-controller-CR2qcqhH.js";import"../ui/mq-floating-bubble.js";import"../ui/mq-dialog.js";import"../ui/icons/video-icon.js";import"../ui/mq-unread-badge.js";import"../ui/mq-toast.js";import"../ui/back-link.js";import"../ui/mq-text-button.js";import"../ui/icons/chevron-down-icon.js";const n=o({react:t,tagName:"mq-my-appointments",elementClass:i,events:{onTabChange:"ontabchange",onRequestAppointment:"request-appointment",onHome:"mq-home",onAppointmentBook:"mq-appointment-book",onAppointmentJoinVideocall:"mq-appointment-join-videocall",onAppointmentReschedule:"mq-appointment-reschedule",onAppointmentViewDocumentation:"mq-appointment-view-documentation"}});export{n as MqMyAppointments};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MqPaymentPoller as MqPaymentPoller$1 } from '../mq-payment-poller.js';
|
|
3
|
+
import { MqPaymentSucceededEvent } from '../events.js';
|
|
4
|
+
import 'lit-html';
|
|
5
|
+
import 'lit';
|
|
6
|
+
import '../env.js';
|
|
7
|
+
|
|
8
|
+
interface MqPaymentPollerProps {
|
|
9
|
+
/** Payment session to resolve, as returned when the payment was started. */
|
|
10
|
+
sessionId?: MqPaymentPoller$1["sessionId"];
|
|
11
|
+
/** Mediquo API key. Required when used standalone. */
|
|
12
|
+
apiKey?: MqPaymentPoller$1["apiKey"];
|
|
13
|
+
/** Already-exchanged access token. Required when used standalone. */
|
|
14
|
+
token?: MqPaymentPoller$1["token"];
|
|
15
|
+
/** Locale, e.g. `"es_ES"`. Defaults to the host/build locale. */
|
|
16
|
+
locale?: MqPaymentPoller$1["locale"];
|
|
17
|
+
/** Environment override (`"development" | "production"`). */
|
|
18
|
+
env?: MqPaymentPoller$1["env"];
|
|
19
|
+
/** How long to keep polling before giving up. Defaults to 90 000 ms. */
|
|
20
|
+
timeoutMs?: MqPaymentPoller$1["timeoutMs"];
|
|
21
|
+
/**
|
|
22
|
+
* The payment was confirmed. The only outcome the host routes on — rejected
|
|
23
|
+
* and unconfirmable payments are rendered by the element itself.
|
|
24
|
+
*/
|
|
25
|
+
onPaymentSucceeded?: (event: MqPaymentSucceededEvent) => void;
|
|
26
|
+
className?: string;
|
|
27
|
+
style?: React.CSSProperties;
|
|
28
|
+
id?: string;
|
|
29
|
+
}
|
|
30
|
+
declare const MqPaymentPoller: React.ForwardRefExoticComponent<MqPaymentPollerProps & React.RefAttributes<MqPaymentPoller$1>>;
|
|
31
|
+
|
|
32
|
+
export { MqPaymentPoller };
|
|
33
|
+
export type { MqPaymentPollerProps };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import{o as e}from"../chunks/create-component-BB-6Gu6l.js";import*as t from"react";import{MqPaymentPoller as s}from"../mq-payment-poller.js";import"../i18n.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/chunk-4FFT6DC2-CVWibomC.js";import"../chunks/external-CJj32K_p.js";import"../chunks/custom-element-DA9Fxvxd.js";import"../chunks/localized-decorator-BlOuLhym.js";import"../chunks/api-chat-client-1Vz6ZOwp.js";import"../chunks/parseISO-Dj3qSTG8.js";import"../chunks/format-CRFiCNHw.js";import"../chunks/isBefore-CPpTogxo.js";import"../env.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/property-scuRaFcM.js";import"../chunks/state-LQivXIgA.js";import"../events.js";import"../ui/icons/spinner-icon.js";import"../ui/icons/types.js";const o=e({react:t,tagName:"mq-payment-poller",elementClass:s,events:{onPaymentSucceeded:"mq-payment-succeeded"}});export{o as MqPaymentPoller};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { M as MqProfessionalPresenceSync$1 } from '../chunks/mq-professional-presence-sync-cmg6CXhz.js';
|
|
3
3
|
import 'lit';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
interface MqProfessionalPresenceSyncProps {
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
id?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const MqProfessionalPresenceSync: React.ForwardRefExoticComponent<MqProfessionalPresenceSyncProps & React.RefAttributes<MqProfessionalPresenceSync$1>>;
|
|
6
11
|
|
|
7
12
|
export { MqProfessionalPresenceSync };
|
|
13
|
+
export type { MqProfessionalPresenceSyncProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{o as s}from"../chunks/create-component-BB-6Gu6l.js";import*as e from"react";import{MqProfessionalPresenceSync as t}from"../mq-professional-presence-sync.js";import"../chunks/api-chat-client-
|
|
2
|
+
import{o as s}from"../chunks/create-component-BB-6Gu6l.js";import*as e from"react";import{MqProfessionalPresenceSync as t}from"../mq-professional-presence-sync.js";import"../chunks/api-chat-client-1Vz6ZOwp.js";import"../chunks/custom-element-DA9Fxvxd.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/context-consumer-ESdICVAb.js";import"../chunks/context-request-event-Dfydf1ub.js";import"../chunks/chunk-RCFIJTXZ-C6Ir0-sM.js";import"../chunks/create-context-DqP79qjF.js";import"../chunks/chunk-YTQUGGS3-DmCGIoFy.js";import"../chunks/external-CJj32K_p.js";import"../chunks/chunk-YMQSBQHL-De_r7BNk.js";import"../chunks/parseISO-Dj3qSTG8.js";import"../chunks/format-CRFiCNHw.js";import"../chunks/isBefore-CPpTogxo.js";import"../env.js";const n=s({react:e,tagName:"mq-professional-presence-sync",elementClass:t});export{n as MqProfessionalPresenceSync};
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { QueryClientProvider } from '../mq-query-client-provider.js';
|
|
3
3
|
import 'lit-html';
|
|
4
4
|
import 'lit';
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
interface MqQueryClientProviderProps {
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
id?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
declare const MqQueryClientProvider: React.ForwardRefExoticComponent<MqQueryClientProviderProps & React.RefAttributes<QueryClientProvider>>;
|
|
7
13
|
|
|
8
14
|
export { MqQueryClientProvider };
|
|
15
|
+
export type { MqQueryClientProviderProps };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { EventName } from '@lit/react';
|
|
1
|
+
import * as React from 'react';
|
|
3
2
|
import { MqScheduleSuccess as MqScheduleSuccess$1, OpenVideocallEvent } from '../mq-schedule-success.js';
|
|
4
3
|
import { MqViewAppointmentsEvent, MqHomeEvent } from '../events.js';
|
|
5
4
|
import 'lit-html';
|
|
@@ -20,10 +19,34 @@ import '../ui/mq-floating-bubble.js';
|
|
|
20
19
|
import '../ui/mq-unread-badge.js';
|
|
21
20
|
import '../ui/mq-card.js';
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
interface MqScheduleSuccessProps {
|
|
23
|
+
/** Appointment id whose confirmation to show. Required. */
|
|
24
|
+
appointmentId: MqScheduleSuccess$1["appointmentId"];
|
|
25
|
+
/** Flow kind (`"schedule" | "reschedule"`). Defaults to `"schedule"`. */
|
|
26
|
+
kind?: MqScheduleSuccess$1["kind"];
|
|
27
|
+
/** Mediquo API key. Required when used standalone. */
|
|
28
|
+
apiKey?: MqScheduleSuccess$1["apiKey"];
|
|
29
|
+
/** Already-exchanged access token. Required when used standalone. */
|
|
30
|
+
token?: MqScheduleSuccess$1["token"];
|
|
31
|
+
/** IANA timezone for the appointment time. Defaults to the browser's. */
|
|
32
|
+
timezone?: MqScheduleSuccess$1["timezone"];
|
|
33
|
+
/** Locale, e.g. `"es_ES"`. Defaults to the host/build locale. */
|
|
34
|
+
locale?: MqScheduleSuccess$1["locale"];
|
|
35
|
+
/** Environment override (`"development" | "production"`). */
|
|
36
|
+
env?: MqScheduleSuccess$1["env"];
|
|
37
|
+
/** Show the post-booking navigation CTAs. Defaults to `false`. */
|
|
38
|
+
showNavCtas?: MqScheduleSuccess$1["showNavCtas"];
|
|
39
|
+
/** The user asked to join the videocall. */
|
|
40
|
+
onOpenVideocall?: (event: OpenVideocallEvent) => void;
|
|
41
|
+
/** The user asked to open the appointments list. */
|
|
42
|
+
onViewAppointments?: (event: MqViewAppointmentsEvent) => void;
|
|
43
|
+
/** The user asked to return to the home screen. */
|
|
44
|
+
onHome?: (event: MqHomeEvent) => void;
|
|
45
|
+
className?: string;
|
|
46
|
+
style?: React.CSSProperties;
|
|
47
|
+
id?: string;
|
|
48
|
+
}
|
|
49
|
+
declare const MqScheduleSuccess: React.ForwardRefExoticComponent<MqScheduleSuccessProps & React.RefAttributes<MqScheduleSuccess$1>>;
|
|
28
50
|
|
|
29
51
|
export { MqScheduleSuccess };
|
|
52
|
+
export type { MqScheduleSuccessProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{o as s}from"../chunks/create-component-BB-6Gu6l.js";import*as o from"react";import{MqScheduleSuccess as i}from"../mq-schedule-success.js";import"../i18n.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/chunk-4FFT6DC2-CVWibomC.js";import"../chunks/external-CJj32K_p.js";import"../chunks/custom-element-DA9Fxvxd.js";import"../chunks/localized-decorator-BlOuLhym.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/property-scuRaFcM.js";import"../chunks/state-LQivXIgA.js";import"../env.js";import"../events.js";import"../chunks/api-chat-client-
|
|
2
|
+
import{o as s}from"../chunks/create-component-BB-6Gu6l.js";import*as o from"react";import{MqScheduleSuccess as i}from"../mq-schedule-success.js";import"../i18n.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/chunk-4FFT6DC2-CVWibomC.js";import"../chunks/external-CJj32K_p.js";import"../chunks/custom-element-DA9Fxvxd.js";import"../chunks/localized-decorator-BlOuLhym.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/property-scuRaFcM.js";import"../chunks/state-LQivXIgA.js";import"../env.js";import"../events.js";import"../chunks/api-chat-client-1Vz6ZOwp.js";import"../chunks/parseISO-Dj3qSTG8.js";import"../chunks/format-CRFiCNHw.js";import"../chunks/isBefore-CPpTogxo.js";import"../ui/icons/check-icon.js";import"../ui/icons/types.js";import"../ui/mq-callout.js";import"../ui/icons/info-circle-outine-icon.js";import"../ui/mq-button.js";import"../chunks/class-map-Co76I6aw.js";import"../chunks/directive-2EDmOukv.js";import"../chunks/consume-CovVqBjI.js";import"../chunks/context-consumer-ESdICVAb.js";import"../chunks/context-request-event-Dfydf1ub.js";import"../chunks/chunk-S5RWG6G2-DPesx3Od.js";import"../chunks/create-context-DqP79qjF.js";import"../chunks/professional-overview-CfjgnTw4.js";import"../ui/icons/chevron-down-icon.js";import"../chunks/if-defined-BYeVdwgd.js";import"../ui/mq-text-button.js";import"../ui/mq-avatar.js";import"../chunks/price-DIhNpS8n.js";import"../chunks/telemetry-client-BLJVs9me.js";import"../ui/icons/briefcase-icon.js";import"../ui/icons/calendar-icon.js";import"../ui/icons/clock-icon.js";import"../ui/icons/message-bubble-icon.js";import"../ui/icons/phone-icon.js";import"../chunks/query-controller-BlO1Ax65.js";import"../chunks/chunk-RCFIJTXZ-C6Ir0-sM.js";import"../chunks/query-Cjvi4_dT.js";import"../chunks/get-appointment-query-Ck68BEMg.js";import"../chunks/get-organization-setup-query-BMbuRi6v.js";import"../chunks/get-patient-profile-query-B0tUDJmT.js";import"../chunks/chunk-GZF3YFSX-DM-GTqxg.js";import"../ui/icons/chat-bubble-icon.js";import"../ui/icons/video-icon.js";import"../mq-chat-room.js";import"../chunks/provide-D2fnEhT2.js";import"../chunks/context-provider--AKuwfs9.js";import"../theme.js";import"../ui/icons/x-icon.js";import"../ui/mq-skeleton.js";import"../chunks/style-map-CIdqdn7C.js";import"../chunks/chunk-YMQSBQHL-De_r7BNk.js";import"../ui/icons/chevron-left-icon.js";import"../chunks/query-CeeutdfT.js";import"../ui/icons/check-double-icon.js";import"../chunks/chunk-YTQUGGS3-DmCGIoFy.js";import"../chunks/mutation-controller-CR2qcqhH.js";import"../ui/mq-floating-bubble.js";import"../ui/mq-unread-badge.js";import"../chunks/i18n-formats-DYS91YEa.js";import"../ui/mq-card.js";const t=s({react:o,tagName:"mq-schedule-success",elementClass:i,events:{onOpenVideocall:"open-videocall",onViewAppointments:"mq-view-appointments",onHome:"mq-home"}});export{t as MqScheduleSuccess};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { EventName } from '@lit/react';
|
|
1
|
+
import * as React from 'react';
|
|
3
2
|
import { MqSchedule as MqSchedule$1, AppointmentCreatedEvent, AuthRequiredEvent } from '../mq-schedule.js';
|
|
4
3
|
import { MqBackEvent } from '../events.js';
|
|
5
4
|
import 'lit-html';
|
|
@@ -18,16 +17,56 @@ import '../ui/mq-clamped-text.js';
|
|
|
18
17
|
import '../ui/mq-card.js';
|
|
19
18
|
import '../chunks/price.d-CwLosdAN.js';
|
|
20
19
|
import '@tanstack/query-core';
|
|
21
|
-
import '../chunks/schemas.d-
|
|
20
|
+
import '../chunks/schemas.d-5CaMrfOq.js';
|
|
22
21
|
import '../ui/mq-skeleton.js';
|
|
23
22
|
import '../ui/mq-select.js';
|
|
24
23
|
import '../ui/mq-time-slot-picker.js';
|
|
25
24
|
import '../ui/mq-calendar.js';
|
|
26
25
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
interface MqScheduleProps {
|
|
27
|
+
/** Preselected specialty (public slug or backend code). */
|
|
28
|
+
defaultSpecialty?: MqSchedule$1["defaultSpecialty"];
|
|
29
|
+
/** Preselected service (public slug or backend code). */
|
|
30
|
+
defaultService?: MqSchedule$1["defaultService"];
|
|
31
|
+
/** Pre-selects a professional and starts at the slot picker. */
|
|
32
|
+
defaultProfessionalHash?: MqSchedule$1["defaultProfessionalHash"];
|
|
33
|
+
/** Resumes on a previously-chosen slot (guest → login). */
|
|
34
|
+
defaultSlotId?: MqSchedule$1["defaultSlotId"];
|
|
35
|
+
/** Flow kind (`"schedule" | "reschedule"`). */
|
|
36
|
+
kind?: MqSchedule$1["kind"];
|
|
37
|
+
/** Whether the flow requires payment. Defaults to `true`. */
|
|
38
|
+
requiresPayment?: MqSchedule$1["requiresPayment"];
|
|
39
|
+
/** Appointment id — required when `kind="reschedule"`. */
|
|
40
|
+
appointmentId?: MqSchedule$1["appointmentId"];
|
|
41
|
+
/** Show the mediquo branding footer. Defaults to `true`. */
|
|
42
|
+
showMediquoBranding?: MqSchedule$1["showMediquoBranding"];
|
|
43
|
+
/** Show the back button on the first step. Defaults to `true`. */
|
|
44
|
+
showBackButton?: MqSchedule$1["showBackButton"];
|
|
45
|
+
/** Mediquo API key. Required when used standalone. */
|
|
46
|
+
apiKey?: MqSchedule$1["apiKey"];
|
|
47
|
+
/** Already-exchanged access token. Required when used standalone. */
|
|
48
|
+
token?: MqSchedule$1["token"];
|
|
49
|
+
/** Locale, e.g. `"es_ES"`. Defaults to the host/build locale. */
|
|
50
|
+
locale?: MqSchedule$1["locale"];
|
|
51
|
+
/** Environment override (`"development" | "production"`). */
|
|
52
|
+
env?: MqSchedule$1["env"];
|
|
53
|
+
/** Raw integrator user token for Apple Pay checkout URLs. */
|
|
54
|
+
userToken?: MqSchedule$1["userToken"];
|
|
55
|
+
/** Return URL passed to the Apple Pay shell as `success_url`. */
|
|
56
|
+
applePaySuccessUrl?: MqSchedule$1["applePaySuccessUrl"];
|
|
57
|
+
/** IANA timezone for slot times. Defaults to the browser's. */
|
|
58
|
+
timezone?: MqSchedule$1["timezone"];
|
|
59
|
+
/** An appointment was successfully created. */
|
|
60
|
+
onAppointmentCreated?: (event: AppointmentCreatedEvent) => void;
|
|
61
|
+
/** A guest picked a slot and login is required to continue. */
|
|
62
|
+
onAuthRequired?: (event: AuthRequiredEvent) => void;
|
|
63
|
+
/** The user navigated back out of the wizard. */
|
|
64
|
+
onBack?: (event: MqBackEvent) => void;
|
|
65
|
+
className?: string;
|
|
66
|
+
style?: React.CSSProperties;
|
|
67
|
+
id?: string;
|
|
68
|
+
}
|
|
69
|
+
declare const MqSchedule: React.ForwardRefExoticComponent<MqScheduleProps & React.RefAttributes<MqSchedule$1>>;
|
|
32
70
|
|
|
33
71
|
export { MqSchedule };
|
|
72
|
+
export type { MqScheduleProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{o as i}from"../chunks/create-component-BB-6Gu6l.js";import*as s from"react";import{MqSchedule as o}from"../mq-schedule.js";import"../chunks/custom-element-DA9Fxvxd.js";import"../chunks/refund-cancel-policy-
|
|
2
|
+
import{o as i}from"../chunks/create-component-BB-6Gu6l.js";import*as s from"react";import{MqSchedule as o}from"../mq-schedule.js";import"../chunks/custom-element-DA9Fxvxd.js";import"../chunks/refund-cancel-policy-BQDnePq9.js";import"../chunks/api-chat-client-1Vz6ZOwp.js";import"../chunks/external-CJj32K_p.js";import"../chunks/parseISO-Dj3qSTG8.js";import"../chunks/format-CRFiCNHw.js";import"../chunks/isBefore-CPpTogxo.js";import"../env.js";import"../events.js";import"../chunks/mq-layout-CGcdxGMQ.js";import"../chunks/runtime-Bg1WXVCx.js";import"../chunks/localized-decorator-BlOuLhym.js";import"../chunks/lit-element-DiWJYFwC.js";import"../chunks/property-scuRaFcM.js";import"../chunks/query-controller-BlO1Ax65.js";import"../chunks/chunk-RCFIJTXZ-C6Ir0-sM.js";import"../chunks/create-context-DqP79qjF.js";import"../chunks/context-consumer-ESdICVAb.js";import"../chunks/context-request-event-Dfydf1ub.js";import"../chunks/query-Cjvi4_dT.js";import"../chunks/get-appointment-query-Ck68BEMg.js";import"../chunks/get-organization-setup-query-BMbuRi6v.js";import"../chunks/i18n-formats-DYS91YEa.js";import"../chunks/get-patient-profile-query-B0tUDJmT.js";import"../ui/mq-button.js";import"../chunks/class-map-Co76I6aw.js";import"../chunks/directive-2EDmOukv.js";import"../chunks/context-provider--AKuwfs9.js";import"../i18n.js";import"../chunks/chunk-4FFT6DC2-CVWibomC.js";import"../chunks/mutation-controller-CR2qcqhH.js";import"../chunks/if-defined-BYeVdwgd.js";import"../ui/mq-input.js";import"../chunks/state-LQivXIgA.js";import"../chunks/query-CeeutdfT.js";import"../ui/icons/calendar-icon.js";import"../ui/icons/types.js";import"../ui/mq-callout.js";import"../ui/icons/info-circle-outine-icon.js";import"../chunks/index-BJcdB5MT.js";import"../chunks/style-map-CIdqdn7C.js";import"../ui/mq-text-button.js";import"../ui/icons/chevron-left-icon.js";import"../chunks/consume-CovVqBjI.js";import"../chunks/professional-overview-CfjgnTw4.js";import"../ui/icons/chevron-down-icon.js";import"../ui/mq-avatar.js";import"../chunks/price-DIhNpS8n.js";import"../chunks/telemetry-client-BLJVs9me.js";import"../ui/icons/briefcase-icon.js";import"../ui/icons/clock-icon.js";import"../ui/icons/message-bubble-icon.js";import"../ui/icons/phone-icon.js";import"../ui/mq-card.js";import"../ui/icons/spinner-icon.js";import"../ui/icons/tag-icon.js";import"../ui/mq-toast.js";import"../ui/icons/file-icon.js";import"../ui/icons/upload-icon.js";import"../ui/icons/x-icon.js";import"../ui/mq-textarea.js";import"../ui/mq-skeleton.js";import"../ui/mq-select.js";import"../chunks/index-CvDnN2NR.js";import"../ui/icons/chevron-right-icon.js";import"../chunks/isSameDay-CuhZMy1T.js";import"../chunks/index-CGnPsMVQ.js";import"../theme.js";const t=i({react:s,tagName:"mq-schedule",elementClass:o,events:{onAppointmentCreated:"appointment-created",onAuthRequired:"auth-required",onBack:"mq-back"}});export{t as MqSchedule};
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { MqSessionProvider as MqSessionProvider$1 } from '../mq-session-provider.js';
|
|
3
3
|
import 'lit-html';
|
|
4
4
|
import '../chunks/schemas.d-5LR6aN9I.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'lit';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
interface MqSessionProviderProps {
|
|
9
|
+
/** The login-token response from the host's auth exchange. Required. */
|
|
10
|
+
session: MqSessionProvider$1["session"];
|
|
11
|
+
className?: string;
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
id?: string;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
declare const MqSessionProvider: React.ForwardRefExoticComponent<MqSessionProviderProps & React.RefAttributes<MqSessionProvider$1>>;
|
|
9
17
|
|
|
10
18
|
export { MqSessionProvider };
|
|
19
|
+
export type { MqSessionProviderProps };
|
|
@@ -1,9 +1,20 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { SocketProvider } from '../mq-socket-provider.js';
|
|
3
3
|
import 'lit-html';
|
|
4
4
|
import 'socket.io-client';
|
|
5
5
|
import 'lit';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
interface MqSocketProviderProps {
|
|
8
|
+
/** Environment to connect to (`"development" | "production"`). Required. */
|
|
9
|
+
env: SocketProvider["env"];
|
|
10
|
+
/** JWT token for authentication. Required. */
|
|
11
|
+
token: SocketProvider["token"];
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
id?: string;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
declare const MqSocketProvider: React.ForwardRefExoticComponent<MqSocketProviderProps & React.RefAttributes<SocketProvider>>;
|
|
8
18
|
|
|
9
19
|
export { MqSocketProvider };
|
|
20
|
+
export type { MqSocketProviderProps };
|