@alfadocs/ui-kit 1.92.0 → 1.93.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "packageVersion": "1.92.0",
3
+ "packageVersion": "1.93.0",
4
4
  "components": [
5
5
  {
6
6
  "kind": "component",
@@ -1,3 +1,3 @@
1
1
  export { MapView } from './map-view';
2
- export type { MapViewProps, MapViewHandle, MapMarker, MapLatLng, MapFitPoint, } from './map-view';
2
+ export type { MapViewProps, MapViewHandle, MapMarker, MapLatLng, MapFitPoint, MapBounds, MapBoundsChangeDetails, } from './map-view';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- import { M as o } from "../../_chunks/map-view-UrNgxBy3.js";
1
+ import { M as o } from "../../_chunks/map-view--c9bJDRw.js";
2
2
  export {
3
3
  o as MapView
4
4
  };
@@ -4,6 +4,16 @@ export interface MapLatLng {
4
4
  lat: number;
5
5
  lng: number;
6
6
  }
7
+ export interface MapBounds {
8
+ north: number;
9
+ south: number;
10
+ east: number;
11
+ west: number;
12
+ }
13
+ export interface MapBoundsChangeDetails {
14
+ /** False for initial load, resizing, fitting and imperative camera moves. */
15
+ userInteraction: boolean;
16
+ }
7
17
  /**
8
18
  * A point to fit the camera to. `id` is its identity (a result id): it
9
19
  * decides whether a new set only added points to the old one. Without
@@ -69,6 +79,13 @@ export interface MapViewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onCl
69
79
  selectedMarkerId?: string | null;
70
80
  /** Fires when a marker is clicked, or `null` when the map background is clicked. */
71
81
  onMarkerClick?: (id: string | null) => void;
82
+ /**
83
+ * The visible viewport once the map settles, including its first bounds.
84
+ * Fires only when bounds change. `userInteraction` is true after patient
85
+ * input that pans or zooms, never for a kit-initiated camera move.
86
+ * Silent until the consented map has loaded.
87
+ */
88
+ onBoundsChange?: (bounds: MapBounds, details: MapBoundsChangeDetails) => void;
72
89
  /**
73
90
  * GDPR consent gate. When `false` (default) the component renders a
74
91
  * placeholder with a translated CTA — the Maps JS API is **not**
@@ -1,4 +1,4 @@
1
- import { P as t, p as a } from "../../_chunks/practice-results-Bls-mygM.js";
1
+ import { P as t, p as a } from "../../_chunks/practice-results-BWX9y6mS.js";
2
2
  export {
3
3
  t as PracticeResults,
4
4
  a as practiceResultsAgent
@@ -209,7 +209,7 @@ export interface PracticeResultsProps extends Omit<ComponentPropsWithoutRef<'div
209
209
  * Default 13.
210
210
  */
211
211
  defaultZoom?: number;
212
- /** Fires when patient pans/zooms (split + map-first only). */
212
+ /** Actual settled viewport, including initial load and refits (split + map-first only). */
213
213
  onBoundsChange?: (bounds: PracticeResultsBounds) => void;
214
214
  /**
215
215
  * GDPR consent gate, forwarded to the embedded MapView. When `false`
package/dist/index.js CHANGED
@@ -108,7 +108,7 @@ import { K as jt, k as Qt } from "./_chunks/kbd-Bx7eQv9f.js";
108
108
  import { K as Jt, a as $t } from "./_chunks/key-value-pair-BoXOtBL1.js";
109
109
  import { L as en, l as sn } from "./_chunks/list-CNnn7DOD.js";
110
110
  import { L as on } from "./_chunks/logo-hIsyVE96.js";
111
- import { M as nn } from "./_chunks/map-view-UrNgxBy3.js";
111
+ import { M as nn } from "./_chunks/map-view--c9bJDRw.js";
112
112
  import { R as mn } from "./_chunks/rating-CGYpg5dj.js";
113
113
  import { C as dn, S as An } from "./_chunks/skeleton-tTWJpvAq.js";
114
114
  import { S as cn } from "./_chunks/smart-date-pYK6WmM_.js";
@@ -236,7 +236,7 @@ import { P as NS, a as DS, p as OS } from "./_chunks/periodontal-chart-card-Bx6P
236
236
  import { D as LS, P as hS, a as MS, b as yS, c as kS, S as BS, e as vS, i as GS, p as HS } from "./_chunks/periodontal-diagnosis-DD3hrg9X.js";
237
237
  import { P as wS, a as US, c as VS, p as KS, r as YS } from "./_chunks/periodontal-risk-chart-B7S9OmPC.js";
238
238
  import { C as qS, a as zS, b as jS, c as QS } from "./_chunks/contact-profile-card-CX45mZA3.js";
239
- import { P as JS, p as $S } from "./_chunks/practice-results-Bls-mygM.js";
239
+ import { P as JS, p as $S } from "./_chunks/practice-results-BWX9y6mS.js";
240
240
  import { P as eg, a as sg, p as rg, b as og } from "./_chunks/payment-request-card-BfGauFY0.js";
241
241
  import { P as ng, f as ig, p as pg, a as mg, s as lg, b as dg, c as Ag } from "./_chunks/payment-form-PBuh8PIa.js";
242
242
  import { P as cg, p as Sg } from "./_chunks/pdf-viewer-gAsNUsA8.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfadocs/ui-kit",
3
- "version": "1.92.0",
3
+ "version": "1.93.0",
4
4
  "type": "module",
5
5
  "description": "AlfaDocs shared design system — tokens, components, patterns, and translations for platform, booking, and alfascribe.",
6
6
  "license": "BUSL-1.1",