@factorialco/f0-react 3.2.0 → 3.2.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.
package/dist/experimental.js
CHANGED
|
@@ -2,8 +2,8 @@ import { h as ga, B as pa, i as ba, j as xa, k as Dt, l as Be, m as Te, n as va,
|
|
|
2
2
|
import { c1 as Kc, c0 as qc, cd as Yc, bZ as Jc, b_ as Zc, bS as Xc, cg as Qc, bT as ed, bU as td, ch as nd, b$ as ad, c9 as rd, ca as id, ce as ld, bV as sd, c3 as od, c2 as cd, bW as dd, bX as ud, cb as fd, ci as md, cc as hd, cf as gd, c8 as pd, c5 as bd, c7 as xd, c4 as vd, bY as yd, c6 as wd } from "./F0CanvasPanel-C3fJQSVe.js";
|
|
3
3
|
import { jsx as e, jsxs as o, Fragment as Z } from "react/jsx-runtime";
|
|
4
4
|
import ue, { forwardRef as G, useRef as j, useTransition as ni, useState as D, useLayoutEffect as Tn, useId as pt, useContext as Pe, createContext as Qe, useEffect as W, useCallback as ne, useMemo as q, Fragment as ai, isValidElement as ri, cloneElement as zn, Children as Rn } from "react";
|
|
5
|
-
import { C as ii, P as li, a as Bn, M as si, p as oi, b as ci, R as Mt, c as $n, u as di, d as ui, e as fi, f as mi, g as hi, h as Mn, S as gi, A as pi, B as bi, L as xi, i as vi, V as yi, j as wi, k as Ni, l as Ci, O as Ii } from "./useDataCollectionSource-
|
|
6
|
-
import { r as Cd, s as Id, o as kd, H as Sd, t as Fd, z as Ad, a8 as Ld, G as Od, q as Pd, aa as Ed, a9 as _d, Q as Dd, ad as Td, F as zd, Y as Rd, U as Bd, J as $d, af as Md, K as Wd, Z as jd, _ as Vd, v as Ud, ab as Hd, ac as Gd, N as Kd, $ as qd, a5 as Yd, a7 as Jd, w as Zd, y as Xd, D as Qd, W as eu, ae as tu, X as nu, T as au, ag as ru, x as iu, E as lu, m as su, n as ou, a1 as cu, a2 as du, a6 as uu, I as fu, a3 as mu, a0 as hu, a4 as gu } from "./useDataCollectionSource-
|
|
5
|
+
import { C as ii, P as li, a as Bn, M as si, p as oi, b as ci, R as Mt, c as $n, u as di, d as ui, e as fi, f as mi, g as hi, h as Mn, S as gi, A as pi, B as bi, L as xi, i as vi, V as yi, j as wi, k as Ni, l as Ci, O as Ii } from "./useDataCollectionSource-BvIwxzzp.js";
|
|
6
|
+
import { r as Cd, s as Id, o as kd, H as Sd, t as Fd, z as Ad, a8 as Ld, G as Od, q as Pd, aa as Ed, a9 as _d, Q as Dd, ad as Td, F as zd, Y as Rd, U as Bd, J as $d, af as Md, K as Wd, Z as jd, _ as Vd, v as Ud, ab as Hd, ac as Gd, N as Kd, $ as qd, a5 as Yd, a7 as Jd, w as Zd, y as Xd, D as Qd, W as eu, ae as tu, X as nu, T as au, ag as ru, x as iu, E as lu, m as su, n as ou, a1 as cu, a2 as du, a6 as uu, I as fu, a3 as mu, a0 as hu, a4 as gu } from "./useDataCollectionSource-BvIwxzzp.js";
|
|
7
7
|
const ki = ga("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 _t, { forwardRef as Pr, useRef as fe, useImperativeHandle as _3, Children
|
|
|
6
6
|
import { T as c2, y as S3, z as C3, B as T3, C as D3, D as f2, E as sv, G as Bx, H as d2, I as h2, J as v2, K as A3, L as M3, M as E3, N as L3, O as N3, F as I3 } from "./useChatHistory-shjDpEO2.js";
|
|
7
7
|
import { A as Uge, s as Yge, t as Xge, w as qge, l as Zge, i as jge, q as Kge, x as Qge, p as Jge, r as eme, j as tme, e as rme, P as nme, g as ime, k as ame, h as ome, a as sme, n as lme, m as ume, o as cme, b as fme, f as dme, v as hme, c as vme, d as pme, u as gme } from "./useChatHistory-shjDpEO2.js";
|
|
8
8
|
import { createPortal as zx, unstable_batchedUpdates as ud } from "react-dom";
|
|
9
|
-
import { C as R3, F as k3, ah as p2, ai as P3, aj as O3, ak as B3, al as Vx, am as Fx, G as z3, an as V3, Y as F3, a8 as G3, ao as H3, Q as W3, ap as $3, aq as U3, c as $p, ar as zf, R as Gx, u as Hx, W as g2, O as Wx, as as m2, at as XS, au as $x, o as Y3, d as y2, $ as b2, av as X3, aw as q3, ax as Z3, ay as j3, az as K3, M as Q3 } from "./useDataCollectionSource-
|
|
10
|
-
import { r as yme, s as bme, H as _me, t as xme, z as wme, aQ as Sme, aP as Cme, aL as Tme, aB as Dme, aA as Ame, aC as Mme, aD as Eme, aa as Lme, a9 as Nme, ad as Ime, U as Rme, J as kme, af as Pme, K as Ome, v as Bme, aR as zme, ab as Vme, ac as Fme, N as Gme, w as Hme, P as Wme, y as $me, D as Ume, ae as Yme, T as Xme, ag as qme, x as Zme, E as jme, aT as Kme, m as Qme, n as Jme, aK as eye, aG as tye, aF as rye, aS as nye, a6 as iye, aI as aye, aJ as oye, I as sye, aU as lye, aV as uye, e as cye, aM as fye, aN as dye, aO as hye, aH as vye, f as pye, h as gye, aE as mye, aW as yye } from "./useDataCollectionSource-
|
|
9
|
+
import { C as R3, F as k3, ah as p2, ai as P3, aj as O3, ak as B3, al as Vx, am as Fx, G as z3, an as V3, Y as F3, a8 as G3, ao as H3, Q as W3, ap as $3, aq as U3, c as $p, ar as zf, R as Gx, u as Hx, W as g2, O as Wx, as as m2, at as XS, au as $x, o as Y3, d as y2, $ as b2, av as X3, aw as q3, ax as Z3, ay as j3, az as K3, M as Q3 } from "./useDataCollectionSource-BvIwxzzp.js";
|
|
10
|
+
import { r as yme, s as bme, H as _me, t as xme, z as wme, aQ as Sme, aP as Cme, aL as Tme, aB as Dme, aA as Ame, aC as Mme, aD as Eme, aa as Lme, a9 as Nme, ad as Ime, U as Rme, J as kme, af as Pme, K as Ome, v as Bme, aR as zme, ab as Vme, ac as Fme, N as Gme, w as Hme, P as Wme, y as $me, D as Ume, ae as Yme, T as Xme, ag as qme, x as Zme, E as jme, aT as Kme, m as Qme, n as Jme, aK as eye, aG as tye, aF as rye, aS as nye, a6 as iye, aI as aye, aJ as oye, I as sye, aU as lye, aV as uye, e as cye, aM as fye, aN as dye, aO as hye, aH as vye, f as pye, h as gye, aE as mye, aW as yye } from "./useDataCollectionSource-BvIwxzzp.js";
|
|
11
11
|
import { utils as Nl, write as _2 } from "./xlsx-Bedf3nwD.js";
|
|
12
12
|
import { defaultTranslations as _ye } from "./i18n-provider-defaults.js";
|
|
13
13
|
import './f0.css';const J3 = {
|
|
@@ -57810,7 +57810,7 @@ function e3(t) {
|
|
|
57810
57810
|
viewportRef: g,
|
|
57811
57811
|
children: /* @__PURE__ */ p("div", { className: "relative mb-2 flex h-full items-start gap-2", children: a.map(
|
|
57812
57812
|
(x, _) => {
|
|
57813
|
-
const S = x.total ?? x.items.length;
|
|
57813
|
+
const S = e.find((N) => N.id === x.id), E = S?.loading ?? x.loading, C = S?.hasMore ?? x.hasMore, A = S?.loadingMore ?? x.loadingMore, I = S?.fetchMore ?? x.fetchMore, D = x.total ?? S?.total ?? x.items.length;
|
|
57814
57814
|
return /* @__PURE__ */ p(
|
|
57815
57815
|
"div",
|
|
57816
57816
|
{
|
|
@@ -57820,19 +57820,19 @@ function e3(t) {
|
|
|
57820
57820
|
zee,
|
|
57821
57821
|
{
|
|
57822
57822
|
id: x.id,
|
|
57823
|
-
getLaneResourceIndexById: x.id ? (
|
|
57823
|
+
getLaneResourceIndexById: x.id ? (N) => w(x.id, N) : void 0,
|
|
57824
57824
|
onMove: k,
|
|
57825
57825
|
title: x.title,
|
|
57826
57826
|
items: x.items,
|
|
57827
|
-
getKey: (
|
|
57828
|
-
renderCard: (
|
|
57827
|
+
getKey: (N, T) => i(N, T, x.id),
|
|
57828
|
+
renderCard: (N, T) => n(N, T, D, x.id),
|
|
57829
57829
|
emptyState: x.emptyState,
|
|
57830
|
-
loading:
|
|
57830
|
+
loading: E,
|
|
57831
57831
|
variant: x.variant,
|
|
57832
|
-
total:
|
|
57833
|
-
hasMore:
|
|
57834
|
-
loadingMore:
|
|
57835
|
-
fetchMore:
|
|
57832
|
+
total: D,
|
|
57833
|
+
hasMore: C,
|
|
57834
|
+
loadingMore: A,
|
|
57835
|
+
fetchMore: I,
|
|
57836
57836
|
onPrimaryAction: o && x.id ? () => o(x.id) : void 0,
|
|
57837
57837
|
onFooterAction: o && x.id ? () => o(x.id) : void 0
|
|
57838
57838
|
}
|
|
@@ -57955,7 +57955,7 @@ const Hee = (t) => t.map(
|
|
|
57955
57955
|
variant: T.variant,
|
|
57956
57956
|
total: P,
|
|
57957
57957
|
hasMore: $,
|
|
57958
|
-
loading: M
|
|
57958
|
+
loading: M ? M.isInitialLoading : !0,
|
|
57959
57959
|
loadingMore: M?.isLoadingMore || !1,
|
|
57960
57960
|
fetchMore: $ ? () => M.loadMore() : void 0
|
|
57961
57961
|
};
|