@factorialco/f0-react 6.90.1 → 6.91.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.
@@ -32,7 +32,6 @@ import { DateCellValue } from './types/date';
32
32
  import { DateCellValue as DateCellValue_2 } from './experimental';
33
33
  import { DateFilterOptions } from './DateFilter/DateFilter';
34
34
  import { default as default_2 } from 'react';
35
- import { default as default_3 } from 'maplibre-gl';
36
35
  import { DeltaCellValue } from './types/delta';
37
36
  import { Dispatch } from 'react';
38
37
  import { DotTagCellValue } from './types/dotTag';
@@ -100,7 +99,6 @@ import { ScrollAreaProps } from '@radix-ui/react-scroll-area';
100
99
  import { SearchFilterOptions } from './SearchFilter/SearchFilter';
101
100
  import { StatusCellValue } from './types/status';
102
101
  import { StatusCellValue as StatusCellValue_2 } from './experimental';
103
- import { StyleSpecification } from 'maplibre-gl';
104
102
  import { SummaryCellValue } from './types/summary';
105
103
  import { SVGProps } from 'react';
106
104
  import { TagAlertProps } from './experimental';
@@ -8616,8 +8614,13 @@ export declare interface F0MapControlsProps extends WithDataTestIdProps {
8616
8614
 
8617
8615
  /** Imperative handle exposed via `ref`. */
8618
8616
  export declare interface F0MapHandle {
8619
- /** The raw MapLibre instance (escape hatch). `null` until the map has mounted. */
8620
- getMap: () => default_3.Map | null;
8617
+ /**
8618
+ * The rendering engine's own map object, as an escape hatch. Typed `unknown`
8619
+ * on purpose: what comes back depends on the provider, so narrowing it is a
8620
+ * deliberate decision at the call site instead of an implicit dependency on
8621
+ * whichever engine F0Map happens to use. `null` until the map has mounted.
8622
+ */
8623
+ getNativeMap: () => unknown;
8621
8624
  /** Center on a marker (and select it). Always animates unless reduced-motion. */
8622
8625
  focusMarker: (id: string) => void;
8623
8626
  /** Frame all markers in view. */
@@ -8772,7 +8775,7 @@ export declare interface F0MapProps extends WithDataTestIdProps {
8772
8775
  /** Initial camera. Defaults to a city-level view. Read once on mount. */
8773
8776
  initialViewport?: F0MapViewport;
8774
8777
  /** Light/dark style pair. Defaults to the f0-themed OpenFreeMap styles. */
8775
- mapStyle?: F0MapStylePair;
8778
+ mapStyle?: F0MapStyle;
8776
8779
  /**
8777
8780
  * Allow pan/zoom. Defaults to `true`. Read on mount: changing it recreates
8778
8781
  * the map (and resets the camera), so treat it as static.
@@ -8827,6 +8830,13 @@ export declare interface F0MapProps extends WithDataTestIdProps {
8827
8830
  className?: string;
8828
8831
  }
8829
8832
 
8833
+ /**
8834
+ * Which rendering engine a style is written for. The tag exists so a style
8835
+ * built for one engine can never be handed to another: the shapes are not
8836
+ * interchangeable, and without it the mismatch would only surface at runtime.
8837
+ */
8838
+ export declare type F0MapProvider = "maplibre";
8839
+
8830
8840
  /**
8831
8841
  * A route: a polyline drawn through the given coordinates exactly as provided.
8832
8842
  * `F0Map` renders the path; it does not compute routing - fetch that
@@ -8852,12 +8862,15 @@ export declare interface F0MapSkeletonProps extends WithDataTestIdProps {
8852
8862
  }
8853
8863
 
8854
8864
  /**
8855
- * A light/dark pair of MapLibre styles. Each entry is either a hosted style
8856
- * URL or an inline `StyleSpecification`.
8865
+ * A light/dark style pair for one engine. `light` and `dark` are deliberately
8866
+ * opaque - their real shape belongs to the engine (a MapLibre
8867
+ * `StyleSpecification` or a style URL today), and F0Map's public surface must
8868
+ * never make a consumer import an engine's types to describe a style.
8857
8869
  */
8858
- export declare interface F0MapStylePair {
8859
- light: string | StyleSpecification;
8860
- dark: string | StyleSpecification;
8870
+ export declare interface F0MapStyle {
8871
+ provider: F0MapProvider;
8872
+ light: unknown;
8873
+ dark: unknown;
8861
8874
  }
8862
8875
 
8863
8876
  /**
@@ -8868,7 +8881,7 @@ export declare interface F0MapStylePair {
8868
8881
  * resolved to concrete hex for the light and dark neutral ramps. Regenerate with
8869
8882
  * `node src/patterns/F0Map/styles/buildStyles.mjs`.
8870
8883
  */
8871
- export declare const f0MapStyles: F0MapStylePair;
8884
+ export declare const f0MapStyles: F0MapStyle;
8872
8885
 
8873
8886
  /** Initial camera position for the map. */
8874
8887
  export declare interface F0MapViewport {
@@ -1,4 +1,4 @@
1
- import { v as s, t, A as i, a as o, J as r, av as n, au as l, aw as d, B as S, w as C, y as g, L as m, aC as u, aD as c, aM as b, x as h, C as P, aB as T, aN as p, D as F, z as I, a3 as E, b7 as A, be as B, K as L, b6 as y, E as D, b as k, i as W, ak as _, al as v, ai as O, G as f, ar as R, F as x, j as H, n as M, o as N, k as V, c as w, q as G, r as z, H as U, aQ as j, aR as q, aF as K, aq as Q, aV as X, b4 as J, ax as Y, a6 as Z, aP as $, U as aa, ac as ea, O as sa, bi as ta, V as ia, P as oa, M as ra, N as na, ay as la, R as da, b2 as Sa, b8 as Ca, S as ga, a7 as ma, a8 as ua, _ as ca, $ as ba, a0 as ha, Z as Pa, a1 as Ta, W as pa, a2 as Fa, a4 as Ia, a5 as Ea, a9 as Aa, aa as Ba, bc as La, bb as ya, at as Da, as as ka, aA as Wa, aO as _a, aL as va, az as Oa, ab as fa, aG as Ra, bd as xa, bg as Ha, aE as Ma, aJ as Na, aH as Va, bh as wa, aK as Ga, aI as za, bf as Ua, d as ja, af as qa, ah as Ka, ba as Qa, b9 as Xa, ag as Ja, an as Ya, f as Za, l as $a, p as ae, g as ee, h as se, aY as te, aW as ie, ao as oe, ap as re, aU as ne, b5 as le, aX as de, e as Se, s as Ce, b0 as ge, aT as me, aZ as ue, ad as ce, b3 as be, u as he, aj as Pe, ae as Te, am as pe, aS as Fe, T as Ie, Q as Ee, I as Ae, Y as Be, X as Le, b1 as ye, a$ as De, a_ as ke } from "./experimental-pTgiu7wP.js";
1
+ import { v as s, t, A as i, a as o, J as r, av as n, au as l, aw as d, B as S, w as C, y as g, L as m, aC as u, aD as c, aM as b, x as h, C as P, aB as T, aN as p, D as F, z as I, a3 as E, b7 as A, be as B, K as L, b6 as y, E as D, b as k, i as W, ak as _, al as v, ai as O, G as f, ar as R, F as x, j as H, n as M, o as N, k as V, c as w, q as G, r as z, H as U, aQ as j, aR as q, aF as K, aq as Q, aV as X, b4 as J, ax as Y, a6 as Z, aP as $, U as aa, ac as ea, O as sa, bi as ta, V as ia, P as oa, M as ra, N as na, ay as la, R as da, b2 as Sa, b8 as Ca, S as ga, a7 as ma, a8 as ua, _ as ca, $ as ba, a0 as ha, Z as Pa, a1 as Ta, W as pa, a2 as Fa, a4 as Ia, a5 as Ea, a9 as Aa, aa as Ba, bc as La, bb as ya, at as Da, as as ka, aA as Wa, aO as _a, aL as va, az as Oa, ab as fa, aG as Ra, bd as xa, bg as Ha, aE as Ma, aJ as Na, aH as Va, bh as wa, aK as Ga, aI as za, bf as Ua, d as ja, af as qa, ah as Ka, ba as Qa, b9 as Xa, ag as Ja, an as Ya, f as Za, l as $a, p as ae, g as ee, h as se, aY as te, aW as ie, ao as oe, ap as re, aU as ne, b5 as le, aX as de, e as Se, s as Ce, b0 as ge, aT as me, aZ as ue, ad as ce, b3 as be, u as he, aj as Pe, ae as Te, am as pe, aS as Fe, T as Ie, Q as Ee, I as Ae, Y as Be, X as Le, b1 as ye, a$ as De, a_ as ke } from "./experimental-BF1e4ho5.js";
2
2
  import { dQ as _e, eq as ve, ep as Oe, eD as fe, dn as Re, en as xe, cf as He, c5 as Me, cc as Ne, ei as Ve, b_ as we, b_ as Ge, bT as ze, ej as Ue, ci as je, e4 as qe, ck as Ke, eG as Qe, eo as Xe, ez as Je, eA as Ye, d7 as Ze, eE as $e, k as as, dR as es, cO as ss, em as ts, es as is, er as os, T as rs, h as ns, bU as ls, eB as ds, eH as Ss, eC as Cs, eF as gs, ey as ms, ev as us, ex as cs, et as bs, ek as hs, el as Ps, ee as Ts, ew as ps, eu as Fs } from "./F0CanvasPanel-BYk37H3S.js";
3
3
  import { ay as Es, az as As, a6 as Bs, a7 as Ls, a4 as ys, ah as Ds, C as ks, a8 as Ws, aK as _s, ad as vs, aJ as Os, ag as fs, a5 as Rs, aw as xs, aM as Hs, aL as Ms, ao as Ns, ai as Vs, ar as ws, aP as Gs, a3 as zs, at as Us, aq as js, al as qs, aR as Ks, am as Qs, au as Xs, av as Js, a9 as Ys, aN as Zs, aO as $s, an as at, ax as et, aG as st, O as tt, aI as it, aa as ot, aT as rt, ac as nt, ae as lt, ar as dt, aQ as St, as as Ct, ap as gt, aS as mt, ab as ut, W as ct, af as bt, a2 as ht, a0 as Pt, a1 as Tt, aC as pt, aD as Ft, aA as It, aH as Et, ak as At, aj as Bt, aE as Lt, m as yt, aB as Dt, aF as kt, D as Wt } from "./CoachmarkProvider-BihrzJrI.js";
4
4
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "6.90.1",
3
+ "version": "6.91.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/factorialco/f0.git",
@@ -100,7 +100,7 @@
100
100
  "prosemirror-view": "^1.38.1",
101
101
  "react-phone-number-input": "^3.4.17",
102
102
  "react-remove-scroll": "^2.7.1",
103
- "react-virtuoso": "^4.18.13",
103
+ "react-virtuoso": "^4.18.10",
104
104
  "rehype-stringify": "^10.0.1",
105
105
  "remark-gfm": "^4.0.1",
106
106
  "remark-parse": "^11.0.0",