@factorialco/f0-react 2.39.0 → 2.39.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.
@@ -2,8 +2,8 @@ import { g as da, B as ua, h as fa, i as ma, j as At, k as De, l as ha, m as p,
2
2
  import { bQ as Lc, bP as Ec, c0 as _c, bM as Oc, bN as Dc, bF as Tc, bG as zc, bH as Pc, c1 as Bc, bO as Rc, bY as $c, bZ as Wc, bI as Mc, bS as jc, bR as Vc, bJ as Gc, bK as Hc, b_ as Uc, c2 as Kc, b$ as qc, bX as Yc, bU as Zc, bW as Xc, bT as Jc, bL as Qc, bV as ed } from "./F0CanvasPanel-C_tqaABp.js";
3
3
  import { jsx as e, jsxs as o, Fragment as U } from "react/jsx-runtime";
4
4
  import se, { forwardRef as j, useRef as G, useTransition as Hr, useState as _, useLayoutEffect as Fn, useId as ot, useContext as Ke, createContext as Nt, useEffect as $, useCallback as Q, useMemo as q, Fragment as Ur, isValidElement as Kr, cloneElement as An, Children as Ln } from "react";
5
- import { C as qr, P as Yr, g as En, c as Zr, a as _n, F as ct, f as Xr, M as Jr, b as Qr, R as Dt, d as On, u as el, e as Dn, S as tl, A as nl, B as al, L as rl, h as ll, V as il, i as sl, j as Tt, k as ol, l as cl, O as dl } from "./useDataCollectionSource-DrGZctSN.js";
6
- import { r as nd, s as ad, p as rd, H as ld, t as id, z as sd, a9 as od, G as cd, q as dd, Q as ud, o as fd, Y as md, U as hd, J as pd, af as bd, K as gd, Z as xd, _ as vd, v as wd, ab as yd, ac as Nd, aa as Cd, ad as kd, N as Sd, $ as Id, a6 as Fd, a8 as Ad, w as Ld, y as Ed, D as _d, W as Od, ae as Dd, X as Td, T as zd, x as Pd, E as Bd, m as Rd, n as $d, a1 as Wd, a2 as Md, a7 as jd, I as Vd, a3 as Gd, a4 as Hd, a0 as Ud, a5 as Kd } from "./useDataCollectionSource-DrGZctSN.js";
5
+ import { C as qr, P as Yr, g as En, c as Zr, a as _n, F as ct, f as Xr, M as Jr, b as Qr, R as Dt, d as On, u as el, e as Dn, S as tl, A as nl, B as al, L as rl, h as ll, V as il, i as sl, j as Tt, k as ol, l as cl, O as dl } from "./useDataCollectionSource-BA6BeGvi.js";
6
+ import { r as nd, s as ad, p as rd, H as ld, t as id, z as sd, a9 as od, G as cd, q as dd, Q as ud, o as fd, Y as md, U as hd, J as pd, af as bd, K as gd, Z as xd, _ as vd, v as wd, ab as yd, ac as Nd, aa as Cd, ad as kd, N as Sd, $ as Id, a6 as Fd, a8 as Ad, w as Ld, y as Ed, D as _d, W as Od, ae as Dd, X as Td, T as zd, x as Pd, E as Bd, m as Rd, n as $d, a1 as Wd, a2 as Md, a7 as jd, I as Vd, a3 as Gd, a4 as Hd, a0 as Ud, a5 as Kd } from "./useDataCollectionSource-BA6BeGvi.js";
7
7
  const ul = da("Search", [
8
8
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
9
9
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
package/dist/f0.js CHANGED
@@ -6,8 +6,8 @@ import He, { forwardRef as Jr, useRef as se, useImperativeHandle as IH, Children
6
6
  import { z as PH, B as OH, U as iT, D as aT, E as $m, G as oT, H as BH, I as Oa, J as nl, K as VH, L as Hw, M as Rr, N as fi, O as FH, P as zH, Q as kk, Z as Ho, R as GH, S as HH, T as WH, V as Rk, W as Xv, X as Ww, Y as Pk, _ as Ok, $ as pn, a0 as UH, a1 as $H, a2 as Bk, a3 as Rg, a4 as YH, a5 as XH, a6 as Vk, a7 as qH, a8 as ZH, a9 as jH, aa as KH, ab as QH, ac as JH, F as eW } from "./useChatHistory-Bubo_nNb.js";
7
7
  import { A as Lye, C as Nye, h as Iye, t as kye, v as Rye, x as Pye, ah as Oye, n as Bye, j as Vye, r as Fye, y as zye, q as Gye, s as Hye, k as Wye, e as Uye, g as $ye, l as Yye, i as Xye, a as qye, p as Zye, ai as jye, af as Kye, ae as Qye, ag as Jye, m as e0e, o as t0e, ad as r0e, b as n0e, f as i0e, w as a0e, c as o0e, d as s0e, u as l0e } from "./useChatHistory-Bubo_nNb.js";
8
8
  import { createPortal as Fk, unstable_batchedUpdates as qd, flushSync as tW } from "react-dom";
9
- import { C as rW, o as nW, G as jb, H as zk, ag as Gk, Q as Hk, ae as iW, U as aW, X as Wk, Y as Uw, ah as $w, a9 as oW, ai as sW, aj as lW, d as Pg, ak as uW, R as Yw, u as Xw, W as Uk, O as qw, al as $k, am as Zw, p as cW, a4 as Yk, $ as Xk, an as fW, ao as dW, ap as hW, aq as vW, ar as pW, M as gW, as as Kb } from "./useDataCollectionSource-DrGZctSN.js";
10
- import { r as c0e, s as f0e, t as d0e, z as h0e, az as v0e, ay as p0e, au as g0e, F as m0e, J as y0e, af as b0e, K as x0e, v as _0e, aA as w0e, ab as S0e, ac as C0e, aa as T0e, ad as D0e, N as A0e, w as M0e, P as E0e, y as L0e, D as N0e, T as I0e, x as k0e, E as R0e, aC as P0e, m as O0e, n as B0e, at as V0e, aB as F0e, a7 as z0e, I as G0e, aD as H0e, aE as W0e, av as U0e, aw as $0e, ax as Y0e, e as X0e, aF as q0e } from "./useDataCollectionSource-DrGZctSN.js";
9
+ import { C as rW, o as nW, G as jb, H as zk, ag as Gk, Q as Hk, ae as iW, U as aW, X as Wk, Y as Uw, ah as $w, a9 as oW, ai as sW, aj as lW, d as Pg, ak as uW, R as Yw, u as Xw, W as Uk, O as qw, al as $k, am as Zw, p as cW, a4 as Yk, $ as Xk, an as fW, ao as dW, ap as hW, aq as vW, ar as pW, M as gW, as as Kb } from "./useDataCollectionSource-BA6BeGvi.js";
10
+ import { r as c0e, s as f0e, t as d0e, z as h0e, az as v0e, ay as p0e, au as g0e, F as m0e, J as y0e, af as b0e, K as x0e, v as _0e, aA as w0e, ab as S0e, ac as C0e, aa as T0e, ad as D0e, N as A0e, w as M0e, P as E0e, y as L0e, D as N0e, T as I0e, x as k0e, E as R0e, aC as P0e, m as O0e, n as B0e, at as V0e, aB as F0e, a7 as z0e, I as G0e, aD as H0e, aE as W0e, av as U0e, aw as $0e, ax as Y0e, e as X0e, aF as q0e } from "./useDataCollectionSource-BA6BeGvi.js";
11
11
  import { utils as fu, write as qk } from "./xlsx-Bedf3nwD.js";
12
12
  import { defaultTranslations as j0e } from "./i18n-provider-defaults.js";
13
13
  import './f0.css';const mW = {
@@ -51572,47 +51572,51 @@ const uJ = ({
51572
51572
  onError: n,
51573
51573
  onHookUpdate: i
51574
51574
  }) => {
51575
- const r = te(
51575
+ const [r, s] = B(!1), o = te(
51576
+ () => ({
51577
+ ...t,
51578
+ isLoading: r,
51579
+ setIsLoading: s
51580
+ }),
51581
+ [t, r]
51582
+ ), a = te(
51576
51583
  () => cJ(t.currentFilters, e.filters),
51577
51584
  [t.currentFilters, e.filters]
51578
- ), s = qu(t, {
51579
- filters: r,
51585
+ ), l = qu(o, {
51586
+ filters: a,
51580
51587
  onError: n
51581
51588
  }), {
51582
- data: o,
51583
- search: a,
51584
- setSearch: l,
51585
- isInitialLoading: d,
51586
- isLoading: f,
51587
- isLoadingMore: c,
51588
- error: u,
51589
- paginationInfo: h,
51590
- setPage: m,
51591
- loadMore: g,
51592
- totalItems: y,
51593
- mergedFilters: v,
51594
- summaries: b
51595
- } = s;
51589
+ data: d,
51590
+ search: f,
51591
+ setSearch: c,
51592
+ isInitialLoading: u,
51593
+ isLoading: h,
51594
+ isLoadingMore: m,
51595
+ error: g,
51596
+ paginationInfo: y,
51597
+ setPage: v,
51598
+ loadMore: b,
51599
+ totalItems: k,
51600
+ mergedFilters: w,
51601
+ summaries: _
51602
+ } = l;
51596
51603
  return se(() => {
51597
51604
  i?.(e.id, {
51598
- data: o,
51599
- search: a,
51600
- setSearch: l,
51601
- isInitialLoading: d,
51602
- isLoading: f,
51603
- isLoadingMore: c,
51604
- error: u,
51605
- paginationInfo: h,
51606
- setPage: m,
51607
- loadMore: g,
51608
- totalItems: y,
51609
- mergedFilters: v,
51610
- summaries: b
51605
+ data: d,
51606
+ search: f,
51607
+ setSearch: c,
51608
+ isInitialLoading: u,
51609
+ isLoading: h,
51610
+ isLoadingMore: m,
51611
+ error: g,
51612
+ paginationInfo: y,
51613
+ setPage: v,
51614
+ loadMore: b,
51615
+ totalItems: k,
51616
+ mergedFilters: w,
51617
+ summaries: _
51611
51618
  });
51612
51619
  }, [
51613
- o,
51614
- a,
51615
- l,
51616
51620
  d,
51617
51621
  f,
51618
51622
  c,
@@ -51623,6 +51627,9 @@ const uJ = ({
51623
51627
  y,
51624
51628
  v,
51625
51629
  b,
51630
+ k,
51631
+ w,
51632
+ _,
51626
51633
  i,
51627
51634
  e.id
51628
51635
  ]), null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@factorialco/f0-react",
3
- "version": "2.39.0",
3
+ "version": "2.39.1",
4
4
  "private": false,
5
5
  "files": [
6
6
  "assets",
@@ -256,6 +256,7 @@
256
256
  "format": "sh -c 'oxfmt \"${@:-src/}\"' --",
257
257
  "format:check": "sh -c 'oxfmt --check \"${@:-src/}\"' --",
258
258
  "tsc": "tsc --noEmit",
259
+ "check:api-surface": "tsx .scripts/check-api-surface.ts",
259
260
  "vitest": "vitest --project=unit",
260
261
  "vitest:ui": "vitest --project=unit --ui",
261
262
  "vitest:watch": "vitest --project=unit dev",