@mediquo/elements 0.3.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 (187) hide show
  1. package/README.md +22 -0
  2. package/dist/chunks/api-chat-client-BTBtu01T.js +1 -0
  3. package/dist/chunks/apple-pay-outcomes-BlytM6W-.js +1 -0
  4. package/dist/chunks/appointment-details-DpzdYLjq.d.ts +24 -0
  5. package/dist/chunks/appointment.model.d-Dy50gMPg.d.ts +171 -0
  6. package/dist/chunks/ca_ES-nttMFJzr.js +1 -0
  7. package/dist/chunks/chunk-S5RWG6G2-oTcdgk2H.js +1 -0
  8. package/dist/chunks/chunk-YTQUGGS3-DN-JZpgG.js +1 -0
  9. package/dist/chunks/class-map-Co76I6aw.js +1 -0
  10. package/dist/chunks/context-provider-CiMFpvDA.js +1 -0
  11. package/dist/chunks/context-request-event-Dfydf1ub.js +1 -0
  12. package/dist/chunks/custom-element-DA9Fxvxd.js +1 -0
  13. package/dist/chunks/de_DE-CrwfSJnS.js +1 -0
  14. package/dist/chunks/default-IpEn36CA.d.ts +5 -0
  15. package/dist/chunks/directive-2EDmOukv.js +1 -0
  16. package/dist/chunks/en_US-BslWF9nj.js +1 -0
  17. package/dist/chunks/ensure-context-root-DbdqwnKB.js +1 -0
  18. package/dist/chunks/exports-XZaVrMLd.js +1 -0
  19. package/dist/chunks/external-zAbuzxDj.js +1 -0
  20. package/dist/chunks/format-Cm3B1GMy.js +1 -0
  21. package/dist/chunks/get-organization-setup-query-BMbuRi6v.js +1 -0
  22. package/dist/chunks/get-patient-profile-query-C8T8DJ7z.js +1 -0
  23. package/dist/chunks/if-defined-BYeVdwgd.js +1 -0
  24. package/dist/chunks/index-B9iWdvW3.js +1 -0
  25. package/dist/chunks/index-BYHKNPG2.js +1 -0
  26. package/dist/chunks/index-Bxh8Qfwr.js +1 -0
  27. package/dist/chunks/isBefore-Cof0D841.js +1 -0
  28. package/dist/chunks/isSameDay-DPfclwIL.js +1 -0
  29. package/dist/chunks/lit-element-DiWJYFwC.js +1 -0
  30. package/dist/chunks/login-token-task-BI-L2zSV.js +1 -0
  31. package/dist/chunks/mq-chat-room-DuG4RuIp.d.ts +503 -0
  32. package/dist/chunks/mq-layout-D8Mak16a.d.ts +21 -0
  33. package/dist/chunks/mq-layout-DpzeL9_i.js +1 -0
  34. package/dist/chunks/mutation-controller-OVT8NEt6.js +1 -0
  35. package/dist/chunks/parseISO-jT42c8Ob.js +1 -0
  36. package/dist/chunks/price-Dtdjx70D.js +1 -0
  37. package/dist/chunks/price.d-CwLosdAN.d.ts +10 -0
  38. package/dist/chunks/professional-overview-mO3tuMuH.d.ts +25 -0
  39. package/dist/chunks/property-scuRaFcM.js +1 -0
  40. package/dist/chunks/provide-CfT7g_Zi.js +1 -0
  41. package/dist/chunks/pt_PT-CFbbWowX.js +1 -0
  42. package/dist/chunks/query-CeeutdfT.js +1 -0
  43. package/dist/chunks/query-QJ1INUTG.js +1 -0
  44. package/dist/chunks/refund-cancel-policy-Bm5djPds.js +1 -0
  45. package/dist/chunks/runtime-Bg1WXVCx.js +1 -0
  46. package/dist/chunks/schemas.d-BEA8Pl6w.d.ts +44 -0
  47. package/dist/chunks/state-LQivXIgA.js +1 -0
  48. package/dist/chunks/style-map-CIdqdn7C.js +1 -0
  49. package/dist/chunks/task-Bj8p7kJX.js +1 -0
  50. package/dist/chunks/telemetry-client-CKCb9Gnf.js +1 -0
  51. package/dist/env.d.ts +21 -0
  52. package/dist/env.js +1 -0
  53. package/dist/events.d.ts +141 -0
  54. package/dist/events.js +1 -0
  55. package/dist/i18n.d.ts +11 -0
  56. package/dist/i18n.js +1 -0
  57. package/dist/index.d.ts +5 -0
  58. package/dist/index.js +1 -0
  59. package/dist/mq-apple-pay-checkout.d.ts +82 -0
  60. package/dist/mq-apple-pay-checkout.js +1 -0
  61. package/dist/mq-appointment-checkout.d.ts +55 -0
  62. package/dist/mq-appointment-checkout.js +1 -0
  63. package/dist/mq-chat-room.d.ts +20 -0
  64. package/dist/mq-chat-room.js +1 -0
  65. package/dist/mq-checkout.d.ts +108 -0
  66. package/dist/mq-checkout.js +1 -0
  67. package/dist/mq-google-pay-checkout.d.ts +117 -0
  68. package/dist/mq-google-pay-checkout.js +1 -0
  69. package/dist/mq-immediate-videocall-checkout.d.ts +47 -0
  70. package/dist/mq-immediate-videocall-checkout.js +1 -0
  71. package/dist/mq-my-appointments.d.ts +602 -0
  72. package/dist/mq-my-appointments.js +1 -0
  73. package/dist/mq-query-client-provider.d.ts +17 -0
  74. package/dist/mq-query-client-provider.js +1 -0
  75. package/dist/mq-schedule-success.d.ts +84 -0
  76. package/dist/mq-schedule-success.js +4 -0
  77. package/dist/mq-schedule.d.ts +1013 -0
  78. package/dist/mq-schedule.js +1 -0
  79. package/dist/mq-socket-provider.d.ts +103 -0
  80. package/dist/mq-socket-provider.js +1 -0
  81. package/dist/mq-support-chat.d.ts +86 -0
  82. package/dist/mq-support-chat.js +1 -0
  83. package/dist/mq-theme-provider.d.ts +34 -0
  84. package/dist/mq-theme-provider.js +1 -0
  85. package/dist/mq-videocall.d.ts +151 -0
  86. package/dist/mq-videocall.js +1 -0
  87. package/dist/theme.d.ts +200 -0
  88. package/dist/theme.js +1 -0
  89. package/dist/ui/back-link.d.ts +21 -0
  90. package/dist/ui/back-link.js +1 -0
  91. package/dist/ui/icons/alert-circle-icon.d.ts +6 -0
  92. package/dist/ui/icons/alert-circle-icon.js +1 -0
  93. package/dist/ui/icons/annotation-question-icon.d.ts +6 -0
  94. package/dist/ui/icons/annotation-question-icon.js +1 -0
  95. package/dist/ui/icons/briefcase-icon.d.ts +6 -0
  96. package/dist/ui/icons/briefcase-icon.js +1 -0
  97. package/dist/ui/icons/calendar-icon.d.ts +6 -0
  98. package/dist/ui/icons/calendar-icon.js +1 -0
  99. package/dist/ui/icons/chat-bubble-icon.d.ts +6 -0
  100. package/dist/ui/icons/chat-bubble-icon.js +1 -0
  101. package/dist/ui/icons/check-circle-icon.d.ts +5 -0
  102. package/dist/ui/icons/check-circle-icon.js +1 -0
  103. package/dist/ui/icons/check-double-icon.d.ts +6 -0
  104. package/dist/ui/icons/check-double-icon.js +1 -0
  105. package/dist/ui/icons/check-icon.d.ts +6 -0
  106. package/dist/ui/icons/check-icon.js +1 -0
  107. package/dist/ui/icons/chevron-down-icon.d.ts +6 -0
  108. package/dist/ui/icons/chevron-down-icon.js +1 -0
  109. package/dist/ui/icons/chevron-left-icon.d.ts +6 -0
  110. package/dist/ui/icons/chevron-left-icon.js +1 -0
  111. package/dist/ui/icons/chevron-right-icon.d.ts +6 -0
  112. package/dist/ui/icons/chevron-right-icon.js +1 -0
  113. package/dist/ui/icons/clock-icon.d.ts +6 -0
  114. package/dist/ui/icons/clock-icon.js +1 -0
  115. package/dist/ui/icons/download-icon.d.ts +6 -0
  116. package/dist/ui/icons/download-icon.js +1 -0
  117. package/dist/ui/icons/file-icon.d.ts +6 -0
  118. package/dist/ui/icons/file-icon.js +1 -0
  119. package/dist/ui/icons/heartbeat-icon.d.ts +5 -0
  120. package/dist/ui/icons/heartbeat-icon.js +1 -0
  121. package/dist/ui/icons/info-circle-outine-icon.d.ts +6 -0
  122. package/dist/ui/icons/info-circle-outine-icon.js +1 -0
  123. package/dist/ui/icons/message-bubble-icon.d.ts +6 -0
  124. package/dist/ui/icons/message-bubble-icon.js +1 -0
  125. package/dist/ui/icons/message-square-icon.d.ts +6 -0
  126. package/dist/ui/icons/message-square-icon.js +1 -0
  127. package/dist/ui/icons/mic-icon.d.ts +6 -0
  128. package/dist/ui/icons/mic-icon.js +1 -0
  129. package/dist/ui/icons/mic-off-icon.d.ts +6 -0
  130. package/dist/ui/icons/mic-off-icon.js +1 -0
  131. package/dist/ui/icons/phone-icon.d.ts +6 -0
  132. package/dist/ui/icons/phone-icon.js +1 -0
  133. package/dist/ui/icons/spinner-icon.d.ts +6 -0
  134. package/dist/ui/icons/spinner-icon.js +1 -0
  135. package/dist/ui/icons/tag-icon.d.ts +6 -0
  136. package/dist/ui/icons/tag-icon.js +1 -0
  137. package/dist/ui/icons/time-left-icon.d.ts +5 -0
  138. package/dist/ui/icons/time-left-icon.js +1 -0
  139. package/dist/ui/icons/types.d.ts +9 -0
  140. package/dist/ui/icons/types.js +1 -0
  141. package/dist/ui/icons/upload-icon.d.ts +6 -0
  142. package/dist/ui/icons/upload-icon.js +1 -0
  143. package/dist/ui/icons/video-icon.d.ts +6 -0
  144. package/dist/ui/icons/video-icon.js +1 -0
  145. package/dist/ui/icons/video-off-icon.d.ts +6 -0
  146. package/dist/ui/icons/video-off-icon.js +1 -0
  147. package/dist/ui/icons/x-icon.d.ts +6 -0
  148. package/dist/ui/icons/x-icon.js +1 -0
  149. package/dist/ui/mq-avatar.d.ts +37 -0
  150. package/dist/ui/mq-avatar.js +1 -0
  151. package/dist/ui/mq-button.d.ts +34 -0
  152. package/dist/ui/mq-button.js +1 -0
  153. package/dist/ui/mq-calendar.d.ts +66 -0
  154. package/dist/ui/mq-calendar.js +1 -0
  155. package/dist/ui/mq-callout.d.ts +23 -0
  156. package/dist/ui/mq-callout.js +1 -0
  157. package/dist/ui/mq-card.d.ts +18 -0
  158. package/dist/ui/mq-card.js +1 -0
  159. package/dist/ui/mq-checkbox.d.ts +41 -0
  160. package/dist/ui/mq-checkbox.js +1 -0
  161. package/dist/ui/mq-clamped-text.d.ts +46 -0
  162. package/dist/ui/mq-clamped-text.js +1 -0
  163. package/dist/ui/mq-dialog.d.ts +53 -0
  164. package/dist/ui/mq-dialog.js +1 -0
  165. package/dist/ui/mq-floating-bubble.d.ts +42 -0
  166. package/dist/ui/mq-floating-bubble.js +1 -0
  167. package/dist/ui/mq-input.d.ts +41 -0
  168. package/dist/ui/mq-input.js +1 -0
  169. package/dist/ui/mq-rating.d.ts +30 -0
  170. package/dist/ui/mq-rating.js +1 -0
  171. package/dist/ui/mq-select.d.ts +83 -0
  172. package/dist/ui/mq-select.js +1 -0
  173. package/dist/ui/mq-skeleton.d.ts +18 -0
  174. package/dist/ui/mq-skeleton.js +1 -0
  175. package/dist/ui/mq-tabs.d.ts +56 -0
  176. package/dist/ui/mq-tabs.js +1 -0
  177. package/dist/ui/mq-text-button.d.ts +39 -0
  178. package/dist/ui/mq-text-button.js +1 -0
  179. package/dist/ui/mq-textarea.d.ts +38 -0
  180. package/dist/ui/mq-textarea.js +1 -0
  181. package/dist/ui/mq-time-slot-picker.d.ts +84 -0
  182. package/dist/ui/mq-time-slot-picker.js +1 -0
  183. package/dist/ui/mq-toast.d.ts +111 -0
  184. package/dist/ui/mq-toast.js +1 -0
  185. package/dist/ui/mq-unread-badge.d.ts +15 -0
  186. package/dist/ui/mq-unread-badge.js +1 -0
  187. package/package.json +176 -0
