@factorialco/f0-react 2.31.0 → 2.32.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.
- package/dist/{F0CanvasPanel-dberL_E_.js → F0CanvasPanel-CxrYr5OJ.js} +99 -99
- package/dist/ai.d.ts +32 -15
- package/dist/ai.js +2 -2
- package/dist/experimental.js +4 -4
- package/dist/f0.d.ts +32 -15
- package/dist/f0.js +6 -6
- package/dist/{useChatHistory-spTJ2Xog.js → useChatHistory-CqUmb2mH.js} +1489 -1475
- package/dist/{useDataCollectionSource-BbGIwO6U.js → useDataCollectionSource-BDFT840X.js} +1 -1
- package/package.json +1 -1
|
@@ -134966,7 +134966,7 @@ export {
|
|
|
134966
134966
|
cF as cy,
|
|
134967
134967
|
BY1 as cz,
|
|
134968
134968
|
BQ1 as d,
|
|
134969
|
-
|
|
134969
|
+
uc as d$,
|
|
134970
134970
|
mK1 as d0,
|
|
134971
134971
|
gK1 as d1,
|
|
134972
134972
|
vK1 as d2,
|
|
@@ -134987,23 +134987,23 @@ export {
|
|
|
134987
134987
|
_G as dH,
|
|
134988
134988
|
rM as dI,
|
|
134989
134989
|
OQ1 as dJ,
|
|
134990
|
-
|
|
134991
|
-
|
|
134992
|
-
|
|
134993
|
-
|
|
134994
|
-
|
|
134995
|
-
|
|
134996
|
-
|
|
134997
|
-
|
|
134998
|
-
|
|
134999
|
-
|
|
135000
|
-
|
|
135001
|
-
|
|
135002
|
-
|
|
135003
|
-
|
|
135004
|
-
|
|
135005
|
-
|
|
135006
|
-
|
|
134990
|
+
na as dK,
|
|
134991
|
+
NU1 as dL,
|
|
134992
|
+
FQ1 as dM,
|
|
134993
|
+
t0 as dN,
|
|
134994
|
+
VY1 as dO,
|
|
134995
|
+
rq as dP,
|
|
134996
|
+
rK as dQ,
|
|
134997
|
+
gQ1 as dR,
|
|
134998
|
+
kQ1 as dS,
|
|
134999
|
+
nk as dT,
|
|
135000
|
+
D7 as dU,
|
|
135001
|
+
CQ1 as dV,
|
|
135002
|
+
hQ1 as dW,
|
|
135003
|
+
T7 as dX,
|
|
135004
|
+
Ln as dY,
|
|
135005
|
+
uB1 as dZ,
|
|
135006
|
+
dB1 as d_,
|
|
135007
135007
|
Bf2 as da,
|
|
135008
135008
|
HK1 as db,
|
|
135009
135009
|
_K1 as dc,
|
|
@@ -135030,82 +135030,82 @@ export {
|
|
|
135030
135030
|
jQ1 as dy,
|
|
135031
135031
|
Oq as dz,
|
|
135032
135032
|
XU1 as e,
|
|
135033
|
-
|
|
135034
|
-
|
|
135035
|
-
|
|
135036
|
-
|
|
135037
|
-
|
|
135038
|
-
|
|
135039
|
-
|
|
135040
|
-
|
|
135041
|
-
|
|
135042
|
-
|
|
135043
|
-
|
|
135044
|
-
|
|
135045
|
-
|
|
135046
|
-
|
|
135047
|
-
|
|
135048
|
-
|
|
135049
|
-
|
|
135050
|
-
|
|
135051
|
-
|
|
135052
|
-
|
|
135053
|
-
|
|
135054
|
-
|
|
135055
|
-
|
|
135056
|
-
|
|
135057
|
-
|
|
135058
|
-
|
|
135059
|
-
|
|
135060
|
-
|
|
135061
|
-
|
|
135062
|
-
|
|
135063
|
-
|
|
135064
|
-
|
|
135065
|
-
|
|
135066
|
-
|
|
135067
|
-
|
|
135068
|
-
|
|
135069
|
-
|
|
135070
|
-
|
|
135071
|
-
|
|
135072
|
-
|
|
135073
|
-
|
|
135074
|
-
|
|
135075
|
-
|
|
135076
|
-
|
|
135077
|
-
|
|
135078
|
-
|
|
135079
|
-
|
|
135080
|
-
|
|
135081
|
-
|
|
135082
|
-
|
|
135083
|
-
|
|
135084
|
-
|
|
135085
|
-
|
|
135086
|
-
|
|
135087
|
-
|
|
135088
|
-
|
|
135089
|
-
|
|
135090
|
-
|
|
135091
|
-
|
|
135092
|
-
|
|
135093
|
-
|
|
135094
|
-
|
|
135095
|
-
|
|
135096
|
-
|
|
135033
|
+
gu as e$,
|
|
135034
|
+
lc as e0,
|
|
135035
|
+
An2 as e1,
|
|
135036
|
+
Ub as e2,
|
|
135037
|
+
z3 as e3,
|
|
135038
|
+
an as e4,
|
|
135039
|
+
GP as e5,
|
|
135040
|
+
s92 as e6,
|
|
135041
|
+
_Y1 as e7,
|
|
135042
|
+
n1 as e8,
|
|
135043
|
+
S7 as e9,
|
|
135044
|
+
xr as eA,
|
|
135045
|
+
z1 as eB,
|
|
135046
|
+
Yt as eC,
|
|
135047
|
+
KY2 as eD,
|
|
135048
|
+
h6 as eE,
|
|
135049
|
+
b5 as eF,
|
|
135050
|
+
f5 as eG,
|
|
135051
|
+
z9 as eH,
|
|
135052
|
+
B2 as eI,
|
|
135053
|
+
nn as eJ,
|
|
135054
|
+
sa as eK,
|
|
135055
|
+
X8 as eL,
|
|
135056
|
+
j5 as eM,
|
|
135057
|
+
q5 as eN,
|
|
135058
|
+
kG2 as eO,
|
|
135059
|
+
W5 as eP,
|
|
135060
|
+
C7 as eQ,
|
|
135061
|
+
YG2 as eR,
|
|
135062
|
+
bY as eS,
|
|
135063
|
+
LY as eT,
|
|
135064
|
+
MQ1 as eU,
|
|
135065
|
+
LQ1 as eV,
|
|
135066
|
+
wQ1 as eW,
|
|
135067
|
+
vQ1 as eX,
|
|
135068
|
+
oJ2 as eY,
|
|
135069
|
+
l7 as eZ,
|
|
135070
|
+
xu as e_,
|
|
135071
|
+
Gc as ea,
|
|
135072
|
+
G9 as eb,
|
|
135073
|
+
fQ1 as ec,
|
|
135074
|
+
dQ1 as ed,
|
|
135075
|
+
uQ1 as ee,
|
|
135076
|
+
oZ2 as ef,
|
|
135077
|
+
Rq as eg,
|
|
135078
|
+
aZ2 as eh,
|
|
135079
|
+
ie as ei,
|
|
135080
|
+
un as ej,
|
|
135081
|
+
CZ2 as ek,
|
|
135082
|
+
K1 as el,
|
|
135083
|
+
B1 as em,
|
|
135084
|
+
je as en,
|
|
135085
|
+
gU as eo,
|
|
135086
|
+
Bz2 as ep,
|
|
135087
|
+
kn as eq,
|
|
135088
|
+
b3 as er,
|
|
135089
|
+
Gz2 as es,
|
|
135090
|
+
$1 as et,
|
|
135091
|
+
cl as eu,
|
|
135092
|
+
ee as ev,
|
|
135093
|
+
bQ1 as ew,
|
|
135094
|
+
Qs as ex,
|
|
135095
|
+
Ue as ey,
|
|
135096
|
+
XM as ez,
|
|
135097
135097
|
LY1 as f,
|
|
135098
135098
|
_9 as f$,
|
|
135099
|
-
|
|
135100
|
-
|
|
135101
|
-
|
|
135102
|
-
|
|
135103
|
-
|
|
135104
|
-
|
|
135105
|
-
|
|
135106
|
-
|
|
135107
|
-
|
|
135108
|
-
|
|
135099
|
+
SN2 as f0,
|
|
135100
|
+
bZ as f1,
|
|
135101
|
+
pM as f2,
|
|
135102
|
+
pQ1 as f3,
|
|
135103
|
+
O21 as f4,
|
|
135104
|
+
tk as f5,
|
|
135105
|
+
eQ2 as f6,
|
|
135106
|
+
fa as f7,
|
|
135107
|
+
yQ1 as f8,
|
|
135108
|
+
Y4 as f9,
|
|
135109
135109
|
Db as fA,
|
|
135110
135110
|
wD2 as fB,
|
|
135111
135111
|
kD2 as fC,
|
|
@@ -135133,13 +135133,13 @@ export {
|
|
|
135133
135133
|
J31 as fY,
|
|
135134
135134
|
hG1 as fZ,
|
|
135135
135135
|
Oq1 as f_,
|
|
135136
|
-
|
|
135137
|
-
|
|
135138
|
-
|
|
135139
|
-
|
|
135140
|
-
|
|
135141
|
-
|
|
135142
|
-
|
|
135136
|
+
A9 as fa,
|
|
135137
|
+
BI as fb,
|
|
135138
|
+
u7 as fc,
|
|
135139
|
+
xQ1 as fd,
|
|
135140
|
+
JY as fe,
|
|
135141
|
+
Gt as ff,
|
|
135142
|
+
G21 as fg,
|
|
135143
135143
|
M4 as fh,
|
|
135144
135144
|
Ck as fi,
|
|
135145
135145
|
FK as fj,
|
package/dist/ai.d.ts
CHANGED
|
@@ -812,6 +812,28 @@ export declare type CanvasActions = {
|
|
|
812
812
|
dashboard?: DashboardCanvasActions;
|
|
813
813
|
};
|
|
814
814
|
|
|
815
|
+
declare type CanvasCardAction = {
|
|
816
|
+
type: "open";
|
|
817
|
+
onOpen: () => void;
|
|
818
|
+
onClose: () => void;
|
|
819
|
+
/** When false, hides the Open/Close button but the card stays clickable. Default true. */
|
|
820
|
+
showButton?: boolean;
|
|
821
|
+
} | {
|
|
822
|
+
type: "custom";
|
|
823
|
+
icon: IconType;
|
|
824
|
+
label: string;
|
|
825
|
+
onClick: () => void;
|
|
826
|
+
hideLabel?: boolean;
|
|
827
|
+
};
|
|
828
|
+
|
|
829
|
+
declare type CanvasCardAvatar = {
|
|
830
|
+
type: "module";
|
|
831
|
+
module: ModuleId;
|
|
832
|
+
} | {
|
|
833
|
+
type: "file";
|
|
834
|
+
file: FileDef;
|
|
835
|
+
};
|
|
836
|
+
|
|
815
837
|
/**
|
|
816
838
|
* Discriminated union for canvas panel content.
|
|
817
839
|
* Add new entity types to this union as they are implemented.
|
|
@@ -2911,30 +2933,25 @@ declare type F0AvatarTeamProps = {
|
|
|
2911
2933
|
|
|
2912
2934
|
/**
|
|
2913
2935
|
* Shared inline card rendered in the AI chat for any canvas entity.
|
|
2914
|
-
* Shows
|
|
2915
|
-
* When active, displays a focus ring and the button switches to "Close".
|
|
2936
|
+
* Shows an avatar, title, optional description, and a configurable action button.
|
|
2916
2937
|
*/
|
|
2917
|
-
export declare function F0CanvasCard({
|
|
2938
|
+
export declare function F0CanvasCard({ avatar, title, description, isActive, action, children, }: F0CanvasCardProps): JSX_2.Element;
|
|
2918
2939
|
|
|
2919
2940
|
export declare namespace F0CanvasCard {
|
|
2920
2941
|
var displayName: string;
|
|
2921
2942
|
}
|
|
2922
2943
|
|
|
2923
2944
|
export declare type F0CanvasCardProps = {
|
|
2924
|
-
/**
|
|
2925
|
-
|
|
2945
|
+
/** Avatar to display: a module icon or a file-type badge */
|
|
2946
|
+
avatar?: CanvasCardAvatar;
|
|
2926
2947
|
/** Primary title */
|
|
2927
2948
|
title: string;
|
|
2928
|
-
/**
|
|
2929
|
-
description
|
|
2930
|
-
/**
|
|
2931
|
-
|
|
2932
|
-
/**
|
|
2933
|
-
|
|
2934
|
-
/** Called when the user clicks the "Close" button (active state) */
|
|
2935
|
-
onClose: () => void;
|
|
2936
|
-
/** Whether this card's content is currently shown in the canvas */
|
|
2937
|
-
isActive: boolean;
|
|
2949
|
+
/** Optional secondary description line */
|
|
2950
|
+
description?: string;
|
|
2951
|
+
/** Whether this card's content is currently shown in the canvas (only meaningful for action.type === "open") */
|
|
2952
|
+
isActive?: boolean;
|
|
2953
|
+
/** Action exposed by the card: either an Open/Close toggle or a custom icon button */
|
|
2954
|
+
action: CanvasCardAction;
|
|
2938
2955
|
/** Optional content rendered below the card header (e.g. a data preview) */
|
|
2939
2956
|
children?: React.ReactNode;
|
|
2940
2957
|
};
|
package/dist/ai.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { D as e, F as r, a as t, e as o, f as i, c as n, d as F, I as C, P as A, b as l, u as d } from "./F0CanvasPanel-
|
|
1
|
+
import { D as e, F as r, a as t, e as o, f as i, c as n, d as F, I as C, P as A, b as l, u as d } from "./F0CanvasPanel-CxrYr5OJ.js";
|
|
2
2
|
import { defaultTranslations as m } from "./i18n-provider-defaults.js";
|
|
3
|
-
import { A as c, C as I, h as P, t as v, v as f, x as p, n as T, j as g, r as y, y as S, q as x, s as H, k as V, e as b, g as k, l as w, F as M, i as O, a as D, p as j, m as q, o as z, b as B, f as E, w as L, c as R, d as G, u as J } from "./useChatHistory-
|
|
3
|
+
import { A as c, C as I, h as P, t as v, v as f, x as p, n as T, j as g, r as y, y as S, q as x, s as H, k as V, e as b, g as k, l as w, F as M, i as O, a as D, p as j, m as q, o as z, b as B, f as E, w as L, c as R, d as G, u as J } from "./useChatHistory-CqUmb2mH.js";
|
|
4
4
|
export {
|
|
5
5
|
c as AiChatTranslationsProvider,
|
|
6
6
|
I as ChatSpinner,
|
package/dist/experimental.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
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, n as X, o as ge, u as ie, T as pa, p as ga, q as ba, R as xa, r as va, s as re, t as wa, v as pt, w as rt, x as Re, A as _e, y as ya, z as Na, C as M, E as Ca, G as ka, H as ve, J as sn, K as Sa, L as Ia, M as W, N as on, S as O, O as we, Q as Fa, U as Aa, V as La, W as Ea, X as _a, Y as ke, Z as cn, _ as Oa, $ as be, a0 as $e, a1 as Da, a2 as gt, d as dn, a3 as Ce, a4 as Ta, a5 as un, a6 as ne, a7 as K, a8 as fn, a9 as mn, aa as za, ab as hn, ac as me, ad as ee, ae as Pa, af as Ba, ag as Ra, ah as $a, ai as pe, aj as Ge, ak as Wa, al as Ma, am as ja, an as Va, ao as He, ap as pn, aq as Ga, ar as Ha, as as Ua, at as We, au as Ka, av as qa, aw as Ya, ax as Za, ay as Xa, az as Ja, aA as Qa, aB as er, aC as tr, aD as nr, aE as lt, aF as it, aG as gn, aH as ar, aI as rr, aJ as lr, aK as ir, aL as Ue, aM as bt, aN as bn, aO as sr, aP as xn, aQ as or, aR as cr, aS as dr, aT as Ee, aU as ur, aV as Te, aW as Lt, aX as st, aY as fr, aZ as mr, a as hr, b as pr, a_ as vn, a$ as gr, f as br, F as xr, b0 as wn, b1 as vr, b2 as yn, b3 as wr, b4 as yr, b5 as Nr, b6 as Cr, b7 as kr, b8 as Sr, b9 as Ir, ba as Fr, bb as Ar, bc as Nn, bd as ue, be as xt, bf as vt, bg as wt, bh as Cn, bi as yt, bj as kn, bk as Sn, bl as Lr, bm as Er, bn as _r, bo as Or, bp as Dr, bq as Tr, br as zr, bs as Pr, bt as Br, bu as Rr, bv as Et, bw as _t, bx as Ot, by as $r, bz as Wr, bA as Mr, bB as jr, bC as In, bD as Vr, bE as Gr } from "./F0CanvasPanel-
|
|
2
|
-
import { bQ as Lc, bP as Ec, c0 as _c, bM as Oc, bN as Dc, bF as Tc, bG as zc, c1 as Pc, bH 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-
|
|
1
|
+
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, n as X, o as ge, u as ie, T as pa, p as ga, q as ba, R as xa, r as va, s as re, t as wa, v as pt, w as rt, x as Re, A as _e, y as ya, z as Na, C as M, E as Ca, G as ka, H as ve, J as sn, K as Sa, L as Ia, M as W, N as on, S as O, O as we, Q as Fa, U as Aa, V as La, W as Ea, X as _a, Y as ke, Z as cn, _ as Oa, $ as be, a0 as $e, a1 as Da, a2 as gt, d as dn, a3 as Ce, a4 as Ta, a5 as un, a6 as ne, a7 as K, a8 as fn, a9 as mn, aa as za, ab as hn, ac as me, ad as ee, ae as Pa, af as Ba, ag as Ra, ah as $a, ai as pe, aj as Ge, ak as Wa, al as Ma, am as ja, an as Va, ao as He, ap as pn, aq as Ga, ar as Ha, as as Ua, at as We, au as Ka, av as qa, aw as Ya, ax as Za, ay as Xa, az as Ja, aA as Qa, aB as er, aC as tr, aD as nr, aE as lt, aF as it, aG as gn, aH as ar, aI as rr, aJ as lr, aK as ir, aL as Ue, aM as bt, aN as bn, aO as sr, aP as xn, aQ as or, aR as cr, aS as dr, aT as Ee, aU as ur, aV as Te, aW as Lt, aX as st, aY as fr, aZ as mr, a as hr, b as pr, a_ as vn, a$ as gr, f as br, F as xr, b0 as wn, b1 as vr, b2 as yn, b3 as wr, b4 as yr, b5 as Nr, b6 as Cr, b7 as kr, b8 as Sr, b9 as Ir, ba as Fr, bb as Ar, bc as Nn, bd as ue, be as xt, bf as vt, bg as wt, bh as Cn, bi as yt, bj as kn, bk as Sn, bl as Lr, bm as Er, bn as _r, bo as Or, bp as Dr, bq as Tr, br as zr, bs as Pr, bt as Br, bu as Rr, bv as Et, bw as _t, bx as Ot, by as $r, bz as Wr, bA as Mr, bB as jr, bC as In, bD as Vr, bE as Gr } from "./F0CanvasPanel-CxrYr5OJ.js";
|
|
2
|
+
import { bQ as Lc, bP as Ec, c0 as _c, bM as Oc, bN as Dc, bF as Tc, bG as zc, c1 as Pc, bH 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-CxrYr5OJ.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-
|
|
6
|
-
import { r as nd, s as ad, p as rd, H as ld, t as id, z as sd, a5 as od, G as cd, q as dd, o as ud, Q as fd, ab as md, U as hd, W as pd, v as gd, a7 as bd, a8 as xd, a6 as vd, a9 as wd, N as yd, X as Nd, a2 as Cd, a4 as kd, w as Sd, y as Id, D as Fd, J as Ad, aa as Ld, K as Ed, T as _d, x as Od, E as Dd, m as Td, n as zd, Z as Pd, _ as Bd, a3 as Rd, I as $d, $ as Wd, a0 as Md, Y as jd, a1 as Vd } from "./useDataCollectionSource-
|
|
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-BDFT840X.js";
|
|
6
|
+
import { r as nd, s as ad, p as rd, H as ld, t as id, z as sd, a5 as od, G as cd, q as dd, o as ud, Q as fd, ab as md, U as hd, W as pd, v as gd, a7 as bd, a8 as xd, a6 as vd, a9 as wd, N as yd, X as Nd, a2 as Cd, a4 as kd, w as Sd, y as Id, D as Fd, J as Ad, aa as Ld, K as Ed, T as _d, x as Od, E as Dd, m as Td, n as zd, Z as Pd, _ as Bd, a3 as Rd, I as $d, $ as Wd, a0 as Md, Y as jd, a1 as Vd } from "./useDataCollectionSource-BDFT840X.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.d.ts
CHANGED
|
@@ -1862,6 +1862,28 @@ export declare type CanvasActions = {
|
|
|
1862
1862
|
dashboard?: DashboardCanvasActions;
|
|
1863
1863
|
};
|
|
1864
1864
|
|
|
1865
|
+
declare type CanvasCardAction = {
|
|
1866
|
+
type: "open";
|
|
1867
|
+
onOpen: () => void;
|
|
1868
|
+
onClose: () => void;
|
|
1869
|
+
/** When false, hides the Open/Close button but the card stays clickable. Default true. */
|
|
1870
|
+
showButton?: boolean;
|
|
1871
|
+
} | {
|
|
1872
|
+
type: "custom";
|
|
1873
|
+
icon: IconType;
|
|
1874
|
+
label: string;
|
|
1875
|
+
onClick: () => void;
|
|
1876
|
+
hideLabel?: boolean;
|
|
1877
|
+
};
|
|
1878
|
+
|
|
1879
|
+
declare type CanvasCardAvatar = {
|
|
1880
|
+
type: "module";
|
|
1881
|
+
module: ModuleId;
|
|
1882
|
+
} | {
|
|
1883
|
+
type: "file";
|
|
1884
|
+
file: FileDef;
|
|
1885
|
+
};
|
|
1886
|
+
|
|
1865
1887
|
/**
|
|
1866
1888
|
* Discriminated union for canvas panel content.
|
|
1867
1889
|
* Add new entity types to this union as they are implemented.
|
|
@@ -6651,30 +6673,25 @@ export declare type F0ButtonToggleProps = Omit<F0ButtonToggleInternalProps, (typ
|
|
|
6651
6673
|
|
|
6652
6674
|
/**
|
|
6653
6675
|
* Shared inline card rendered in the AI chat for any canvas entity.
|
|
6654
|
-
* Shows
|
|
6655
|
-
* When active, displays a focus ring and the button switches to "Close".
|
|
6676
|
+
* Shows an avatar, title, optional description, and a configurable action button.
|
|
6656
6677
|
*/
|
|
6657
|
-
export declare function F0CanvasCard({
|
|
6678
|
+
export declare function F0CanvasCard({ avatar, title, description, isActive, action, children, }: F0CanvasCardProps): JSX_2.Element;
|
|
6658
6679
|
|
|
6659
6680
|
export declare namespace F0CanvasCard {
|
|
6660
6681
|
var displayName: string;
|
|
6661
6682
|
}
|
|
6662
6683
|
|
|
6663
6684
|
export declare type F0CanvasCardProps = {
|
|
6664
|
-
/**
|
|
6665
|
-
|
|
6685
|
+
/** Avatar to display: a module icon or a file-type badge */
|
|
6686
|
+
avatar?: CanvasCardAvatar;
|
|
6666
6687
|
/** Primary title */
|
|
6667
6688
|
title: string;
|
|
6668
|
-
/**
|
|
6669
|
-
description
|
|
6670
|
-
/**
|
|
6671
|
-
|
|
6672
|
-
/**
|
|
6673
|
-
|
|
6674
|
-
/** Called when the user clicks the "Close" button (active state) */
|
|
6675
|
-
onClose: () => void;
|
|
6676
|
-
/** Whether this card's content is currently shown in the canvas */
|
|
6677
|
-
isActive: boolean;
|
|
6689
|
+
/** Optional secondary description line */
|
|
6690
|
+
description?: string;
|
|
6691
|
+
/** Whether this card's content is currently shown in the canvas (only meaningful for action.type === "open") */
|
|
6692
|
+
isActive?: boolean;
|
|
6693
|
+
/** Action exposed by the card: either an Open/Close toggle or a custom icon button */
|
|
6694
|
+
action: CanvasCardAction;
|
|
6678
6695
|
/** Optional content rendered below the card header (e.g. a data preview) */
|
|
6679
6696
|
children?: React.ReactNode;
|
|
6680
6697
|
};
|
package/dist/f0.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { du as dk, a6 as yt, bd as Dg, m as ce, o as Pa, f$ as hk, n as Hs,
|
|
2
|
-
import { gA as Cme, D as Tme, aM as Dme, F as Ame, a as Mme, e as Eme, b1 as Lme, bs as Nme, bc as Ime, ai as kme,
|
|
1
|
+
import { du as dk, a6 as yt, bd as Dg, m as ce, o as Pa, f$ as hk, n as Hs, eH as C3, ac as go, g2 as T3, ad as Mw, S as oe, u as tt, C as dt, cY as Vu, A as vk, i as D3, H as Wv, cK as yu, a7 as kr, a3 as gd, g3 as A3, g4 as Xb, g5 as M3, g6 as E3, g7 as JC, dQ as L3, g8 as N3, g9 as pk, ga as I3, M as pt, aX as k3, aL as R3, b8 as P3, dM as eT, s as Fu, a1 as Ew, a2 as Ws, b9 as O3, fh as B3, aB as Lw, aC as Nw, aD as Iw, aj as gk, c0 as Uv, dv as mk, gb as V3, fl as F3, aF as yk, de as z3, br as G3, aV as bk, Y as zu, gc as H3, ae as W3, gd as kw, ge as tT, ff as U3, gf as $3, gg as Y3, gh as X3, W as Rw, dN as bu, bH as Pw, dK as q3, dp as Ow, at as ou, bI as xk, d5 as Bw, b6 as Us, a8 as Bn, ao as Z3, cz as qb, cy as _k, gi as Ag, d6 as Vw, fR as j3, a0 as wk, fe as K3, by as Q3, ab as Mg, dG as J3, dH as eH, dI as tH, c as rH, er as nH, z as Sk, cF as rl, dm as Ck, bB as Fw, E as Eg, G as Lg, cp as zw, L as Ng, V as Ar, X as xu, fw as su, fx as lu, K as uu, fy as cu, fu as iH, fv as io, cs as Tk, aq as aH, d3 as $v, gj as on, aA as oH, d9 as Dk, d8 as Ak, gk as sH, aN as Mk, aT as lH, dC as uH, dD as cH, dw as fH, be as Gu, bi as Hu, bp as md, dq as dH, bf as hH, b0 as vH, N as Ek, b7 as pH, _ as gH, d0 as rT, dl as Pf, fi as mH, fj as yH, gl as bH, aS as xH, bj as _H, cI as Lk, a4 as wH, cx as SH, g0 as CH, gm as TH, gn as DH, I as AH, go as MH, gp as EH, gq as LH, gr as NH } from "./F0CanvasPanel-CxrYr5OJ.js";
|
|
2
|
+
import { gA as Cme, D as Tme, aM as Dme, F as Ame, a as Mme, e as Eme, b1 as Lme, bs as Nme, bc as Ime, ai as kme, dP as Rme, ar as Pme, bF as Ome, f as Bme, dJ as Vme, dy as Fme, gE as zme, d as Gme, bk as Hme, gv as Wme, aZ as Ume, gw as $me, gy as Yme, gz as Xme, c1 as qme, gB as Zme, bY as jme, bZ as Kme, P as Qme, gx as Jme, b_ as eye, gF as tye, gs as rye, gt as nye, gu as iye, b$ as aye, gD as oye, fS as sye, gC as lye, aQ as uye, bX as cye, bU as fye, bW as dye, bT as hye, fU as vye, fO as pye, bL as gye, bV as mye, b as yye, fN as bye, g1 as xye, aO as _ye, dt as wye, fQ as Sye, fP as Cye, gG as Tye } from "./F0CanvasPanel-CxrYr5OJ.js";
|
|
3
3
|
import { jsx as w, jsxs as B, Fragment as kt } from "react/jsx-runtime";
|
|
4
4
|
import * as Yn from "react";
|
|
5
5
|
import He, { forwardRef as Jr, useRef as se, useImperativeHandle as IH, Children as Yv, createContext as en, useContext as _r, useState as ye, useMemo as ae, useEffect as _e, useCallback as te, useLayoutEffect as Zb, createElement as Xd, isValidElement as Nk, Fragment as Ig, memo as Ik, useReducer as kH, cloneElement as RH, useId as kg } from "react";
|
|
6
|
-
import { z as PH, B as OH, U as nT, D as iT, E as $m, G as aT, H as BH, I as Oa, J as nl, K as VH, L as Gw, 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 Hw, 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-
|
|
7
|
-
import { A as Aye, C as Mye, h as Eye, t as Lye, v as Nye, x as Iye, ah as kye, n as Rye, j as Pye, r as Oye, y as Bye, q as Vye, s as Fye, k as zye, e as Gye, g as Hye, l as Wye, i as Uye, a as $ye, p as Yye, ai as Xye, af as qye, ae as Zye, ag as jye, m as Kye, o as Qye, ad as Jye, b as e0e, f as t0e, w as r0e, c as n0e, d as i0e, u as a0e } from "./useChatHistory-
|
|
6
|
+
import { z as PH, B as OH, U as nT, D as iT, E as $m, G as aT, H as BH, I as Oa, J as nl, K as VH, L as Gw, 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 Hw, 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-CqUmb2mH.js";
|
|
7
|
+
import { A as Aye, C as Mye, h as Eye, t as Lye, v as Nye, x as Iye, ah as kye, n as Rye, j as Pye, r as Oye, y as Bye, q as Vye, s as Fye, k as zye, e as Gye, g as Hye, l as Wye, i as Uye, a as $ye, p as Yye, ai as Xye, af as qye, ae as Zye, ag as jye, m as Kye, o as Qye, ad as Jye, b as e0e, f as t0e, w as r0e, c as n0e, d as i0e, u as a0e } from "./useChatHistory-CqUmb2mH.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, ac as Gk, N as Hk, aa as iW, T as aW, K as Wk, Q as Ww, ad as Uw, a5 as oW, ae as sW, af as lW, d as Pg, ag as uW, R as $w, u as Yw, J as Uk, O as Xw, ah as $k, ai as qw, p as cW, a0 as Yk, X as Xk, aj as fW, ak as dW, al as hW, am as vW, an as pW, M as gW } from "./useDataCollectionSource-
|
|
10
|
-
import { r as s0e, s as l0e, t as u0e, z as c0e, ap as f0e, F as d0e, ab as h0e, v as v0e, a7 as p0e, a8 as g0e, a6 as m0e, a9 as y0e, w as b0e, P as x0e, y as _0e, D as w0e, x as S0e, E as C0e, m as T0e, n as D0e, ao as A0e, a3 as M0e, I as E0e, aq as L0e, ar as N0e, as as I0e, e as k0e } from "./useDataCollectionSource-
|
|
9
|
+
import { C as rW, o as nW, G as jb, H as zk, ac as Gk, N as Hk, aa as iW, T as aW, K as Wk, Q as Ww, ad as Uw, a5 as oW, ae as sW, af as lW, d as Pg, ag as uW, R as $w, u as Yw, J as Uk, O as Xw, ah as $k, ai as qw, p as cW, a0 as Yk, X as Xk, aj as fW, ak as dW, al as hW, am as vW, an as pW, M as gW } from "./useDataCollectionSource-BDFT840X.js";
|
|
10
|
+
import { r as s0e, s as l0e, t as u0e, z as c0e, ap as f0e, F as d0e, ab as h0e, v as v0e, a7 as p0e, a8 as g0e, a6 as m0e, a9 as y0e, w as b0e, P as x0e, y as _0e, D as w0e, x as S0e, E as C0e, m as T0e, n as D0e, ao as A0e, a3 as M0e, I as E0e, aq as L0e, ar as N0e, as as I0e, e as k0e } from "./useDataCollectionSource-BDFT840X.js";
|
|
11
11
|
import { utils as fu, write as qk } from "./xlsx-Bedf3nwD.js";
|
|
12
12
|
import { defaultTranslations as P0e } from "./i18n-provider-defaults.js";
|
|
13
13
|
import './f0.css';const mW = {
|