@factorialco/f0-react 6.32.0 → 6.32.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.
@@ -1,7 +1,7 @@
1
1
  import { jsxs as i, jsx as l } from "react/jsx-runtime";
2
2
  import { useState as u, useCallback as m, useMemo as p } from "react";
3
- import { u as x, i as w, j as k, k as S, l as C } from "./F0CanvasPanel-6Nu0hiVV.js";
4
- import { n as g, a as h, f as v, T as r, d as F } from "./index-CC7gjlOa.js";
3
+ import { u as x, i as w, j as k, k as S, l as C } from "./F0CanvasPanel-JhPwGlIf.js";
4
+ import { n as g, a as h, f as v, T as r, d as F } from "./index-D2USuXqR.js";
5
5
  const D = () => {
6
6
  const [t, a] = u(1), n = m(
7
7
  () => a((e) => g(e) ?? e),
@@ -1,8 +1,8 @@
1
1
  import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
2
  import { useRef as g, useState as h, useEffect as b } from "react";
3
3
  import { r as p } from "./docx-preview-BaRDMyPN.js";
4
- import { u as v, S as w } from "./F0CanvasPanel-6Nu0hiVV.js";
5
- import { u as x, D as y } from "./DocumentToolbar-BjkLYPbW.js";
4
+ import { u as v, S as w } from "./F0CanvasPanel-JhPwGlIf.js";
5
+ import { u as x, D as y } from "./DocumentToolbar-B_sPTTQb.js";
6
6
  const V = ({
7
7
  url: o,
8
8
  filename: d,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as i, jsx as t, Fragment as R1 } from "react/jsx-runtime";
2
2
  import { useInsertionEffect as Fr, forwardRef as p, useRef as $, useEffect as W, useLayoutEffect as ee, useState as I, useId as O1, useCallback as _, useMemo as Y, createContext as U1, useContext as B1, createElement as Nr, memo as Sr } from "react";
3
- import { X as Vr, Y as Tr, Z as Hr, _ as rt, $ as Ar, a0 as Er, a1 as $r, a2 as Br, a3 as Ir, a4 as Pr, a5 as ot, a6 as Dr, a7 as jr, a8 as te, a9 as _r, aa as Zr, ab as Or, ac as Ur, ad as zr, ae as Gr, af as Wr, ag as qr, y as nt, ah as Xr, ai as Yr, o as re, aj as st, ak as z1, n as at, al as Kr, am as Qr, an as Jr, ao as eo, ap as to, aq as F1, ar as ro, as as it, at as oo, au as no, l as y1, av as so, aw as ao, ax as lt, ay as io, az as lo, aA as co, aB as uo, aC as fo, aD as ho, aE as ct, aF as Co, aG as po, aH as mo, aI as go, aJ as wo, aK as vo, aL as Lo, aM as xo, aN as bo, aO as ko, aP as yo, aQ as Mo, E as Ro, aR as Fo, aS as No, aT as So, aU as Vo, aV as To, aW as Ho, aX as Ao, aY as Eo, aZ as $o, a_ as Bo, a$ as Io, b0 as Po, b1 as Do, b2 as jo, b3 as _o, b4 as Zo, b5 as Oo, b6 as Uo, U as dt, b7 as zo, b8 as Go, b9 as Wo, ba as ut, R as ft, bb as qo, i as Xo, bc as Yo, bd as Ko, be as Qo, bf as Jo, bg as en, bh as ht, bi as tn, bj as rn, bk as on, bl as nn, bm as sn, bn as an, j as ln, bo as Ct, bp as pt, bq as cn, br as mt, bs as dn, bt as oe, q as un, bu as ne, bv as fn, bw as hn, bx as se, O as Cn, Q as pn, by as gt, bz as mn, bA as gn, bB as wn, bC as vn, bD as Ln, bE as xn, bF as bn, bG as kn, bH as yn, bI as Mn, bJ as wt, bK as Rn, bL as Fn, bM as Nn, bN as Sn, u as z, bO as o1, bP as Vn, S as u1, bQ as vt, V as n1, bR as Tn, m as m1, bS as Hn, bT as s1, bU as C1, bV as M1, bW as K, bX as Lt, t as ae, bY as An, x as ie, b as x1, bZ as En, b_ as $n, b$ as Bn, d as xt, c0 as In, c1 as Pn, c2 as le, c3 as Dn, c4 as jn, c5 as _n, c6 as ke, c7 as Zn, c8 as bt, c9 as kt, ca as On, cb as Un, cc as zn, cd as Gn, ce as Wn, cf as yt, cg as qn, ch as Xn, ci as Yn, cj as $1, ck as Mt, cl as Rt, cm as Ft, c as K1, cn as ye, co as Nt, cp as Kn, cq as Qn, cr as I1, cs as Jn, ct as es, cu as ts, cv as ce, cw as rs, cx as os, cy as ns, cz as ss, cA as as, cB as is, w as ls, s as cs, cC as X1, v as St, cD as ds, cE as us, cF as Me, cG as Vt, cH as Tt, cI as fs, cJ as hs, cK as Cs, cL as ps, cM as ms, cN as gs } from "./F0CanvasPanel-6Nu0hiVV.js";
3
+ import { X as Vr, Y as Tr, Z as Hr, _ as rt, $ as Ar, a0 as Er, a1 as $r, a2 as Br, a3 as Ir, a4 as Pr, a5 as ot, a6 as Dr, a7 as jr, a8 as te, a9 as _r, aa as Zr, ab as Or, ac as Ur, ad as zr, ae as Gr, af as Wr, ag as qr, y as nt, ah as Xr, ai as Yr, o as re, aj as st, ak as z1, n as at, al as Kr, am as Qr, an as Jr, ao as eo, ap as to, aq as F1, ar as ro, as as it, at as oo, au as no, l as y1, av as so, aw as ao, ax as lt, ay as io, az as lo, aA as co, aB as uo, aC as fo, aD as ho, aE as ct, aF as Co, aG as po, aH as mo, aI as go, aJ as wo, aK as vo, aL as Lo, aM as xo, aN as bo, aO as ko, aP as yo, aQ as Mo, E as Ro, aR as Fo, aS as No, aT as So, aU as Vo, aV as To, aW as Ho, aX as Ao, aY as Eo, aZ as $o, a_ as Bo, a$ as Io, b0 as Po, b1 as Do, b2 as jo, b3 as _o, b4 as Zo, b5 as Oo, b6 as Uo, U as dt, b7 as zo, b8 as Go, b9 as Wo, ba as ut, R as ft, bb as qo, i as Xo, bc as Yo, bd as Ko, be as Qo, bf as Jo, bg as en, bh as ht, bi as tn, bj as rn, bk as on, bl as nn, bm as sn, bn as an, j as ln, bo as Ct, bp as pt, bq as cn, br as mt, bs as dn, bt as oe, q as un, bu as ne, bv as fn, bw as hn, bx as se, O as Cn, Q as pn, by as gt, bz as mn, bA as gn, bB as wn, bC as vn, bD as Ln, bE as xn, bF as bn, bG as kn, bH as yn, bI as Mn, bJ as wt, bK as Rn, bL as Fn, bM as Nn, bN as Sn, u as z, bO as o1, bP as Vn, S as u1, bQ as vt, V as n1, bR as Tn, m as m1, bS as Hn, bT as s1, bU as C1, bV as M1, bW as K, bX as Lt, t as ae, bY as An, x as ie, b as x1, bZ as En, b_ as $n, b$ as Bn, d as xt, c0 as In, c1 as Pn, c2 as le, c3 as Dn, c4 as jn, c5 as _n, c6 as ke, c7 as Zn, c8 as bt, c9 as kt, ca as On, cb as Un, cc as zn, cd as Gn, ce as Wn, cf as yt, cg as qn, ch as Xn, ci as Yn, cj as $1, ck as Mt, cl as Rt, cm as Ft, c as K1, cn as ye, co as Nt, cp as Kn, cq as Qn, cr as I1, cs as Jn, ct as es, cu as ts, cv as ce, cw as rs, cx as os, cy as ns, cz as ss, cA as as, cB as is, w as ls, s as cs, cC as X1, v as St, cD as ds, cE as us, cF as Me, cG as Vt, cH as Tt, cI as fs, cJ as hs, cK as Cs, cL as ps, cM as ms, cN as gs } from "./F0CanvasPanel-JhPwGlIf.js";
4
4
  import { f as f1, d as x, u as ws } from "./tooltip-DTpaXpXW.js";
5
5
  import { createPortal as Ht } from "react-dom";
6
6
  import { defaultTranslations as vs } from "./i18n-provider-defaults.js";
@@ -137229,7 +137229,7 @@ export {
137229
137229
  W23 as gy,
137230
137230
  j23 as gz,
137231
137231
  W42 as h,
137232
- y22 as h$,
137232
+ aI as h$,
137233
137233
  As2 as h0,
137234
137234
  zI as h1,
137235
137235
  RY1 as h2,
@@ -137240,117 +137240,118 @@ export {
137240
137240
  EY1 as h7,
137241
137241
  xY1 as h8,
137242
137242
  G43 as h9,
137243
- g33 as hA,
137244
- g42 as hB,
137245
- y$ as hC,
137246
- U63 as hD,
137247
- z63 as hE,
137248
- q63 as hF,
137249
- G63 as hG,
137250
- f$1 as hH,
137251
- h$1 as hI,
137252
- m$1 as hJ,
137253
- BY as hK,
137254
- ZQ1 as hL,
137255
- C$1 as hM,
137256
- It3 as hN,
137257
- ux as hO,
137258
- NI as hP,
137259
- ty as hQ,
137260
- TX1 as hR,
137261
- r63 as hS,
137262
- ov2 as hT,
137263
- Qg2 as hU,
137264
- Rt3 as hV,
137265
- DK as hW,
137266
- p5 as hX,
137267
- X3 as hY,
137268
- C63 as hZ,
137269
- aI as h_,
137270
- oN as ha,
137271
- kk1 as hb,
137272
- ei as hc,
137273
- zn as hd,
137274
- Jb2 as he,
137275
- zL as hf,
137276
- Zq1 as hg,
137277
- uY1 as hh,
137278
- w0 as hi,
137279
- mJ1 as hj,
137280
- OQ1 as hk,
137281
- hJ1 as hl,
137282
- c$ as hm,
137283
- S32 as hn,
137284
- Gj as ho,
137285
- x3 as hp,
137286
- C$ as hq,
137287
- H13 as hr,
137288
- Zj as hs,
137289
- C23 as ht,
137290
- C33 as hu,
137291
- h33 as hv,
137292
- a42 as hw,
137293
- p33 as hx,
137294
- JU as hy,
137295
- tX as hz,
137243
+ tX as hA,
137244
+ g33 as hB,
137245
+ g42 as hC,
137246
+ y$ as hD,
137247
+ U63 as hE,
137248
+ z63 as hF,
137249
+ q63 as hG,
137250
+ G63 as hH,
137251
+ f$1 as hI,
137252
+ h$1 as hJ,
137253
+ m$1 as hK,
137254
+ BY as hL,
137255
+ ZQ1 as hM,
137256
+ C$1 as hN,
137257
+ It3 as hO,
137258
+ ux as hP,
137259
+ NI as hQ,
137260
+ ty as hR,
137261
+ TX1 as hS,
137262
+ r63 as hT,
137263
+ ov2 as hU,
137264
+ Qg2 as hV,
137265
+ Rt3 as hW,
137266
+ DK as hX,
137267
+ p5 as hY,
137268
+ X3 as hZ,
137269
+ C63 as h_,
137270
+ ox as ha,
137271
+ oN as hb,
137272
+ kk1 as hc,
137273
+ ei as hd,
137274
+ zn as he,
137275
+ Jb2 as hf,
137276
+ zL as hg,
137277
+ Zq1 as hh,
137278
+ uY1 as hi,
137279
+ w0 as hj,
137280
+ mJ1 as hk,
137281
+ OQ1 as hl,
137282
+ hJ1 as hm,
137283
+ c$ as hn,
137284
+ S32 as ho,
137285
+ Gj as hp,
137286
+ x3 as hq,
137287
+ C$ as hr,
137288
+ H13 as hs,
137289
+ Zj as ht,
137290
+ C23 as hu,
137291
+ C33 as hv,
137292
+ h33 as hw,
137293
+ a42 as hx,
137294
+ p33 as hy,
137295
+ JU as hz,
137296
137296
  qp2 as i,
137297
- IW1 as i0,
137298
- h63 as i1,
137299
- jW1 as i2,
137300
- zW1 as i3,
137301
- iI as i4,
137302
- BL as i5,
137303
- sx as i6,
137304
- lx as i7,
137305
- oI as i8,
137306
- F22 as i9,
137307
- w63 as iA,
137308
- TI as iB,
137309
- l32 as iC,
137310
- $J1 as iD,
137311
- E63 as iE,
137312
- Y63 as iF,
137313
- a73 as iG,
137314
- r73 as iH,
137315
- UW1 as iI,
137316
- S12 as iJ,
137317
- H12 as iK,
137318
- P22 as iL,
137319
- KW1 as iM,
137320
- Pi as iN,
137321
- HY1 as iO,
137322
- tw as iP,
137323
- F32 as iQ,
137324
- F63 as iR,
137325
- k63 as iS,
137326
- Zt3 as iT,
137327
- W43 as iU,
137328
- fY1 as iV,
137329
- hY1 as iW,
137330
- Eq as ia,
137331
- ja as ib,
137332
- B6 as ic,
137333
- je2 as id,
137334
- nX as ie,
137335
- W63 as ig,
137336
- Mj as ih,
137337
- K8 as ii,
137338
- qe as ij,
137339
- Y8 as ik,
137340
- Tt as il,
137341
- Wz1 as im,
137342
- u12 as io,
137343
- CJ1 as ip,
137344
- MM as iq,
137345
- B43 as ir,
137346
- t63 as is,
137347
- Nt3 as it,
137348
- j43 as iu,
137349
- Gt3 as iv,
137350
- $63 as iw,
137351
- DW1 as ix,
137352
- M63 as iy,
137353
- L63 as iz,
137297
+ y22 as i0,
137298
+ IW1 as i1,
137299
+ h63 as i2,
137300
+ jW1 as i3,
137301
+ zW1 as i4,
137302
+ iI as i5,
137303
+ BL as i6,
137304
+ sx as i7,
137305
+ lx as i8,
137306
+ oI as i9,
137307
+ L63 as iA,
137308
+ w63 as iB,
137309
+ TI as iC,
137310
+ l32 as iD,
137311
+ $J1 as iE,
137312
+ E63 as iF,
137313
+ Y63 as iG,
137314
+ a73 as iH,
137315
+ r73 as iI,
137316
+ UW1 as iJ,
137317
+ S12 as iK,
137318
+ H12 as iL,
137319
+ P22 as iM,
137320
+ KW1 as iN,
137321
+ Pi as iO,
137322
+ HY1 as iP,
137323
+ tw as iQ,
137324
+ F32 as iR,
137325
+ F63 as iS,
137326
+ k63 as iT,
137327
+ Zt3 as iU,
137328
+ W43 as iV,
137329
+ fY1 as iW,
137330
+ hY1 as iX,
137331
+ F22 as ia,
137332
+ Eq as ib,
137333
+ ja as ic,
137334
+ B6 as id,
137335
+ je2 as ie,
137336
+ nX as ig,
137337
+ W63 as ih,
137338
+ Mj as ii,
137339
+ K8 as ij,
137340
+ qe as ik,
137341
+ Y8 as il,
137342
+ Tt as im,
137343
+ Wz1 as io,
137344
+ u12 as ip,
137345
+ CJ1 as iq,
137346
+ MM as ir,
137347
+ B43 as is,
137348
+ t63 as it,
137349
+ Nt3 as iu,
137350
+ j43 as iv,
137351
+ Gt3 as iw,
137352
+ $63 as ix,
137353
+ DW1 as iy,
137354
+ M63 as iz,
137354
137355
  lg2 as j,
137355
137356
  Cc as k,
137356
137357
  _53 as l,
@@ -1,4 +1,4 @@
1
- import { u as W, t as je, v as Ge, m as $, x as Xe, y as Ze, z as qe, A as Ye, B as Je, E as Qe, G as et, H as tt, J as nt, K as rt, L as at, M as ot, N as ye, O as st, Q as Ce, l as it, R as ct, U as lt, V as dt, w as ut, r as ft } from "./F0CanvasPanel-6Nu0hiVV.js";
1
+ import { u as W, t as je, v as Ge, m as $, x as Xe, y as Ze, z as qe, A as Ye, B as Je, E as Qe, G as et, H as tt, J as nt, K as rt, L as at, M as ot, N as ye, O as st, Q as Ce, l as it, R as ct, U as lt, V as dt, w as ut, r as ft } from "./F0CanvasPanel-JhPwGlIf.js";
2
2
  import { jsxs as R, jsx as l } from "react/jsx-runtime";
3
3
  import { forwardRef as re, useId as mt, useState as x, useRef as O, useEffect as _, useMemo as J, useCallback as M } from "react";
4
4
  import { d as H, f as de } from "./tooltip-DTpaXpXW.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { m } from "./experimental-C-ugcWbe.js";
2
+ import { m } from "./experimental-DwzTxzym.js";
3
3
  import { useRef as l, useEffect as i, useState as b } from "react";
4
4
  const k = "https://tiles.openfreemap.org/styles/positron", y = "https://tiles.openfreemap.org/styles/dark", R = 15, d = (n) => {
5
5
  const [c, s] = b(!1);
@@ -1,8 +1,8 @@
1
1
  import { jsxs as a, jsx as r, Fragment as N } from "react/jsx-runtime";
2
2
  import { useState as i, useEffect as k } from "react";
3
- import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-6Nu0hiVV.js";
3
+ import { u as v, T as S, h as V, S as R } from "./F0CanvasPanel-JhPwGlIf.js";
4
4
  import { f as z, c as E } from "./sheetPreview-5qeAOp0W.js";
5
- import { u as _, D as j } from "./DocumentToolbar-BjkLYPbW.js";
5
+ import { u as _, D as j } from "./DocumentToolbar-B_sPTTQb.js";
6
6
  const g = 1e3, F = 100, G = ({
7
7
  url: n,
8
8
  filename: y,
@@ -1,7 +1,7 @@
1
1
  import { jsxs as b, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as _, useEffect as h } from "react";
3
- import { u as x, S as p, p as w } from "./F0CanvasPanel-6Nu0hiVV.js";
4
- import { u as y, D as g } from "./DocumentToolbar-BjkLYPbW.js";
3
+ import { u as x, S as p, p as w } from "./F0CanvasPanel-JhPwGlIf.js";
4
+ import { u as y, D as g } from "./DocumentToolbar-B_sPTTQb.js";
5
5
  const k = 2 * 1024 * 1024, v = [
6
6
  "[&_h1]:mb-3 [&_h1]:mt-6 [&_h1]:text-2xl [&_h1]:font-semibold",
7
7
  "[&_h2]:mb-2 [&_h2]:mt-5 [&_h2]:text-xl [&_h2]:font-semibold",
package/dist/ai.js CHANGED
@@ -1,6 +1,6 @@
1
- import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as h } from "./F0CanvasPanel-6Nu0hiVV.js";
1
+ import { C as e, D as r, c as t, F as i, a as o, f as n, g as F, d as C, e as l, I as A, P as d, b as u, u as h } from "./F0CanvasPanel-JhPwGlIf.js";
2
2
  import { defaultTranslations as c } from "./i18n-provider-defaults.js";
3
- import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-iy_nQGoS.js";
3
+ import { A as P, C as T, t as p, s as v, v as g, y as f, l as y, i as S, q as x, z as b, B as k, p as H, r as O, j as V, e as w, g as B, k as M, F as z, T as D, w as L, h as j, a as q, n as E, m as G, o as R, b as J, f as K, x as N, c as Q, d as U, u as W } from "./F0AiProcessingOverlay-IOP5J77x.js";
4
4
  export {
5
5
  P as AiChatTranslationsProvider,
6
6
  e as ChatSpinner,
@@ -61,6 +61,14 @@ export declare interface ComponentEntry {
61
61
  storyFile: string;
62
62
  }
63
63
 
64
+ /**
65
+ * The component's code name — the leaf of its folder, given its story file
66
+ * path (a story in `__stories__/` maps to the parent folder). Story titles
67
+ * legitimately drop the F0 prefix ("Checkbox" ↔ `F0Checkbox/`), so naming is
68
+ * checked against the folder, which matches the exported symbol.
69
+ */
70
+ export declare function componentFolderName(storyFile: string): string;
71
+
64
72
  /**
65
73
  * The maturity status badge, sized to sit inline next to a component title. On
66
74
  * hover/focus it reveals the full maturity summary and Definition-of-Done
@@ -168,6 +176,9 @@ export declare interface DocSignals {
168
176
  */
169
177
  export declare function evaluateComponentStatus(entry: ComponentEntry): ComponentStatus;
170
178
 
179
+ /** Component naming convention: "F0" followed by an uppercase letter. */
180
+ export declare const F0_NAME_PATTERN: RegExp;
181
+
171
182
  /**
172
183
  * Evaluate every tracked component.
173
184
  *