@@ -0,0 +1,111 @@
1
+ import * as lit_html from 'lit-html';
2
+ import * as lit from 'lit';
3
+ import { LitElement } from 'lit';
4
+
5
+ type ToastVariant = "success" | "error" | "warning" | "info";
6
+ type ToastPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
7
+ interface ToastOptions {
8
+ /** Duration in milliseconds before auto-dismiss. Default: 3000 */
9
+ duration?: number;
10
+ /** Position of the toast on screen. Default: "bottom-right" */
11
+ position?: ToastPosition;
12
+ }
13
+ /**
14
+ * Individual toast element.
15
+ * Not meant to be used directly - use the `toast` API instead.
16
+ */
17
+ declare class MqToast extends LitElement {
18
+ static styles: lit.CSSResult[];
19
+ message: string;
20
+ variant: ToastVariant;
21
+ private visible;
22
+ private exiting;
23
+ connectedCallback(): void;
24
+ startExit(): Promise<void>;
25
+ render(): lit_html.TemplateResult<1>;
26
+ }
27
+ /**
28
+ * Toast container element.
29
+ * Manages and renders all active toasts.
30
+ * Place one instance in your app root.
31
+ */
32
+ declare class MqToastContainer extends LitElement {
33
+ static styles: lit.CSSResult[];
34
+ position: ToastPosition;
35
+ private toasts;
36
+ private timers;
37
+ private generateId;
38
+ /**
39
+ * Add a toast to the container
40
+ */
41
+ addToast(message: string, variant: ToastVariant, options?: ToastOptions): void;
42
+ /**
43
+ * Remove a toast with exit animation
44
+ */
45
+ private removeToast;
46
+ disconnectedCallback(): void;
47
+ render(): lit_html.TemplateResult<1>;
48
+ }
49
+ declare global {
50
+ interface HTMLElementTagNameMap {
51
+ "mq-toast": MqToast;
52
+ "mq-toast-container": MqToastContainer;
53
+ }
54
+ }
55
+ /**
56
+ * Register an existing toast container to be used by the toast API.
57
+ * This allows components (like mq-router) to provide a container that
58
+ * inherits the correct CSS context (variables, tokens, etc.).
59
+ *
60
+ * @example
61
+ * ```ts
62
+ * // In your component's connectedCallback or firstUpdated:
63
+ * const container = this.shadowRoot.querySelector('mq-toast-container');
64
+ * registerToastContainer(container);
65
+ * ```
66
+ */
67
+ declare function registerToastContainer(container: MqToastContainer | null): void;
68
+ /**
69
+ * Toast API for showing toast notifications.
70
+ *
71
+ * @example
72
+ * ```ts
73
+ * import { toast } from "@mediquo/elements";
74
+ *
75
+ * // Show different toast variants
76
+ * toast.success("Operation completed successfully");
77
+ * toast.error("Something went wrong");
78
+ * toast.warning("Please review your input");
79
+ * toast.info("New update available");
80
+ *
81
+ * // With custom duration
82
+ * toast.success("Saved!", { duration: 2000 });
83
+ *
84
+ * // With custom position (default: "bottom-right")
85
+ * toast.success("Saved!", { position: "top-center" });
86
+ *
87
+ * // Keep toast visible until manually dismissed (duration: 0)
88
+ * toast.error("Critical error", { duration: 0 });
89
+ * ```
90
+ */
91
+ declare const toast: {
92
+ /**
93
+ * Show a success toast
94
+ */
95
+ success(message: string, options?: ToastOptions): void;
96
+ /**
97
+ * Show an error toast
98
+ */
99
+ error(message: string, options?: ToastOptions): void;
100
+ /**
101
+ * Show a warning toast
102
+ */
103
+ warning(message: string, options?: ToastOptions): void;
104
+ /**
105
+ * Show an info toast
106
+ */
107
+ info(message: string, options?: ToastOptions): void;
108
+ };
109
+
110
+ export { MqToast, MqToastContainer, registerToastContainer, toast };
111
+ export type { ToastOptions, ToastPosition, ToastVariant };
@@ -0,0 +1 @@
1
+ import{_ as t,t as o}from"../chunks/custom-element-DA9Fxvxd.js";import{i,a as s,x as e}from"../chunks/lit-element-DiWJYFwC.js";import{n as r}from"../chunks/property-scuRaFcM.js";import{r as a}from"../chunks/state-LQivXIgA.js";import{e as n}from"../chunks/class-map-Co76I6aw.js";import"../chunks/directive-2EDmOukv.js";const p=i`:host{position:fixed;display:flex;flex-direction:column;pointer-events:none;z-index:9999;gap:var(--sp-2)}:host{left:calc(var(--sp-4) + var(--mq-safe-left,0px));right:calc(var(--sp-4) + var(--mq-safe-right,0px));width:auto}:host([position=bottom-center]),:host([position=bottom-left]),:host([position=bottom-right]){bottom:calc(var(--sp-4) + var(--mq-safe-bottom,0px))}:host([position=top-center]),:host([position=top-left]),:host([position=top-right]){top:calc(var(--sp-4) + var(--mq-safe-top,0px));flex-direction:column-reverse}:host([position=bottom-center]),:host([position=bottom-left]),:host([position=bottom-right]),:host([position=top-center]),:host([position=top-left]),:host([position=top-right]){left:calc(var(--sp-4) + var(--mq-safe-left,0px));right:calc(var(--sp-4) + var(--mq-safe-right,0px));transform:none}:host([position=bottom-right]),:host([position=top-right]){align-items:flex-end}:host([position=bottom-left]),:host([position=top-left]){align-items:flex-start}:host([position=bottom-center]),:host([position=top-center]){align-items:center}@media (min-width:768px){:host{left:auto;right:auto;width:auto}:host([position=bottom-right]),:host([position=top-right]){right:calc(var(--sp-4) + var(--mq-safe-right,0px));left:auto;transform:none}:host([position=bottom-left]),:host([position=top-left]){left:calc(var(--sp-4) + var(--mq-safe-left,0px));right:auto;transform:none}:host([position=bottom-center]),:host([position=top-center]){left:50%;right:auto;transform:translateX(-50%)}}`,c=i`:host{display:grid;grid-template-rows:1fr;pointer-events:auto;overflow:hidden;width:100%;box-sizing:border-box;transition:grid-template-rows .3s cubic-bezier(.4,0,.2,1)}@media (min-width:768px){:host{width:auto}}:host(.collapsing){grid-template-rows:0fr}.toast-wrapper{min-height:0;overflow:hidden;box-sizing:border-box}.toast{box-sizing:border-box;background-color:var(--color-gray-dark);border-radius:var(--border-radius-lg);color:var(--color-neutrals-background-extraWeak);font-family:var(--font-body);font-size:var(--text-xs);line-height:var(--text-xs--line-height);font-weight:var(--font-weight-normal);padding:var(--sp-4) var(--sp-2_5);text-align:center;width:100%;opacity:0;transform:translateY(12px);transition:opacity 350ms cubic-bezier(.16,1,.3,1),transform 350ms cubic-bezier(.16,1,.3,1)}@media (min-width:768px){.toast{width:auto;min-width:343px}}.toast.visible{opacity:1;transform:translateY(0)}.toast.exiting{opacity:0;transform:translateY(8px)}`;let h=class MqToast extends s{constructor(){super(...arguments),this.message="",this.variant="info",this.visible=!1,this.exiting=!1}static{this.styles=[c]}connectedCallback(){super.connectedCallback(),requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.visible=!0})})}startExit(){return new Promise(t=>{this.exiting=!0,this.visible=!1,setTimeout(()=>{this.classList.add("collapsing")},200),setTimeout(t,500)})}render(){const t={toast:!0,visible:this.visible&&!this.exiting,exiting:this.exiting};return e`<div class="toast-wrapper"><div class="${n(t)}" role="status" aria-live="polite" aria-atomic="true">${this.message}</div></div>`}};t([r({type:String})],h.prototype,"message",void 0),t([r({type:String})],h.prototype,"variant",void 0),t([a()],h.prototype,"visible",void 0),t([a()],h.prototype,"exiting",void 0),h=t([o("mq-toast")],h);let l=class MqToastContainer extends s{constructor(){super(...arguments),this.position="bottom-right",this.toasts=[],this.timers=new Map}static{this.styles=[p]}generateId(){return`toast-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}addToast(t,o,i={}){const s=this.generateId(),e=i.duration??3e3;i.position&&(this.position=i.position);const r={id:s,message:t,variant:o,duration:e,visible:!0,exiting:!1};if(this.toasts=[...this.toasts,r],e>0){const t=window.setTimeout(()=>{this.removeToast(s)},e);this.timers.set(s,t)}}async removeToast(t){const o=this.timers.get(t);o&&(window.clearTimeout(o),this.timers.delete(t));const i=this.shadowRoot?.querySelector(`mq-toast[data-toast-id="${t}"]`);i&&await i.startExit(),this.toasts=this.toasts.filter(o=>o.id!==t)}disconnectedCallback(){for(const t of this.timers.values())window.clearTimeout(t);this.timers.clear(),super.disconnectedCallback()}render(){return e`${this.toasts.map(t=>e`<mq-toast data-toast-id="${t.id}" .message="${t.message}" .variant="${t.variant}"></mq-toast>`)}`}};t([r({type:String,reflect:!0})],l.prototype,"position",void 0),t([a()],l.prototype,"toasts",void 0),l=t([o("mq-toast-container")],l);let m=null;function d(t){m=t}function f(){if(m?.isConnected)return m;let t=document.querySelector("mq-toast-container");if(!t){t=document.createElement("mq-toast-container");const o=document.querySelector("mq-theme-provider");o?o.appendChild(t):(console.warn("[mq-toast] No mq-theme-provider found. Toast may not have access to design tokens."),document.body.appendChild(t))}return t}const g={success(t,o){f().addToast(t,"success",o)},error(t,o){f().addToast(t,"error",o)},warning(t,o){f().addToast(t,"warning",o)},info(t,o){f().addToast(t,"info",o)}};export{h as MqToast,l as MqToastContainer,d as registerToastContainer,g as toast};
@@ -0,0 +1,15 @@
1
+ import * as lit_html from 'lit-html';
2
+ import * as lit from 'lit';
3
+ import { LitElement } from 'lit';
4
+
5
+ declare class MqUnreadBadge extends LitElement {
6
+ static styles: lit.CSSResult;
7
+ render(): lit_html.TemplateResult<1>;
8
+ }
9
+ declare global {
10
+ interface HTMLElementTagNameMap {
11
+ "mq-unread-badge": MqUnreadBadge;
12
+ }
13
+ }
14
+
15
+ export { MqUnreadBadge };
@@ -0,0 +1 @@
1
+ import{_ as e,t as s}from"../chunks/custom-element-DA9Fxvxd.js";import{a,i as r,x as n}from"../chunks/lit-element-DiWJYFwC.js";let t=class MqUnreadBadge extends a{static{this.styles=r`:host{display:inline-flex;align-items:center}.badge{width:12px;height:12px;border-radius:50%;background-color:var(--color-warning-icon-default);flex-shrink:0}`}render(){return n`<span class="badge"></span>`}};t=e([s("mq-unread-badge")],t);export{t as MqUnreadBadge};
package/package.json ADDED
@@ -0,0 +1,176 @@
1
+ {
2
+ "name": "@mediquo/elements",
3
+ "private": false,
4
+ "version": "0.3.1",
5
+ "type": "module",
6
+ "description": "Mediquo elements web components",
7
+ "license": "ISC",
8
+ "files": [
9
+ "dist",
10
+ "package.json",
11
+ "README.md"
12
+ ],
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/mediquo/sdk-web.git"
16
+ },
17
+ "bugs": {
18
+ "url": "https://github.com/mediquo/sdk-web/issues"
19
+ },
20
+ "keywords": [
21
+ "mediquo",
22
+ "elements",
23
+ "web-components",
24
+ "videocall",
25
+ "sdk"
26
+ ],
27
+ "main": "./dist/index.js",
28
+ "types": "./dist/index.d.ts",
29
+ "module": "./dist/index.js",
30
+ "exports": {
31
+ "./package.json": {
32
+ "default": "./package.json"
33
+ },
34
+ ".": {
35
+ "types": "./dist/index.d.ts",
36
+ "default": "./dist/index.js"
37
+ },
38
+ "./mq-theme-provider": {
39
+ "types": "./dist/mq-theme-provider.d.ts",
40
+ "default": "./dist/mq-theme-provider.js"
41
+ },
42
+ "./mq-query-client-provider": {
43
+ "types": "./dist/mq-query-client-provider.d.ts",
44
+ "default": "./dist/mq-query-client-provider.js"
45
+ },
46
+ "./mq-socket-provider": {
47
+ "types": "./dist/mq-socket-provider.d.ts",
48
+ "default": "./dist/mq-socket-provider.js"
49
+ },
50
+ "./theme": {
51
+ "types": "./dist/theme.d.ts",
52
+ "default": "./dist/theme.js"
53
+ },
54
+ "./events": {
55
+ "types": "./dist/events.d.ts",
56
+ "default": "./dist/events.js"
57
+ },
58
+ "./mq-apple-pay-checkout": {
59
+ "types": "./dist/mq-apple-pay-checkout.d.ts",
60
+ "default": "./dist/mq-apple-pay-checkout.js"
61
+ },
62
+ "./mq-google-pay-checkout": {
63
+ "types": "./dist/mq-google-pay-checkout.d.ts",
64
+ "default": "./dist/mq-google-pay-checkout.js"
65
+ },
66
+ "./mq-checkout": {
67
+ "types": "./dist/mq-checkout.d.ts",
68
+ "default": "./dist/mq-checkout.js"
69
+ },
70
+ "./mq-chat-room": {
71
+ "types": "./dist/mq-chat-room.d.ts",
72
+ "default": "./dist/mq-chat-room.js"
73
+ },
74
+ "./mq-my-appointments": {
75
+ "types": "./dist/mq-my-appointments.d.ts",
76
+ "default": "./dist/mq-my-appointments.js"
77
+ },
78
+ "./mq-appointment-checkout": {
79
+ "types": "./dist/mq-appointment-checkout.d.ts",
80
+ "default": "./dist/mq-appointment-checkout.js"
81
+ },
82
+ "./mq-immediate-videocall-checkout": {
83
+ "types": "./dist/mq-immediate-videocall-checkout.d.ts",
84
+ "default": "./dist/mq-immediate-videocall-checkout.js"
85
+ },
86
+ "./mq-schedule": {
87
+ "types": "./dist/mq-schedule.d.ts",
88
+ "default": "./dist/mq-schedule.js"
89
+ },
90
+ "./mq-videocall": {
91
+ "types": "./dist/mq-videocall.d.ts",
92
+ "default": "./dist/mq-videocall.js"
93
+ },
94
+ "./mq-support-chat": {
95
+ "types": "./dist/mq-support-chat.d.ts",
96
+ "default": "./dist/mq-support-chat.js"
97
+ },
98
+ "./mq-schedule-success": {
99
+ "types": "./dist/mq-schedule-success.d.ts",
100
+ "default": "./dist/mq-schedule-success.js"
101
+ },
102
+ "./i18n": {
103
+ "types": "./dist/i18n.d.ts",
104
+ "default": "./dist/i18n.js"
105
+ },
106
+ "./env": {
107
+ "types": "./dist/env.d.ts",
108
+ "default": "./dist/env.js"
109
+ },
110
+ "./ui/*": {
111
+ "types": "./dist/ui/*.d.ts",
112
+ "default": "./dist/ui/*.js"
113
+ }
114
+ },
115
+ "scripts": {
116
+ "dev": "rollup -c rollup.config.js --watch",
117
+ "build": "rm -rf dist && cross-env MODE=production NODE_OPTIONS=--max-old-space-size=4096 rollup -c rollup.config.js",
118
+ "build:rc": "cross-env DEFAULT_ENV=development npm run build",
119
+ "build:watch": "rollup -c rollup.config.js --watch",
120
+ "commit-version": "node scripts/commit-version.js",
121
+ "check": "tsc --noEmit && npm run lit-analyze",
122
+ "check-types": "tsc --noEmit",
123
+ "lit-analyze": "lit-analyzer ./src --maxWarnings 0",
124
+ "test": "vitest run --passWithNoTests",
125
+ "test:arch": "vitest run --config vitest.arch.config.ts",
126
+ "health": "tsx ../../scripts/health.ts",
127
+ "test:watch": "vitest",
128
+ "lint": "eslint src --ext .ts --max-warnings 0 && npm run lit-analyze",
129
+ "locale:extract": "lit-localize extract",
130
+ "locale:build": "lit-localize build"
131
+ },
132
+ "dependencies": {
133
+ "@lit/context": "^1.1.5",
134
+ "@lit/localize": "^0.12.2",
135
+ "@lit/task": "^1.0.3",
136
+ "@opentok/client": "^2.30.3",
137
+ "@tanstack/lit-form": "^1.23.4",
138
+ "@tanstack/query-core": "^5.87.4",
139
+ "axios": "^1.10.0",
140
+ "date-fns": "^4.1.0",
141
+ "jwt-decode": "^4.0.0",
142
+ "lit": "^3.3.0",
143
+ "socket.io-client": "^2.2.0",
144
+ "zod": "^3.25.76"
145
+ },
146
+ "devDependencies": {
147
+ "@lit/localize-tools": "^0.8.0",
148
+ "@mediquo/core": "*",
149
+ "@mediquo/eslint-config": "*",
150
+ "@mediquo/telemetry": "*",
151
+ "@rollup/plugin-alias": "^6.0.0",
152
+ "@rollup/plugin-commonjs": "^28.0.6",
153
+ "@rollup/plugin-json": "^6.1.0",
154
+ "@rollup/plugin-node-resolve": "^16.0.1",
155
+ "@rollup/plugin-replace": "^6.0.2",
156
+ "@rollup/plugin-terser": "^0.4.4",
157
+ "@rollup/plugin-typescript": "^12.1.4",
158
+ "@types/socket.io-client": "^1.4.35",
159
+ "cross-env": "^7.0.3",
160
+ "eslint": "^9.30.0",
161
+ "eslint-plugin-lit": "^1.15.0",
162
+ "eslint-plugin-lit-a11y": "^4.1.4",
163
+ "jsdom": "^26.0.0",
164
+ "lit-analyzer": "^2.0.3",
165
+ "rollup": "^4.0.0",
166
+ "rollup-plugin-dts": "^6.1.0",
167
+ "rollup-plugin-minify-html-literals": "^1.2.6",
168
+ "rollup-plugin-summary": "^3.0.1",
169
+ "ts-lit-plugin": "^2.0.2",
170
+ "typescript": "^5.8.3",
171
+ "vitest": "^3.0.5"
172
+ },
173
+ "publishConfig": {
174
+ "access": "public"
175
+ }
176
+ }